forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponents.css
138 lines (112 loc) · 2.88 KB
/
components.css
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
/* Reusable, object-oriented CSS base components for all Zulip pages
(both web app and portico). */
.new-style {
label.checkbox {
padding: 0;
display: inline-block;
position: relative;
vertical-align: top;
input[type="checkbox"] {
position: absolute;
clip: rect(0, 0, 0, 0);
~ span {
display: inline-block;
vertical-align: middle;
position: relative;
top: -2px;
padding: 2px;
margin: 0 5px 0 0;
height: 10px;
width: 10px;
font-weight: 300;
line-height: 0.8;
font-size: 1.3rem;
text-align: center;
border: 1px solid hsla(0, 0%, 0%, 0.6);
border-radius: 4px;
filter: brightness(0.8);
cursor: pointer;
}
&:checked ~ span {
background-image: url("../images/checkbox.svg");
background-size: 85%;
background-position: 50% 50%;
background-repeat: no-repeat;
}
&:disabled ~ span {
opacity: 0.5;
cursor: not-allowed;
}
}
}
a.no-style {
color: inherit;
}
}
a.no-underline,
a.no-underline:hover {
text-decoration: none;
}
.half-opacity {
opacity: 0.5;
}
.italic {
font-style: italic;
}
.simplebar-track {
.simplebar-scrollbar::before {
background-color: hsl(0, 0%, 0%);
box-shadow: 0 0 0 1px hsla(0, 0%, 100%, 0.33);
}
&.simplebar-vertical {
transition: width 0.2s ease 1s;
&.simplebar-hover {
width: 15px;
transition: width 0.2s ease;
}
}
&.simplebar-horizontal {
transition: height 0.2s ease 1s;
&.simplebar-hover {
height: 15px;
transition: height 0.2s ease;
}
.simplebar-scrollbar {
transition: height 0.2s ease 1s;
&.simplebar-hover {
height: 11px;
transition: height 0.2s ease;
}
}
}
}
i.zulip-icon.zulip-icon-bot {
color: hsl(180, 5%, 74%);
vertical-align: top;
padding: 0 2px;
}
.tippy-content {
/* This actually sets the
* default font size of only
* tooltips; popovers should define
* font-size of their own.
*/
font-size: 12px;
}
/* Hide the somewhat buggy browser show password feature in IE, Edge,
since it duplicates our own "show password" widget. */
input::-ms-reveal {
display: none;
}
.password-div {
position: relative;
.password_visibility_toggle {
position: absolute;
right: 10px;
top: 42px;
opacity: 0.6;
&:hover {
opacity: 1;
}
}
}