From c5b6fcf011b3684b2115d43956b51356f3f02a7c Mon Sep 17 00:00:00 2001 From: muerwre Date: Fri, 14 Dec 2018 12:01:42 +0700 Subject: [PATCH] routes: fixed appearance --- src/components/dialogs/MapListMoreDialog.jsx | 34 +++++++++++--------- src/sprites/icon.svg | 11 ++++++- src/styles/dialogs.less | 24 ++++++++++---- src/styles/main.less | 4 +++ src/styles/slider.less | 4 +-- 5 files changed, 51 insertions(+), 26 deletions(-) diff --git a/src/components/dialogs/MapListMoreDialog.jsx b/src/components/dialogs/MapListMoreDialog.jsx index 30880e9..0798a5f 100644 --- a/src/components/dialogs/MapListMoreDialog.jsx +++ b/src/components/dialogs/MapListMoreDialog.jsx @@ -62,6 +62,22 @@ class Component extends React.Component { return (
+ { list.length === 0 && loading && +
+
+ +
+
+ } + { ready && !loading && list.length === 0 && +
+
+ +
+ ТУТ ПУСТО
+ И ОДИНОКО +
+ }
{ Object.keys(TABS).map(item => ( @@ -105,6 +121,7 @@ class Component extends React.Component {
+
{ @@ -116,24 +133,9 @@ class Component extends React.Component { /> )) } - { list.length === 0 && loading && -
-
- -
- Загрузка -
- } - { ready && !loading && list.length === 0 && -
-
- -
- НИЧЕГО НЕ НАЙДЕНО -
- }
+ ); } diff --git a/src/sprites/icon.svg b/src/sprites/icon.svg index 9e90b19..e25dacc 100644 --- a/src/sprites/icon.svg +++ b/src/sprites/icon.svg @@ -358,8 +358,17 @@ + + + + + + + + + - + diff --git a/src/styles/dialogs.less b/src/styles/dialogs.less index 6d7d408..9d3f8a0 100644 --- a/src/styles/dialogs.less +++ b/src/styles/dialogs.less @@ -125,7 +125,6 @@ } .dialog-maplist-loader { - height: 60px; display: flex; margin-bottom: 10px; text-transform: uppercase; @@ -133,20 +132,31 @@ align-items: center; justify-content: center; user-select: none; - position: relative; - opacity: 0.5; - padding-left: 60px; + opacity: 0.1; + + position: absolute; + width: 100%; + height: 100%; + pointer-events: none; + padding-top: 200px; + box-sizing: border-box; + font-weight: 600; + font-size: 20px; + text-align: center; .spin { animation: spin infinite reverse 2s linear; } .dialog-maplist-icon { position: absolute; - left: 0; + left: 50%; + top: 50%; + margin-left: -100px; + margin-top: -100px; svg { - width: 60px; - height: 60px; + width: 200px; + height: 200px; fill: white; } } diff --git a/src/styles/main.less b/src/styles/main.less index 3fcc7dd..c516993 100644 --- a/src/styles/main.less +++ b/src/styles/main.less @@ -148,3 +148,7 @@ input { font-size: 14px; font-weight: 200; } + +.relative { + position: relative; +} diff --git a/src/styles/slider.less b/src/styles/slider.less index aee280f..243e8be 100644 --- a/src/styles/slider.less +++ b/src/styles/slider.less @@ -46,8 +46,8 @@ left: 0; height: 4px; border-radius: @border-radius-base; - background: linear-gradient(270deg, @red_secondary, @blue_secondary) fixed 20px 0; - background-size: 320px 100px; + background: linear-gradient(270deg, @red_secondary, @blue_secondary); + // background-size: 320px 100px; } &-handle {