-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdropdowns.css
105 lines (105 loc) · 3.06 KB
/
dropdowns.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/* .....................................
Fonts
..................................... */
/* .....................................
Sets
..................................... */
/* .....................................
Media Query Ranges
..................................... */
/* .....................................
Colors - Grays
..................................... */
/* .....................................
Colors - Teals
..................................... */
/* .....................................
Colors - Red
..................................... */
/* .....................................
Colors - Navy
..................................... */
/* .....................................
Colors - Brand Palette
..................................... */
/* .....................................
Colors - Vimeo Brand Palette
..................................... */
/* .....................................
Colors - External Palette
..................................... */
/* helper function for margin and padding
......................................*/
/*.....................................
Dropdown
......................................*/
.dropdown {
position: relative; }
.dropdown.is-open {
display: block; }
.dropdown.is-open .dropdown-list {
text-align: left;
display: block;
right: 0;
left: auto; }
.dropdown select {
position: absolute;
top: 0;
left: 0;
width: 100%;
opacity: 0; }
.dropdown .dropdown-list {
display: none;
background: #fff;
z-index: 2147483600;
border: 1px solid #e3e8e9;
border-radius: 5px;
position: absolute;
top: 50px;
right: auto;
left: -999999px; }
.dropdown .dropdown-list.is-scrolling ul {
overflow-y: scroll; }
.dropdown .dropdown-list ul {
margin: 0;
list-style: none;
padding: 10px 15px;
max-height: 350px; }
.dropdown .dropdown-list ul li {
padding: 7px 0; }
.dropdown .dropdown-list a {
white-space: nowrap; }
.dropdown .dropdown-list a.has-wrap {
white-space: normal;
word-break: break-word; }
.dropdown .dropdown-list:after, .dropdown .dropdown-list:before {
bottom: 100%;
right: 22px;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none; }
.dropdown .dropdown-list:after {
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #fff;
border-width: 5px;
margin-right: -7px; }
.dropdown .dropdown-list:before {
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #e3e8e9;
border-width: 6px;
margin-right: -8px; }
.dropdown.dropdown--xsmall .dropdown-list {
width: 100px; }
.dropdown.dropdown--small .dropdown-list {
width: 150px; }
.dropdown.dropdown--medium .dropdown-list {
width: 200px; }
.dropdown.dropdown--large .dropdown-list {
width: 250px; }
.dropdown.dropdown--xlarge .dropdown-list {
width: 300px; }
.dropdown.dropdown--fill .dropdown-list {
width: 100%; }