Styling fixes for mobile

This commit is contained in:
Wesley Moore 2024-07-08 14:34:39 +10:00
parent c8c83a012b
commit 38096d90b5
No known key found for this signature in database
4 changed files with 25 additions and 3 deletions

View file

@ -30,6 +30,7 @@ juice_logo_name = "RSS Please"
juice_logo_path = "feed-icon.svg" juice_logo_path = "feed-icon.svg"
juice_extra_menu = [ juice_extra_menu = [
{ title = "News", link = "/news/"}, { title = "News", link = "/news/"},
{ title = "Sponsor", link = "https://github.com/sponsors/wezm"},
{ title = "GitHub", link = "https://github.com/wezm/rsspls"}, { title = "GitHub", link = "https://github.com/wezm/rsspls"},
] ]
repository_url = "https://github.com/wezm/rsspls" repository_url = "https://github.com/wezm/rsspls"

View file

@ -1,4 +1,4 @@
@font-face { @font-face {
font-family: "Firava"; font-family: "Firava";
src: url(/fonts/Firava.woff2) format("woff2"); src: url(/fonts/Firava.woff2) format("woff2");
font-display: swap; font-display: swap;
@ -100,6 +100,10 @@ footer a:hover {
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
@media screen and (max-width: 950px) { @media screen and (max-width: 950px) {
.nav-item {
display: inline-block;
margin: 0.5em 5px;
}
.hero { .hero {
flex-direction: column; flex-direction: column;
padding-top: 100px; padding-top: 100px;
@ -111,8 +115,26 @@ footer a:hover {
display: none; display: none;
} }
} }
@media screen and (max-width: 768px) {
.nav-item {
font-size: inherit;
}
.hero {
padding: 40px 30px;
}
}
@media screen and (max-width: 450px) { @media screen and (max-width: 450px) {
header.pos-absolute {
position: relative;
background-color: var(--primary-color);
}
.hero-image { .hero-image {
width: 222px; width: 222px;
} }
nav {
text-align: center;
}
} }

View file

@ -70,7 +70,6 @@ header {
justify-content: space-evenly; justify-content: space-evenly;
height: 100vh; height: 100vh;
background-color: var(--primary-color); background-color: var(--primary-color);
overflow-x: hidden;
padding: 0 40px; padding: 0 40px;
.explore-more { .explore-more {

View file

@ -25,7 +25,7 @@
<body> <body>
{% block header %} {% block header %}
<header class="pos-absolute" style="background-color: transparent"> <header class="pos-absolute">
{{ macros::render_header() }} {{ macros::render_header() }}
</header> </header>