Skip to content

Commit 84c937c

Browse files
committed
revert and improve the navbar
1 parent 0cda594 commit 84c937c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/assets/css/style.css

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ body {
7272
left: 0;
7373
right: 0;
7474
z-index: 100;
75-
height: 48px;
75+
height: 2em;
7676
display: flex;
7777
justify-content: space-between;
7878
align-items: center;
@@ -84,8 +84,8 @@ body {
8484
position: absolute;
8585
top: 0;
8686
left: 0;
87-
width: 11.1em;
88-
height: 48px;
87+
width: 13em;
88+
height: 2.5em;
8989
background: var(--yellow);
9090
clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
9191
z-index: 101;
@@ -95,24 +95,24 @@ body {
9595

9696
.nav-logo {
9797
position: absolute;
98-
top: 0;
99-
left: calc(var(--space) * 2);
98+
top: 3px;
99+
left: 13px;
100100
z-index: 102;
101-
height: 48px;
101+
height: 2em;
102102
display: flex;
103103
align-items: center;
104104
}
105105

106106
.nav-logo a {
107107
font-family: "Passion One", cursive;
108-
font-size: clamp(20px, 2vw + 16px, 24px);
108+
font-size: 26px;
109109
font-weight: 400;
110110
color: var(--black);
111111
text-decoration: none;
112112
transform: skewX(-10deg);
113113
display: inline-block;
114114
padding: 0;
115-
115+
letter-spacing: 1px;
116116
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
117117
}
118118

@@ -126,13 +126,13 @@ body {
126126
.nav-links {
127127
position: absolute;
128128
top: 0;
129-
right: calc(var(--space) * 5);
129+
right: 40px;
130130
display: flex;
131131
list-style: none;
132132
margin: 0;
133133
padding: 0;
134-
gap: var(--space);
135-
height: 48px;
134+
gap: 8px;
135+
height: 2em;
136136
align-items: center;
137137
}
138138

@@ -148,17 +148,17 @@ body {
148148
color: #888;
149149
opacity: 0.75;
150150
margin-left: 8px;
151-
font-size: clamp(14px, 1vw + 12px, 16px);
151+
font-size: clamp(15px, 1vw + 13px, 17px);
152152
}
153153

154154
.nav-links a {
155-
font-size: clamp(14px, 1vw + 12px, 16px);
155+
font-size: clamp(15px, 1vw + 13px, 17px);
156156
font-weight: 700;
157157
color: var(--black);
158158
text-decoration: none;
159159
transition: color 0.2s;
160160
display: block;
161-
padding: var(--space) calc(var(--space) * 2);
161+
padding: 8px 12px;
162162
min-height: 44px;
163163
display: flex;
164164
align-items: center;
@@ -254,9 +254,9 @@ button,
254254
position: absolute;
255255
top: -40px;
256256
left: 0;
257-
background: var(--cyan);
257+
background: var(--yellow);
258258
color: var(--black);
259-
padding: var(--space) calc(var(--space) * 2);
259+
padding: 8px 16px;
260260
text-decoration: none;
261261
font-weight: 700;
262262
z-index: 200;
@@ -299,7 +299,7 @@ button,
299299
position: absolute;
300300
top: 0;
301301
left: 0;
302-
height: calc(var(--space) * 2);
302+
height: 14px;
303303
width: 100%;
304304
background: var(--yellow);
305305
}

0 commit comments

Comments
 (0)