From 07c60f4f45685bc97510e4938aef0f36b63a542e Mon Sep 17 00:00:00 2001 From: Lia Lenckowski Date: Wed, 9 Aug 2023 23:46:30 +0200 Subject: css/infrastructure for bang search suggestions dropdown --- frontend/style.sass | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) (limited to 'frontend/style.sass') diff --git a/frontend/style.sass b/frontend/style.sass index ca3921b..31827b2 100644 --- a/frontend/style.sass +++ b/frontend/style.sass @@ -41,7 +41,7 @@ section.engine-select flex-direction: row flex-wrap: wrap li - background-color: #000000 + background-color: black border-radius: 0.5em padding: 1em margin: 0.5em @@ -51,6 +51,32 @@ section.engine-select transition: background-color 0.1s ease-out &:hover background-color: $ac-dark + &#select-engine-li + position: relative + ul.dropdown + position: absolute + display: none + left: 1em + padding: 0 + background-color: $dark + background-color: black + border: 0.15em solid $light + border-top: 0 + border-radius: 0.5em + cursor: pointer + li + padding: 1em + margin: 0 + background-color: #000 + &:hover + background-color: $ac-dark + p + margin: 0 + &.name + color: white + &.bang + color: gray + font-size: small section.search width: 100vw @@ -92,7 +118,7 @@ label margin-right: 1em a - color: $light - transition: color 0.2s - &:hover - color: $ac-light + color: $light + transition: color 0.2s + &:hover + color: $ac-light -- cgit v1.2.3-70-g09d2