ds-site/Resources/Private/Sass/Frontend/layout/_content.scss

141 lines
2.2 KiB
SCSS
Raw Normal View History

body {
word-break: break-word;
}
2020-01-10 15:50:09 +01:00
// Basic layout of content
2019-11-15 00:27:23 +01:00
body > main {
@extend .row;
2020-01-08 21:03:54 +01:00
& > header {
@extend .col-12;
@extend .order-xl-1;
2020-01-10 15:50:09 +01:00
margin-bottom: $spacer * 2;
2020-01-08 21:03:54 +01:00
}
2019-11-15 00:27:23 +01:00
& > aside {
2019-12-13 16:29:34 +01:00
@extend .col-xl-4;
@extend .col-12;
@extend .order-xl-3;
2019-11-15 00:27:23 +01:00
2020-01-08 21:03:54 +01:00
nav ul {
list-style: none;
padding-left: 0;
}
2019-11-15 00:27:23 +01:00
}
& > section {
@extend .col-xl-8;
@extend .col-12;
@extend .order-xl-2;
}
& article > aside {
margin-bottom: $spacer * 2;
2022-01-05 10:17:11 +01:00
nav ul {
list-style: none;
padding-left: 0;
}
}
2019-11-15 00:27:23 +01:00
}
2020-01-10 15:50:09 +01:00
aside,
main > header {
h1, h2, h3, h4, h5, h6 {
padding : 0;
margin: 0;
}
}
2019-12-13 16:40:43 +01:00
2020-01-10 15:50:09 +01:00
section > article {
margin-bottom: 4rem;
2020-01-08 21:03:54 +01:00
2020-01-10 15:50:09 +01:00
&:last-of-type {
margin-bottom: 0;
2020-01-08 21:03:54 +01:00
}
}
article {
2020-01-10 15:50:09 +01:00
&:first-of-type {
padding-top: 0;
margin-top: 0;
2020-01-08 21:03:54 +01:00
}
margin-top: 2.75em;
2020-01-10 15:50:09 +01:00
main {
h1:first-of-type {
padding-top: 0;
2020-01-08 21:03:54 +01:00
}
}
& > header {
font-size: 1.25em;
margin-bottom: $spacer * 2;
h1, h2, h3, h4, h5, h6 {
padding-bottom: 0;
}
p {
font-size: 0.75em;
margin: 0;
}
}
}
main > article > main > h2:first-of-type,
2020-01-10 15:50:09 +01:00
main > section > h2:first-of-type,
main article h1 {
padding-top: 0;
}
aside,
nav {
details > summary > h2 {
display: inline;
2020-01-10 15:50:09 +01:00
}
}
@media (max-width: 1439px) {
2022-01-05 10:17:11 +01:00
body > main {
& aside {
padding-bottom: 0;
2020-01-10 15:50:09 +01:00
2022-01-05 10:17:11 +01:00
h1, h2, h3, h4, h5, h6 {
margin-bottom: 0;
}
2020-01-10 15:50:09 +01:00
}
2022-01-05 10:17:11 +01:00
& aside,
& article > aside {
li {
margin-right: $spacer;
line-height: $spacer * 2;
}
nav ul {
columns: 4;
}
2020-01-10 15:50:09 +01:00
}
}
article {
padding-top: 0;
header h1 {
padding-top: 0;
}
}
}
@media (max-width: 768px) {
2022-01-05 10:17:11 +01:00
body > main {
& article aside,
& aside {
nav {
ul {
columns: 2;
}
}
}
}
}