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

Commit 8d7c63b

Browse files
committed
refactor: 💡 linted scss for searchbar and layout
1 parent 64aff6f commit 8d7c63b

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

src/components/SearchBar/SearchBar.scss

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
.searchBarContainer {
2-
display: flex;
3-
flex-direction: column;
4-
width: 34em;
5-
height: 3.8em;
62
background-color: var(--color-fill-top-nav);
73
border-radius: 6px;
84
box-shadow: 0px 2px 12px 3px rgba(0, 0, 0, 0.14);
5+
display: flex;
6+
flex-direction: column;
7+
height: 3.8em;
8+
width: 34em;
99
}
1010

1111
.searchInputContainer {
12-
width: 100%;
13-
min-height: 4em;
14-
display: flex;
1512
align-items: center;
16-
position: relative;
13+
display: flex;
14+
min-height: 4em;
1715
padding: 2px 15px;
16+
position: relative;
17+
width: 100%;
1818
}
1919

2020
.inputText {
21-
width: 100%;
22-
height: 100%;
23-
outline: none;
21+
background-color: transparent;
2422
border: none;
25-
font-size: var(--font-size-body3);
23+
border-radius: 6px;
2624
color: var(--color-text-primary);
25+
font-size: var(--font-size-body3);
2726
font-weight: 500;
28-
border-radius: 6px;
29-
background-color: transparent;
30-
27+
height: 100%;
28+
outline: none;
29+
width: 100%;
3130
&:focus {
3231
outline: none;
3332
&::placeholder {
@@ -56,26 +55,26 @@
5655
}
5756

5857
.searchContent {
59-
width: 100%;
60-
height: 100%;
6158
display: flex;
6259
flex-direction: column;
60+
height: 100%;
6361
overflow-y: auto;
62+
width: 100%;
6463
}
6564

6665
.loadingWrapper {
67-
width: 100%;
68-
height: 100%;
69-
display: flex;
7066
align-items: center;
67+
display: flex;
68+
height: 100%;
7169
justify-content: center;
70+
width: 100%;
7271
}
7372

7473
.warningMessage {
74+
align-self: center;
7575
color: var(--color-text-primary);
76-
font-size: 14px;
7776
display: flex;
78-
align-self: center;
77+
font-size: 14px;
7978
justify-self: center;
8079
}
8180

src/styles/layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ select {
313313
}
314314

315315
.nav .right-container > li:first-child {
316+
height: 3em;
316317
position: relative;
317318
top: 0;
318-
height: 3em;
319319
}
320320

321321
.nav__tabs {

0 commit comments

Comments
 (0)