Skip to content

Commit a467573

Browse files
committed
fix: search modal positioning
1 parent 8d06c74 commit a467573

File tree

1 file changed

+60
-8
lines changed
  • dokka-subprojects/plugin-base-frontend/src/main/components/search

1 file changed

+60
-8
lines changed

dokka-subprojects/plugin-base-frontend/src/main/components/search/search.scss

+60-8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
$font-color: rgba(255, 255, 255, 0.96);
88
$secondary-font-color: rgba(255, 255, 255, 0.7);
9+
$input-height-desktop: 40px;
10+
$input-height-mobile: 50px;
911

1012
#pages-search {
1113
width: 40px;
@@ -26,7 +28,7 @@ $secondary-font-color: rgba(255, 255, 255, 0.7);
2628
}
2729
}
2830

29-
@media (width < 900px) {
31+
@media (width < $breakpoint-desktop-min) {
3032
#pages-search {
3133
width: 52px;
3234
height: 52px;
@@ -58,50 +60,94 @@ $secondary-font-color: rgba(255, 255, 255, 0.7);
5860
}
5961

6062
span[data-test-custom='ring-select-popup-filter-icon'] {
61-
top: 11px;
62-
left: 14px;
63+
top: 10px;
64+
left: 11px;
65+
66+
@media (width < $breakpoint-desktop-min) {
67+
top: 14px;
68+
left: 11px;
69+
}
6370

6471
svg {
65-
width: 18px !important;
66-
height: 18px !important;
72+
width: 20px !important;
73+
height: 20px !important;
6774
}
6875
}
6976

7077
.popup-wrapper {
7178
min-width: 636px !important;
7279

80+
margin-top: -42px;
81+
7382
color: $font-color;
7483

7584
border: 1px solid hsla(0deg, 0%, 100%, 0.2) !important;
7685

7786
background-color: #27282c !important;
7887

88+
@media (width < $breakpoint-desktop-min) {
89+
top: 41px !important;
90+
right: -1px !important;
91+
bottom: -1px !important;
92+
left: -1px !important;
93+
}
94+
7995
[class^='filterWrapper'] {
8096
margin-bottom: 4px;
8197

98+
padding-right: 0;
99+
82100
border-bottom: 1px solid hsla(0deg, 0%, 100%, 0.2);
83101
}
84102

85103
input {
86-
height: 40px;
104+
height: $input-height-desktop;
105+
106+
padding-right: 52px;
87107

88108
color: #fff;
89109

90110
font-size: 16px;
91111

92112
font-weight: normal !important;
113+
114+
@media (width < $breakpoint-desktop-min) {
115+
height: $input-height-mobile;
116+
}
93117
}
94118

95119
span[data-test-custom='ring-select-popup-filter-icon'] {
96120
color: #fff;
97121
}
98122

99123
button[data-test='ring-input-clear'] {
100-
top: 10px;
101-
right: 6px;
124+
top: 0;
125+
right: 0;
126+
127+
padding: 10px 9px;
128+
129+
transition: none;
102130

103131
color: #fff !important;
104132

133+
border-radius: 0;
134+
135+
line-height: 21px;
136+
137+
&:focus-visible {
138+
outline: var(--focus-outline);
139+
outline-offset: -4px;
140+
box-shadow: none;
141+
}
142+
143+
&:hover {
144+
background-color: var(--color-w10);
145+
}
146+
147+
@media (width < $breakpoint-desktop-min) {
148+
padding: 15px 9px;
149+
}
150+
105151
span {
106152
display: none;
107153
}
@@ -213,4 +259,10 @@ div[data-test='ring-select-popup-filter'] {
213259

214260
div[data-test='ring-popup'] {
215261
border-radius: 0;
262+
263+
& .ReactVirtualized__List {
264+
@media (width < $breakpoint-desktop-min) {
265+
max-height: calc(100vh - $input-height-mobile) !important;
266+
}
267+
}
216268
}

0 commit comments

Comments
 (0)