From 7ae98053089a9924c91a7313f1e1338f25b9acea Mon Sep 17 00:00:00 2001 From: Hannes Heute Date: Sun, 23 Jun 2024 23:09:15 +0200 Subject: [PATCH] Add CSS for dark and black schemes for the login form --- view/theme/frio/scheme/black.css | 24 ++++++++++++++++++++++++ view/theme/frio/scheme/dark.css | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/view/theme/frio/scheme/black.css b/view/theme/frio/scheme/black.css index 561f708a81..3fdad1dd58 100644 --- a/view/theme/frio/scheme/black.css +++ b/view/theme/frio/scheme/black.css @@ -259,6 +259,30 @@ input[type="submit"], color: #f2dede; } +/* Medium devices (desktops, 992px and up) */ +@media (min-width: 992px) { + .mod-home.is-not-singleuser .login-form > #login-form, + .mod-home.is-not-singleuser .login-form > #login-extra-links, + .mod-login #content #login-form { + background-color: $background_color; + } + + .mod-home.is-not-singleuser .login-form > #login-form label, + .mod-login #content #login-form label { + color: $font_color; + } + + .mod-home.is-not-singleuser .login-form::before, + .mod-login #content #login-form::before { + background-color: rgba(0, 0, 0, 0.2); + } + + .mod-home.is-not-singleuser .login-form::after, + .mod-login #content #login-form::after { + background-color: rgba(0, 0, 0, 0.3); + } +} + @media (min-width: 768px) { .wall-item-container .wall-item-links, .wall-item-container .wall-item-actions button > a { diff --git a/view/theme/frio/scheme/dark.css b/view/theme/frio/scheme/dark.css index 434681c558..eedb28f756 100644 --- a/view/theme/frio/scheme/dark.css +++ b/view/theme/frio/scheme/dark.css @@ -248,6 +248,30 @@ input[type="submit"], color: #f2dede; } +/* Medium devices (desktops, 992px and up) */ +@media (min-width: 992px) { + .mod-home.is-not-singleuser .login-form > #login-form, + .mod-home.is-not-singleuser .login-form > #login-extra-links, + .mod-login #content #login-form { + background-color: $background_color; + } + + .mod-home.is-not-singleuser .login-form > #login-form label, + .mod-login #content #login-form label { + color: $font_color; + } + + .mod-home.is-not-singleuser .login-form::before, + .mod-login #content #login-form::before { + background-color: rgba(7, 34, 48, 0.25); + } + + .mod-home.is-not-singleuser .login-form::after, + .mod-login #content #login-form::after { + background-color: rgba(7, 34, 48, 0.35); + } +} + @media (min-width: 768px) { .wall-item-container .wall-item-links, .wall-item-container .wall-item-actions button > a {