| 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 | |
|
juliandoucette
2017/09/06 17:48:21
NIT: Do help-center buttons share some of these st
ire
2017/09/08 09:53:35
That is probably the case. If I find they do I wil
juliandoucette
2017/09/08 17:02:52
Acknowledged.
| |
| 25 { | |
| 26 display: inline-block; | |
| 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 .no-js .custom-select-selected | |
| 38 { | |
| 39 display: none; | |
| 40 } | |
| 41 | |
| 42 .custom-select-options | |
| 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 | |
| 75 { | |
| 76 .custom-select-options | |
| 77 { | |
| 78 display: inline-block; | |
| 79 top: 0px; | |
| 80 padding: 0px; | |
| 81 border: 0px; | |
| 82 color: inherit; | |
| 83 opacity: 1; | |
| 84 background: none; | |
| 85 } | |
| 86 | |
| 87 .custom-select-options li | |
| 88 { | |
| 89 display: inline; | |
| 90 } | |
| 91 | |
| 92 .custom-select-options li:after | |
| 93 { | |
| 94 content: ","; | |
| 95 } | |
| 96 | |
| 97 .custom-select-options li:last-child:after | |
| 98 { | |
| 99 content: none; | |
| 100 } | |
| 101 | |
| 102 .custom-select-options a | |
| 103 { | |
| 104 color: inherit; | |
| 105 } | |
| 106 } | |
| OLD | NEW |