-
Notifications
You must be signed in to change notification settings - Fork 0
/
_flairs.scss
86 lines (78 loc) · 1.72 KB
/
_flairs.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
// User flair
.flair {
background: none;
border-radius: 0;
border: 0;
vertical-align: middle;
&:before {
content: "";
border: none !important;
top:20px;
padding:0px;
background: url(%%spritesheet%%);
display:inline-block;
vertical-align: middle;
}
}
.flair-css, .flair-css:before, .flair-html, .flair-html:before, .flair-js, .flair-staff {
width: 14px;
height: 16px;
}
.flair-css:before {
background-position: -2px -2px;
}
.flair-html:before {
background-position: -20px -2px;
}
.flair-js:before {
width: 15px; height: 16px; background-position: -38px -2px;
}
.flair-staff:before {
width: 16px; height: 16px; background-position: -57px -2px;
}
// Link flairs + fake link flairs
.linkflairlabel {
border-radius: 0;
border: 0;
vertical-align: middle;
padding: 2px 3px;
}
.linkflair-suggestion, .linkflair-news, .linkflair-submission {
.thumbnail {
&:before {
@extend %thumbnail-overlay;
}
&:not(.default):not(.self):before {
background-color: rgba(0,0,0,0.74);
}
& ~ .entry .linkflairlabel, & ~ div header .linkflairlabel {
display: none;
}
}
}
.linkflair-suggestion .thumbnail:before {
content: "Suggestion";
font-size: 11px !important;
}
.linkflair-news .thumbnail:before {
content: "News";
font-size: 16px !important;
}
.linkflair-submission .thumbnail:before {
content: "Submission";
font-size: 11px !important;
}
.link:not(.linkflair), .search-result-link.no-linkflair {
.thumbnail {
&.default:before {
@extend %thumbnail-overlay;
content: "Link";
font-size: 14px !important;
}
&.self:before {
@extend %thumbnail-overlay;
content:"Text post";
font-size: 12px !important;
}
}
}