This repository has been archived by the owner on Jun 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windowed.css
144 lines (120 loc) · 2.79 KB
/
windowed.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/* CSS sorted with CSS comb (http://csscomb.com/) */
/* Container div */
.windowed {
position: relative;
display: inline-block;
height: 35px;
background: #f0f0f0;
background: -moz-linear-gradient(top, #f0f0f0 0%, #ffffff 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f0f0f0), color-stop(100%,#ffffff));
background: -webkit-linear-gradient(top, #f0f0f0 0%,#ffffff 100%);
background: -o-linear-gradient(top, #f0f0f0 0%,#ffffff 100%);
background: -ms-linear-gradient(top, #f0f0f0 0%,#ffffff 100%);
background: linear-gradient(to bottom, #f0f0f0 0%,#ffffff 100%);
box-shadow: inset 0 1px 0 1px #aaa, 0 1px 0 1px #eee;
}
/* Common styles */
.windowed, .windowed .slider {
padding: 2px;
border-radius: 8px;
}
.windowed .checkstate, .windowed li {
color: #333;
text-shadow: 1px 1px #ddd;
font-weight: bold;
font-size: 15px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
line-height: 30px;
}
/* Hide the original DOM elements */
.windowed input[type=checkbox], .windowed select {
display: none;
}
/* Sliding window */
.windowed .slider {
position: absolute;
top: 1px;
left: 0;
border: 5px solid #fff;
box-shadow: inset 0 1px 1px 1px #aaa, 0 0 0 2px #ccc;
}
/* Disabled state */
.windowed.disabled {
opacity: 0.5;
}
.windowed.disabled label, .windowed.disabled li {
cursor: default;
}
/* Checkboxes */
.windowed.checkbox {
width: 100px;
}
.windowed .checkstate {
float: left;
padding-top: 1px;
text-align: center;
}
.windowed label {
position: absolute;
z-index: 999;
display: block;
width: 100%;
height: 100%;
cursor: pointer;
}
/* Selects */
.windowed li {
display: block;
float: left;
margin: 0;
padding: 1px 15px;
height: 30px;
cursor: pointer;
}
.windowed.select-one {
padding-bottom: 1px;
}
.windowed.select-one .slider {
padding-right: 0;
padding-left: 0;
}
.windowed ul {
margin: 0;
padding: 0;
border-radius: inherit;
}
.windowed ul > li:first-of-type {
border-top-left-radius: inherit;
border-bottom-left-radius: inherit;
}
.windowed ul > li:last-of-type {
border-top-right-radius: inherit;
border-bottom-right-radius: inherit;
}
/* Vertical selects */
.windowed.vertical {
height: auto;
}
.windowed.vertical li {
float: none;
background: none;
text-align: left;
white-space: nowrap;
}
/* Themes */
.windowed.warning .slider {
border-color: #ff9a1c;
box-shadow: 0 1px 1px 1px #aaaaaa inset, 0 0 0 1px #ff8400;
}
.windowed.danger .slider {
border-color: #ff3b10;
box-shadow: 0 1px 1px 1px #aaaaaa inset, 0 0 0 1px #ee5f5b;
}
.windowed.success .slider {
border-color: #7ec43a;
box-shadow: 0 1px 1px 1px #aaaaaa inset, 0 0 0 1px #68a52e;
}
.windowed.info .slider {
border-color: #3a8cf4;
box-shadow: 0 1px 1px 1px #aaaaaa inset, 0 0 0 1px #4bb1cf;
}