-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLORA-388] Reverse depenencies search bar
Co-Authored-By: Dylan Thinnes <dylan.thinnes@protonmail.com>
- Loading branch information
1 parent
60132bb
commit 2cb7b20
Showing
19 changed files
with
419 additions
and
183 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* stylelint-disable selector-class-pattern */ | ||
/* stylelint-disable declaration-block-no-redundant-longhand-properties */ | ||
|
||
.main-search { | ||
background-color: var(--search-bar-background-color); | ||
border-radius: 0.75rem; | ||
border-width: 2px; | ||
display: flex; | ||
font-size: 1.5rem; | ||
justify-content: center; | ||
line-height: 2rem; | ||
max-width: 28rem; | ||
outline-offset: -2px; | ||
overflow: hidden; | ||
padding: 0.5rem; | ||
|
||
.search-bar { | ||
background-color: var(--search-bar-background-color); | ||
color: var(--search-bar-color); | ||
display: block; | ||
margin-left: 0.5rem; | ||
font-size: 1.5rem; | ||
line-height: 2rem; | ||
padding: 0.5rem; | ||
flex-grow: 1; | ||
min-width: 0; | ||
} | ||
|
||
.search-bar:hover { | ||
background-color: var(--search-bar-background-hover-color); | ||
} | ||
|
||
.search-bar:focus { | ||
background-color: var(--search-bar-background-focus-color); | ||
outline: 2px solid transparent; | ||
outline-offset: 2px; | ||
} | ||
} | ||
|
||
.main-search:focus-within { | ||
border-color: var(--search-bar-focus-border-color); | ||
transition-property: box-shadow; | ||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); | ||
transition-duration: 400ms; | ||
|
||
/* offset-x | offset-y | blur-radius | spread-radius | color */ | ||
box-shadow: 5px 5px 5px 2px var(--search-bar-focus-border-color); | ||
} | ||
|
||
.main-search button { | ||
margin-bottom: 1.25rem; | ||
margin-right: 1rem; | ||
margin-top: 1.25rem; | ||
|
||
svg { | ||
width: 1.5rem; | ||
height: 1.5rem; | ||
margin-top: auto; | ||
margin-bottom: auto; | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* stylelint-disable selector-class-pattern */ | ||
/* stylelint-disable declaration-block-no-redundant-longhand-properties */ | ||
|
||
.secondary-search { | ||
background-color: var(--search-bar-background-color); | ||
border-radius: 0.75rem; | ||
border-width: 2px; | ||
display: flex; | ||
font-size: 1rem; | ||
justify-content: center; | ||
line-height: 2rem; | ||
max-width: 20rem; | ||
outline-offset: -2px; | ||
overflow: hidden; | ||
padding: 0.3rem; | ||
|
||
.search-bar { | ||
background-color: var(--search-bar-background-color); | ||
color: var(--search-bar-color); | ||
display: block; | ||
font-size: 1.5rem; | ||
line-height: 2rem; | ||
padding: 0.5rem; | ||
flex-grow: 1; | ||
min-width: 0; | ||
} | ||
|
||
.search-bar:hover { | ||
background-color: var(--search-bar-background-hover-color); | ||
} | ||
|
||
.search-bar:focus { | ||
background-color: var(--search-bar-background-focus-color); | ||
outline: transparent solid 2px; | ||
outline-offset: 2px; | ||
} | ||
} | ||
|
||
.secondary-search:focus-within { | ||
border-color: var(--search-bar-focus-border-color); | ||
transition-property: box-shadow; | ||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); | ||
transition-duration: 300ms; | ||
|
||
/* offset-x | offset-y | blur-radius | spread-radius | color */ | ||
box-shadow: 4px 4px 4px 1px var(--search-bar-focus-border-color); | ||
} | ||
|
||
.secondary-search button { | ||
margin-bottom: 1.25rem; | ||
margin-right: 1rem; | ||
margin-top: 1.25rem; | ||
|
||
svg { | ||
width: 1em; | ||
height: 1em; | ||
margin-top: auto; | ||
margin-bottom: auto; | ||
} | ||
} | ||
|
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
Oops, something went wrong.