-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskymod.css
122 lines (113 loc) · 2.15 KB
/
skymod.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
html {
height: -webkit-fill-available;
}
body {
--angle: 270deg;
--hue1: 40;
--hue2: 189;
--hue3: 330;
--hue4: 270;
--light: 50%;
--l: 0.40;
--r1: oklch(var(--l) 0.1 60 / 0.75);
background-image:
linear-gradient(var(--angle), hsl(var(--hue1), 100%, var(--light)), hsl(var(--hue2), 100%, var(--light)));
font-family: 'Montserrat', sans-serif;
margin: 0;
min-height: 100vh;
min-height: -webkit-fill-available;
overflow: hidden;
padding: 1ch;
}
.daynight {
background-color: hsla(0, 0%, 0%, 0.15);
border: 1px solid var(--r1);
border-radius: 3em;
color: hsla(0, 0%, 100%, 0.8);
display: grid;
padding: .65em;
position: relative;
width: 100%;
}
/* Espaciado */
.daynight-icons {
display: flex;
justify-content: space-between;
pointer-events: none;
position: relative;
z-index: 1;
}
.daynight-icons svg {
fill: none;
height: 2em;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.25;
stroke: currentColor;
width: 2em;
}
.daynight-input {
appearance: none;
background: transparent;
inset: 0;
position: absolute;
}
.daynight-input::-webkit-slider-runnable-track {
height: 100%;
width: 100%;
}
.daynight-input::-webkit-slider-thumb {
appearance: none;
aspect-ratio: 1 / 1;
background: var(--r1);
border-radius: 100%;
height: 100%;
}
/* -Boton desplazador- */
@-moz-document url-prefix() {
.daynight-input {
height: 100%;
width: 100%;
}
}
/* Tamaño */
.daynight-input::-moz-range-track {
border-radius: 3em;
height: 100%;
width: 100%;
}
/* Color */
.daynight-input::-moz-range-thumb {
appearance: none;
aspect-ratio: 1 / 1;
background: hsla(30, 2%, 60%, 0.5);
border-radius: 100%;
height: 75%;
width: 70px;
}
/* Estrellas */
#stars {
inset: 60px 0 0 0;
opacity: calc(50% - var(--light));
position: fixed;
z-index: -1;
}
#stars circle {
animation: fade var(--animdur) linear infinite;
}
#stars line {
opacity: 0.1;
}
@keyframes fade {
0%, 100% { opacity: 0.25 }
50% { opacity: 1 }
}
/* Media Query */
@media screen and (max-width: 480px){
.daynight {
display: grid;
padding: .65em;
position: fixed;
width: 100%;
}
}