File size: 1,964 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// The main comment list wrapper
.comments__comment-list {
	border-top: 1px solid var(--color-neutral-10);
	clear: both;
	margin: 36px 0;
	padding-top: 11px;
	cursor: default;

	.comments__toggle-expand,
	.comments__open-post {
		margin-top: 9px;
		margin-bottom: -7px;

		&:hover {
			color: var(--color-link);
		}
	}

	.comments__toggle-expand {
		margin-left: 42px;
	}

	.comments__open-post {
		margin-left: 5px;
	}

	.segmented-control {
		margin: 20px;
	}

	.comments__conversation-follow-button,
	.button.comments__manage-comments-button {
		align-items: center;
		display: flex;
		gap: 6px;
		justify-content: center;
		padding: 0;
		background-color: inherit;

		.gridicons-chat {
			position: relative;
			top: 2px;
		}

		@include breakpoint-deprecated( "<660px" ) {
			span {
				display: none;
			}
		}
	}

	.comments__form .form-fieldset {
		margin: 0;
	}

	&.is-inline.is-collapsed {
		.comments__comment-content {
			display: -webkit-box;
			overflow: hidden;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 1;

			* {
				display: inline;
				background: transparent;
			}

			script,
			br {
				display: none;
			}
		}
	}
}

.comments__info-bar {
	margin: 0 36px 0 0;
	position: relative;
	width: 100%;

	.comments__info-bar-title-links {
		align-items: flex-start;
		display: flex;
	}

	.comments__actions-wrapper {
		display: flex;
		gap: 24px;
	}

	.comments__comment-count {
		flex: 1;
		white-space: nowrap;
	}

	.comments__comment-list.has-double-actions & {
		margin: 0 8px -8px 0; // move to a separate line to prevent an overlap
	}

	&.is-no-comments {
		display: none;
	}
}

.comments__view-more {
	color: var(--color-text-subtle);
	cursor: pointer;
	display: block !important; // to overwrite inline-block rule
	font-size: $font-body-small;
	line-height: 1;
	margin-bottom: 15px !important; // to overwrite 10px value

	&.comments__view-more-last {
		margin-top: 16px;
	}

	&:hover {
		color: var(--color-primary-light);
	}
}