-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
83 lines (72 loc) · 1.47 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
@import url("https://fonts.googleapis.com/css?family=Shadows+Into+Light+Two");
:root {
--primary-color: rgba(241, 196, 15, 1);
--secondary-color: teal;
--slider: 0;
}
body {
margin: 0;
color: rgba(255, 255, 255, 0.9);
background: url("http://bit.ly/2FiPrRA") 0 100%/340px no-repeat,
var(--primary-color);
font-family: "Shadow Into Light Two", cursive;
}
main.booth {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
/* Slider */
.slider,
.instructions {
position: absolute;
background: rgba(0, 0, 0, 0.4);
padding: 1rem 2rem;
border-radius: 5px;
}
.slider {
right: 10px;
top: 10px;
}
.slider > * {
display: block;
}
.instructions {
text-align: center;
bottom: 0;
background: initial;
color: black;
}
.color-boxes {
background: red;
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.4);
border-radius: 0.3rem;
transform: perspective(500px) rotateY(calc(var(--slider) * 1deg));
transition: transform 0.3s;
}
.color-box {
padding: 1rem 3.5rem;
margin-bottom: 0.5rem;
border: 1px solid rgba(0, 0, 0, 0.4);
border-radius: 0.3rem;
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.4);
}
.color-box:nth-child(1) {
background: var(--bg-1);
}
.color-box:nth-child(2) {
background: var(--bg-2);
}
.color-box:nth-child(3) {
background: var(--bg-3);
}
.color-box:nth-child(4) {
background: var(--bg-4);
}
.color-box:nth-child(5) {
background: var(--bg-5);
}
.color-box:nth-child(6) {
background: var(--bg-6);
}