Skip to content

Commit 5a43318

Browse files
committed
updating index
1 parent 95bbc58 commit 5a43318

3 files changed

Lines changed: 159 additions & 12 deletions

File tree

assets/scss/_custom.scss

Lines changed: 143 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,82 @@ a:hover, .content a:hover {
1919
.author{ width:25% }
2020

2121
.notice {
22-
padding-top: 20px;
23-
padding-bottom: 20px;
22+
padding: 8px 0;
23+
background: inherit;
24+
font-size: 13px;
25+
line-height: 1.4;
26+
27+
a {
28+
color: inherit;
29+
text-decoration: underline;
30+
31+
&:hover {
32+
text-decoration: none;
33+
}
34+
}
35+
36+
.container {
37+
padding-top: 0;
38+
padding-bottom: 0;
39+
}
2440
}
2541

2642
.section-first {
27-
padding-top: 20px;
43+
padding-top: 40px;
44+
45+
.h1 {
46+
margin-bottom: 30px;
47+
}
48+
49+
p {
50+
margin-bottom: 20px;
51+
}
2852
}
2953

3054
.section-last {
3155
padding-top: 0;
56+
57+
.section-small {
58+
max-width: 800px;
59+
margin: 0 auto;
60+
61+
@media (max-width: 992px) {
62+
max-width: 600px;
63+
margin: 0 auto;
64+
padding: 30px;
65+
}
66+
67+
@media (max-width: 576px) {
68+
max-width: calc(100% - 24px);
69+
margin: 0 12px;
70+
padding: 20px 15px;
71+
}
72+
73+
p {
74+
@media (max-width: 576px) {
75+
font-size: 14px;
76+
line-height: 1.5;
77+
margin-bottom: 15px;
78+
}
79+
}
80+
81+
.h2 {
82+
@media (max-width: 576px) {
83+
font-size: 20px;
84+
margin-bottom: 12px;
85+
}
86+
}
87+
88+
a {
89+
@media (max-width: 576px) {
90+
display: inline;
91+
padding: 0;
92+
margin: 0;
93+
border: none;
94+
font-weight: 500;
95+
}
96+
}
97+
}
3298
}
3399

34100
.section-small {
@@ -83,17 +149,17 @@ ol.breadcrumb {
83149
}
84150

85151
.navbar-expand-lg .navbar-nav .nav-link {
86-
padding: 30px 15px;
152+
padding: 15px;
87153
display: inline;
88154
}
89155
.navbar-expand-lg .navbar-nav .nav-with-toggle {
90-
padding: 30px 0px;
156+
padding: 15px 0;
91157
display: inline;
92158
}
93159
.nav-item{
94-
padding: 0px 0px;
95-
height:44px;
96-
line-height: 44px;
160+
padding: 0;
161+
height:48px;
162+
line-height: 48px;
97163
}
98164
.show {
99165
z-index:100;
@@ -453,10 +519,22 @@ button.svelte-la9dd4:disabled {
453519
max-width: 100%;
454520
font-size: 14px;
455521
color: #666;
522+
523+
@media (max-width: 576px) {
524+
flex-wrap: wrap;
525+
gap: 8px;
526+
margin: 0;
527+
}
456528
}
457529

458530
.signup-text {
459-
white-space: nowrap;
531+
white-space: normal;
532+
533+
@media (max-width: 576px) {
534+
width: 100%;
535+
font-size: 13px;
536+
margin-bottom: 4px;
537+
}
460538
}
461539

462540
.form-input {
@@ -465,6 +543,12 @@ button.svelte-la9dd4:disabled {
465543
padding: 6px 12px;
466544
font-size: 14px;
467545

546+
@media (max-width: 576px) {
547+
width: calc(100% - 80px);
548+
font-size: 13px;
549+
padding: 4px 8px;
550+
}
551+
468552
&:focus {
469553
outline: none;
470554
border-color: #0aa8a7;
@@ -481,9 +565,59 @@ button.svelte-la9dd4:disabled {
481565
font-weight: 600;
482566
cursor: pointer;
483567

568+
@media (max-width: 576px) {
569+
width: 70px;
570+
text-align: right;
571+
font-size: 13px;
572+
padding: 4px 0;
573+
}
574+
484575
&:hover {
485576
text-decoration: underline;
486577
}
487578
}
488579
}
580+
}
581+
582+
.btn-link {
583+
display: inline-flex;
584+
align-items: center;
585+
color: #0aa8a7;
586+
font-size: 14px;
587+
font-weight: 500;
588+
text-decoration: none;
589+
padding: 0;
590+
border: none;
591+
592+
i {
593+
margin-left: 6px;
594+
font-size: 12px;
595+
transition: transform 0.2s ease;
596+
}
597+
598+
&:hover {
599+
color: darken(#0aa8a7, 10%);
600+
text-decoration: none;
601+
602+
i {
603+
transform: translateX(3px);
604+
}
605+
}
606+
}
607+
608+
.navigation {
609+
position: fixed;
610+
top: 0;
611+
left: 0;
612+
right: 0;
613+
background: white;
614+
z-index: 1000;
615+
border-bottom: 1px solid #eee;
616+
}
617+
618+
body {
619+
padding-top: 48px;
620+
}
621+
622+
body.has-notice {
489623
}

layouts/partials/header.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{{ "<!-- navigation -->" | safeHTML }}
2+
<script>
3+
document.addEventListener('DOMContentLoaded', function() {
4+
const notice = document.querySelector('.notice');
5+
if (notice) {
6+
document.body.classList.add('has-notice');
7+
}
8+
});
9+
</script>
210
<header class="navigation">
311
<div class="container wrap">
412
<div class="logo">

static/css/custom-menu.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
background: #fff;
99
border-bottom: 1px solid #eee;
1010
position: relative;
11+
min-height: 48px;
1112
}
1213

1314

@@ -264,7 +265,7 @@
264265
left: 0;
265266
right: 0;
266267
background: #fff;
267-
padding: 20px 30px;
268+
padding: 0 30px;
268269
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
269270
z-index: 1000;
270271
flex-direction: column;
@@ -281,7 +282,7 @@
281282
}
282283

283284
.menu-item-has-children > a {
284-
padding: 12px;
285+
padding: 8px 12px;
285286
border-bottom: 1px solid #eee;
286287
position: relative;
287288
}
@@ -364,7 +365,7 @@
364365
}
365366

366367
.logo img {
367-
height: 28px;
368+
height: 32px;
368369
}
369370

370371
.menu-item-has-children > a {
@@ -375,6 +376,10 @@
375376
font-size: 12px;
376377
}
377378

379+
.container.wrap {
380+
min-height: 48px;
381+
}
382+
378383
.notice {
379384
padding: 6px 15px;
380385
line-height: 1.4;

0 commit comments

Comments
 (0)