-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (95 loc) · 1.94 KB
/
style.css
File metadata and controls
106 lines (95 loc) · 1.94 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
padding: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
color: hsl(0, 0%, 10%);
background: hsl(0, 0%, 100%);
}
.canvas-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.canvas {
width: 100vw;
height: 100vh;
}
.title {
color: #fff;
font-size: 30px;
}
.controls {
position: relative;
display: grid;
grid-gap: 1rem;
grid-template-columns: 1fr;
width: 110%;
max-width: 24rem;
padding: 1rem;
background: hsla(0, 0%, 100%, 0.25);
z-index: 1;
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border-radius: 0.5rem;
border: 1px solid hsla(0, 0%, 100%, 0.25);
opacity: 0;
}
.controls p {
grid-column: -1 / 1;
font-style: bold;
text-align: center;
font-size: 0.75rem;
}
.controls h1 {
grid-column: -1 / 1;
font-style: italic;
text-align: center;
font-size: 1.75rem;
}
button {
width: 100%;
height: 2.25rem;
border: 0;
font-weight: 500;
font-family: inherit;
border-radius: 0.5rem;
font-size: 0.875rem;
line-height: 2.25rem;
background: hsla(0, 0%, 100%, 0.25);
cursor: pointer;
}
button:nth-of-type(1) {
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
display: none;
}
button:nth-of-type(2) {
background: linear-gradient(to bottom, #be28fe, #bc04ff);
color: #fff;
}
@media only screen and (min-width: 640px) {
.controls {
grid-template-columns: 1fr 1fr;
}
.controls p {
display: none;
}
.controls button:nth-of-type(1) {
display: block;
}
}