| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // This file is part of help.eyeo.com. | |
| 2 // Copyright (C) 2017 Eyeo GmbH | |
| 3 // | |
| 4 // help.eyeo.com is free software: you can redistribute it and/or modify | |
| 5 // it under the terms of the GNU General Public License as published by | |
| 6 // the Free Software Foundation, either version 3 of the License, or | |
| 7 // (at your option) any later version. | |
| 8 // | |
| 9 // help.eyeo.com is distributed in the hope that it will be useful, | |
| 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 12 // GNU General Public License for more details. | |
| 13 // | |
| 14 // You should have received a copy of the GNU General Public License | |
| 15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>. | |
| 16 | |
| 17 // Custom Select Field | |
| 18 | |
| 19 .custom-select | |
| 20 { | |
| 21 position: relative; | |
| 22 } | |
| 23 | |
| 24 .custom-select-selected | |
| 25 { | |
| 26 display: none; | |
| 27 padding: 0.2em 0.7em; | |
| 28 border: 2px solid $gray-medium; | |
| 29 border-radius: 4px; | |
| 30 color: $white; | |
| 31 background: transparent; | |
| 32 font-family: inherit; | |
| 33 font-size: inherit; | |
| 34 cursor: pointer; | |
| 35 } | |
| 36 | |
| 37 .js .custom-select-selected | |
| 38 { | |
| 39 display: inline-block; | |
| 40 } | |
| 41 | |
| 42 .custom-select-options | |
|
juliandoucette
2017/09/08 17:02:54
This covers content when JavaScript is disabled. P
ire
2017/09/12 08:57:55
Done.
| |
| 43 { | |
| 44 position: absolute; | |
| 45 bottom: 100%; | |
| 46 left: 0px; | |
| 47 margin-bottom: 0.5em; | |
| 48 padding: 0.7em; | |
| 49 border: 1px solid $gray-medium; | |
| 50 border-radius: 4px; | |
| 51 box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3); | |
| 52 color: $black; | |
| 53 background: $white; | |
| 54 list-style: none; | |
| 55 | |
| 56 a | |
| 57 { | |
| 58 color: $black; | |
| 59 } | |
| 60 } | |
| 61 | |
| 62 .custom-select-options[aria-hidden="true"] | |
| 63 { | |
| 64 display: none; | |
| 65 } | |
| 66 | |
| 67 [dir="rtl"] .custom-select-options | |
| 68 { | |
| 69 right: 0px; | |
| 70 left: auto; | |
| 71 padding: 0.7em; | |
| 72 } | |
| 73 | |
| 74 .no-js .custom-select-options | |
| 75 { | |
| 76 display: inline-block; | |
| 77 top: 0px; | |
| 78 padding: 0px; | |
| 79 border: 0px; | |
| 80 color: inherit; | |
| 81 opacity: 1; | |
| 82 background: none; | |
| 83 | |
| 84 li | |
| 85 { | |
| 86 display: inline; | |
| 87 } | |
| 88 | |
| 89 li:after | |
| 90 { | |
| 91 content: ","; | |
| 92 } | |
| 93 | |
| 94 li:last-child:after | |
| 95 { | |
| 96 content: none; | |
| 97 } | |
| 98 | |
| 99 a | |
| 100 { | |
| 101 color: inherit; | |
| 102 } | |
| 103 } | |
| OLD | NEW |