-
Notifications
You must be signed in to change notification settings - Fork 73
/
_community.scss
155 lines (129 loc) · 2.53 KB
/
_community.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/***** Community *****/
.community {
&-hero {
background-image: url($community_background_image);
}
&-footer {
padding-top: 50px;
text-align: center;
&-title {
font-size: 16px;
margin-bottom: 20px;
}
}
&-featured-posts .title {
font-size: 18px;
font-weight: 600;
}
&-featured-posts,
&-activity {
padding-top: 40px;
width: 100%;
}
&-header {
margin-bottom: 30px;
.title {
margin-bottom: 0;
font-size: 16px;
}
}
}
.post-to-community {
@include tablet {
margin: 0;
}
margin-top: 10px;
}
/* Community topics grid */
.topics {
max-width: none;
width: 100%;
&-item {
.meta-group {
justify-content: center;
margin-top: 20px;
}
}
}
/* Community topic page */
.topic-header {
@include tablet {
padding-bottom: 10px;
}
border-bottom: 1px solid $border-color;
font-size: $font-size-small;
.dropdown {
@include tablet {
border-top: 0;
display: inline-block;
margin-right: 20px;
padding: 0;
}
display: block;
border-top: 1px solid $border-color;
padding: 10px 0;
}
}
.no-posts-with-filter {
margin-top: 20px;
margin-bottom: 20px;
}
/* Topic, post and user follow button */
.community-follow {
@include tablet {
margin-bottom: 0;
width: auto;
}
margin-bottom: 10px;
width: 100%;
button {
@extend .button;
@include tablet {
width: auto;
}
line-height: 30px;
padding: 0 10px 0 15px;
position: relative;
width: 100%;
&:hover {
background-color: $brand-color;
}
&:hover::after,
&:focus::after {
border-color: $brand-text-color;
color: $brand-text-color;
}
&[data-selected='true'] {
background-color: $brand-color;
color: $brand-text-color;
&::after {
border-left: 1px solid $brand-text-color;
color: $brand-text-color;
}
&:hover {
background-color: $hover-button-color;
border-color: $hover-button-color;
}
}
&::after {
@include tablet {
position: static;
}
border-left: 1px solid $button-color;
content: attr(data-follower-count);
color: $button-color;
display: inline-block;
font-family: $heading-font;
margin-left: 15px;
padding-left: 10px;
position: absolute;
right: 10px;
[dir='rtl'] & {
border-left: 0;
border-right: 1px solid $button-color;
margin: 0 10px 0 0;
padding: 0 10px 0 0;
}
}
}
}