Skip to content

Commit fd1a337

Browse files
committed
add margin to language toggle and put dot in the middle
1 parent c891f4c commit fd1a337

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

assets/scss/_menu.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
position: relative;
44
display: inline-block;
55
width: 40px;
6-
height: 23px;
6+
height: 24px;
77
top: 2px;
88
z-index: -1;
99
}
@@ -34,7 +34,7 @@
3434
height: 16px;
3535
width: 16px;
3636
left: 3px;
37-
bottom: 3px;
37+
bottom: 4px;
3838
background-color: #002B5F;
3939
-webkit-transition: .4s;
4040
transition: .4s;
@@ -56,7 +56,7 @@ input:checked+.slider:before {
5656

5757
/* Rounded sliders */
5858
.slider.round {
59-
border-radius: 23px;
59+
border-radius: 24px;
6060
}
6161

6262
.slider.round:before {

layouts/partials/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
EN
6868
</div>
6969
<!-- Rounded switch -->
70-
<label class="switch d-inline-block">
70+
<label class="switch d-inline-block mx-1">
7171
<input type="checkbox" disabled aria-checked={{if eq .Site.Language.Lang "en" }} "true" checked {{else}} "false" {{ end }} id="lang-toggle" role="switch">
7272
<span class="slider round"></span>
7373
</label>

0 commit comments

Comments
 (0)