aboutsummaryrefslogtreecommitdiff
path: root/node_modules/vuepress/lib/default-theme/styles/mobile.styl
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/vuepress/lib/default-theme/styles/mobile.styl')
-rw-r--r--node_modules/vuepress/lib/default-theme/styles/mobile.styl37
1 files changed, 37 insertions, 0 deletions
diff --git a/node_modules/vuepress/lib/default-theme/styles/mobile.styl b/node_modules/vuepress/lib/default-theme/styles/mobile.styl
new file mode 100644
index 00000000..b35e59c5
--- /dev/null
+++ b/node_modules/vuepress/lib/default-theme/styles/mobile.styl
@@ -0,0 +1,37 @@
+@require './config'
+
+$mobileSidebarWidth = $sidebarWidth * 0.82
+
+// narrow desktop / iPad
+@media (max-width: $MQNarrow)
+ .sidebar
+ font-size 15px
+ width $mobileSidebarWidth
+ .page
+ padding-left $mobileSidebarWidth
+
+// wide mobile
+@media (max-width: $MQMobile)
+ .sidebar
+ top 0
+ padding-top $navbarHeight
+ transform translateX(-100%)
+ transition transform .2s ease
+ .page
+ padding-left 0
+ .theme-container
+ &.sidebar-open
+ .sidebar
+ transform translateX(0)
+ &.no-navbar
+ .sidebar
+ padding-top: 0
+
+// narrow mobile
+@media (max-width: $MQMobileNarrow)
+ h1
+ font-size 1.9rem
+ .content
+ div[class*="language-"]
+ margin 0.85rem -1.5rem
+ border-radius 0