mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
54 lines
1.1 KiB
SCSS
54 lines
1.1 KiB
SCSS
.bd-search {
|
|
position: relative;
|
|
width: 100%;
|
|
|
|
&::after {
|
|
position: absolute;
|
|
top: .4rem;
|
|
right: .4rem;
|
|
bottom: .4rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding-right: .3125rem;
|
|
padding-left: .3125rem;
|
|
@include font-size(.75rem);
|
|
color: rgba($white, .65);
|
|
// content: "⌘K";
|
|
content: attr(data-shortcut);
|
|
background-color: rgba($white, .1);
|
|
@include border-radius(.125rem);
|
|
}
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
position: absolute;
|
|
top: .75rem;
|
|
left: 50%;
|
|
width: 200px;
|
|
margin-left: -100px;
|
|
}
|
|
|
|
@include media-breakpoint-up(xl) {
|
|
width: 280px;
|
|
margin-left: -140px;
|
|
}
|
|
|
|
.form-control {
|
|
padding-right: 3.75rem;
|
|
color: $white;
|
|
background-color: rgba($black, .1);
|
|
border-color: rgba($white, .4);
|
|
transition-property: background-color, border-color, box-shadow;
|
|
|
|
&::placeholder {
|
|
color: rgba($white, .65);
|
|
}
|
|
|
|
&:focus {
|
|
background-color: rgba($black, .25);
|
|
border-color: rgba($bd-accent, 1);
|
|
box-shadow: 0 0 0 .25rem rgba($bd-accent, .4);
|
|
}
|
|
}
|
|
}
|