UNPKG

5.46 kBCSSView Raw
1/*!
2 * # Fomantic-UI - Comment
3 * http://github.com/fomantic/Fomantic-UI/
4 *
5 *
6 * Released under the MIT license
7 * http://opensource.org/licenses/MIT
8 *
9 */
10
11
12/*******************************
13 Standard
14*******************************/
15
16
17/*--------------
18 Comments
19---------------*/
20
21.ui.comments {
22 margin: 1.5em 0;
23 max-width: 650px;
24}
25.ui.comments:first-child {
26 margin-top: 0;
27}
28.ui.comments:last-child {
29 margin-bottom: 0;
30}
31
32/*--------------
33 Comment
34---------------*/
35
36.ui.comments .comment {
37 position: relative;
38 background: none;
39 margin: 0.5em 0 0;
40 padding: 0.5em 0 0;
41 border: none;
42 border-top: none;
43 line-height: 1.2;
44}
45.ui.comments .comment:first-child {
46 margin-top: 0;
47 padding-top: 0;
48}
49
50/*--------------------
51 Nested Comments
52---------------------*/
53
54.ui.comments .comment > .comments {
55 margin: 0 0 0.5em 0.5em;
56 padding: 1em 0 1em 1em;
57}
58.ui.comments .comment > .comments:before {
59 position: absolute;
60 top: 0;
61 left: 0;
62}
63.ui.comments .comment > .comments .comment {
64 border: none;
65 border-top: none;
66 background: none;
67}
68
69/*--------------
70 Avatar
71---------------*/
72
73.ui.comments .comment .avatar {
74 display: block;
75 width: 2.5em;
76 height: auto;
77 float: left;
78 margin: 0.2em 0 0;
79}
80.ui.comments .comment img.avatar,
81.ui.comments .comment .avatar img {
82 display: block;
83 margin: 0 auto;
84 width: 100%;
85 height: 100%;
86 border-radius: 0.25rem;
87}
88
89/*--------------
90 Content
91---------------*/
92
93.ui.comments .comment > .content {
94 display: block;
95}
96
97/* If there is an avatar move content over */
98.ui.comments .comment > .avatar ~ .content {
99 margin-left: 3.5em;
100}
101
102/*--------------
103 Author
104---------------*/
105
106.ui.comments .comment .author {
107 font-size: 1em;
108 color: rgba(0, 0, 0, 0.87);
109 font-weight: bold;
110}
111.ui.comments .comment a.author {
112 cursor: pointer;
113}
114.ui.comments .comment a.author:hover {
115 color: #1e70bf;
116}
117
118/*--------------
119 Metadata
120---------------*/
121
122.ui.comments .comment .metadata {
123 display: inline-block;
124 margin-left: 0.5em;
125 color: rgba(0, 0, 0, 0.4);
126 font-size: 0.875em;
127}
128.ui.comments .comment .metadata > * {
129 display: inline-block;
130 margin: 0 0.5em 0 0;
131}
132.ui.comments .comment .metadata > :last-child {
133 margin-right: 0;
134}
135
136/*--------------------
137 Comment Text
138---------------------*/
139
140.ui.comments .comment .text {
141 margin: 0.25em 0 0.5em;
142 font-size: 1em;
143 word-wrap: break-word;
144 color: rgba(0, 0, 0, 0.87);
145 line-height: 1.3;
146}
147
148/*--------------------
149 User Actions
150---------------------*/
151
152.ui.comments .comment .actions {
153 font-size: 0.875em;
154}
155.ui.comments .comment .actions a {
156 cursor: pointer;
157 display: inline-block;
158 margin: 0 0.75em 0 0;
159 color: rgba(0, 0, 0, 0.4);
160}
161.ui.comments .comment .actions a:last-child {
162 margin-right: 0;
163}
164.ui.comments .comment .actions a.active,
165.ui.comments .comment .actions a:hover {
166 color: rgba(0, 0, 0, 0.8);
167}
168
169/*--------------------
170 Reply Form
171---------------------*/
172
173.ui.comments > .reply.form {
174 margin-top: 1em;
175}
176.ui.comments .comment .reply.form {
177 width: 100%;
178 margin-top: 1em;
179}
180.ui.comments .reply.form textarea {
181 font-size: 1em;
182 height: 12em;
183}
184
185
186/*******************************
187 State
188*******************************/
189
190.ui.collapsed.comments,
191.ui.comments .collapsed.comments,
192.ui.comments .collapsed.comment {
193 display: none;
194}
195
196
197/*******************************
198 Variations
199*******************************/
200
201
202/*--------------------
203 Threaded
204 ---------------------*/
205
206.ui.threaded.comments .comment > .comments {
207 margin: -1.5em 0 -1em 1.25em;
208 padding: 3em 0 2em 2.25em;
209 -webkit-box-shadow: -1px 0 0 rgba(34, 36, 38, 0.15);
210 box-shadow: -1px 0 0 rgba(34, 36, 38, 0.15);
211}
212
213/*--------------------
214 Minimal
215 ---------------------*/
216
217.ui.minimal.comments .comment .actions {
218 opacity: 0;
219 position: absolute;
220 top: 0;
221 right: 0;
222 left: auto;
223 -webkit-transition: opacity 0.2s ease;
224 transition: opacity 0.2s ease;
225 -webkit-transition-delay: 0.1s;
226 transition-delay: 0.1s;
227}
228.ui.minimal.comments .comment > .content:hover > .actions {
229 opacity: 1;
230}
231
232/*-------------------
233 Sizes
234--------------------*/
235
236.ui.comments {
237 font-size: 1rem;
238}
239.ui.mini.comments {
240 font-size: 0.78571429rem;
241}
242.ui.tiny.comments {
243 font-size: 0.85714286rem;
244}
245.ui.small.comments {
246 font-size: 0.92857143rem;
247}
248.ui.large.comments {
249 font-size: 1.14285714rem;
250}
251.ui.big.comments {
252 font-size: 1.28571429rem;
253}
254.ui.huge.comments {
255 font-size: 1.42857143rem;
256}
257.ui.massive.comments {
258 font-size: 1.71428571rem;
259}
260
261/*-------------------
262 Inverted
263 --------------------*/
264
265.ui.inverted.comments .comment {
266 background-color: #1B1C1D;
267}
268.ui.inverted.comments .comment .author,
269.ui.inverted.comments .comment .text {
270 color: rgba(255, 255, 255, 0.9);
271}
272.ui.inverted.comments .comment .metadata,
273.ui.inverted.comments .comment .actions a {
274 color: rgba(255, 255, 255, 0.7);
275}
276.ui.inverted.comments .comment a.author:hover,
277.ui.inverted.comments .comment .actions a.active,
278.ui.inverted.comments .comment .actions a:hover {
279 color: #ffffff;
280}
281.ui.inverted.threaded.comments .comment > .comments {
282 -webkit-box-shadow: -1px 0 0 #555555;
283 box-shadow: -1px 0 0 #555555;
284}
285
286
287/*******************************
288 Theme Overrides
289*******************************/
290
291
292
293/*******************************
294 User Variable Overrides
295*******************************/
296