-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
69 lines (61 loc) · 1.35 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
@import url('https://fonts.googleapis.com/css2?family=Dongle:wght@300;400;700&display=swap');
/* Variables */
:root {
--primary-font-color: rgb(255, 255, 255);
--secondary-font-color-black: #000000;
--secondary-font-color-grey: rgb(115, 111, 111);
--secondary-font-color-gold: goldenrod;
--body-bg-white: rgb(255, 255, 255);
--body-bg-black: #000000;
--body-bg-grey: rgb(115, 111, 111);
}
/* Global config */
html {
/*
padding: 0.5rem;
*/
box-sizing: border-box;
--font-family: 'Open Sans', sans-serif;
scroll-behavior: smooth;
background-color: #ffffff;
}
/* Navigation */
body {
display: block;
justify-content: center;
align-items: center;
background: var(--body-bg-white);
}
ul {
display: flex;
flex-direction: row;
list-style-type: none;
}
ul li {
margin: 0.5rem;
}
ul li a {
position: relative;
display: block;
padding: 1rem;
color: var(--secondary-font-color-black);
text-decoration: none;
text-transform: uppercase;
transition: 0.5s;
}
ul li a::after {
position: absolute;
content: "";
top: 80%;
left: 0;
width: 100%;
height: 3px;
background: lightslategrey;
transform: scaleX(0);
transform-origin: right;
transition: transform 1s;
}
ul li a:hover::after {
transform: scaleX(1);
transform-origin: left;
}