Toolkit: Add search bar styles
This commit is contained in:
parent
a9166f3984
commit
a65fd6cca6
|
@ -48,6 +48,38 @@ img {
|
||||||
object-fit: contain;
|
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 {
|
.toolkit-thumbnails {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
@ -560,10 +592,18 @@ img {
|
||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
> div:first-child {
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
&.toolkit-dark {
|
&.toolkit-dark {
|
||||||
background-color: $dark-body;
|
background-color: $dark-body;
|
||||||
color: $dark-text;
|
color: $dark-text;
|
||||||
|
|
||||||
|
> div:first-child {
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.toolkit-card--title {
|
.toolkit-card--title {
|
||||||
background-color: $dark-heading;
|
background-color: $dark-heading;
|
||||||
}
|
}
|
||||||
|
@ -638,7 +678,7 @@ img {
|
||||||
color: $white;
|
color: $white;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: $primary-border-hover;
|
border-color: $primary-border;
|
||||||
background-color: $primary-hover;
|
background-color: $primary-hover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -860,6 +900,10 @@ img {
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toolkit-search .toolkit-button {
|
||||||
|
min-width: 90px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(max-width: 700px) {
|
@media(max-width: 700px) {
|
||||||
|
|
9
toolkit/templates/search.rs.html
Normal file
9
toolkit/templates/search.rs.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
@use crate::templates::{text_input, button_group};
|
||||||
|
@use crate::{TextInput, Button};
|
||||||
|
|
||||||
|
@(text: TextInput, btn: Button)
|
||||||
|
|
||||||
|
<div class="toolkit-search">
|
||||||
|
@:text_input(&text)
|
||||||
|
@:button_group(&[btn])
|
||||||
|
</div>
|
Loading…
Reference in a new issue