forked from mattermost/mattermost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_post-menu.scss
More file actions
118 lines (101 loc) · 2.83 KB
/
Copy path_post-menu.scss
File metadata and controls
118 lines (101 loc) · 2.83 KB
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
@use "utils/functions";
@use "utils/variables";
.post-menu {
position: absolute;
z-index: 6;
top: -12px;
right: 0;
display: flex;
justify-content: flex-end;
padding: 4px;
border: 1px solid transparent;
border-radius: 4px;
list-style: none;
white-space: normal;
}
.post-menu__item {
display: inline-flex;
width: 28px;
height: 28px;
align-items: center;
justify-content: center;
border: none;
border-radius: 4px;
background: transparent;
color: rgba(functions.v(center-channel-color-rgb), 0.4);
fill: rgba(functions.v(center-channel-color-rgb), 0.4);
&:active,
&--active,
&--active:hover {
background: rgba(var(--button-bg-rgb), 0.08);
color: functions.v(button-bg);
fill: functions.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
color: var(--link-color);
fill: 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;
}
.post-menu__emoticon {
cursor: pointer;
}
@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: rgba(var(--center-channel-color-rgb), 0.2);
background-color: functions.v(center-channel-bg);
box-shadow: variables.$elevation-1;
}
.search-item__jump {
color: rgba(functions.v(center-channel-color-rgb), 0.75);
&:hover {
color: functions.v(link-color);
}
}
.post-menu__item {
display: inline-flex;
color: rgba(functions.v(center-channel-color-rgb), 0.64);
fill: rgba(functions.v(center-channel-color-rgb), 0.64);
&:hover {
background: rgba(functions.v(center-channel-color-rgb), 0.08);
color: rgba(functions.v(center-channel-color-rgb), 0.8);
fill: rgba(functions.v(center-channel-color-rgb), 0.8);
}
&:active,
&--active,
&--active:hover {
background: rgba(var(--button-bg-rgb), 0.08);
color: functions.v(button-bg);
fill: functions.v(button-bg);
}
}
}
}
}