-
Notifications
You must be signed in to change notification settings - Fork 39
/
retort.scss
96 lines (86 loc) · 1.67 KB
/
retort.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
// .topic-post .topic-body { z-index: 3; }
.post-retort {
float: left;
padding: 2px;
z-index: 1;
margin: 20px 2px;
position: relative;
outline: 0;
&:hover .post-retort__tooltip { opacity: 1 }
&__tooltip {
opacity: 0;
transition: .5s opacity;
position: absolute;
bottom: 30px;
font-size: 12px;
text-align: center;
min-width: 125px;
max-width: 150px;
background: $primary;
color: $secondary;
font-weight: bold;
padding: 5px;
border-radius: 5px;
word-wrap: normal;
left: 50%;
transform: translate(-50%, 0);
z-index: 1;
pointer-events: none;
word-break: break-word;
&:after {
content: ' ';
width: 7px;
height: 7px;
bottom: -5px;
left: 50%;
transform: rotate(45deg) translate(-50%, 0);
position: absolute;
background: $primary;
}
}
&__count {
font-size: 12px;
padding: 1px;
position: relative;
bottom: 3px;
left: 1px;
font-weight: bold;
color: $secondary;
}
}
.emoji-picker--retort {
display: flex;
align-items: center;
justify-content: center;
&-active {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 10000;
.emoji-picker {
bottom: auto !important;
}
}
&-limited {
.emoji-picker {
width: auto !important;
height: auto !important;
flex-wrap: wrap;
justify-content: center;
border: 0;
button.emoji {
display: block;
width: 40px;
height: 40px;
background-size: 40px;
margin: 0;
padding: 10px 0;
}
}
.categories-column {
display: none;
}
}
}