-
Notifications
You must be signed in to change notification settings - Fork 0
/
paneltoggle.css
82 lines (76 loc) · 1.73 KB
/
paneltoggle.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
/* VARS */
/* MIXINS */
fieldset {
margin: 1rem 0 0 0;
padding: 0;
box-sizing: border-box;
display: block;
border: none;
min-width: 0;
background-color: #FFF;
}
/* TOGGLE STYLING */
.toggle-panel {
margin: 0 0 0.5rem;
box-sizing: border-box;
font-size: 0;
display: flex;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: stretch;
}
.toggle-panel input {
width: 0;
height: 0;
position: absolute;
left: -9999px;
}
.toggle-panel input + label {
margin: 0;
padding: 0.75rem 1rem;
box-sizing: border-box;
position: relative;
display: inline-block;
border: solid 1px #CCC;
background-color: #EEE;
font-size: 1rem;
line-height: 140%;
font-weight: 600;
text-align: center;
box-shadow: 0 0 0 rgba(255, 255, 255, 0);
transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
/* ADD THESE PROPERTIES TO SWITCH FROM AUTO WIDTH TO FULL WIDTH */
/*flex: 0 0 50%; display: flex; justify-content: center; align-items: center;*/
/* ----- */
}
.toggle-panel input + label:first-of-type {
border-radius: 8px 0 0 8px;
border-right: none;
}
.toggle-panel input + label:last-of-type {
border-radius: 0 8px 8px 0;
border-left: none;
}
.toggle-panel input:hover + label {
border-color: #213140;
}
.toggle-panel input:checked + label {
background-color: #ef7600;
color: #FFF;
box-shadow: 0 0 10px rgba(239, 118, 0, 0.5);
border-color: #ef7600;
z-index: 1;
}
.panel_closed {
top: 100vh;
}
.panel_open {
top: 0;
}
.panel_open_shadow {
box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, 0.5);
}
.panel_closed_shadow {
box-shadow: inset 0 0 0px -12px rgba(0, 0, 0, 0.5);
}
/*# sourceMappingURL=paneltoggle.css.map */