public-health-ch/publichealth/static/css/modules/_articles.scss
2017-05-03 08:53:42 +02:00

56 lines
883 B
SCSS

// Article sections
section {
padding: 6em 0;
&:nth-child(odd) {
background-color: $gray-lighter;
}
h1 {
font-size: 40px;
text-align: center;
margin-bottom: 1.5em;
text-transform: uppercase;
}
}
.article-body {
h2 { font-size: 35px; }
h3 { font-size: 30px; }
h4 { font-size: 25px; }
h5 { font-size: 22px; }
line-height: 1.5;
}
// Article content blocks
.article-body > div {
clear: both;
}
.infoblocks article:nth-child(3n+0) {
clear: both;
}
// Responsive image/video classes
.rich-text img {
max-width: 100%;
height: auto;
}
.richtext-image.left{
float:left;
}
.richtext-image.right{
float:right;
}
.responsive-object {
position: relative;
}
.responsive-object iframe,
.responsive-object object,
.responsive-object embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}