-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
140 lines (126 loc) · 2.43 KB
/
style.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
:root {
--font-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
--font-family: "basic-sans", var(--font-fallback);
--font-title: 'Bree', var(--font-fallback);
--light: #e5e5e5;
--coral: #f4a0a2;
--cloud: #dadbe7;
--salmon: #f9c7bb;
--petrol: #55859a;
}
body {
padding: 0;
margin: 0;
overflow: hidden;
background: var(--petrol);
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}
main {
width: 90vw;
height: 90vw;
max-width: 600px;
max-height: 600px;
}
svg {
position: relative;
height: auto;
width: 100%;
}
.drag {
z-index: 1;
opacity: 0.8;
position: absolute;
left: 50%;
top: 50%;
transform: scale(.65) translate(250px, 250px);
transition: all 250ms ease-out;
transform-origin: center;
}
svg rect.sensible {
fill: rgba(255, 255, 255, .15);
cursor: all-scroll;
}
.ghost {
opacity: 0;
transition: opacity 650ms ease;
}
.dragging .ghost {
transition-duration: 250ms;
opacity: 0.35;
}
.dragging .drag {
transition-duration: 130ms;
transform: scale(.35) translate(250px, 250px);
opacity: 0;
}
a {
padding: 0 1em;
max-width: 120px;
width: 10vw;
min-width: 80px;
max-width: 120px;
display: inline-block;
transition: opacity 250ms ease;
position: absolute;
left: 0;
top: 0;
}
img {
max-width: 100%;
}
image {
transform-origin: center center;
}
footer {
width: 100%;
text-align: center;
}
/* INPUT TRACK */
input[type='range'] {
--shadow: #000;
--size: 2em;
--range-height: calc(var(--size) / 2 );
--track-border-radius: .5em;
--border-radius: 50%;
--range-bg: var(--cloud);
--range-track: var(--coral);
background: var(--cloud);
appearance: none;
height: 0.5em;
outline: none;
border-radius: .5em;;
width: 100%;
margin: 1em 0;
cursor: pointer;
}
/* thumb */
/* webkit thumb */
input[type='range']::-webkit-slider-thumb {
background: var(--range-track);
border-radius: var(--border-radius);
height: var(--size);
width: var(--size);
cursor: grab;
/*extra*/
appearance: none;
}
/* mozilla thumb */
input[type='range']::-moz-range-thumb {
background: var(--range-track);
border-radius: var(--border-radius);
height: var(--size);
width: var(--size);
cursor: grab;
}
/* edge thumb */
input[type='range']::-ms-thumb {
background: var(--range-track);
border-radius: var(--border-radius);
height: var(--size);
width: var(--size);
cursor: grab;
}