From 97ee863d09f7d6bb33f5542d8062eb1817341065 Mon Sep 17 00:00:00 2001 From: Rong Rong Date: Sun, 18 Oct 2020 19:38:30 -0700 Subject: perfect: made theme toggle dynamic size (#9) * Made theme toggle dynamic size theme toggle now will break if font size is not default 14px * fix: made theme toggle dynamic size better Co-authored-by: JT --- _sass/misc/theme-toggle.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_sass/misc/theme-toggle.scss b/_sass/misc/theme-toggle.scss index 492eb0c..b31b0ae 100644 --- a/_sass/misc/theme-toggle.scss +++ b/_sass/misc/theme-toggle.scss @@ -1,6 +1,6 @@ .theme-toggle { position: relative; - width: 102px; + width: $base-font-size * 7.65; margin-top: 10px; margin-right: 60px; margin-left: auto; @@ -69,7 +69,7 @@ } @include media-query($on-palm) { - width: 94px; + width: $base-font-size * 6.65; margin-right: 20px; .names { -- cgit v1.2.3