Skip to content

Commit 6184be3

Browse files
committed
Adjust navicon button
1 parent 79d5dd3 commit 6184be3

File tree

4 files changed

+4
-48
lines changed

4 files changed

+4
-48
lines changed

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{% include skip-links.html %}
1414

1515
<div class="sidebar-toggle-wrapper">
16-
<button class="toggle navicon-button larr">
16+
<button class="toggle navicon-button larr" type="button">
1717
<span class="sidebar-toggle-label">{{ site.data.theme.t.menu | default: 'Menu' }}</span>
1818
<div class="navicon"></div>
1919
</button>

_sass/basically-basic/_navicons.scss

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
border: 0;
1212
outline: none;
1313
background-color: $navicon-nav-bg-close;
14+
line-height: normal;
1415
cursor: pointer;
1516
-moz-user-select: none;
1617
-ms-user-select: none;
@@ -121,27 +122,4 @@
121122
transform-origin: right bottom;
122123
}
123124
}
124-
125-
/* × and + */
126-
/* &.plus,*/
127-
/* &.x {*/
128-
/* .navicon {*/
129-
/* background: transparent;*/
130-
131-
/* &::before {*/
132-
/* -ms-transform: rotate(-45deg);*/
133-
/* transform: rotate(-45deg);*/
134-
/* }*/
135-
136-
/* &::after {*/
137-
/* -ms-transform: rotate(45deg);*/
138-
/* transform: rotate(45deg);*/
139-
/* }*/
140-
/* }*/
141-
/* }*/
142-
143-
/* &.plus {*/
144-
/* -ms-transform: scale($navicon-toggled-size) rotate(45deg);*/
145-
/* transform: scale($navicon-toggled-size) rotate(45deg);*/
146-
/* }*/
147125
}

docs/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{% include skip-links.html %}
1414

1515
<div class="sidebar-toggle-wrapper">
16-
<button class="toggle navicon-button larr">
16+
<button class="toggle navicon-button larr" type="button">
1717
<span class="sidebar-toggle-label">{{ site.data.theme.t.menu | default: 'Menu' }}</span>
1818
<div class="navicon"></div>
1919
</button>

docs/_sass/basically-basic/_navicons.scss

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
border: 0;
1212
outline: none;
1313
background-color: $navicon-nav-bg-close;
14+
line-height: normal;
1415
cursor: pointer;
1516
-moz-user-select: none;
1617
-ms-user-select: none;
@@ -121,27 +122,4 @@
121122
transform-origin: right bottom;
122123
}
123124
}
124-
125-
/* × and + */
126-
/* &.plus,*/
127-
/* &.x {*/
128-
/* .navicon {*/
129-
/* background: transparent;*/
130-
131-
/* &::before {*/
132-
/* -ms-transform: rotate(-45deg);*/
133-
/* transform: rotate(-45deg);*/
134-
/* }*/
135-
136-
/* &::after {*/
137-
/* -ms-transform: rotate(45deg);*/
138-
/* transform: rotate(45deg);*/
139-
/* }*/
140-
/* }*/
141-
/* }*/
142-
143-
/* &.plus {*/
144-
/* -ms-transform: scale($navicon-toggled-size) rotate(45deg);*/
145-
/* transform: scale($navicon-toggled-size) rotate(45deg);*/
146-
/* }*/
147125
}

0 commit comments

Comments
 (0)