1
0
mirror of https://github.com/ipdb/website.git synced 2024-09-23 17:48:51 +02:00
website/_src/_assets/scss/_sections.scss

126 lines
2.3 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) {
2017-09-07 13:34:24 +02:00
padding-top: $spacer * 5;
padding-bottom: $spacer * 5;
2017-08-24 12:17:29 +02:00
}
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) {
2017-08-29 18:28:23 +02:00
margin-bottom: $spacer / $line-height;
2017-08-25 00:16:33 +02:00
}
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;
2017-09-04 21:54:50 +02:00
margin-top: $spacer * 3;
padding-top: $spacer * 2;
2017-09-05 11:58:40 +02:00
border-top: .1rem solid darken($brand-05, 8%);
2017-08-29 12:00:08 +02:00
.button + .button {
margin-left: $spacer * 2;
}
2017-08-24 12:02:34 +02:00
}
2017-08-24 12:44:40 +02:00
//
// Section modifiers
//
.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
}
}
2017-09-07 13:34:24 +02:00
.section--border {
position: relative;
&:before {
content: '';
position: absolute;
left: 0;
right: 0;
top: -.1rem;
display: block;
height: .1rem;
background: darken($brand-05, 8%);
transform: rotate(-4deg);
}
}