Skip to content

Commit

Permalink
Fixed front page styles in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Nov 25, 2023
1 parent a975fa6 commit 7333003
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/Default/default.latte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1 class="display-3">Skautské<br />hospodaření online</h1>
<p class="lead">Systém pro vyúčtování skautských akcí, online plateb i cestovních příkazů</p>
</div>
<div class="col d-none d-lg-block bg-warning" style="margin-top: 20px;">
<div class="col d-none d-lg-block bg-posily" style="margin-top: 20px;">
<h1>Hledáme posily!</h1>
<p>
22. 10. 2022
Expand Down
17 changes: 17 additions & 0 deletions frontend/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ table.table a:hover {
}
}

.bg-posily {
--bs-bg-opacity: 1;
background-color: rgba(var(--bs-warning-rgb), var(--bs-bg-opacity)) !important;
}

.bg-test {
background-color: #ffff00;
}
Expand All @@ -82,6 +87,10 @@ table.table a:hover {
}

:root[data-bs-theme="dark"] {
.bg-posily {
--bs-bg-opacity: 0.2;
}

.bg-test {
background-color: #404000;
}
Expand All @@ -94,6 +103,14 @@ table.table a:hover {
color: var(--bs-body-color);
}

.carousel-caption {
color: var(--bs-body-color);
}

.carousel-item {
background-color: var(--bs-light-bg-subtle) !important;
}

.navbar-dark {
background-color: var(--bs-light-bg-subtle) !important;
}
Expand Down

0 comments on commit 7333003

Please sign in to comment.