From a65fd6cca6dfcdb9bf5e6d41e0fdf761565d081b Mon Sep 17 00:00:00 2001 From: asonix Date: Tue, 26 Jan 2021 20:28:38 -0600 Subject: [PATCH] Toolkit: Add search bar styles --- toolkit/scss/toolkit.scss | 46 +++++++++++++++++++++++++++++++- toolkit/templates/search.rs.html | 9 +++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 toolkit/templates/search.rs.html diff --git a/toolkit/scss/toolkit.scss b/toolkit/scss/toolkit.scss index a3f9148..f5f5244 100644 --- a/toolkit/scss/toolkit.scss +++ b/toolkit/scss/toolkit.scss @@ -48,6 +48,38 @@ img { object-fit: contain; } +.toolkit-search { + display: flex; + width: 100%; + align-items: center; + border-radius: 3px; + + .toolkit-input { + width: 100%; + height: 40px; + padding: 0; + + .toolkit-input--input { + height: 40px; + border-radius: 3px 0 0 3px; + border-right: 0; + + &:hover, + &:active, + &:focus { + border-right: 0; + } + } + } + + .toolkit-button { + border-radius: 0 3px 3px 0; + height: 40px; + border-left: 0; + box-shadow: 0; + } +} + .toolkit-thumbnails { display: flex; flex-wrap: wrap; @@ -560,10 +592,18 @@ img { margin-bottom: 32px; overflow: hidden; + > div:first-child { + border-top: 0; + } + &.toolkit-dark { background-color: $dark-body; color: $dark-text; + > div:first-child { + border-top: 0; + } + .toolkit-card--title { background-color: $dark-heading; } @@ -638,7 +678,7 @@ img { color: $white; &:hover { - border-color: $primary-border-hover; + border-color: $primary-border; background-color: $primary-hover; } } @@ -860,6 +900,10 @@ img { justify-content: space-around; align-items: center; } + + .toolkit-search .toolkit-button { + min-width: 90px; + } } @media(max-width: 700px) { diff --git a/toolkit/templates/search.rs.html b/toolkit/templates/search.rs.html new file mode 100644 index 0000000..1fcfcd8 --- /dev/null +++ b/toolkit/templates/search.rs.html @@ -0,0 +1,9 @@ +@use crate::templates::{text_input, button_group}; +@use crate::{TextInput, Button}; + +@(text: TextInput, btn: Button) + +