-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
93 lines (75 loc) · 1.43 KB
/
style.scss
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
html,
body {
font-family: sans-serif;
}
#container {
width: 800px;
padding: 40px 0;
margin: 0 auto;
display: grid;
gap: 8px;
grid-template-rows: repeat(2, 1fr);
grid-template-columns: repeat(2, 1fr);
> section {
min-height: 300px;
overflow: hidden;
position: relative;
background-color: #aaa;
&.tall {
grid-column: 2 / 3;
grid-row: 1 / 3;
}
> img {
width: 100%;
height: 100%;
object-fit: cover;
position: absolute;
z-index: 0;
}
> .shade {
width: 0;
height: 0;
border-radius: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(0, 0);
background-color: rgba(226, 171, 22, 0.25);
}
> .content {
height: 100%;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
position: relative;
z-index: 5;
color: white;
font-weight: bold;
> h1 {
font-size: 2.5em;
text-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
}
}
}
}
#circle-button {
width: 96px;
height: 96px;
margin-top: 12px;
font-size: 12px;
border: none;
border-radius: 100%;
color: white;
font-weight: bold;
background-color: rgba(226, 171, 22, 1);
}
#cursor {
width: 32px;
height: 32px;
position: fixed;
top: 0;
left: 0;
border-radius: 100%;
background-color: rgba(226, 171, 22, 0.75);
}