forked from ether/etherpad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoolbar.css
More file actions
187 lines (180 loc) · 3.87 KB
/
toolbar.css
File metadata and controls
187 lines (180 loc) · 3.87 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
.toolbar {
display: none;
position: relative;
background-color: #f4f4f4;
color: #666;
border-bottom: 1px solid #ccc;
overflow: hidden;
justify-content: space-between;
padding: 0px 5px 5px 5px;
flex-shrink: 0;
}
.toolbar ul {
list-style: none;
z-index: 2;
overflow: hidden;
margin: 0;
display: flex;
flex-direction: row;
align-items: flex-start;
}
.toolbar ul.menu_right {
flex-shrink: 0; /* prevent from shrinking */
}
.toolbar ul li, .toolbar ul > div {
display: flex; /* transfer flexbox positionning to children */
}
.toolbar ul li {
margin-top: 5px; /* when icons goes multi rows, have space betwwen each row */
}
.toolbar ul li.separator {
visibility: hidden;
width: 10px;
}
.toolbar ul li a {
display: flex;
align-items: center;
justify-content: center;
min-width: 28px;
height: 28px;
border: 1px solid #ccc;
border-radius: 3px;
background: #fff;
cursor: pointer;
overflow: hidden;
text-decoration: none;
transition: background-color .1s;
}
.toolbar ul li a.pressed button:active, .toolbar ul li a.pressed button:focus {
outline: 0;
border: none;
}
.toolbar ul li a:hover {
text-decoration: none;
background-color: #f2f2f2;
}
.toolbar ul li a:active, .toolbar ul li a:focus {
background: #ddd;
}
.toolbar ul li a.selected {
background: #dadada;
}
.toolbar ul li a.grouped-left {
border-radius: 3px 0 0 3px;
}
.toolbar ul li a.grouped-middle {
border-radius: 0;
border-left: 0;
}
.toolbar ul li a.grouped-right {
border-radius: 0 3px 3px 0;
border-left: 0;
}
.toolbar ul li[data-key=showusers] > a {
min-width: 35px;
}
.toolbar ul li[data-key=showusers] > a .buttonicon-showusers {
padding-left: 3px;
}
.toolbar ul li[data-key=showusers] > a #online_count {
font-weight: bold;
font-size: 11px;
position: relative;
padding-left: 7px;
}
.toolbar #toolbar-overlay {
z-index: 500;
display: none;
width: 100%;
position: absolute;
height: inherit;
left: 0;
top: 0;
bottom: 0;
right: 0;
}
.toolbar .show-more-icon-btn {
/* Reset user-agent <button> styling introduced when this was converted
from <span> for a11y. Without these the native button border/background
leak through and shift the glyph off-centre. */
appearance: none;
background: transparent;
border: 0;
padding: 0;
color: inherit;
font: inherit;
display:none;
cursor: pointer;
height: 39px;
width: 39px;
line-height: 39px;
text-align: center;
font-weight: bold;
font-size: 2rem;
z-index: 20;
}
.toolbar.cropped .menu_left {
width: calc(100% - 39px);
height: 33px;
flex-wrap: wrap;
}
.toolbar.cropped .show-more-icon-btn {
display: block;
position: absolute;
/*border-bottom: 1px solid #d2d2d2;*/
right: 0;
top: 0;
}
.toolbar.cropped .show-more-icon-btn:after {
content: "+";
}
.toolbar.full-icons .show-more-icon-btn {
line-height: 35px;
}
.toolbar.full-icons .show-more-icon-btn:after {
content: "-";
}
.toolbar.full-icons .menu_left {
height: auto !important;
overflow: visible;
}
@media only screen and (max-width: 800px) {
.toolbar ul li.separator {
width: 5px;
}
}
/* menu_right act like a new toolbar on the bottom of the screen */
.mobile-layout .toolbar .menu_right {
position: fixed;
bottom: 0;
right: 0;
left: 0;
border-top: 1px solid #ccc;
background-color: #f4f4f4;
padding: 0 5px 5px 5px;
}
.mobile-layout .toolbar ul.menu_right > li {
margin-right: 8px;
}
.mobile-layout .toolbar ul.menu_right > li[data-key="showusers"] {
position: absolute;
right: 0;
top: 0;
bottom: 0;
margin: 0;
}
.mobile-layout .toolbar ul.menu_right > li[data-key="showusers"] a {
height: 100%;
width: 40px;
border-radius: 0;
}
.mobile-layout .toolbar ul.menu_right > li.separator {
display: none;
}
.mobile-layout .toolbar ul.menu_right > li a {
border: none;
margin-left: 5px;
}
.mobile-layout .toolbar ul.menu_right > li a:not(.selected) {
background-color: transparent;
}