Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: static/scss/components/_select.scss

Issue 29488555: Issue 5406 - Create Site Footer Component for Help Center (Closed)
Patch Set: Add default no-js class to html Created Sept. 12, 2017, 3:05 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(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
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 position: relative;
77 display: inline-block;
78 top: 0px;
79 padding: 0px;
80 border: 0px;
81 color: inherit;
82 opacity: 1;
83 background: none;
84
85 li
86 {
87 display: inline;
88 }
89
90 li:after
91 {
92 content: ",";
93 }
94
95 li:last-child:after
96 {
97 content: none;
98 }
99
100 a
101 {
102 color: inherit;
103 }
104 }
OLDNEW

Powered by Google App Engine
This is Rietveld