public-health-ch/publichealth/static/css/modules/_articles.scss

77 lines
1.1 KiB
SCSS
Raw Normal View History

// Article sections
section {
2017-05-03 21:13:36 +00:00
padding: 3em 0;
2017-05-03 22:23:51 +00:00
&:nth-child(odd) {
background-color: $gray-lighter;
2017-05-09 10:03:50 +00:00
color: black;
}
2017-05-02 14:47:18 +00:00
h1 {
font-size: 40px;
text-align: center;
margin-bottom: 1.5em;
text-transform: uppercase;
}
}
2017-05-02 14:47:18 +00:00
.article-body {
h2 { font-size: 35px; }
h3 { font-size: 30px; }
h4 { font-size: 25px; }
h5 { font-size: 22px; }
2017-05-02 14:49:58 +00:00
line-height: 1.5;
2017-05-03 22:23:51 +00:00
img.full-width {
width: 100%;
}
2017-05-02 14:47:18 +00:00
}
// Article content blocks
.article-body > div {
clear: both;
}
2017-05-03 22:23:51 +00:00
.infoblocks {
.image img {
width: 300px; height: 300px;
}
article:nth-child(3n+1) {
clear: left;
}
2017-05-02 14:59:36 +00:00
}
// Article index blocks
.article-subcategories article {
margin-bottom: 1.5em;
}
2017-05-03 14:18:14 +00:00
// Special article layout
.article-page .lead {
h2,h3,h4,h5 { text-align: center; }
}
// 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%;
}