Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/toolbar/css/toolbar.icons.theme.css @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
2 * @file | 2 * @file |
3 * Styling for toolbar module icons. | 3 * Styling for toolbar module icons. |
4 */ | 4 */ |
5 | 5 |
6 .toolbar .toolbar-icon { | 6 .toolbar .toolbar-icon { |
7 position: relative; | |
7 padding-left: 2.75em; /* LTR */ | 8 padding-left: 2.75em; /* LTR */ |
8 position: relative; | |
9 } | 9 } |
10 [dir="rtl"] .toolbar .toolbar-icon { | 10 [dir="rtl"] .toolbar .toolbar-icon { |
11 padding-right: 2.75em; | |
11 padding-left: 1.3333em; | 12 padding-left: 1.3333em; |
12 padding-right: 2.75em; | |
13 } | 13 } |
14 .toolbar .toolbar-icon:before { | 14 .toolbar .toolbar-icon:before { |
15 background-attachment: scroll; | |
16 background-color: transparent; | |
17 background-position: center center; | |
18 background-repeat: no-repeat; | |
19 background-size: 100% auto; | |
20 content: ''; | |
21 display: block; | |
22 height: 100%; | |
23 left: 0.6667em; /* LTR */ | |
24 position: absolute; | 15 position: absolute; |
25 top: 0; | 16 top: 0; |
17 left: 0.6667em; /* LTR */ | |
18 display: block; | |
26 width: 20px; | 19 width: 20px; |
20 height: 100%; | |
21 content: ""; | |
22 background-color: transparent; | |
23 background-repeat: no-repeat; | |
24 background-attachment: scroll; | |
25 background-position: center center; | |
26 background-size: 100% auto; | |
27 } | 27 } |
28 [dir="rtl"] .toolbar .toolbar-icon:before { | 28 [dir="rtl"] .toolbar .toolbar-icon:before { |
29 right: 0.6667em; | |
29 left: auto; | 30 left: auto; |
30 right: 0.6667em; | |
31 } | 31 } |
32 .toolbar button.toolbar-icon { | 32 .toolbar button.toolbar-icon { |
33 border: 0; | |
33 background-color: transparent; | 34 background-color: transparent; |
34 border: 0; | |
35 font-size: 1em; | 35 font-size: 1em; |
36 } | 36 } |
37 .toolbar .toolbar-menu ul .toolbar-icon { | 37 .toolbar .toolbar-menu ul .toolbar-icon { |
38 padding-left: 1.3333em; /* LTR */ | 38 padding-left: 1.3333em; /* LTR */ |
39 } | 39 } |
40 [dir="rtl"] .toolbar .toolbar-menu ul .toolbar-icon { | 40 [dir="rtl"] .toolbar .toolbar-menu ul .toolbar-icon { |
41 padding-right: 1.3333em; | |
41 padding-left: 0; | 42 padding-left: 0; |
42 padding-right: 1.3333em; | |
43 } | 43 } |
44 .toolbar .toolbar-menu ul a.toolbar-icon:before { | 44 .toolbar .toolbar-menu ul a.toolbar-icon:before { |
45 display: none; | 45 display: none; |
46 } | 46 } |
47 .toolbar .toolbar-tray-vertical .toolbar-menu ul a { | 47 .toolbar .toolbar-tray-vertical .toolbar-menu ul a { |
48 padding-left: 2.75em; /* LTR */ | 48 padding-left: 2.75em; /* LTR */ |
49 } | 49 } |
50 [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu ul a { | 50 [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu ul a { |
51 padding-right: 2.75em; | |
51 padding-left: 0; | 52 padding-left: 0; |
52 padding-right: 2.75em; | |
53 } | 53 } |
54 .toolbar .toolbar-tray-vertical .toolbar-menu ul ul a { | 54 .toolbar .toolbar-tray-vertical .toolbar-menu ul ul a { |
55 padding-left: 3.75em; /* LTR */ | 55 padding-left: 3.75em; /* LTR */ |
56 } | 56 } |
57 [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu ul ul a { | 57 [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu ul ul a { |
58 padding-right: 3.75em; | |
58 padding-left: 0; | 59 padding-left: 0; |
59 padding-right: 3.75em; | |
60 } | 60 } |
61 | 61 |
62 .toolbar .toolbar-tray-vertical .toolbar-menu a { | 62 .toolbar .toolbar-tray-vertical .toolbar-menu a { |
63 padding-right: 4em; /* LTR */ | |
63 padding-left: 2.75em; /* LTR */ | 64 padding-left: 2.75em; /* LTR */ |
64 padding-right: 4em; /* LTR */ | |
65 } | 65 } |
66 [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu a { | 66 [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu a { |
67 padding-right: 2.75em; | |
67 padding-left: 4em; | 68 padding-left: 4em; |
68 padding-right: 2.75em; | |
69 } | 69 } |
70 | 70 |
71 /** | 71 /** |
72 * Top level icons. | 72 * Top level icons. |
73 */ | 73 */ |
146 background-image: url(../../../misc/icons/000000/questionmark-disc.svg); | 146 background-image: url(../../../misc/icons/000000/questionmark-disc.svg); |
147 } | 147 } |
148 | 148 |
149 @media only screen and (min-width: 16.5em) { | 149 @media only screen and (min-width: 16.5em) { |
150 .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon { | 150 .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon { |
151 width: 4em; | |
152 margin-right: 0; | |
151 margin-left: 0; | 153 margin-left: 0; |
152 margin-right: 0; | 154 padding-right: 0; |
153 padding-left: 0; | 155 padding-left: 0; |
154 padding-right: 0; | |
155 text-indent: -9999px; | 156 text-indent: -9999px; |
156 width: 4em; | |
157 } | 157 } |
158 .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { | 158 .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { |
159 background-size: 42% auto; | |
160 left: 0; /* LTR */ | 159 left: 0; /* LTR */ |
161 width: 100%; | 160 width: 100%; |
161 background-size: 42% auto; | |
162 } | 162 } |
163 .no-svg .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { | 163 .no-svg .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { |
164 background-size: auto auto; | 164 background-size: auto auto; |
165 } | 165 } |
166 [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { | 166 [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { |
167 right: 0; | |
167 left: auto; | 168 left: auto; |
168 right: 0; | |
169 } | 169 } |
170 } | 170 } |
171 | 171 |
172 @media only screen and (min-width: 36em) { | 172 @media only screen and (min-width: 36em) { |
173 .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon { | 173 .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon { |
174 width: auto; | |
175 padding-right: 1.3333em; /* LTR */ | |
176 padding-left: 2.75em; /* LTR */ | |
177 text-indent: 0; | |
174 background-position: left center; /* LTR */ | 178 background-position: left center; /* LTR */ |
175 padding-left: 2.75em; /* LTR */ | |
176 padding-right: 1.3333em; /* LTR */ | |
177 text-indent: 0; | |
178 width: auto; | |
179 } | 179 } |
180 [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon { | 180 [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon { |
181 padding-right: 2.75em; | |
182 padding-left: 1.3333em; | |
181 background-position: right center; | 183 background-position: right center; |
182 padding-left: 1.3333em; | |
183 padding-right: 2.75em; | |
184 } | 184 } |
185 .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { | 185 .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { |
186 background-size: 100% auto; | |
187 left: 0.6667em; /* LTR */ | 186 left: 0.6667em; /* LTR */ |
188 width: 20px; | 187 width: 20px; |
188 background-size: 100% auto; | |
189 } | 189 } |
190 .no-svg .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { | 190 .no-svg .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { |
191 background-size: auto auto; | 191 background-size: auto auto; |
192 } | 192 } |
193 [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { | 193 [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon:before { |
194 right: 0.6667em; | |
194 left: 0; | 195 left: 0; |
195 right: 0.6667em; | |
196 } | 196 } |
197 } | 197 } |
198 | 198 |
199 /** | 199 /** |
200 * Accessibility/focus | 200 * Accessibility/focus |
201 */ | 201 */ |
202 .toolbar-tab a:focus { | 202 .toolbar-tab a:focus { |
203 outline: none; | |
204 text-decoration: underline; | 203 text-decoration: underline; |
204 outline: none; | |
205 } | 205 } |
206 .toolbar-lining button:focus { | 206 .toolbar-lining button:focus { |
207 outline: none; | 207 outline: none; |
208 } | 208 } |
209 .toolbar-tray-horizontal a:focus, | 209 .toolbar-tray-horizontal a:focus, |
228 } | 228 } |
229 .toolbar .toolbar-icon.toolbar-handle:before { | 229 .toolbar .toolbar-icon.toolbar-handle:before { |
230 left: 1.6667em; /* LTR */ | 230 left: 1.6667em; /* LTR */ |
231 } | 231 } |
232 [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle:before { | 232 [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle:before { |
233 right: 1.6667em; | |
233 left: auto; | 234 left: auto; |
234 right: 1.6667em; | |
235 } | 235 } |
236 .toolbar .toolbar-icon.toolbar-handle:before { | 236 .toolbar .toolbar-icon.toolbar-handle:before { |
237 background-image: url(../../../misc/icons/5181c6/chevron-disc-down.svg); | 237 background-image: url(../../../misc/icons/5181c6/chevron-disc-down.svg); |
238 } | 238 } |
239 .toolbar .toolbar-icon.toolbar-handle.open:before { | 239 .toolbar .toolbar-icon.toolbar-handle.open:before { |
255 } | 255 } |
256 /** | 256 /** |
257 * Orientation toggle. | 257 * Orientation toggle. |
258 */ | 258 */ |
259 .toolbar .toolbar-toggle-orientation button { | 259 .toolbar .toolbar-toggle-orientation button { |
260 width: 39px; | |
260 height: 39px; | 261 height: 39px; |
261 padding: 0; | 262 padding: 0; |
262 text-indent: -999em; | 263 text-indent: -999em; |
263 width: 39px; | |
264 } | 264 } |
265 .toolbar .toolbar-toggle-orientation button:before { | 265 .toolbar .toolbar-toggle-orientation button:before { |
266 right: 0; | |
266 left: 0; | 267 left: 0; |
267 right: 0; | |
268 margin: 0 auto; | 268 margin: 0 auto; |
269 } | 269 } |
270 [dir="rtl"] .toolbar .toolbar-toggle-orientation .toolbar-icon { | 270 [dir="rtl"] .toolbar .toolbar-toggle-orientation .toolbar-icon { |
271 padding: 0; | 271 padding: 0; |
272 } | 272 } |