From 1804410233ac92843b8958e3b077c3c5a6f15ae0 Mon Sep 17 00:00:00 2001 From: Stanislav Popov Date: Thu, 29 Nov 2018 21:49:45 +0500 Subject: [PATCH] =?UTF-8?q?fix:=20css,=20=D0=BF=D1=80=D0=B8=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D1=8B=20=D0=B3=D1=80=D1=83=D0=BF=D0=BF=D1=8B=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D0=B5=D0=B9,=20=D0=B2=D0=B5=D1=80=D1=81?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D0=BF=D0=BE=D0=B4=20=D0=BC=D0=BE=D0=B1?= =?UTF-8?q?=D0=B8=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index.scss | 28 +++++ pages/index.vue | 276 ++++++++++++++++++++++++++++------------------- 2 files changed, 194 insertions(+), 110 deletions(-) diff --git a/pages/index.scss b/pages/index.scss index da12370..6dbfc2b 100644 --- a/pages/index.scss +++ b/pages/index.scss @@ -35,18 +35,40 @@ margin: 0 auto; } +// group dropdown on mobile +@media (max-width: 1000px) { + .el-dropdown-menu.el-popper { + display: none; + } +} + .available-fields { margin: 0 auto; text-align: left; columns: 4; + @media (max-width: 1000px) { + columns: 3; + } @media (max-width: 768px) { columns: 1; } max-width: 1140px; .field-group { + padding: 0 3px; + + &:hover { + background: #fbfbfb; + } + &__header { margin-top: 15px; + margin-bottom: 5px; + } + + &__name { + margin-left: 5px; + font-size: 1.5rem; } } @@ -73,6 +95,9 @@ padding: 0; margin-right: 1em; color: rgba(255, 0, 0, 0.87); + @media (max-width: 1000px) { + padding: 5px; + } } } @@ -85,6 +110,9 @@ padding: 0; margin-right: 1em; font-weight: normal; + @media (max-width: 1000px) { + padding: 5px; + } } } diff --git a/pages/index.vue b/pages/index.vue index 5c35ba4..64ed655 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -5,105 +5,148 @@
- Развернуть / свернуть все -
- +
+ -
- +
- - {{ group.name }} + > + {{ group.name }} + - - - + - - + -
- +
-
-
- +
-
- -
+
- +
- +
filters: - +
columns: - +
-
  • - {{ key }}: {{ value }} + {{ key }}: + {{ value }}
-
@@ -131,17 +178,17 @@