-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path_components.comments.scss
119 lines (106 loc) · 3.17 KB
/
_components.comments.scss
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
/*------------------------------------*\
#COMMENTS
\*------------------------------------*/
// Preconfigure these settings before the @import of this file.
$comments-ns: null !default;
$comments-color: #333 !default;
$comments-color-border: #d9d9d9 !default;
$comments-color-date: lighten($comments-color, 40%);
$comment-color-btn: lighten($comments-color, 40%);
$comments-color-label: $comments-color !default;
$comments-color-label-bg: #e9e9e9 !default;
$comments-font-family: sans-serif !default;
$comments-font-size: 12px !default;
$comments-font-size-title: 16px !default;
$comments-padding: 5px !default;
$comments-padding-label: 5px !default;
/**
* Configurable component for displaying comments. Comments are a text group
* that capture the following information:
*
* - Title
* - Author
* - Date
* - Labels (zero or more)
* - Text
*
* Example usage:
*
* <div class="c-comment">
* <header class="c-comment__header">
* <h1 class="c-comment__title">Comment Title</h1>
* <p class="c-comment__author">Joe Bloggs</p>
* <time class="c-comment__date" datetime="2015-06-01 15:00">
* June 1st, 2015 at 3:00pm
* </time>
* <ul class="c-comment__labels">
* <li class="c-comment__label">
* General
* </li>
* </ul>
* </header>
* <p class="c-comment__text">
* Lorem ipsum....
* </p>
* </div>
*/
.#{$comments-ns}c-comment {
border-bottom: 1px $comments-color-border solid;
padding: $comments-padding;
font-size: $comments-font-size;
text-align: left;
}
.#{$comments-ns}c-comment__header {}
.#{$comments-ns}c-comment__title {
margin: 0;
padding: 0;
font-family: $comments-font-family;
font-size: $comments-font-size-title;
color: $comments-color;
text-align: left;
}
.#{$comments-ns}c-comment__actions--delete {
float: right;
cursor: pointer;
color: $comment-color-btn;
transition: all 1s;
&:hover {
color: $comments-color;
}
}
.#{$comments-ns}c-comment__author {
font-family: $comments-font-family;
color: $comments-color;
margin-bottom: 0;
margin-top: 10px;
}
.#{$comments-ns}c-comment__date {
display: block;
margin-top: 5px;
font-family: $comments-font-family;
font-style: italic;
color: $comments-color-date;
}
.#{$comments-ns}c-comment__labels {
margin: 0;
padding: 0;
display: flex;
list-style: none;
margin-top: 10px;
}
.#{$comments-ns}c-comment__label {
background-color: $comments-color-label-bg;
border-radius: 3px;
color: $comments-color-label;
font-family: $comments-font-family;
padding: $comments-padding-label;
margin-right: 5px;
}
.#{$comments-ns}c-comment__text {
margin-top: 10px;
margin-bottom: 0;
font-family: $comments-font-family;
line-height: 1.8;
color: $comments-color;
text-align: justify;
}