webpack-bootstrap-ui-kit/src/scss/layout/main/base.scss

128 lines
1.9 KiB
SCSS
Raw Normal View History

2021-08-09 18:04:09 +02:00
html,
body {
2021-08-18 20:38:12 +02:00
min-height: 100%;
min-height: 100vh;
2021-08-09 18:04:09 +02:00
}
2023-11-22 01:19:16 +01:00
html {
overflow-y: scroll; // prevent content jumps produced by scroll bar
}
2021-08-09 18:04:09 +02:00
// sticky footer
body {
2021-08-18 20:38:12 +02:00
display: flex;
flex-direction: column;
--body-gutter-x: #{inspect($body-gutter-x)};
--body-gutter-y: #{inspect($body-gutter-y)};
--body-double-gutter-x: #{inspect($body-double-gutter-x)};
--body-double-gutter-y: #{inspect($body-double-gutter-y)};
--body-gutter-reduced-x: #{inspect($body-gutter-reduced-x)};
--body-gutter-reduced-y: #{inspect($body-gutter-reduced-y)};
--body-gutter-reduced-d-x: #{inspect($body-gutter-reduced-d-x)};
--body-gutter-reduced-d-y: #{inspect($body-gutter-reduced-d-y)};
2023-11-22 01:19:16 +01:00
overflow-y: hidden; // prevent content jumps produced by scroll bar
2021-08-18 20:38:12 +02:00
.wrapper {
flex: 1 0 auto;
margin-bottom: $element-spacer-y;
}
.footer {
flex-shrink: 0;
margin-top: $element-spacer-y;
}
2021-08-09 18:04:09 +02:00
}
@media (min-width: $extra-large-screen) {
2023-11-22 01:19:16 +01:00
2021-08-18 20:38:12 +02:00
html,
body {
font-size: 0.9vw !important;
}
.container {
max-width: 80vw;
}
2021-08-09 18:04:09 +02:00
}
// don't let images be wider than the parent layer
div,
a,
span,
button,
i {
2021-08-18 20:38:12 +02:00
background-repeat: no-repeat;
background-size: contain;
2021-08-09 18:04:09 +02:00
}
iframe,
img {
2021-08-18 20:38:12 +02:00
max-width: 100%;
2021-08-09 18:04:09 +02:00
}
ul,
table,
p {
2021-08-18 20:38:12 +02:00
&:first-child {
margin-top: 0;
}
2021-08-09 18:04:09 +02:00
2021-08-18 20:38:12 +02:00
&:last-child {
margin-bottom: 0;
}
2021-08-09 18:04:09 +02:00
}
.a {
2021-08-18 20:38:12 +02:00
cursor: pointer;
color: $link-color;
text-decoration: $link-decoration;
&:hover,
&:focus {
text-decoration: $link-hover-decoration;
color: $link-hover-color;
}
2021-08-09 18:04:09 +02:00
}
// transactions
a,
.a,
button,
input,
optgroup,
select,
textarea,
2022-05-03 22:41:45 +02:00
option,
2021-08-09 18:04:09 +02:00
.btn,
2022-05-03 22:41:45 +02:00
.transition {
2021-08-18 20:38:12 +02:00
transition: all 0.4s ease;
2021-08-09 18:04:09 +02:00
}
a,
2022-05-03 22:41:45 +02:00
.a,
2021-08-09 18:04:09 +02:00
.btn {
2023-11-22 01:19:16 +01:00
2021-08-18 20:38:12 +02:00
&:hover,
2022-05-03 22:41:45 +02:00
&.active {
opacity: 0.8;
2023-11-22 01:19:16 +01:00
>.fa,
>.svg-inline--fa {
2021-08-18 20:38:12 +02:00
transform: scale(1.5);
2021-08-09 18:04:09 +02:00
}
2021-08-18 20:38:12 +02:00
}
2021-08-09 18:04:09 +02:00
2022-05-03 22:41:45 +02:00
&.disabled {
2021-08-18 20:38:12 +02:00
opacity: 0.8;
2022-05-03 22:41:45 +02:00
cursor: default;
2021-08-18 20:38:12 +02:00
}
2022-05-03 22:41:45 +02:00
}
2021-08-09 18:04:09 +02:00
2022-05-03 22:41:45 +02:00
[data-toggle][aria-expanded="true"] {
opacity: 0.8;
2021-08-18 20:38:12 +02:00
2023-11-22 01:19:16 +01:00
>.fa,
>.svg-inline--fa {
2022-05-03 22:41:45 +02:00
transform: scale(1.5);
2021-08-18 20:38:12 +02:00
}
2023-11-22 01:19:16 +01:00
}