mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
404 lines
6.4 KiB
SCSS
Executable File
404 lines
6.4 KiB
SCSS
Executable File
/*
|
|
* some basic styles
|
|
*/
|
|
|
|
@import '../_variables';
|
|
@import '../_animations';
|
|
|
|
.pulse {
|
|
animation: pulse 0.8s linear infinite;
|
|
}
|
|
|
|
// don't let images be wider than the parent layer
|
|
div,
|
|
a,
|
|
span,
|
|
button,
|
|
i {
|
|
background-repeat: no-repeat;
|
|
background-size: contain;
|
|
}
|
|
|
|
iframe,
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.a {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.a,
|
|
a,
|
|
[data-toggle],
|
|
button,
|
|
.btn {
|
|
&:hover,
|
|
&.active,
|
|
&:focus {
|
|
opacity: 0.8;
|
|
|
|
> .fa,
|
|
> .far,
|
|
> .fas,
|
|
> .fab,
|
|
&.fa,
|
|
&.far,
|
|
&.fas,
|
|
&.fab {
|
|
transform: rotate(-180deg);
|
|
}
|
|
}
|
|
|
|
&.disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
|
|
&:hover,
|
|
&.active,
|
|
&:focus {
|
|
> .fa,
|
|
> .far,
|
|
> .fas,
|
|
> .fab,
|
|
&.fa,
|
|
&.far,
|
|
&.fas,
|
|
&.fab {
|
|
transform: rotate(0deg);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// exclude bootstrap-table
|
|
[data-toggle='table'] {
|
|
&:hover,
|
|
&.active,
|
|
&:focus {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
[data-toggle='collapse'] {
|
|
&[aria-expanded='true'] {
|
|
.accordion-icon {
|
|
&:before {
|
|
content: '\f068';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// transactions
|
|
.transition,
|
|
a,
|
|
a *,
|
|
.a,
|
|
.a *,
|
|
button,
|
|
input,
|
|
optgroup,
|
|
select,
|
|
textarea,
|
|
.btn,
|
|
.alert,
|
|
.dropdown,
|
|
[data-toggle],
|
|
[data-toggle] *,
|
|
.container,
|
|
.container-fluid,
|
|
.row,
|
|
[class='col-*'] {
|
|
transition: all 0.4s ease;
|
|
}
|
|
|
|
.btn-toolbar {
|
|
margin-top: $field-gutter-height;
|
|
}
|
|
|
|
.field {
|
|
position: relative;
|
|
margin: $field-gutter-height 0;
|
|
|
|
&.composite {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&.required {
|
|
&:after {
|
|
display: block;
|
|
position: absolute;
|
|
top: 2rem;
|
|
right: 0.5rem;
|
|
content: '*';
|
|
color: $red;
|
|
z-index: 2;
|
|
}
|
|
}
|
|
|
|
&.holder-error,
|
|
&.error {
|
|
input,
|
|
select,
|
|
textarea {
|
|
border-color: $red;
|
|
}
|
|
|
|
label {
|
|
color: $red;
|
|
}
|
|
}
|
|
|
|
.bootstrap-select:not([class*='col-']):not([class*='form-control']):not(.input-group-btn) {
|
|
width: 100%;
|
|
}
|
|
}
|
|
// element col paddings
|
|
.col-block {
|
|
padding-top: $col-block-gutter-height;
|
|
padding-bottom: $col-block-gutter-height;
|
|
}
|
|
|
|
// rewrite btn opacity on hover
|
|
.btn {
|
|
&:hover,
|
|
&.active,
|
|
&:focus {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
// SS-messages
|
|
.alert,
|
|
.alert-info,
|
|
.alert-danger {
|
|
display: block;
|
|
}
|
|
|
|
.message {
|
|
@extend .alert;
|
|
|
|
@extend .alert-info;
|
|
|
|
display: block;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.message.validation,
|
|
.message.required,
|
|
.message.error {
|
|
@extend .alert;
|
|
|
|
@extend .alert-danger;
|
|
}
|
|
|
|
.message.required,
|
|
.message.error {
|
|
@extend .alert;
|
|
|
|
@extend .alert-danger;
|
|
}
|
|
|
|
// dropdown icon
|
|
.navbar-toggler {
|
|
&[aria-expanded='true'] {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
|
|
.dropdown.show .dropdown-toggle::after,
|
|
.dropdown-toggle.active-dropdown::after,
|
|
.dropdown-toggle.active::after {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
// dropdown hover
|
|
/*
|
|
.dropdown.show {
|
|
.dropdown {
|
|
&:hover,&.active,
|
|
&:focus {
|
|
.dropdown-menu {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@media only screen and (min-width: map-get($grid-breakpoints, "md")) {
|
|
.dropdown-hover ul li {
|
|
position: relative;
|
|
}
|
|
|
|
.dropdown-hover ul li {
|
|
&:hover,&.active,
|
|
&:focus {
|
|
> .dropdown-toggle::after {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
> ul {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dropdown-hover ul ul {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
min-width: 250px;
|
|
display: none;
|
|
}
|
|
|
|
.dropdown-hover ul ul li {
|
|
position: relative;
|
|
}
|
|
|
|
.dropdown-hover ul ul li {
|
|
&:hover,&.active,
|
|
&:focus {
|
|
> ul {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dropdown-hover ul ul ul {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 100%;
|
|
min-width: 250px;
|
|
display: none;
|
|
}
|
|
|
|
.dropdown-hover ul ul ul li {
|
|
position: relative;
|
|
}
|
|
|
|
.dropdown-hover ul ul ul li {
|
|
&:hover,&.active,
|
|
&:focus {
|
|
ul {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dropdown-hover ul ul ul ul {
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
min-width: 250px;
|
|
display: none;
|
|
z-index: 1;
|
|
}
|
|
}*/
|
|
|
|
// dark dropdowns
|
|
.navbar-dark {
|
|
.nav-link {
|
|
@include hover-focus {
|
|
background: $navbar-dark-hover-background;
|
|
}
|
|
}
|
|
|
|
.active > .nav-link,
|
|
.nav-link.active {
|
|
background: $navbar-dark-active-background;
|
|
}
|
|
|
|
.nav-link.show,
|
|
.navbar-nav .show > .nav-link {
|
|
background: $navbar-dark-show-background;
|
|
color: $navbar-dark-show-color;
|
|
}
|
|
}
|
|
|
|
.dropdown-menu.bg-dark {
|
|
border-color: $dark;
|
|
|
|
.nav-link {
|
|
color: $navbar-dark-color;
|
|
|
|
@include hover-focus {
|
|
color: $navbar-dark-hover-color;
|
|
}
|
|
|
|
&.disabled {
|
|
cursor: default;
|
|
color: $navbar-dark-disabled-color;
|
|
}
|
|
}
|
|
|
|
.show > .nav-link,
|
|
.active > .nav-link,
|
|
.nav-link.show,
|
|
.nav-link.active {
|
|
color: $navbar-dark-active-color;
|
|
}
|
|
|
|
.dropdown-item {
|
|
@include hover-focus {
|
|
color: $navbar-dark-hover-color;
|
|
background: $navbar-dark-hover-background;
|
|
}
|
|
|
|
&.active,
|
|
&:active {
|
|
background: $navbar-dark-active-background;
|
|
}
|
|
|
|
.nav-link {
|
|
background: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.row,
|
|
.row-xs {
|
|
> [class^='col-'] > .card {
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.row-xs {
|
|
margin-right: -($grid-gutter-xs-width / 2);
|
|
margin-left: -($grid-gutter-xs-width / 2);
|
|
|
|
[class^='col-'] {
|
|
padding-left: $grid-gutter-xs-width / 2;
|
|
padding-right: $grid-gutter-xs-width / 2;
|
|
}
|
|
}
|
|
|
|
#ForgotPassword {
|
|
margin: 1rem 0;
|
|
width: 100%;
|
|
}
|
|
|
|
#BetterNavigator {
|
|
display: none;
|
|
@media (min-width: map-get($grid-breakpoints,'md')) {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.alert-offline {
|
|
display: none;
|
|
}
|
|
body.is-offline {
|
|
.alert-offline {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
[aria-expanded='true'] {
|
|
.fa-bars {
|
|
&:before {
|
|
content: '\f00d';
|
|
}
|
|
}
|
|
}
|