blob: a313b77e2b02b5fcd4583d712228a2a84e201984 (
plain)
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
|
:root {
--topBarHeight: 10%;
}
@font-face {
font-family: hacked;
src: url(/fonts/Hacked-KerX.ttf);
}
@font-face {
font-family: smooth;
src: url(/fonts/SmoothElegantRegular-ZLv3.ttf);
}
@font-face {
font-family: liga;
src: url(/fonts/LigaJetBrainsMonoNerdFont-Regular.ttf);
}
@font-face {
font-family: big;
src: url(/fonts/Big500-8MLOM.ttf);
}
/* page setup ============================================= */
* {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: liga;
text-shadow: 0px 0px 1px black;
}
body {
top: 0;
left: 0;
}
/* topbar styles ========================================== */
header {
position:fixed;
top: 0;
left: 0;
width: 100%;
height: 3em;
justify-content: space-between;
align-items:center;
/* background: color(0, 0, 0, .1); */
z-index: 1000;
background-color: #331E38;
}
.navBar a {
position: relative;
height: 100%;
font-size: 5mm;
text-transform: capitalize;
text-align: center;
text-decoration: none;
margin-left: 5mm;
margin-right: 5mm;
padding-top: 3mm;
padding-bottom: 3mm;
color: #F4E8C1;
}
.navBar .left a {float: left;}
.navBar .right a {float: right;}
.navBar a::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1mm;
background: #F4E8C1;
border-radius: 1mm;
transform: scaleX(0);
transition: transform 0.3s;
}
.navBar a:hover::after {
transform: scaleX(1);
}
.navBar a:hover {
background: rgba(255, 255, 255, 0.3);
}
.navBar a.active::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1mm;
background: #F4E8C1;
border-radius: 1mm;
transform: scaleX(1);
}
/* other ================================================== */
.contents {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
section {
position: relative;
}
.wrapper {
height: 100vh;
overflow-y: auto;
overflow-x: hidden;
perspective: 10px;
}
.slowScroll
transform: translateZ(-10px) scale(2);
}
.fastScroll {
transform: translateZ(-5px) scale(1.5);
}
.slowScroll,
.fastScroll {
position: absolute;
/* height: 100%; */
/* width: 100%; */
object-fit: cover;
z-index: -1;
}
|