blob: 2904883bc6d8bac637989e420c260e9a17de47c5 [file] [log] [blame]
Akron7636edf2025-11-04 12:44:53 +01001@use "../util";
2@use "../base/colors";
Akron7e5afce2020-08-25 15:50:19 +02003
4/**
5 * Temporary hack for language chooser
6 * http://cssdeck.com/labs/styling-select-box-with-css3
7 * This is only active in no-js environment and before the
8 * javascript is loaded.
9 */
10#ql-field {
11 position: relative;
Akron7636edf2025-11-04 12:44:53 +010012 background-color: colors.$light-green;
Akron7e5afce2020-08-25 15:50:19 +020013 cursor: pointer;
14 margin: 0;
15 outline: none;
16 border: none;
17 display: inline-block;
18 color: white;
19 border-width: 0;
20 border-radius: 0;
21
22 // https://css-tricks.com/almanac/properties/a/appearance/
23 -webkit-appearance: none;
24 -moz-appearance: none;
25 appearance: none;
26
27 &:checked {
28 outline: none;
29 }
30
31 > option {
32 padding: 0pt 2pt;
33 outline: none;
34 }
35
36 // funny hack for firefox
37 &:-moz-focusring {
38 color: transparent;
39 text-shadow: 0 0 0 white;
40 }
41}