From 2c2f79e1cd324430690bafaca23aa87a70438f40 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Wed, 21 Jul 2021 14:46:31 +0530 Subject: [PATCH] settings page styling --- templates/_vars.scss | 8 ++ templates/components/showPassword/index.html | 4 +- templates/components/showPassword/main.scss | 2 + templates/mobile.ts | 1 + templates/panel/help-banner/main.scss | 10 --- templates/panel/help-banner/mobile.scss | 7 ++ templates/panel/settings/index.html | 90 +++++++++++++------- templates/panel/settings/main.scss | 85 +++++++++++++++++- templates/panel/settings/mobile.scss | 20 +++++ 9 files changed, 184 insertions(+), 43 deletions(-) create mode 100644 templates/panel/settings/mobile.scss diff --git a/templates/_vars.scss b/templates/_vars.scss index ac422022..d9aaebda 100644 --- a/templates/_vars.scss +++ b/templates/_vars.scss @@ -32,3 +32,11 @@ $blue-link: rgb(3, 102, 214); $form-content-width: 90%; $form-input-height: 40px; + +@mixin light-text-icon-filter { + filter: invert(100%) sepia(0%) saturate(1%) hue-rotate(325deg) + brightness(105%) contrast(101%); + opacity: 0.8; +} + +$red: #d10028; diff --git a/templates/components/showPassword/index.html b/templates/components/showPassword/index.html index 81f7b369..5a2ef845 100644 --- a/templates/components/showPassword/index.html +++ b/templates/components/showPassword/index.html @@ -1,6 +1,6 @@ " alt="" /> + crate::FILES.get("./static/cache/img/svg/eye.svg").unwrap() .>" alt="Show Password" /> " alt="" /> + crate::FILES.get("./static/cache/img/svg/eye-off.svg").unwrap() .>" alt="Hide Password" /> diff --git a/templates/components/showPassword/main.scss b/templates/components/showPassword/main.scss index aa1a20f3..bb8c40d6 100644 --- a/templates/components/showPassword/main.scss +++ b/templates/components/showPassword/main.scss @@ -38,6 +38,8 @@ $img-width: #{$form-input-height * $img-height}; position: relative; top: -#{$form-input-height * ($img-height * 1.15)}; left: #{$form-content-width * 0.99}; + display: block; + margin-bottom: -30px; } .show-password-container:hover { diff --git a/templates/mobile.ts b/templates/mobile.ts index b0b10e53..87d68662 100644 --- a/templates/mobile.ts +++ b/templates/mobile.ts @@ -19,6 +19,7 @@ import './mobile.scss'; import './auth/css/mobile.scss'; import './components/details-footer/mobile.scss'; import './panel/css/mobile.scss'; +import './panel/settings/mobile.scss'; import './panel/header/taskbar/mobile.scss'; import './panel/navbar/mobile.scss'; import './panel/help-banner/mobile.scss'; diff --git a/templates/panel/help-banner/main.scss b/templates/panel/help-banner/main.scss index 4841bfd8..a92c4e6f 100644 --- a/templates/panel/help-banner/main.scss +++ b/templates/panel/help-banner/main.scss @@ -29,18 +29,8 @@ margin-top: 40px; } -li.help-text__instructions::marker { - background-color: $violet; - width: 30px; - height: 30px; - border-radius: 50%; - align-items: center; - justify-content: center; -} - .help-text__instructions { font-size: 19px; font-weight: 500; - padding: 10px; margin: auto; } diff --git a/templates/panel/help-banner/mobile.scss b/templates/panel/help-banner/mobile.scss index 96bd261e..322c8e8f 100644 --- a/templates/panel/help-banner/mobile.scss +++ b/templates/panel/help-banner/mobile.scss @@ -20,4 +20,11 @@ .help-text { flex-direction: column; + justify-content: normal; + padding: 10px; + margin: 20px auto; +} + +.help-text__instructions { + width: 86%; } diff --git a/templates/panel/settings/index.html b/templates/panel/settings/index.html index 7d32af8a..5d38306e 100644 --- a/templates/panel/settings/index.html +++ b/templates/panel/settings/index.html @@ -17,39 +17,71 @@

<.= PAGE .>

-
-