Skip to content

Commit

Permalink
Refactor menu of scheme Muse on mobile (theme-next#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored Jul 26, 2019
1 parent e1a5459 commit ff39ecf
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 18 deletions.
1 change: 0 additions & 1 deletion source/css/_common/components/header/site-nav.styl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.site-nav-toggle {
hide();
position: absolute;
top: 10px;
left: 10px;
+mobile() {
show();
Expand Down
1 change: 1 addition & 0 deletions source/css/_schemes/Mist/_menu.styl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
.site-nav-toggle {
position: static;
float: right;
top: 10px;
}

.site-nav {
Expand Down
14 changes: 11 additions & 3 deletions source/css/_schemes/Muse/_layout.styl
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
.header-inner, .container .main-inner, .footer-inner {
+mobile() { width: auto; }
+mobile() {
width: auto;
}
}

.header-inner {
+mobile() {
padding: 50px 0 35px;
}
}

// embed tag
embed {
show();
margin: 0px auto 25px auto;
show();
margin: 0px auto 25px auto;
}
10 changes: 7 additions & 3 deletions source/css/_schemes/Muse/_menu.styl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.site-nav {
+mobile() {
position: absolute;
left: 0;
top: 52px;
margin: 0;
width: 100%;
padding: 0;
Expand All @@ -12,6 +10,10 @@
}
}

.site-nav-toggle {
top: 50px;
}

.menu {
+mobile() { text-align: left; }
}
Expand Down Expand Up @@ -48,7 +50,9 @@
}

br {
+mobile() { display: none; }
+mobile() {
display: none;
}
}

a, span.exturl {
Expand Down
22 changes: 11 additions & 11 deletions source/css/_schemes/Pisces/_menu.styl
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
.site-nav-toggle {
left: 20px;
top: 50%;

transform: translateY(-50%);

+tablet() {
show();
}
}

.site-nav {
border-top: none;

Expand Down Expand Up @@ -74,14 +85,3 @@
.btn-bar {
background-color: white;
}

.site-nav-toggle {
left: 20px;
top: 50%;

transform: translateY(-50%);

+tablet() {
show();
}
}

0 comments on commit ff39ecf

Please sign in to comment.