| 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: inline-block; | 
 |   27   padding: 3px 10px; | 
 |   28   border: 1px solid $gray-medium; | 
 |   29   border-radius: 4px; | 
 |   30   color: $white; | 
 |   31   background: transparent; | 
 |   32   font-family: $primary-font; | 
 |   33   font-size: $medium-font; | 
 |   34   cursor: pointer; | 
 |   35 } | 
 |   36  | 
 |   37 .custom-select-options | 
 |   38 { | 
 |   39   position: absolute; | 
 |   40   bottom: 120%; | 
 |   41   left: 0; | 
 |   42   padding: 10px; | 
 |   43   border: 1px solid $gray-medium; | 
 |   44   border-radius: 4px; | 
 |   45   box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3); | 
 |   46   color: $black; | 
 |   47   background: $white; | 
 |   48   list-style: none; | 
 |   49  | 
 |   50   a | 
 |   51   { | 
 |   52     color: $black; | 
 |   53   } | 
 |   54 } | 
 |   55  | 
 |   56 .custom-select-options[aria-hidden="true"] | 
 |   57 { | 
 |   58   display: none; | 
 |   59 } | 
 |   60  | 
 |   61 [dir="rtl"] | 
 |   62 { | 
 |   63   .custom-select-options | 
 |   64   { | 
 |   65     right: 0; | 
 |   66     left: auto; | 
 |   67     padding: 10px; | 
 |   68   } | 
 |   69 } | 
 |   70  | 
 |   71 .no-js | 
 |   72 { | 
 |   73   .custom-select-selected | 
 |   74   { | 
 |   75     display: none; | 
 |   76   } | 
 |   77  | 
 |   78   .custom-select-options | 
 |   79   { | 
 |   80     display: inline-block; | 
 |   81     top: 0; | 
 |   82     padding: 0; | 
 |   83     border: 0; | 
 |   84     color: inherit; | 
 |   85     opacity: 1; | 
 |   86     background: none; | 
 |   87   } | 
 |   88  | 
 |   89   .custom-select-options li | 
 |   90   { | 
 |   91     display: inline; | 
 |   92   } | 
 |   93  | 
 |   94   .custom-select-options li:not(:last-child):after | 
 |   95   { | 
 |   96     content: ","; | 
 |   97   } | 
 |   98  | 
 |   99   a | 
 |  100   { | 
 |  101     color: inherit; | 
 |  102   } | 
 |  103 } | 
| OLD | NEW |