silverstripe-webpack/app/client/src/scss/_layout.scss

161 lines
3.0 KiB
SCSS
Raw Normal View History

2018-06-23 12:27:06 +02:00
/**
* Your custom style
*/
2020-02-07 20:51:42 +01:00
.field {
margin: 2rem 0;
&.required:after {
display: none;
}
}
.form-control,
.select2-container--default .select2-selection,
.select2-dropdown .select2-search__field {
border-width: 0 0 1px 0;
}
2019-06-08 17:54:43 +02:00
.bg-alt {
@extend .bg-dark;
background-color: $bg-alt !important;
}
.bootstrap-select .dropdown-toggle .filter-option .option {
background: #dedede;
padding: 0.2rem 0.5rem;
margin: 0.2rem;
2019-06-08 17:54:43 +02:00
color: #212529;
}
2020-05-14 14:06:58 +02:00
$full-body-min-width: map-get($grid-breakpoints, 'sm') !default;
@media (max-width: $full-body-min-width - 1) {
.jsSidebarUI__inner {
width: auto !important;
transform: none !important;
position: static !important;
}
}
2018-07-29 12:58:28 +02:00
// shrink elements on scroll
body.shrink {
}
2018-07-29 12:58:28 +02:00
// sticky footer
2020-05-14 14:06:58 +02:00
@media (min-width: $full-body-min-width) {
html,
body {
2018-07-29 14:43:18 +02:00
height: 100%;
min-height: 100%;
}
2018-07-29 12:58:28 +02:00
2018-07-29 14:43:18 +02:00
.wrapper {
min-height: 100%;
padding-bottom: $footer-size + $footer-bar-size + $grid-gutter-height /
2;
2019-06-08 17:54:43 +02:00
//padding-top: $grid-gutter-height;
2018-07-29 14:43:18 +02:00
}
2018-07-29 12:58:28 +02:00
2019-06-08 17:54:43 +02:00
.footer {
height: $footer-size + $footer-bar-size + $grid-gutter-height / 2;
margin-top: -($footer-size + $footer-bar-size + $grid-gutter-height / 2);
2018-07-29 14:43:18 +02:00
}
2018-07-29 12:58:28 +02:00
}
2019-06-08 17:54:43 +02:00
// site blocks (elements)
.element {
background-size: cover;
background-repeat: no-repeat;
2018-07-29 14:43:18 +02:00
2019-06-08 17:54:43 +02:00
&.site__elements__sliderelement {
.element-container {
width: 100%;
padding: 0;
max-width: none;
}
2018-07-29 14:43:18 +02:00
}
2018-09-15 00:55:42 +02:00
&.dynamic__elements__image__elements__elementimage {
text-align: center;
}
2019-06-08 17:54:43 +02:00
&.site__elements__accordion {
.card {
padding-left: 0;
padding-right: 0;
2018-09-15 00:55:42 +02:00
2019-06-08 17:54:43 +02:00
.card-header {
@extend .bg-dark;
}
}
}
2018-09-15 00:55:42 +02:00
}
2020-05-14 14:06:58 +02:00
.content-holder__sidebar {
> .container {
padding: 0;
}
}
2019-06-08 17:54:43 +02:00
// stick navbar to top using mobile layout
/*#Header {
position: relative;
padding-top: $grid-gutter-height / 2;
padding-bottom: 1rem;
2018-09-15 00:55:42 +02:00
2019-06-08 17:54:43 +02:00
@media (min-width: map-get($grid-breakpoints, "lg")) {
padding-top: 1rem;
padding-bottom: 0;
}
2018-09-15 00:55:42 +02:00
}
2019-06-08 17:54:43 +02:00
#Navigation {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 10;
@media (min-width: map-get($grid-breakpoints, "lg")) {
position: relative;
margin-top: 1rem;
}
}*/
#Footer {
background-color: $dark;
color: darken($white, 5%);
a {
color: $white;
}
ul {
margin-bottom: 0;
}
.footer {
background-color: darken($dark, 5%);
.copyright {
padding-right: 0.5rem;
2019-06-08 17:54:43 +02:00
}
li {
padding: 0 0.5rem;
2019-04-11 00:15:29 +02:00
}
2018-09-15 00:55:42 +02:00
}
2019-05-23 13:02:32 +02:00
2020-05-14 14:06:58 +02:00
@media (min-width: $full-body-min-width) {
2019-06-08 17:54:43 +02:00
.wrapper {
padding-bottom: $footer-bar-size;
}
.footer {
height: $footer-bar-size;
margin-top: -$footer-bar-size;
line-height: $footer-bar-size;
}
}
2019-05-23 13:02:32 +02:00
}