From c4b348f4a5b7a1a3ef08b90078c688f1f4fd1073 Mon Sep 17 00:00:00 2001 From: Boris Voropaev Date: Wed, 29 Nov 2023 17:31:12 +0300 Subject: [PATCH] fix css --- .../basic/cards/cards-section.component.html | 2 +- .../users/profile/user-profile.component.html | 2 +- .../layout/header/header.component.html | 2 +- src/vniigaz-v2/css/_basics.scss | 55 ++++++++++++------ src/vniigaz-v2/css/_registry.scss | 56 ++++++++++--------- 5 files changed, 70 insertions(+), 47 deletions(-) diff --git a/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.html b/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.html index 5290d1a..177f51c 100644 --- a/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.html +++ b/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.html @@ -1,4 +1,4 @@
- +
diff --git a/src/app/_modules/users/profile/user-profile.component.html b/src/app/_modules/users/profile/user-profile.component.html index 7fa3089..d4d054e 100644 --- a/src/app/_modules/users/profile/user-profile.component.html +++ b/src/app/_modules/users/profile/user-profile.component.html @@ -1,5 +1,5 @@
-

Личный кабинет

+

Личный кабинет

diff --git a/src/vniigaz-v2/component/layout/header/header.component.html b/src/vniigaz-v2/component/layout/header/header.component.html index 7990a1c..6a6bbef 100644 --- a/src/vniigaz-v2/component/layout/header/header.component.html +++ b/src/vniigaz-v2/component/layout/header/header.component.html @@ -9,7 +9,7 @@ diff --git a/src/vniigaz-v2/css/_basics.scss b/src/vniigaz-v2/css/_basics.scss index 874f31d..5a1b4b8 100644 --- a/src/vniigaz-v2/css/_basics.scss +++ b/src/vniigaz-v2/css/_basics.scss @@ -337,26 +337,47 @@ html-section ul{ } } - -.locale{ - position: relative; - .locale-btn{ - display: inline-flex; - } - .dropdown{ - top: auto; - left: -96px; - bottom: 27px; - - } - img{ - height:18px; - width:27px; - object-fit: cover; - border: 1px solid lightgray; +header{ + .locale{ + position: relative; + .locale-btn{ + display: inline-flex; + } + .dropdown{ + top: 27px; + left: -120px; + } + img{ + height:18px; + width:27px; + object-fit: cover; + border: 1px solid lightgray; + } } } +footer{ + .locale{ + position: relative; + .locale-btn{ + display: inline-flex; + } + .dropdown{ + top: auto; + left: -96px; + bottom: 27px; + + } + img{ + height:18px; + width:27px; + object-fit: cover; + border: 1px solid lightgray; + } + } +} + + @media screen and (min-width: 1330px) { .fullwidth { diff --git a/src/vniigaz-v2/css/_registry.scss b/src/vniigaz-v2/css/_registry.scss index c34aca1..1479c9c 100644 --- a/src/vniigaz-v2/css/_registry.scss +++ b/src/vniigaz-v2/css/_registry.scss @@ -57,40 +57,42 @@ registry-entries { display: block; padding-bottom: 24px; } - -.bar { - display: flex; - flex-direction: row; - align-items: center; - padding: 24px; - margin-bottom: 24px; - border-radius: 20px; - .name { - margin-right: auto; - font-size: 1.125rem; - font-weight: 700; - } - .menu { +registry-category{ + .bar { display: flex; flex-direction: row; - gap: 24px; - button { - width: 24px; - height: 24px; + align-items: center; + padding: 12px 24px; + margin-bottom: 24px; + cursor: pointer; + .name { + margin-right: auto; + font-size: 1.125rem; + font-weight: 700; } - } - .expand { - margin-left: 48px; - button { - width: 24px; - height: 24px; - transform: rotateZ(180deg); - transition: transform 0.3s; - &.less {transform: rotateZ(0);} + .menu { + display: flex; + flex-direction: row; + gap: 24px; + button { + width: 24px; + height: 24px; + } + } + .expand { + margin-left: 48px; + button { + width: 24px; + height: 24px; + transform: rotateZ(180deg); + transition: transform 0.3s; + &.less {transform: rotateZ(0);} + } } } } + .items { min-height: 20px; }