-
Notifications
You must be signed in to change notification settings - Fork 0
/
tabs.css
120 lines (104 loc) · 1.72 KB
/
tabs.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
html,
body {
width: 450px;
}
.slider-container {
margin: 0 auto;
padding-bottom: 10px;
}
select {
width: 100%;
cursor: pointer;
}
.button {
width: 100%;
border: 2px solid #666;
height: 100%;
}
.go-btn {
width: 100%;
border: 1px solid #666;
}
.slider {
border: none;
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
width: 125px;
margin: auto;
right: 0;
}
.slider-checkbox {
display: none;
}
.slider-label {
border: 2px solid #666;
border-radius: 20px;
cursor: pointer;
display: block;
overflow: hidden;
}
.slider-inner {
display: block;
margin-left: -100%;
transition: margin 0.2s ease-in 0s;
width: 200%;
}
.slider-inner:before,
.slider-inner:after {
box-sizing: border-box;
display: block;
float: left;
font-family: sans-serif;
font-size: 14px;
font-weight: bold;
height: 30px;
line-height: 30px;
padding: 0;
width: 50%;
}
.slider-inner:before {
background-color: #198754;
color: #fff;
content: 'ENABLED';
padding-left: 0.75em;
}
.slider-inner:after {
background-color: #eee;
color: #666;
content: 'DISABLED';
padding-right: 0.75em;
text-align: right;
}
.slider-circle {
background-color: #198754;
border: 2px solid #666;
border-radius: 30px;
bottom: 0;
display: block;
margin: 5px;
position: absolute;
right: 91px;
top: 0;
transition: all 0.2s ease-in 0s;
width: 24px;
}
.slider-checkbox:checked + .slider-label .slider-inner {
margin-left: 0;
}
.slider-checkbox:checked + .slider-label .slider-circle {
background-color: #eee;
right: 0;
}
/* Bootstrap override */
.row {
margin-top: 2px;
margin-bottom: 2px;
}
.col,
.col-10,
.col-2 {
padding: 2px;
}