Skip to content

Commit dcc148f

Browse files
committed
feat: navbar
1 parent e991cb2 commit dcc148f

File tree

2 files changed

+38
-6
lines changed

2 files changed

+38
-6
lines changed

theme/static/css/style.css

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ body, html, root {
2323
}
2424

2525
.navbar-left {
26+
width: 90%;
2627
display: flex;
2728
align-items: center;
2829
background-color: #578FCA;
@@ -94,7 +95,9 @@ body, html, root {
9495
.welcome-msg {
9596
text-align: center;
9697
align-items: center;
97-
margin: 3rem 15rem;
98+
margin: 3rem auto;
99+
padding-right: 3rem;
100+
padding-left: 3rem
98101
}
99102

100103
/* Barra de búsqueda */
@@ -121,7 +124,7 @@ body, html, root {
121124
display: flex;
122125
gap: 10px;
123126
flex-wrap: wrap;
124-
justify-content: flex-start;
127+
justify-content: center;
125128
padding: 0;
126129
margin: 20px;
127130
}
@@ -370,18 +373,30 @@ iframe {
370373

371374

372375
@media (max-width: 1300px) {
376+
377+
.navbar-logo {
378+
height: 40px;
379+
}
380+
381+
.navbar-title, .cursor {
382+
font-size: 3rem;
383+
}
384+
385+
373386
.navbar-menu {
374387
flex-direction: column;
375388
align-items: stretch;
376389
gap: 1rem;
377390
margin: 1rem auto;
378391
padding: 0;
392+
width: 20%;
379393
}
380394

381395
.navbar-menu a {
382396
display: block;
383-
width: 100%;
397+
max-width: 100%;
384398
text-align: center;
399+
font-size: 80%;
385400
}
386401

387402
.preview-tags-container {
@@ -390,7 +405,24 @@ iframe {
390405
}
391406

392407
@media (max-width: 920px) {
408+
409+
.navbar-logo {
410+
height: 20px;
411+
}
412+
413+
.navbar-title, .cursor {
414+
font-size: 1rem;
415+
}
416+
393417
.welcome-msg-body {
394418
font-size: 0;
395419
}
420+
421+
.preview-summary {
422+
display: none;
423+
}
424+
425+
.navbar-menu a {
426+
font-size: 60%;
427+
}
396428
}

theme/templates/navbar.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<a class="left-link" href="{{ SITEURL }}/">
33
<div class="navbar-left">
44
<img src="{{ SITEURL }}/theme/img/pythonchile_logo.png" alt="Logo" class="navbar-logo">
5-
<span class="navbar-title">El</span>
6-
<span class="navbar-title">Blog</span>
7-
<span class="cursor">|</span>
5+
<div class="navbar-title">El</div>
6+
<div class="navbar-title">Blog</div>
7+
<div class="cursor">|</div>
88
</div>
99
</a>
1010

0 commit comments

Comments
 (0)