1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-14 09:14:48 +01:00
website/_src/_assets/scss/_sections.scss

111 lines
1.9 KiB
SCSS
Raw Normal View History

2017-08-24 12:44:40 +02:00
//
// All sections
//
2017-08-24 12:02:34 +02:00
.section {
padding-top: $spacer * 2;
padding-bottom: $spacer * 2;
2017-08-24 12:17:29 +02:00
display: flex;
flex-wrap: wrap;
align-items: center;
@media ($screen-sm) {
padding-top: $spacer * 4;
padding-bottom: $spacer * 4;
}
2017-08-24 12:02:34 +02:00
// handling long text, like URLs
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
text-rendering: optimizeLegibility;
2017-08-24 12:17:29 +02:00
.row {
width: 100%;
}
2017-08-24 12:02:34 +02:00
p:last-child {
margin-bottom: 0;
}
}
.section__header {
2017-08-24 12:17:29 +02:00
margin-bottom: $spacer * 2;
2017-08-24 12:02:34 +02:00
}
.section__title {
2017-08-24 12:17:29 +02:00
font-size: $font-size-h1;
2017-08-25 00:16:33 +02:00
margin-bottom: $spacer;
@media ($screen-sm) {
margin-bottom: $spacer / 2;
}
2017-08-24 12:02:34 +02:00
}
.section__description {
font-size: $font-size-large;
margin-bottom: 0;
2017-08-29 12:00:08 +02:00
color: darken($brand-04, 5%);
}
.section__actions {
text-align: center;
margin-top: $spacer * 2;
.button + .button {
margin-left: $spacer * 2;
}
2017-08-24 12:02:34 +02:00
}
2017-08-24 12:44:40 +02:00
//
// Section modifiers
//
2017-08-25 00:16:33 +02:00
$edge-height-sm: $spacer * 2;
$edge-height: $spacer * 4;
2017-08-24 12:44:40 +02:00
.section--background {
background: $brand-05;
position: relative;
2017-08-25 00:16:33 +02:00
margin-top: $edge-height-sm;
margin-bottom: $edge-height-sm;
@media ($screen-sm) {
margin-top: $edge-height;
margin-bottom: $edge-height;
}
2017-08-24 12:44:40 +02:00
&:before,
&:after {
content: '';
width: 100%;
2017-08-25 00:16:33 +02:00
height: $edge-height-sm;
2017-08-24 12:44:40 +02:00
display: block;
position: absolute;
left: 0;
background: $brand-05;
2017-08-25 00:16:33 +02:00
@media ($screen-sm) {
height: $edge-height;
}
2017-08-24 12:44:40 +02:00
}
&:before {
2017-08-25 00:16:33 +02:00
top: -($edge-height-sm);
2017-08-24 12:44:40 +02:00
clip-path: polygon(100% 0, 0% 100%, 100% 100%);
2017-08-25 01:34:25 +02:00
@media ($screen-sm) {
top: -($edge-height);
}
2017-08-24 12:44:40 +02:00
}
&:after {
top: auto;
2017-08-25 00:16:33 +02:00
bottom: -($edge-height-sm);
2017-08-24 12:44:40 +02:00
clip-path: polygon(100% 0, 0 0, 0 100%);
2017-08-25 00:16:33 +02:00
@media ($screen-sm) {
bottom: -($edge-height);
}
2017-08-24 12:44:40 +02:00
}
}