From 864b57aac1cebcc4992aee16fe0ddfd809cf332c Mon Sep 17 00:00:00 2001
From: Dragory <2606411+Dragory@users.noreply.github.com>
Date: Sun, 13 Dec 2020 22:11:04 +0200
Subject: [PATCH] Make docs more mobile friendly
---
dashboard/src/components/Expandable.vue | 8 +++--
dashboard/src/components/docs/DocsLayout.vue | 35 ++++++++++++-------
.../src/components/docs/Introduction.vue | 14 ++++++++
dashboard/src/style/app.pcss | 6 ++++
dashboard/src/style/components.pcss | 4 +++
dashboard/tailwind.config.js | 11 +++++-
dashboard/webpack.config.js | 4 +--
7 files changed, 62 insertions(+), 20 deletions(-)
diff --git a/dashboard/src/components/Expandable.vue b/dashboard/src/components/Expandable.vue
index 455db34c..e594688c 100644
--- a/dashboard/src/components/Expandable.vue
+++ b/dashboard/src/components/Expandable.vue
@@ -34,12 +34,14 @@
}
}
- .icon {
+ & .icon {
transition: transform var(--animation-time);
- transform-origin: 50% 60%;
+ transform-origin: 50% 50%;
+ position: relative;
+ top: 0.125rem;
}
- .icon-open {
+ & .icon-open {
transform: rotate(179deg);
}
}
diff --git a/dashboard/src/components/docs/DocsLayout.vue b/dashboard/src/components/docs/DocsLayout.vue
index 3bb6178e..2c895240 100644
--- a/dashboard/src/components/docs/DocsLayout.vue
+++ b/dashboard/src/components/docs/DocsLayout.vue
@@ -15,34 +15,31 @@