|
| 1 | +/* |
| 2 | +Copyright 2017 OpenMarket Ltd |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +.mx_Dropdown { |
| 18 | + position: relative; |
| 19 | +} |
| 20 | + |
| 21 | +.mx_Dropdown_input { |
| 22 | + position: relative; |
| 23 | + border-radius: 3px; |
| 24 | + border: 1px solid $strong-input-border-color; |
| 25 | + font-weight: 300; |
| 26 | + font-size: 13px; |
| 27 | + user-select: none; |
| 28 | +} |
| 29 | + |
| 30 | +.mx_Dropdown_arrow { |
| 31 | + border-color: $primary-fg-color transparent transparent; |
| 32 | + border-style: solid; |
| 33 | + border-width: 5px 5px 0; |
| 34 | + display: block; |
| 35 | + height: 0; |
| 36 | + position: absolute; |
| 37 | + right: 10px; |
| 38 | + top: 14px; |
| 39 | + width: 0 |
| 40 | +} |
| 41 | + |
| 42 | +.mx_Dropdown_option { |
| 43 | + height: 35px; |
| 44 | + line-height: 35px; |
| 45 | + padding-left: 8px; |
| 46 | + padding-right: 8px; |
| 47 | +} |
| 48 | + |
| 49 | +.mx_Dropdown_option img { |
| 50 | + margin: 5px; |
| 51 | + width: 25px; |
| 52 | + vertical-align: middle; |
| 53 | +} |
| 54 | + |
| 55 | +input.mx_Dropdown_option, input.mx_Dropdown_option:focus { |
| 56 | + border: 0; |
| 57 | + padding-top: 0; |
| 58 | + padding-bottom: 0; |
| 59 | + // XXX: hack to prevent text box being too big and pushing |
| 60 | + // its parent out / overlapping the dropdown arrow. Only really |
| 61 | + // works in the Country dropdown. |
| 62 | + width: 60%; |
| 63 | +} |
| 64 | + |
| 65 | +.mx_Dropdown_menu { |
| 66 | + position: absolute; |
| 67 | + left: -1px; |
| 68 | + right: -1px; |
| 69 | + top: 100%; |
| 70 | + z-index: 2; |
| 71 | + margin: 0; |
| 72 | + padding: 0px; |
| 73 | + border-radius: 3px; |
| 74 | + border: 1px solid $accent-color; |
| 75 | + background-color: $primary-bg-color; |
| 76 | + max-height: 200px; |
| 77 | + overflow-y: scroll; |
| 78 | +} |
| 79 | + |
| 80 | +.mx_Dropdown_menu .mx_Dropdown_option_highlight { |
| 81 | + background-color: $focus-bg-color; |
| 82 | +} |
| 83 | + |
| 84 | +.mx_Dropdown_menu { |
| 85 | + font-weight: bold; |
| 86 | +} |
| 87 | + |
| 88 | +.mx_Dropdown_searchPrompt { |
| 89 | + font-weight: normal; |
| 90 | + margin-left: 5px; |
| 91 | + margin-bottom: 5px; |
| 92 | +} |
| 93 | + |
0 commit comments