webpack-bootstrap-ui-kit/src/scss/_components/_ui.main.scss

445 lines
7.0 KiB
SCSS
Raw Normal View History

2019-06-08 17:20:51 +02:00
/*
* some basic styles
*/
2020-04-29 09:48:09 +02:00
@import '../_variables';
@import '../_animations';
2019-06-08 17:20:51 +02:00
2020-06-15 20:45:19 +02:00
.loading {
animation: fade 0.8s linear infinite;
}
2019-12-17 18:36:25 +01:00
.pulse {
animation: pulse 0.8s linear infinite;
}
2019-06-08 17:20:51 +02:00
// don't let images be wider than the parent layer
div,
a,
span,
button,
i {
background-repeat: no-repeat;
background-size: contain;
}
2019-06-08 17:20:51 +02:00
iframe,
img {
max-width: 100%;
}
2020-07-30 12:57:28 +02:00
table,
2020-07-02 13:44:55 +02:00
p {
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
2019-06-08 17:20:51 +02:00
.a {
cursor: pointer;
2020-06-25 11:53:52 +02:00
color: $link-color;
2019-06-08 17:20:51 +02:00
}
2019-12-16 00:06:45 +01:00
.a,
a,
[data-toggle],
button,
.btn {
&:hover,
2019-12-29 06:04:00 +01:00
&.active,
2020-06-01 19:08:44 +02:00
&:focus,
&[aria-expanded='true'] {
opacity: 0.8;
2019-06-08 17:20:51 +02:00
> .fa,
> .far,
2019-12-16 00:06:45 +01:00
> .fas,
> .fab,
&.fa,
&.far,
2019-12-16 00:06:45 +01:00
&.fas,
&.fab {
transform: rotate(-180deg);
}
2019-06-08 17:20:51 +02:00
}
&.disabled {
opacity: 0.5;
2019-12-29 06:04:00 +01:00
cursor: default;
&:hover,
2019-12-29 06:04:00 +01:00
&.active,
2020-06-01 19:08:44 +02:00
&:focus,
&[aria-expanded='true'] {
> .fa,
> .far,
> .fas,
> .fab,
&.fa,
&.far,
&.fas,
&.fab {
transform: rotate(0deg);
}
}
}
2019-06-08 17:20:51 +02:00
}
2019-12-02 18:45:03 +01:00
// exclude bootstrap-table
[data-toggle='table'] {
&:hover,
2019-12-29 06:04:00 +01:00
&.active,
&:focus {
2019-12-02 18:45:03 +01:00
opacity: 1;
}
}
[data-toggle='collapse'] {
&[aria-expanded='true'] {
2019-06-08 17:20:51 +02:00
.accordion-icon {
&:before {
content: '\f068';
2019-06-08 17:20:51 +02:00
}
}
}
}
// transactions
.transition,
a,
a *,
.a,
.a *,
button,
input,
optgroup,
select,
textarea,
2019-06-08 17:20:51 +02:00
.btn,
2020-06-01 19:08:44 +02:00
.btn *,
2019-06-08 17:20:51 +02:00
.dropdown,
.row,
2020-07-20 09:15:57 +02:00
.alert,
.alert *,
.message,
2020-08-08 16:23:42 +02:00
[data-toggle],
[data-toggle] * {
2019-06-08 17:20:51 +02:00
transition: all 0.4s ease;
}
2020-08-08 16:23:42 +02:00
.navbar-toggler {
transition: transform ease 0.4s;
}
2019-06-08 17:20:51 +02:00
.btn-toolbar {
2020-02-24 16:16:06 +01:00
margin-top: $field-gutter-height;
2019-06-08 17:20:51 +02:00
}
2020-07-02 13:44:55 +02:00
/*
* Extra class definition at _ui.form.basics.scss
*/
2019-06-08 17:20:51 +02:00
.field {
2020-07-02 13:44:55 +02:00
position: relative;
2020-06-29 13:45:42 +02:00
display: flex;
flex-wrap: wrap;
2020-02-24 16:16:06 +01:00
margin: $field-gutter-height 0;
2019-06-08 17:20:51 +02:00
}
2020-07-02 13:44:55 +02:00
2019-06-08 17:20:51 +02:00
// element col paddings
.col-block {
2020-02-24 16:16:06 +01:00
padding-top: $col-block-gutter-height;
padding-bottom: $col-block-gutter-height;
2019-06-08 17:20:51 +02:00
}
// rewrite btn opacity on hover
.btn {
&:hover,
2019-12-29 06:04:00 +01:00
&.active,
&:focus {
2019-06-08 17:20:51 +02:00
opacity: 1;
}
}
// SS-messages
2020-04-29 09:48:09 +02:00
.alert,
.alert-info,
.alert-danger {
display: block;
}
2020-07-20 09:15:57 +02:00
.alert + .alert {
border-top: 0;
}
.alert {
.container {
position: relative;
display: flex;
2020-09-02 00:42:03 +02:00
flex-direction: column;
2020-07-20 09:15:57 +02:00
align-items: center;
justify-content: center;
2020-09-02 00:42:03 +02:00
@media (min-width: map-get($grid-breakpoints, 'sm')) {
flex-direction: row;
}
2020-07-20 09:15:57 +02:00
}
.typography {
flex: 1 1;
}
.btn-close {
2020-09-02 00:42:03 +02:00
position: absolute;
top: 0;
right: 0;
@media (min-width: map-get($grid-breakpoints, 'sm')) {
position: static;
margin-left: 1rem;
}
2020-07-20 09:15:57 +02:00
}
}
2019-06-08 17:20:51 +02:00
.message {
@extend .alert;
@extend .alert-info;
2020-04-29 09:48:09 +02:00
display: block;
margin: 0.5rem 0;
}
.message.validation,
.message.required,
.message.error {
@extend .alert;
@extend .alert-danger;
2019-06-08 17:20:51 +02:00
}
.message.required,
.message.error {
@extend .alert;
@extend .alert-danger;
}
2019-08-19 09:57:49 +02:00
// dropdown icon
2019-11-14 22:31:19 +01:00
.navbar-toggler {
&[aria-expanded='true'] {
2019-11-14 22:42:02 +01:00
transform: rotate(90deg);
2019-11-14 22:31:19 +01:00
}
}
2019-08-19 09:57:49 +02:00
.dropdown.show .dropdown-toggle::after,
.dropdown-toggle.active-dropdown::after,
.dropdown-toggle.active::after {
transform: rotate(-90deg);
}
// dropdown hover
/*
.dropdown.show {
.dropdown {
2019-12-29 06:04:00 +01:00
&:hover,&.active,
&:focus {
.dropdown-menu {
display: block;
}
}
}
}
2019-08-19 09:57:49 +02:00
@media only screen and (min-width: map-get($grid-breakpoints, "md")) {
.dropdown-hover ul li {
2019-08-19 09:57:49 +02:00
position: relative;
}
.dropdown-hover ul li {
2019-12-29 06:04:00 +01:00
&:hover,&.active,
&:focus {
> .dropdown-toggle::after {
transform: rotate(-90deg);
}
2019-08-19 09:57:49 +02:00
> ul {
display: block;
}
2019-08-19 09:57:49 +02:00
}
}
.dropdown-hover ul ul {
2019-08-19 09:57:49 +02:00
position: absolute;
top: 100%;
left: 0;
min-width: 250px;
display: none;
}
.dropdown-hover ul ul li {
2019-08-19 09:57:49 +02:00
position: relative;
}
.dropdown-hover ul ul li {
2019-12-29 06:04:00 +01:00
&:hover,&.active,
&:focus {
> ul {
display: block;
}
}
2019-08-19 09:57:49 +02:00
}
.dropdown-hover ul ul ul {
2019-08-19 09:57:49 +02:00
position: absolute;
top: 0;
left: 100%;
min-width: 250px;
display: none;
}
.dropdown-hover ul ul ul li {
2019-08-19 09:57:49 +02:00
position: relative;
}
.dropdown-hover ul ul ul li {
2019-12-29 06:04:00 +01:00
&:hover,&.active,
&:focus {
ul {
display: block;
}
}
2019-08-19 09:57:49 +02:00
}
.dropdown-hover ul ul ul ul {
2019-08-19 09:57:49 +02:00
position: absolute;
top: 0;
left: -100%;
min-width: 250px;
display: none;
z-index: 1;
}
}*/
2019-08-27 17:25:41 +02:00
// 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;
}
}
2019-08-27 17:25:41 +02:00
.dropdown-menu.bg-dark {
border-color: $dark;
.nav-link {
color: $navbar-dark-color;
@include hover-focus {
2019-08-27 17:25:41 +02:00
color: $navbar-dark-hover-color;
}
&.disabled {
2019-12-29 06:04:00 +01:00
cursor: default;
2019-08-27 17:25:41 +02:00
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;
2019-08-27 17:25:41 +02:00
}
&.active,
&:active {
background: $navbar-dark-active-background;
}
.nav-link {
background: none;
}
}
}
.row,
.row-xs {
> [class^='col-'] > .card {
height: 100%;
}
}
2019-10-20 01:40:40 +02:00
.row-xs {
margin-right: -($grid-gutter-xs-width / 2);
margin-left: -($grid-gutter-xs-width / 2);
[class^='col-'] {
2019-10-20 01:40:40 +02:00
padding-left: $grid-gutter-xs-width / 2;
padding-right: $grid-gutter-xs-width / 2;
}
}
2020-01-31 19:53:29 +01:00
#ForgotPassword {
margin: 1rem 0;
width: 100%;
}
#BetterNavigator {
display: none;
@media (min-width: map-get($grid-breakpoints,'md')) {
display: block;
}
}
2020-08-02 17:38:23 +02:00
#SiteWideOffline {
position: fixed;
top: 0;
left: 0;
z-index: 99999;
width: 100%;
}
2020-04-02 02:18:16 +02:00
.alert-offline {
display: none;
}
body.is-offline {
.alert-offline {
display: block;
}
}
2020-05-08 16:55:29 +02:00
[aria-expanded='true'] {
.fa-bars {
&:before {
content: '\f00d';
}
}
}
2020-07-30 12:57:28 +02:00
.jsSidebarUI {
position: relative;
min-height: 100%;
}
.jsSidebarUI__inner {
position: relative;
will-change: position, top;
}