contrast added
This commit is contained in:
@@ -38,6 +38,21 @@
|
|||||||
<style>
|
<style>
|
||||||
/* Keep buttons static — disable daisyUI's press-shrink animation. */
|
/* Keep buttons static — disable daisyUI's press-shrink animation. */
|
||||||
.btn { --animation-btn: 0; --btn-focus-scale: 1; }
|
.btn { --animation-btn: 0; --btn-focus-scale: 1; }
|
||||||
|
|
||||||
|
/* App-wide contrast. The daisyUI base palette is very low-contrast, so
|
||||||
|
panels, tables and form fields blend into the page. Tie their edges to
|
||||||
|
base-content so every region is easy to pick out by eye, on light and
|
||||||
|
dark alike. The calendar grid keeps its own stronger #cal rules. */
|
||||||
|
.border.border-base-300 { border-color: hsl(var(--bc) / 0.2); }
|
||||||
|
.navbar { border-bottom: 1px solid hsl(var(--bc) / 0.15); }
|
||||||
|
.input.input-bordered,
|
||||||
|
.select.select-bordered,
|
||||||
|
.textarea.textarea-bordered { border-color: hsl(var(--bc) / 0.3); }
|
||||||
|
.checkbox { border-color: hsl(var(--bc) / 0.3); }
|
||||||
|
.table thead th { background-color: hsl(var(--bc) / 0.08); }
|
||||||
|
.table tbody tr:not(:last-child) :where(th, td) {
|
||||||
|
border-bottom-color: hsl(var(--bc) / 0.18);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
{% block head %}{% endblock head %}
|
{% block head %}{% endblock head %}
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -93,12 +93,13 @@ pub struct CalendarPage {
|
|||||||
pub rows: Vec<Row>,
|
pub rows: Vec<Row>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Resolves the UI language from the `lang` cookie (`sk` or `en`, default `en`).
|
/// Resolves the UI language from the `lang` cookie. Slovak is the default;
|
||||||
|
/// English applies only when the cookie explicitly asks for it.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn current_lang(jar: &CookieJar) -> String {
|
pub fn current_lang(jar: &CookieJar) -> String {
|
||||||
match jar.get("lang").map(|c| c.value().to_string()) {
|
match jar.get("lang").map(|c| c.value().to_string()) {
|
||||||
Some(ref l) if l == "sk" => "sk".to_string(),
|
Some(ref l) if l == "en" => "en".to_string(),
|
||||||
_ => "en".to_string(),
|
_ => "sk".to_string(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user