Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit b8d1512

Browse files
authored
fix(LAND-528-4): removed typesense.yaml, fixed search styles in dark … (#183)
* fix(LAND-528-4): removed typesense.yaml, fixed search styles in dark theme * fix(LAND-528-4): fixed styles of search in accordiance with figma blog * fix(LAND-528-4): fixed colors bg and borders
1 parent 30452e0 commit b8d1512

File tree

2 files changed

+117
-101
lines changed

2 files changed

+117
-101
lines changed

.github/workflows/typesense.yaml

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/css/custom.css

Lines changed: 117 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@
2424
--1inch-bg-card: #FFFFFF;
2525
--1inch-bg-header: #06070A;
2626
--1inch-bg-toggle: #202835;
27+
--1inch-bg-search-hover: #465c7c;
28+
--1inch-bg-search-input: #444950;
2729
--1inch-shadow-1: 0 0 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.25);
2830
--1inch-shadow-2: none;
2931
--1inch-text-2-hover: #FBFBFB;
32+
--1inch-item-border: #232E3D;
3033
}
3134

3235
:root[data-theme='light'] {
@@ -46,9 +49,12 @@
4649
--1inch-bg-6: #ECF0F9;
4750
--1inch-bg-header: #FFFFFF;
4851
--1inch-bg-toggle: #ECF0F9;
52+
--1inch-bg-search-hover: #6C86AD;
53+
--1inch-bg-search-input: rgba(0, 0, 0, .1);
4954
--1inch-shadow-1: 0 0 4px rgba(71, 73, 79, 0.05), 0 1px 2px rgba(71, 73, 79, 0.05);
5055
--1inch-shadow-2: 0 0 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.25);
5156
--1inch-text-2-hover: #222222;
57+
--1inch-item-border: #E3E7EE;
5258
}
5359

5460
/*--Article color--*/
@@ -91,7 +97,8 @@
9197
}
9298

