Skip to content

Commit

Permalink
#152 made the searchbar visible while its hovered
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIntaqt committed Apr 4, 2023
1 parent bd013e3 commit e8c4fdf
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
width: fit-content;
position: relative;

&:hover {
&:hover,
&:focus {
.inner {
outline: 2px solid $light3;
}
Expand Down Expand Up @@ -209,7 +210,8 @@
}
}

&.active {
&.active,
&:hover {

.results {
visibility: visible;
Expand All @@ -234,6 +236,15 @@
}
}

&.active {

.searchbar {
border: 2px solid $selected;
box-shadow: 0 0 5px $selected;
}

}

.searchbar {
position: relative;
z-index: 10;
Expand All @@ -243,6 +254,9 @@
box-shadow: 0 0 5px #000;
background-color: $dark2;
border-radius: 10px;
border: 2px solid transparent;

transition: .25s box-shadow, .25s border, .25s color, .25s background-color;

overflow: hidden;

Expand All @@ -251,8 +265,6 @@
align-items: center;
justify-content: center;

transition: .25s color, .25s background-color;

input {
flex: 1;
background-color: $dark2;
Expand All @@ -264,8 +276,6 @@

color: $light3;
transition: .25s color, .25s background-color;


}

select {
Expand Down

0 comments on commit e8c4fdf

Please sign in to comment.