Skip to content

Commit eea70ea

Browse files
vitya-neskorobaeus
andauthored
Исправляет стили выпадающего меню (#1306)
* Показывает хоткей начиная с 1024px * Устраняет наползание меню на заголовок * Подстраивает иконку закрытия поиска * Учитывает сжатие хэдера * Ровняет хоткеи наждачкой --------- Co-authored-by: Svetlana Korobtseva <wizzzjer@gmail.com>
1 parent 929e69d commit eea70ea

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

src/styles/blocks/header-button.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797

9898
@media (width >= 1366px) {
9999
.header-button-icon--close {
100-
width: 37px;
101-
height: 37px;
100+
width: 36px;
101+
height: 36px;
102102
}
103103
}
104104

src/styles/blocks/header.css

+28-1
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,36 @@
5151
@media (width >= 1024px) {
5252
.header--open .header__menu {
5353
position: fixed;
54+
top: 75px;
55+
}
56+
57+
.header--open .header__controls--shrink + .header__menu {
5458
top: 55px;
5559
}
5660
}
5761

62+
@media (width >= 1366px) {
63+
.header--open .header__menu {
64+
position: fixed;
65+
top: 76px;
66+
}
67+
68+
.header--open .header__controls--shrink + .header__menu {
69+
top: 56px;
70+
}
71+
}
72+
73+
@media (width >= 1680px) {
74+
.header--open .header__menu {
75+
position: fixed;
76+
top: 83px;
77+
}
78+
79+
.header--open .header__controls--shrink + .header__menu {
80+
top: 63px;
81+
}
82+
}
83+
5884
/* содержимое главного меню (без дропдауна) */
5985
.header__controls {
6086
--letter-spacing: -0.06em;
@@ -100,6 +126,7 @@
100126

101127
.header--open .header__controls {
102128
background-color: var(--color-background);
129+
transition: none;
103130
}
104131

105132
.header__divider {
@@ -123,7 +150,7 @@
123150
}
124151

125152
@media (width >= 1680px) {
126-
.header__controls .header__search {
153+
.header__controls .header__search, .header__controls .header__buttons {
127154
position: relative;
128155
top: -2px;
129156
}

src/styles/blocks/hotkey.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
}
2020

21-
@media not all and (width >= 768px) {
21+
@media not all and (width >= 1024px) {
2222
.hotkey {
2323
display: none;
2424
}

0 commit comments

Comments
 (0)