9399
/* Switch images to match the theme color */
94-
[data-theme-mode='dark'], [data-theme-mode='light'] {
100+
[data-theme-mode='dark'],
101+
[data-theme-mode='light'] {
95102
display: none;
96103
}
97104

@@ -102,9 +109,14 @@ html[data-theme='dark'] [data-theme-mode='dark'] {
102109
html[data-theme='light'] [data-theme-mode='light'] {
103110
display: block;
104111
}
112+
105113
/* */
106114

107-
p, a, h1, h2, h3 {
115+
p,
116+
a,
117+
h1,
118+
h2,
119+
h3 {
108120
margin: 0;
109121
text-decoration: none;
110122
}
@@ -205,7 +217,7 @@ html {
205217

206218
.menu__list-item--collapsed .menu__link::after,
207219
.menu__link--sublist.menu__link::after,
208-
.menu__link--sublist ~ .menu__list .menu__link::after {
220+
.menu__link--sublist~.menu__list .menu__link::after {
209221
content: "";
210222
}
211223

@@ -232,7 +244,7 @@ html {
232244
background: var(--1inch-bg-4);
233245
}
234246

235-
.dropdown > .navbar__link:after {
247+
.dropdown>.navbar__link:after {
236248
content: url("../../static/img/icons/chevron-dark.svg");
237249
border: none;
238250
transform: none;
@@ -241,7 +253,7 @@ html {
241253
top: 3px;
242254
}
243255

244-
html[data-theme='dark'] .dropdown > .navbar__link:after {
256+
html[data-theme='dark'] .dropdown>.navbar__link:after {
245257
content: url("../../static/img/icons/chevron-light.svg");
246258
opacity: 0.6;
247259
}
@@ -265,7 +277,7 @@ html[data-theme='dark'] .dropdown > .navbar__link:after {
265277
display: block;
266278
}
267279

268-
/* header END */
280+
/* header END */
269281

270282
.fileDownload_src-components-file-download-FileDownload-module {
271283
border-color: var(--1inch-border) !important;
@@ -285,21 +297,58 @@ html[data-theme='dark'] .dropdown > .navbar__link:after {
285297
color: var(--1inch-title) !important;
286298
}
287299

288-
.swagger-ui .info h1, .swagger-ui .info h2, .swagger-ui .info h3, .swagger-ui .info h4, .swagger-ui .info h5 {
300+
.swagger-ui .info h1,
301+
.swagger-ui .info h2,
302+
.swagger-ui .info h3,
303+
.swagger-ui .info h4,
304+
.swagger-ui .info h5 {
289305
color: var(--1inch-title) !important;
290306
}
291307

292-
.swagger-ui .border-box, .swagger-ui a, .swagger-ui article, .swagger-ui body, .swagger-ui code, .swagger-ui dd,
293-
.swagger-ui div, .swagger-ui dl, .swagger-ui dt, .swagger-ui fieldset, .swagger-ui footer, .swagger-ui form,
294-
.swagger-ui h1, .swagger-ui h2, .swagger-ui h3, .swagger-ui h4, .swagger-ui h5, .swagger-ui h6, .swagger-ui header,
295-
.swagger-ui html, .swagger-ui input[type=email], .swagger-ui input[type=number], .swagger-ui input[type=password],
296-
.swagger-ui input[type=tel], .swagger-ui input[type=text], .swagger-ui input[type=url], .swagger-ui legend,
297-
.swagger-ui li, .swagger-ui main, .swagger-ui ol, .swagger-ui p, .swagger-ui pre, .swagger-ui section, .swagger-ui table,
298-
.swagger-ui td, .swagger-ui textarea, .swagger-ui th, .swagger-ui tr, .swagger-ui ul {
308+
.swagger-ui .border-box,
309+
.swagger-ui a,
310+
.swagger-ui article,
311+
.swagger-ui body,
312+
.swagger-ui code,
313+
.swagger-ui dd,
314+
.swagger-ui div,
315+
.swagger-ui dl,
316+
.swagger-ui dt,
317+
.swagger-ui fieldset,
318+
.swagger-ui footer,
319+
.swagger-ui form,
320+
.swagger-ui h1,
321+
.swagger-ui h2,
322+
.swagger-ui h3,
323+
.swagger-ui h4,
324+
.swagger-ui h5,
325+
.swagger-ui h6,
326+
.swagger-ui header,
327+
.swagger-ui html,
328+
.swagger-ui input[type=email],
329+
.swagger-ui input[type=number],
330+
.swagger-ui input[type=password],
331+
.swagger-ui input[type=tel],
332+
.swagger-ui input[type=text],
333+
.swagger-ui input[type=url],
334+
.swagger-ui legend,
335+
.swagger-ui li,
336+
.swagger-ui main,
337+
.swagger-ui ol,
338+
.swagger-ui p,
339+
.swagger-ui pre,
340+
.swagger-ui section,
341+
.swagger-ui table,
342+
.swagger-ui td,
343+
.swagger-ui textarea,
344+
.swagger-ui th,
345+
.swagger-ui tr,
346+
.swagger-ui ul {
299347
color: var(--1inch-title) !important;
300348
}
301349

302-
.arrow, button {
350+
.arrow,
351+
button {
303352
fill: var(--1inch-bg-3);
304353
}
305354

@@ -311,7 +360,8 @@ html[data-theme='dark'] .dropdown > .navbar__link:after {
311360
color: var(--1inch-title) !important;
312361
}
313362

314-
.model-box-control, .model-box {
363+
.model-box-control,
364+
.model-box {
315365
color: var(--1inch-title) !important;
316366
}
317367

@@ -372,7 +422,9 @@ html[data-theme='dark'] .swagger-ui .model-toggle:after {
372422
padding-right: 0 !important;
373423
}
374424

375-
.swagger-ui input[disabled], .swagger-ui select[disabled], .swagger-ui textarea[disabled],
425+
.swagger-ui input[disabled],
426+
.swagger-ui select[disabled],
427+
.swagger-ui textarea[disabled],
376428
.swagger-ui .parameters-col_description input[type=text] {
377429
background: var(--1inch-bg-4) !important;
378430
border-color: var(--1inch-border) !important;
@@ -397,13 +449,56 @@ html[data-theme='dark'] .swagger-ui .model-toggle:after {
397449
color: var(--1inch-common-title) !important;
398450
border: none;
399451
}
452+
400453
/* swagger END */
401454

402455
/* Changed search styles */
403-
.searchResultsSection_nuUe {
456+
[class*="searchResultsSection_"] {
404457
max-height: 100% !important;
405458
}
406459

460+
.container [class*="searchQueryInput_"] {
461+
background: var(--1inch-bg-search-input);
462+
border: 1px solid transparent;
463+
margin-top: 32px;
464+
}
465+
466+
.container [class*="searchQueryInput_"]:focus-visible {
467+
outline: none;
468+
box-shadow: 0 1px 0 0 var(--1inch-common-button) inset, 0 -1px 0 0 var(--1inch-common-button) inset, 1px 0 0 0 var(--1inch-common-button) inset, -1px 0 0 0 var(--1inch-common-button) inset !important;
469+
}
470+
471+
.container [class*="searchResultItem_"] {
472+
border-color: var(--1inch-item-border);
473+
}
474+
475+
[class*="searchBox_"] [class*="searchModal_"] {
476+
background: rgba(0, 0, 0, 0.50);
477+
}
478+
479+
[class*="searchModal_"] [class*="searchModalContainer_"] {
480+
box-shadow: none;
481+
border: 1px solid transparent;
482+
}
483+
484+
[class*="searchModal_"] [class*="searchInputContainer_"] {
485+
box-shadow: none;
486+
background: var(--1inch-bg-search-input);
487+
}
488+
489+
[class*="searchModal_"] [class*="searchResultsSectionHeader_"] {
490+
color: var(--1inch-text)
491+
}
492+
493+
[class*="searchModal_"] [class*="searchResult_"] {
494+
background: var(--1inch-bg-toggle);
495+
margin-bottom: 8px;
496+
}
497+
498+
[class*="searchModal_"] [class*="searchResult_"][class*="cursor_"] {
499+
background: var(--1inch-bg-search-hover) !important;
500+
}
501+
407502
/* Adaptive START */
408503
@media (max-width: 1440px) {
409504
.navbar__link {
@@ -474,9 +569,9 @@ html[data-theme='dark'] .swagger-ui .model-toggle:after {
474569
font-size: 18px;
475570
}
476571

477-
.navbar__item {
478-
display: none;
479-
}
572+
.navbar__item {
573+
display: none;
574+
}
480575

481576
.navbar__toggle {
482577
display: block !important;
@@ -503,4 +598,5 @@ html[data-theme='dark'] .swagger-ui .model-toggle:after {
503598
width: 100%
504599
}
505600
}
601+
506602
/* Adaptive END */

0 commit comments

Comments
 (0)