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>
This commit is contained in:
Rong Rong 2020-10-18 19:38:30 -07:00 committed by GitHub
parent 50541e8d3d
commit 97ee863d09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {