diff options
author | Rong Rong <walterddr.walterddr@gmail.com> | 2020-10-18 19:38:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 10:38:30 +0800 |
commit | 97ee863d09f7d6bb33f5542d8062eb1817341065 (patch) | |
tree | 22c238cb61b5bbfdd887f9327d6080dee6cd8f1c /_sass | |
parent | 50541e8d3d3aab45fe473fa36f248548066c43aa (diff) |
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 <jeffreytse.mail@gmail.com>
Diffstat (limited to '_sass')
-rw-r--r-- | _sass/misc/theme-toggle.scss | 4 |
1 files 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 { |