-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.scss
158 lines (128 loc) · 2.77 KB
/
main.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
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
// Variables
// Colours
$mainBGCol: #6a96e3;
$secondBGCol: #192149;
$fontCol: #192149;
$navBarCol: #192149;
$buttonCol: #192149;
$activeElementCol: #95aacc;
$elementAccentCol: #bbd5ff;
$elementSecondCol: #95aacc;
// Sizes
:root {
--marginTop: 1.5vh;
--generalFontSize: 3.5vw;
--headerImgWidth: 25%;
--genFlexDirection: row;
}
// Responsive settings
$breakpoint-phone: 400px;
$breakpoint-pc: 1000px;
@media only screen and (max-width: $breakpoint-phone) {
// Sizes
:root {
--generalFontSize: 5.5vw;
--marginTop: 3vh;
--headerImgWidth: 60vw;
--genFlexDirection: column;
}
}
@media only screen and (min-width: $breakpoint-pc) {
// Sizes
:root {
--generalFontSize: 1.5vw;
--marginTop: 3vh;
}
}
// Background animation
.gradient-background {
}
// Navbar Styling
nav {
text-align: center;
background-color: $navBarCol;
}
.button-bar {
position: fixed;
text-align: center;
font-size: 2.5vw;
top: 0%;
left: 0%;
// left: 50%;
width: 100%;
//transform: translate(50%, 0%);
height: var(--marginTop);
}
.button {
background-color: $buttonCol;
border-radius: 50%;
color:#bbd5ff;
list-style-type: none;
margin: 0% 10%;
padding: 1vw;
display: inline;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.current {
color: rgb(18, 214, 18);
}
.button:hover {
background-color: $activeElementCol;
}
// .button-bar-ref {
// position: relative;
// text-align: center;
// bottom: 50%;
// left: 50%;
// top: 20px;
// transform: translate(-50%, -50%);
// }
// General Doc Styling
html {
height: fit-content;
// height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
// background: linear-gradient(to bottom, $mainBGCol, $secondBGCol);
background: linear-gradient(300deg, $mainBGCol, $secondBGCol, #95aacc);
background-size: 120% 120%;
animation: gradient-animation 4s ease infinite;
@keyframes gradient-animation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
}
body {
// height: 90%;
padding: 4vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
// align-content: center;
// text-align: center;
width: 70%;
height: fit-content;
background-color: #95aacc;
}
h1 {
margin-top: var(--marginTop);
background-color: $elementAccentCol;
text-align: center;
}
p {
color: $fontCol;
}
#container {
display: flex;
flex-direction: column;
}