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

214 lines
4.4 KiB
SCSS
Raw Normal View History

2019-06-08 17:20:51 +02:00
/*
* Basic styles for silverstripe-elemental
*/
2020-04-11 15:25:41 +02:00
.blog-post-info {
2021-03-21 20:57:49 +01:00
position: relative;
2020-04-11 15:25:41 +02:00
}
2019-06-08 17:20:51 +02:00
// add top/bottom paddings for basic elements
2019-10-22 10:29:26 +02:00
.element {
2021-03-21 20:57:49 +01:00
position: relative;
margin-top: $element-spacer-y;
margin-bottom: $element-spacer-y;
padding-top: $element-spacer-y;
padding-bottom: $element-spacer-y;
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
// Sidebar-like elements
&.secondary {
padding-top: ($element-reduced-spacer-y);
padding-bottom: ($element-reduced-spacer-y);
}
2021-02-20 07:00:59 +01:00
}
2020-01-04 16:33:24 +01:00
2021-02-20 07:00:59 +01:00
// remove paddings of the slideshow
.dynamic__elements__image__elements__elementimage,
.site__elements__sliderelement {
2021-03-21 20:57:49 +01:00
padding-top: 0;
padding-bottom: 0;
.element-container {
max-width: none;
padding: 0;
}
.carousel-slide {
background: $sliderelement-carousel-slide-bg;
max-height: $sliderelement-carousel-slide-max-y;
align-items: center;
.video {
position: relative;
height: 100%;
@include responsive-ratio($sliderelement-carousel-slide-ratio-x, $sliderelement-carousel-slide-ratio-y, true);
iframe {
position: absolute;
top: 0;
height: 100% !important;
width: 100vw !important;
max-width: none;
height: unquote(($sliderelement-carousel-slide-ratio-y / $sliderelement-carousel-slide-ratio-x) * 100 + 'vw') !important;
}
}
}
2021-02-20 07:00:59 +01:00
}
// remove paddings for elemental list cuz inner elements will have paddings
.dnadesign__elementallist__model__elementlist {
2021-03-21 20:57:49 +01:00
.element {
padding-top: $element-reduced-spacer-y;
padding-bottom: $element-reduced-spacer-y;
margin-top: $element-reduced-spacer-y;
margin-bottom: $element-reduced-spacer-y;
}
2021-02-20 07:00:59 +01:00
}
.site__elements__accordion {
2021-03-21 20:57:49 +01:00
>.element-container>.accordion {
margin-top: $element-reduced-spacer-y;
//padding-top: $element-reduced-spacer-y;
}
2019-12-12 15:35:25 +01:00
}
.elements-sm,
2020-01-14 23:47:40 +01:00
.page-content-sidebar {
2021-03-21 20:57:49 +01:00
// Sidebar elements
.element {
padding-top: ($element-reduced-spacer-y);
padding-bottom: ($element-reduced-spacer-y);
&:first-child {
padding-top: 0;
}
&:last-child {
padding-bottom: 0;
}
}
2019-06-08 17:20:51 +02:00
}
2021-02-23 14:51:02 +01:00
.dynamic__elements__image__elements__elementimage {
2021-03-21 20:57:49 +01:00
.image-element__title {
margin-bottom: 0;
}
.image-element__caption {
margin: $element-reduced-spacer-y 0;
}
2021-02-23 14:51:02 +01:00
}
2019-06-08 17:20:51 +02:00
// remove container paddings for the slideshow
.dynamic__elements__image__elements__elementimage,
.site__elements__sliderelement {
2021-03-21 20:57:49 +01:00
.container-fluid {
padding-left: 0;
padding-right: 0;
}
.element__image {
min-width: 100%;
}
2019-06-08 17:20:51 +02:00
}
2020-04-11 15:25:41 +02:00
2021-02-20 07:00:59 +01:00
// hide default page title cuz elemental object will be used to display titles
2021-02-23 14:51:02 +01:00
.element__breadcrumbs {
2021-03-21 20:57:49 +01:00
margin-bottom: calc(-2 * #{inspect($element-spacer-y)});
.container {}
.breadcrumb-link {
text-decoration: none;
&:hover,
&:focus,
&:active,
&.active {
color: $sidebar-nav-link-hover-color;
}
}
.active {
.breadcrumb-link {
color: $sidebar-nav-link-hover-color;
}
}
2021-02-23 14:51:02 +01:00
}
2021-02-20 07:00:59 +01:00
.page-header-element {
2021-03-21 20:57:49 +01:00
display: none;
margin-bottom: calc(-1 * #{inspect($element-spacer-y)});
.page-header {
line-height: 1em;
margin-bottom: 0;
}
2021-02-20 07:00:59 +01:00
}
2021-03-21 20:57:49 +01:00
.page-header-element:not(.d-block)+.element {
margin-top: 0;
2021-02-20 07:00:59 +01:00
}
// remove containers for child elements
2021-02-23 14:51:02 +01:00
.sidebar__col {
2021-03-21 20:57:49 +01:00
position: relative;
margin-top: $element-reduced-spacer-y;
margin-bottom: $element-reduced-spacer-y;
2021-02-23 14:51:02 +01:00
}
2021-03-21 20:57:49 +01:00
2021-02-23 14:51:02 +01:00
.content-holder__sidebar {
2021-03-21 20:57:49 +01:00
.row {
.container,
.container-fluid {
padding: 0;
width: auto;
}
}
2021-02-23 14:51:02 +01:00
}
2020-04-11 15:25:41 +02:00
.element {
2021-03-21 20:57:49 +01:00
.elemental-area {
.element {
.container,
.container-fluid {
padding: 0;
width: auto;
}
}
}
2020-04-11 15:25:41 +02:00
}
2021-02-23 14:51:02 +01:00
.element__widget {}
.widget__Site_Widgets_SubmenuWidget {
2021-03-21 20:57:49 +01:00
.nav-link {
width: 100%;
&:hover,
&:focus,
&:active,
&.active {
font-weight: bold;
color: $sidebar-nav-link-hover-color;
}
}
.active {
.nav-link {
font-weight: bold;
color: $sidebar-nav-link-hover-color;
}
}
2021-02-23 14:51:02 +01:00
}