This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
/
demo.css
84 lines (78 loc) · 2.14 KB
/
demo.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
/* Some basic page styles */
body {
background-color: #fff;
font-family: sans-serif;
margin: 4% 10%;
}
/* Label styles: style as needed */
label {
display:block;
margin-top:2em;
font-size: 0.9em;
color:#777;
}
.dark-wrapper {
margin-top: 2em;
padding: 1em 1em 1em;
background: #444;
}
.dark-wrapper label {
margin-top: 0;
color: #ccc;
}
/* These are the "theme" styles for our button applied via separate button class, style as you like */
/* Set the background fallback to solid #fff so Firefox renders the <option> list readably. */
.button {
border: 1px solid #bbb;
border-radius: .3em;
box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
background: #f3f3f3; /* Old browsers */
background: #fff -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */
background: #fff -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
background: #fff -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */
background: #fff -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */
background: #fff -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */
background: #fff linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%); /* W3C */
}
.custom-select {
margin-top: 0.5em;
}
.custom-select select {
/* General select styles: change as needed */
font-family: sans-serif;
font-weight: 700;
color: #444;
line-height:1.3;
border-radius: .2em;
}
.custom-select::after {
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 7px solid #666;
margin-top: -3px;
}
.custom-select {
border: 1px solid #bbb;
}
/* Hover style */
.custom-select:hover {
border-color: #888;
}
/* Focus style */
.custom-select select:focus {
/* It'd be nice to use -webkit-focus-ring-color here but it doesn't work on box-shadow */
box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
box-shadow: 0 0 0 3px -moz-mac-focusring;
color: #222; /* Match-02 */
}
@supports ( box-shadow: none ) {
.custom-select select:focus {
outline: none;
}
}
/* Set options to normal weight */
.custom-select option {
font-weight:normal;
}