This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
_post-menu.scss
112 lines (96 loc) · 2.46 KB
/
_post-menu.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
@charset 'UTF-8';
.post-menu {
@include border-radius(4px);
border: 1px solid transparent;
display: flex;
justify-content: flex-end;
padding: 4px;
position: absolute;
right: 0;
top: -8px;
white-space: normal;
z-index: 6;
}
.post-menu__item {
display: inline-flex;
border: none;
background: transparent;
border-radius: 4px;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
fill: v(center-channel-color-40);
color: v(center-channel-color-40);
&:active,
&--active,
&--active:hover {
background: v(button-bg-08);
fill: v(button-bg);
color: v(button-bg);
}
span {
display: flex;
}
}
.post-menu__item--show {
display: block;
}
.post-menu__item--wide {
width: auto;
padding: 0 6px;
}
.post-menu__item--selected { // Used for the flag icon when it is in the flagged state
fill: var(--link-color);
color: var(--link-color);
}
.post-menu__comment-count {
margin: 0 0 0 2px;
font-weight: 600;
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none;
}
@media (min-width: 768px) {
.post-menu__item {
display: none;
}
.post-menu__item--show {
display: block;
}
.post {
&:hover,
&.post--hovered,
&.a11y--active {
.post-menu {
border-color: v(center-channel-color-08);
@include box-shadow($elevation-1);
background-color: v(center-channel-bg);
}
.search-item__jump {
color: v(center-channel-color-56);
&:hover {
color: v(link-color);
}
}
.post-menu__item {
display: inline-flex;
fill: v(center-channel-color-56);
color: v(center-channel-color-56);
&:hover {
background: v(center-channel-color-08);
fill: v(center-channel-color-72);
color: v(center-channel-color-72);
}
&:active,
&--active,
&--active:hover {
background: v(button-bg-08);
fill: v(button-bg);
color: v(button-bg);
}
}
}
}
}