-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavbar.css
More file actions
128 lines (118 loc) · 2.41 KB
/
Copy pathnavbar.css
File metadata and controls
128 lines (118 loc) · 2.41 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@400;700&display=swap');
:root {
--background: black;
}
body, html {
margin: 0;
padding: 0;
}
#textpanel {
transition: width 0.45s ease;
position: fixed;
width: 1%;
height: 100%;
background: black;
float: left;
z-index: 2;
}
#textpanel p {
color: white;
font-size: 1rem;
text-align: right;
padding: 0;
margin: auto;
display: inline-block;
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
}
.gradientCircle {
position: absolute;
left: 0;
top: 0;
display: inline-block;
width: 100%;
height: 100%;
filter: blur(6px);
opacity: 0;
z-index: -2;
transition: opacity 0.2s ease;
}
.gradientCircle:nth-of-type(1) {
background: var(--background);
background: radial-gradient(circle at 80% 10%, #00152d 0%, var(--background) 40%);
z-index: -1;
}
.gradientCircle:nth-of-type(2) {
background: var(--background);
background: radial-gradient(circle at 30% 50%, #002c5e 0%, var(--background) 50%);
}
.gradientCircle:nth-of-type(3) {
background: var(--background);
background: radial-gradient(circle at 100% 90%, #012348 0%, var(--background) 40%);
}
#textpanel:hover {
transition: width 0.45s ease;
width: 30%;
}
#textpanel > span {
transition: opacity 0.35s ease;
display: flex;
justify-content: space-evenly;
flex-direction: column;
align-items: center;
width: 100%;
height: 100%;
opacity: 0;
}
#textpanel > span:hover{
transition: opacity 0.35s ease;
opacity: 1;
}
#textpanel h3, a {
color: white;
}
#textpanel h3 {
text-align: center;
width: 100%;
margin: 0;
font-family: 'Dosis', Arial, Helvetica, sans-serif;
font-size: 2rem;
}
#textpanel h3 a {
display: inline-block;
position: relative;
transform: translateY(0);
margin: auto;
text-align: center;
vertical-align: middle;
text-decoration: none;
opacity: 1;
transition: transform 0.4s ease, opacity 0.4s ease;
}
#textpanel h3 a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 0.2rem;
background-color: white;
opacity: 0;
transition: opacity 0.2s, transform 0.2s;
}
#textpanel h3 a:hover::after,
#textpanel h3 a:focus::after {
opacity: 1;
transform: translate3d(0, 0.2em, 0);
}
#textpanel h3 a::after {
opacity: 1;
transform: scale(0);
transform-origin: center;
}
#textpanel h3 a:hover::after,
#textpanel h3 a:focus::after {
transform: scale(1);
}