aboutsummaryrefslogtreecommitdiff
path: root/assets/sass/_partial/_mobile.scss
diff options
context:
space:
mode:
authorpanda-z <panda.hust@gmail.com>2020-04-13 21:18:35 +0800
committerGitHub <noreply@github.com>2020-04-13 21:18:35 +0800
commit5657112dfb0e6eac2faa2ae1dc0978ed29030709 (patch)
treef22279cb587444b0649f95da647b60daf1f370e9 /assets/sass/_partial/_mobile.scss
parentd39d3e443953caea05510b19fdd7a259c71a0ab3 (diff)
chore(build): drop webpack and use Hugo Pipes (#130)
Diffstat (limited to 'assets/sass/_partial/_mobile.scss')
-rw-r--r--assets/sass/_partial/_mobile.scss77
1 files changed, 77 insertions, 0 deletions
diff --git a/assets/sass/_partial/_mobile.scss b/assets/sass/_partial/_mobile.scss
new file mode 100644
index 0000000..26e4c76
--- /dev/null
+++ b/assets/sass/_partial/_mobile.scss
@@ -0,0 +1,77 @@
+// ==============================
+// Mobile Navbar
+// ==============================
+
+.mobile-navbar {
+ display: none;
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: $mobile-navbar-height;
+ background: $white;
+ box-shadow: 0px 2px 2px $gray;
+ text-align: center;
+ transition: transform 300ms ease;
+ z-index: 99;
+
+ &.fixed-open {
+ transform: translate3d(180px, 0px, 0px);
+ }
+
+ .mobile-header-logo {
+ display: inline-block;
+ margin-right: 50px;
+
+ .logo {
+ font-size: 22px;
+ line-height: $mobile-navbar-height;
+ font-family: $logo-font-family;
+ }
+ }
+
+ .mobile-navbar-icon {
+ color: $theme-color;
+ height: $mobile-navbar-height;
+ width: $mobile-navbar-height;
+ font-size: 24px;
+ text-align: center;
+ float: left;
+ position: relative;
+ transition: background 0.5s;
+
+ @include mobile-menu-icon();
+ }
+}
+
+.mobile-menu {
+ background-color: rgba($deputy-color, 0.5);
+
+ .mobile-menu-list {
+ position: relative;
+ list-style: none;
+ margin-top: 50px;
+ padding: 0;
+ border-top: 1px solid $deputy-color;
+
+ .mobile-menu-item {
+ padding: 10px 30px;
+ border-bottom: 1px solid $deputy-color;
+ }
+
+ a {
+ font-size: 18px;
+ font-family: $global-serif-font-family;
+
+ &:hover {
+ color: $theme-color;
+ }
+ }
+ }
+}
+
+@include max-screen() {
+ .mobile-navbar {
+ display: block;
+ }
+}