Skip to content

Commit 2da42be

Browse files
committed
fix: change navBar algobootstrap font size
1 parent 8b38fe6 commit 2da42be

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

src/client/components/nav-bar.vue

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,6 @@ export default class NavBar extends Vue {
236236
position: fixed;
237237
top: 0;
238238
}
239-
@media screen and (max-width: 768px) {
240-
height: 40px;
241-
position: fixed;
242-
top: 0;
243-
}
244239
width: 100vw;
245240
display: flex;
246241
justify-content: center;
@@ -287,13 +282,15 @@ export default class NavBar extends Vue {
287282
}
288283
289284
& .logo .goHome {
285+
font-size: var(--font-small-size);
290286
color: var(--font-primary-color);
291287
}
292288
}
293289
294290
& .logo {
295291
flex-basis: 40%;
296292
height: 100%;
293+
// background-color: red;
297294
display: flex;
298295
justify-content: left;
299296
padding-left: 50px;
@@ -313,8 +310,8 @@ export default class NavBar extends Vue {
313310
&::after {
314311
content: '';
315312
position: absolute;
316-
width: 110%;
317-
height: 100%;
313+
width: calc(var(--font-medium-size) * 1.6);
314+
height: calc(var(--font-medium-size) * 1.6);
318315
left: 0;
319316
bottom: 0;
320317
z-index: -1;
@@ -331,15 +328,14 @@ export default class NavBar extends Vue {
331328
}
332329
333330
& img {
334-
width: 100%;
335-
height: 100%;
331+
width: calc(var(--font-medium-size) * 1.2);
336332
object-fit: contain;
337333
}
338334
}
339335
340336
& .goHome {
341337
margin-left: 10px;
342-
font-size: var(--font-medium-size);
338+
font-size: var(--font-small-size);
343339
white-space: nowrap;
344340
color: var(--font-secondary-color);
345341
transition: color 0.5s ease;
@@ -368,6 +364,7 @@ export default class NavBar extends Vue {
368364
justify-content: center;
369365
align-items: center;
370366
transition: color 0.5s ease;
367+
font-size: var(--font-small-size);
371368
372369
& svg {
373370
width: 20px;

src/client/modules/home/display.vue

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,14 @@ export default class Display extends Vue {
105105
stroke-width="2"
106106
stroke-linecap="round"
107107
stroke-linejoin="round"
108+
class="start-svg"
108109
>
109110
<path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5" />
110111
<rect x="2" y="6" width="14" height="12" rx="2" />
111112
</svg>
112113
快速上手
113114
<svg
115+
class="start-svg lucide lucide-chevron-down-icon lucide-chevron-down"
114116
xmlns="http://www.w3.org/2000/svg"
115117
width="24"
116118
height="24"
@@ -120,7 +122,6 @@ export default class Display extends Vue {
120122
stroke-width="2"
121123
stroke-linecap="round"
122124
stroke-linejoin="round"
123-
class="lucide lucide-chevron-down-icon lucide-chevron-down"
124125
:style="{ transform: isStartOpen ? 'rotate(180deg)' : 'rotate(0deg)', transition: 'transform 0.3s' }"
125126
>
126127
<path d="m6 9 6 6 6-6" />
@@ -254,14 +255,13 @@ export default class Display extends Vue {
254255
}
255256
256257
& .start {
257-
padding: 5px 15px;
258+
padding: 10px 15px;
258259
@media screen and (min-width: 768px) {
259260
padding: 15px 20px;
260261
}
261262
@media screen and (min-width: 1700px) {
262263
padding: 20px 25px;
263264
}
264-
background-color: transparent;
265265
border: none;
266266
outline: none;
267267
border-radius: 100px;
@@ -282,6 +282,17 @@ export default class Display extends Vue {
282282
color: var(--font-primary-color);
283283
}
284284
}
285+
286+
& .start-svg {
287+
width: calc(var(--font-small-size) * 1.5);
288+
height: calc(var(--font-small-size) * 1.5);
289+
min-width: 0;
290+
min-height: 0;
291+
max-width: 100%;
292+
max-height: 100%;
293+
display: inline-block;
294+
vertical-align: middle;
295+
}
285296
}
286297
287298
.content {

src/client/modules/releases/releases.view.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ export default class Releases extends Vue {
4545
background-color: var(--bg-color);
4646
display: flex;
4747
flex-direction: column;
48-
justify-content: space-between;
49-
48+
justify-content: space-around;
5049
align-items: center;
5150
5251
&-header {
@@ -71,7 +70,10 @@ export default class Releases extends Vue {
7170
}
7271
.old-version {
7372
position: absolute;
74-
bottom: 200px;
73+
bottom: 300px;
74+
@media screen and (max-width: 1200px) {
75+
bottom: 250px;
76+
}
7577
transform: translateY(50px);
7678
font-size: var(--font-small-size);
7779
color: var(--font-secondary-color);

0 commit comments

Comments
 (0)