-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: styles clean up and fix the clear state issue
- Loading branch information
1 parent
7d01f53
commit 4f03e5b
Showing
3 changed files
with
23 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,31 @@ | ||
.search-bar { | ||
margin-right: 0; | ||
margin-bottom: 0; | ||
background-color: var(--N0); | ||
display: block; | ||
width: 100%; | ||
min-width: 200px; | ||
height: 32px; | ||
position: relative; | ||
|
||
&:focus, &:focus-within { | ||
&:focus, | ||
&:focus-within { | ||
outline: none; | ||
border: solid 1px var(--B500); | ||
} | ||
|
||
&__input { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 4px; | ||
border: none; | ||
padding: 6px 10px 6px 30px; | ||
font-size: 13px; | ||
line-height: 20px; | ||
color: var(--N900); | ||
|
||
&--applied { | ||
width: calc(100% - 22px); | ||
} | ||
|
||
&:focus, | ||
&:focus-visible { | ||
border: none; | ||
outline: none; | ||
} | ||
|
||
&::placeholder { | ||
font-weight: 400; | ||
color: var(--N500); | ||
} | ||
} | ||
|
||
&__icon { | ||
position: absolute; | ||
z-index: 1; | ||
color: var(--N600); | ||
top: 50%; | ||
left: 8px; | ||
transform: translateY(-50%); | ||
line-height: 1.9; | ||
} | ||
|
||
&__clear-button { | ||
background-color: transparent; | ||
position: absolute; | ||
right: 0; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
z-index: 1; | ||
border: none; | ||
padding: 2px; | ||
color: var(--N600); | ||
margin: 0px 5px; | ||
} | ||
} |