-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.css
More file actions
109 lines (92 loc) · 1.92 KB
/
main.css
File metadata and controls
109 lines (92 loc) · 1.92 KB
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
:root {
--primary: rgb(45, 126, 158);
--primary-darken: rgb(11, 28, 34);
--primary-lighten: rgb(176, 232, 252);
}
body {
background-color: #000;
top: 0;
left: 0;
color: var(--primary-lighten);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: lighter;
}
ul, li {
list-style: none;
width: 42.5rem;
padding: 0;
list-style-position: inside;
}
.menu {
width: 42.5rem;
padding: 0.75em 2em !important;
background:
linear-gradient(to right, transparent 0%, transparent 2%, #000 2%, #000 98%, transparent 98%) 0 0,
linear-gradient(to bottom, var(--primary-lighten) 0.25rem, transparent 0.25rem) 0 0,
linear-gradient(to top, var(--primary-lighten) 0.25rem, transparent 0.25rem) 0 0;
}
.menu-item {
padding: 1em 2em;
transition: 0.6s;
cursor: pointer;
box-sizing: border-box;
}
.menu-item:hover {
animation-name: item-hover-animation;
animation-duration: 1.6s;
animation-iteration-count: infinite;
animation-delay: 0.3s;
}
.item-title {
font-size: 225%;
}
.item-title::after {
content: "";
display: block;
width: 100%;
height: 0.075rem;
background-color: var(--primary);
transform-origin: center;
transition: 0.2s;
transform: scaleX(0);
}
.menu-item:hover .item-title::after {
animation-name: item-title-bottom-line-animation;
animation-duration: 0.4s;
}
.item-subtitle {
font-size: 125%;
transform-origin: center;
transition: 0.3s;
transform: scaleY(0);
}
.menu-item:hover .item-subtitle {
transform: scaleY(1);
}
@keyframes item-title-bottom-line-animation {
0% {
transform: scaleX(0);
}
80% {
transform: scaleX(1);
}
95% {
transform: scaleX(1);
opacity: 1;
}
100% {
transform: scaleX(1);
opacity: 0;
}
}
@keyframes item-hover-animation {
0% {
background-color: var(--primary);
}
90% {
background-color: var(--primary-darken);
}
100% {
background-color: var(--primary);
}
}