chore(colors): adapt to Bootstrap 5.3

This commit is contained in:
Cotes Chung 2023-09-09 22:38:19 +08:00
parent 8542b57e8b
commit 75a2504fd9
No known key found for this signature in database
GPG key ID: 0D9E54843167A808
3 changed files with 49 additions and 22 deletions

View file

@ -946,9 +946,44 @@ $btn-mb: 0.5rem;
} }
} /* #topbar */ } /* #topbar */
#sidebar-trigger, ::-webkit-input-placeholder {
#search-trigger { @include placeholder;
display: none; }
::-moz-placeholder {
@include placeholder;
}
:-ms-input-placeholder {
@include placeholder;
}
::-ms-input-placeholder {
@include placeholder;
}
::placeholder {
@include placeholder;
}
:focus::-webkit-input-placeholder {
@include placeholder-focus;
}
:focus::-moz-placeholder {
@include placeholder-focus;
}
:focus:-ms-input-placeholder {
@include placeholder-focus;
}
:focus::-ms-input-placeholder {
@include placeholder-focus;
}
:focus::placeholder {
@include placeholder-focus;
} }
search { search {
@ -966,6 +1001,11 @@ search {
} }
} }
#sidebar-trigger,
#search-trigger {
display: none;
}
/* 'Cancel' link */ /* 'Cancel' link */
#search-cancel { #search-cancel {
color: var(--link-color); color: var(--link-color);
@ -985,24 +1025,6 @@ search {
&:focus { &:focus {
box-shadow: none; box-shadow: none;
&.form-control {
&::-moz-placeholder {
@include input-placeholder;
}
&::-webkit-input-placeholder {
@include input-placeholder;
}
&:-ms-input-placeholder {
@include input-placeholder;
}
&::-ms-input-placeholder {
@include input-placeholder;
}
&::placeholder {
@include input-placeholder;
}
}
} }
} }

View file

@ -149,7 +149,11 @@
padding-right: $val; padding-right: $val;
} }
@mixin input-placeholder { @mixin placeholder {
color: var(--text-muted-color) !important;
}
@mixin placeholder-focus {
opacity: 0.6; opacity: 0.6;
} }

View file

@ -44,6 +44,7 @@
.card-title { .card-title {
@extend %text-clip; @extend %text-clip;
color: var(--heading-color) !important;
font-size: 1.25rem; font-size: 1.25rem;
} }