OLD | NEW |
1 // This file is part of help.eyeo.com. | 1 // This file is part of help.eyeo.com. |
2 // Copyright (C) 2017 Eyeo GmbH | 2 // Copyright (C) 2017 Eyeo GmbH |
3 // | 3 // |
4 // help.eyeo.com is free software: you can redistribute it and/or modify | 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 | 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 | 6 // the Free Software Foundation, either version 3 of the License, or |
7 // (at your option) any later version. | 7 // (at your option) any later version. |
8 // | 8 // |
9 // help.eyeo.com is distributed in the hope that it will be useful, | 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 | 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 27 matching lines...) Expand all Loading... |
38 { | 38 { |
39 display: inline-block; | 39 display: inline-block; |
40 } | 40 } |
41 | 41 |
42 .custom-select-options | 42 .custom-select-options |
43 { | 43 { |
44 position: absolute; | 44 position: absolute; |
45 bottom: 100%; | 45 bottom: 100%; |
46 left: 0px; | 46 left: 0px; |
47 margin-bottom: 0.5em; | 47 margin-bottom: 0.5em; |
48 padding: 0.7em; | |
49 border: 1px solid $gray-medium; | 48 border: 1px solid $gray-medium; |
50 border-radius: 4px; | 49 border-radius: 4px; |
51 box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3); | 50 box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3); |
52 color: $black; | 51 color: $black; |
53 background: $white; | 52 background: $white; |
54 list-style: none; | 53 list-style: none; |
| 54 z-index: 2; |
55 | 55 |
56 a | 56 a |
57 { | 57 { |
58 color: $black; | 58 color: $black; |
59 } | 59 } |
60 } | 60 } |
61 | 61 |
62 .custom-select-options[aria-hidden="true"] | 62 .custom-select-options[aria-hidden="true"] |
63 { | 63 { |
64 display: none; | 64 display: none; |
(...skipping 30 matching lines...) Expand all Loading... |
95 li:last-child:after | 95 li:last-child:after |
96 { | 96 { |
97 content: none; | 97 content: none; |
98 } | 98 } |
99 | 99 |
100 a | 100 a |
101 { | 101 { |
102 color: inherit; | 102 color: inherit; |
103 } | 103 } |
104 } | 104 } |
| 105 |
| 106 .custom-select-option |
| 107 { |
| 108 padding: 0.7em; |
| 109 } |
| 110 |
| 111 // Custom Dropdown (extends the custom select element) |
| 112 |
| 113 .custom-select-dropdown img |
| 114 { |
| 115 @extend .heading-icon; |
| 116 } |
| 117 |
| 118 .custom-select-dropdown .custom-select-selected, |
| 119 .custom-select-dropdown .custom-select-options |
| 120 { |
| 121 width: 100%; |
| 122 } |
| 123 |
| 124 .custom-select-dropdown .custom-select-selected |
| 125 { |
| 126 position: relative; |
| 127 height: 2.5em; |
| 128 padding-right: 3.5em; |
| 129 padding-left: 0.7em; |
| 130 color: $primary; |
| 131 text-align: left; |
| 132 } |
| 133 |
| 134 [dir="rtl"] .custom-select-dropdown .custom-select-selected |
| 135 { |
| 136 padding-right: 0.7em; |
| 137 padding-left: 3.5em; |
| 138 text-align: right; |
| 139 } |
| 140 |
| 141 .custom-select-dropdown .custom-select-selected:after |
| 142 { |
| 143 position: absolute; |
| 144 top: 0; |
| 145 right: 0; |
| 146 width: 3em; |
| 147 height: 100%; |
| 148 border-left: 2px solid $gray-medium; |
| 149 background-image: url(/img/png/arrow-icon-down-secondary.png); |
| 150 background-image: linear-gradient(transparent, transparent), |
| 151 url(/img/svg/arrow-icon-down-secondary.svg); |
| 152 background-repeat: no-repeat; |
| 153 background-position: center; |
| 154 background-size: 0.7em; |
| 155 content: ""; |
| 156 } |
| 157 |
| 158 [dir="rtl"] .custom-select-dropdown .custom-select-selected:after |
| 159 { |
| 160 right: auto; |
| 161 left: 0; |
| 162 border-right: 2px solid $gray-medium; |
| 163 border-left: 0; |
| 164 } |
| 165 |
| 166 .custom-select-dropdown .custom-select-options |
| 167 { |
| 168 top: 100%; |
| 169 bottom: auto; |
| 170 } |
OLD | NEW |