Skip to content

Commit ee95585

Browse files
authored
Update main.css
1 parent 0509d1a commit ee95585

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

css/main.css

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,68 @@ section {
9494
top:25vh;
9595
}
9696

97+
98+
99+
100+
101+
.menu-bar {
102+
position: fixed;
103+
margin:auto;
104+
width: 100%;
105+
background: rgba(139,0,0, 0.2);
106+
padding: 0.5em 0;
107+
text-transform: lowercase;
108+
text-align: center;
109+
font-weight: 500;
110+
}
111+
112+
.snip1168 * {
113+
box-sizing: border-box;
114+
}
115+
.snip1168 li {
116+
display: inline-block;
117+
list-style: outside none none;
118+
margin: 0 1.5em;
119+
padding: 0;
120+
}
121+
.snip1168 a {
122+
padding: 0.5em 0;
123+
color: rgba(255, 255, 255, 0.5);
124+
position: relative;
125+
letter-spacing: 1px;
126+
text-decoration: none;
127+
}
128+
.snip1168 a:before,
129+
.snip1168 a:after {
130+
position: absolute;
131+
-webkit-transition: all 0.35s ease;
132+
transition: all 0.35s ease;
133+
}
134+
.snip1168 a:before {
135+
top: 0;
136+
display: block;
137+
height: 3px;
138+
width: 0%;
139+
content: "";
140+
background-color: rgb(176,224,230);
141+
}
142+
.snip1168 a:after {
143+
left: 0;
144+
top: 0;
145+
padding: 0.5em 0;
146+
position: absolute;
147+
content: attr(data-hover);
148+
color: #ffffff;
149+
white-space: nowrap;
150+
max-width: 0%;
151+
overflow: hidden;
152+
}
153+
.snip1168 a:hover:before,
154+
.snip1168 .current a:before {
155+
opacity: 1;
156+
width: 100%;
157+
}
158+
.snip1168 a:hover:after,
159+
.snip1168 .current a:after {
160+
max-width: 100%;
161+
}

0 commit comments

Comments
 (0)