5acf4d524df636604ab8e66f5746ed4856944854
[yaffs-website] / web / core / themes / bartik / css / components / comments.css
1 /**
2  * @file
3  * Visual styles for comments in Bartik.
4  */
5
6 /* This is required to win over specificity of #content h2 */
7 #content .comment-wrapper h2 {
8   margin-bottom: 1em;
9 }
10 #content .comment-wrapper h2.comment-form__title {
11   margin-bottom: 1em;
12 }
13 .field-node--comment {
14   font-size: 0.934em;
15 }
16 .comment {
17   margin-bottom: 19px;
18   vertical-align: top;
19   display: table;
20 }
21 [dir="rtl"] .comment {
22   direction: rtl;
23 }
24
25 .comment__meta {
26   padding: 0 30px 0 0; /* LTR */
27   font-size: 1.071em;
28 }
29 [dir="rtl"] .comment__meta {
30   padding: 0 0 0 30px;
31 }
32 .comment__attribution img {
33   border: 1px solid #d3d7d9;
34 }
35 /* This is required to win over specificity of .field--type-image img */
36 .comment .field--name-user-picture img {
37   margin: 0;
38 }
39 .comment__author .username {
40   white-space: nowrap;
41 }
42 .comment__author {
43   margin: 4px 0;
44   line-height: 1.2;
45 }
46 .comment__time {
47   margin-bottom: 4px;
48   color: #68696b;
49   font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
50   font-size: 0.733em;
51   line-height: 1.2;
52 }
53 .comment__permalink {
54   font-size: 0.733em;
55   line-height: 1.2;
56 }
57 .comment__content {
58   position: relative;
59   display: table-cell;
60   padding: 10px 25px 10px 25px;
61   vertical-align: top;
62   width: 100%;
63   border: 1px solid #d3d7d9;
64   font-size: 0.929em;
65   line-height: 1.6;
66   word-break: break-all;
67 }
68
69 .comment__content:before {
70   content: '';
71   position: absolute;
72   right: 100%; /* LTR */
73   top: 20px;
74   border-top: 20px solid transparent;
75   border-right: 20px solid #d3d7d9; /* LTR */
76   border-bottom: 20px solid transparent;
77 }
78 [dir="rtl"] .comment__content:before {
79   right: auto;
80   left: 100%;
81   border-right: none;
82   border-left: 20px solid #d3d7d9;
83 }
84 .comment__content:after {
85   content: '';
86   position: absolute;
87   right: 100%; /* LTR */
88   top: 20px;
89   border-top: 20px solid transparent;
90   border-right: 20px solid #fff; /* LTR */
91   border-bottom: 20px solid transparent;
92   margin-right: -1px; /* LTR */
93 }
94 [dir="rtl"] .comment__content:after {
95   right: auto;
96   left: 100%;
97   border-right: none;
98   border-left: 20px solid #fff;
99   margin-right: 0;
100   margin-left: -1px;
101 }
102 .comment__content h3 {
103   margin-top: 0.94em;
104   margin-bottom: 0.45em;
105   font-size: 1.171em;
106 }
107 .indented {
108   margin-left: 40px; /* LTR */
109 }
110 [dir="rtl"] .indented {
111   margin-right: 40px;
112   margin-left: 0;
113 }
114 .comment .links {
115   padding: 0 0 0.25em 0;
116 }
117 .comment .links li {
118   padding: 0 0.5em 0 0; /* LTR */
119   font-size: 1.08em;
120 }
121 [dir="rtl"] .comment .links li {
122   padding: 0 0 0 0.5em;
123 }
124 .comment--unpublished {
125   margin-right: 5px; /* LTR */
126   padding: 5px 2px 5px 5px; /* LTR */
127   background: #fff4f4;
128 }
129 [dir="rtl"] .comment--unpublished {
130   margin-left: 5px;
131   margin-right: 0;
132   padding: 5px 5px 5px 2px;
133 }
134
135 /**
136  * @todo: unpublished nodes have class .node--unpublished.
137  * change this to .comment--unpublished.
138  */
139 .unpublished .comment-text .comment-arrow {
140   border-left: 1px solid #fff4f4;
141   border-right: 1px solid #fff4f4;
142 }
143 .unpublished {
144   padding: 20px 15px 0;
145 }
146 .comment-footer {
147   display: table-row;
148 }
149 .comment--unpublished .comment__text:after,
150 .node--unpublished .comment__text:after {
151   border-right-color: #fff4f4; /* LTR */
152 }
153 [dir="rtl"] .comment--unpublished .comment__content:after,
154 [dir="rtl"] .node--unpublished .comment__content:after {
155   border-left-color: #fff4f4;
156 }