forked from yoksel/pixel-glass-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
124 lines (111 loc) · 2.73 KB
/
styles.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
/* STATES & MODES
--------------------------------------------- */
html {
background-repeat: no-repeat;
background-position: 50% 0;
}
html[data-state="off"] { background: none; }
html[data-state="off"] body {
opacity: 1 !important;
filter: none;
}
body { opacity: .5; }
body[data-filter="invert"] { filter: invert(1); }
/* CONTROLS
--------------------------------------------- */
.controls-panel {
position: fixed;
top: 50%;
right: 20px;
z-index: 10000;
display: flex;
justify-content: space-between;
gap: .5rem;
padding: .5rem;
border: 1px solid hsla(0, 0%, 0%, .25);
border-radius: 5px;
background: hsla(0, 0%, 100%, .9);
box-shadow: 0 0 1rem hsla(0, 0%, 0%, .5);
font: 1.5rem/1.2 Arial, sans-serif;
text-transform: none;
outline: none;
color: hsla(0, 0%, 0%, .7);
}
.controls-panel__control {
padding: .5rem;
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 {
text-align: center;
max-width: 5rem;
}
.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;
}