-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathstyles.css
More file actions
132 lines (117 loc) · 2.74 KB
/
styles.css
File metadata and controls
132 lines (117 loc) · 2.74 KB
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
/* STATES & MODES
--------------------------------------------- */
HTML[data-state="off"] {
background: none;
}
HTML[data-state="off"] BODY {
opacity: 1 !important;
filter: none;
}
BODY[data-filter="invert"] {
filter: invert(1);
}
/* CONTROLS
--------------------------------------------- */
.controls-panel {
position: fixed;
top: 50%;
right: 20px;
transform: translateY(-50%);
z-index: 1000;
display: flex;
justify-content: space-between;
min-width: 175px;
padding: 5px;
box-sizing: border-box;
border: 2px solid hsla(0,0%,0%,.25);
border-radius: 5px;
background: hsla(0,0%,100%,.9);
box-shadow: 0 0 5px hsla(0,0%,0%,.5);
font: 14px/1.2 Arial, sans-serif;
text-transform: none;
outline: none;
color: #000;
}
.controls-panel__control {
margin-right: 5px;
padding: 3px;
border: 2px solid hsla(0,0%,0%,.25);
border-radius: 5px;
outline: none;
vertical-align: middle;
font: inherit;
}
.controls-panel__control:focus {
box-shadow: 0 0 0 3px hsl(75,100%,45%);
}
.controls-panel__control:disabled {
background: transparent;
opacity: .35;
cursor: default;
}
.controls-panel__control--button {
padding-left: 5px;
padding-right: 5px;
color: hsla(0,0%,0%,.9);
cursor: pointer;
}
.controls-panel__control--button:enabled {
background: yellowgreen;
box-shadow: 0 2px 4px hsla(0,0%,0%,0.4) inset,
0 -4px 4px hsla(90,100%,70%,1) inset;
}
.controls-panel__control--button:enabled:focus {
background: yellowgreen;
box-shadow: 0 2px 4px hsla(0,0%,0%,0.4) inset,
0 -4px 4px hsla(90,100%,70%,1) inset,
0 0 0 3px hsl(75,100%,45%);
}
.controls-panel__control--button[data-state-num="0"]:enabled {
background: #DDD;
box-shadow: none;
opacity: .8;
}
.controls-panel__control--number {
max-width: 2.7em;
padding-right: 0;
box-sizing: content-box;
text-align: center;
}
.controls-panel__control--number:focus {
border-color: hsla(0,0%,0%,.35);
}
.controls-panel__control--drag-n-drop {
position: relative;
width: 19px;
min-height: 1.8em; /* IE10 fixes */
margin: 0;
padding: 0;
background: transparent;
cursor: move;
}
.controls-panel__control--drag-n-drop:active {
background: yellowgreen;
box-shadow: 0 2px 4px hsla(0,0%,0%,0.4) inset,
0 -4px 4px hsla(90,100%,70%,1) inset,
0 0 0 3px hsl(75,100%,45%);
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
cursor: grab;
}
.controls-panel__control--drag-n-drop::after {
content: '';
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
width: 3px;
height: 3px;
border-radius: 50%;
background:hsla(0,0%,0%,.5);
box-shadow: 0 6px 0 hsla(0,0%,0%,.5),
0 -6px 0 hsla(0,0%,0%,.5);
pointer-events: none;
}