-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
165 lines (146 loc) · 2.8 KB
/
main.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/* Scroll styling based on https://codepen.io/jmeester/pen/rmGaGZ/ */
@import url('https://fonts.googleapis.com/css?family=Bilbo+Swash+Caps');
html {
background-color: #000;
overflow: hidden;
}
.c-body {
font-family: 'Bilbo Swash Caps', cursive;
font-size: 42px;
line-height: 1;
}
.c-main {
align-items: center;
display: flex;
justify-content: center;
height: 100vh;
opacity: 0.9;
}
.c-scroll {
position: relative;
}
.c-scroll__link {
color: inherit;
}
.c-scroll__paper {
background-color: #dac48b;
margin: 0 35px;
position: relative;
z-index: -1;
}
.c-scroll__holder {
align-items: center;
display: flex;
justify-content: center;
}
.c-scroll__roll {
background-color: #dac48b;
height: 43px;
position: relative;
width: 400px;
max-width: 70vw;
margin: 0 5px;
}
.c-scroll__roll:before {
content: '';
bottom: 2px;
left: -7px;
position: absolute;
top: 2px;
width: 7px;
background-color: #4A2B11;
background-image: linear-gradient(
to bottom,
#4A2B11 5%,
#CD9E53 55%,
#CD9E53,
#4A2B11
);
}
.c-scroll__roll:after {
content: '';
bottom: 2px;
right: -7px;
position: absolute;
top: 2px;
width: 7px;
background-color: #4A2B11;
background-image: linear-gradient(
to bottom,
#4A2B11 5%,
#CD9E53 55%,
#CD9E53,
#4A2B11
);
}
.c-scroll__knob {
background-color: #CD9E53;
background-image: linear-gradient(
to right,
#4A2B11 5%,
#CD9E53 55%,
#CD9E53,
#4A2B11
);
box-shadow: inset 0 6px 32px #4a2b11;
border-radius: 15px/30px;
height: 70px;
position: relative;
width: 30px;
}
.c-scroll__content {
max-height: 0;
padding: 10px 20px;
overflow: hidden;
transition: 600ms;
}
.c-scroll__text {
text-align: center;
line-height: 1.3;
padding: 40px 0;
}
.c-scroll__knob--small {
position: absolute;
transform: scale(0.5);
}
.c-scroll__knob--left {
left: -20px;
}
.c-scroll__knob--right {
right: -20px;
}
.c-scroll__holder--bottom {
margin-top: -20px;
}
.c-scroll__holder--top {
margin-bottom: -20px;
}
.c-scroll .c-scroll__paper {
background-image: linear-gradient(
to top,
#cba567 0%,
#e3c488 3%,
#ebd095 10%,
#ebd095 89%,
#e5c78b 91%,
#d5af71 100%
);
box-shadow: inset 0 0 32px #c19b5d;
}
.c-scroll .c-scroll__roll--bottom {
background-image: linear-gradient(
to top,
#d4b078,
#EED89F 30%,
#98743C
);
transform: rotate(180deg);
}
.c-scroll .c-scroll__roll--top {
background-image: linear-gradient(
to bottom,
#98743C,
#EED89F 70%,
#b6925a
);
}