zeus.ugent.be/content/assets/stylesheets/includes/blogpost.scss

105 lines
1.5 KiB
SCSS
Raw Normal View History

2017-04-21 16:54:46 +00:00
.blogpost {
position: relative;
#table-of-contents {
2017-04-21 17:04:01 +00:00
@include tablet {
2017-04-21 16:54:46 +00:00
position: absolute;
left: 100%;
}
2017-04-21 17:04:01 +00:00
@include mobile {
2017-04-21 16:54:46 +00:00
text-align: center;
}
2017-04-21 17:04:01 +00:00
#markdown-toc {
@extend .menu-list;
2016-10-31 01:23:28 +00:00
2017-04-21 17:04:01 +00:00
&, ul {
margin: 0;
list-style: none;
}
}
}
2016-10-31 01:23:28 +00:00
}
2017-02-02 14:48:38 +00:00
$sel: '';
@for $i from 1 through 9 {
$sel: if($i == 1, "ul", selector-nest($sel, "ul")) !global;
#markdown-toc.toc-depth-#{$i} #{$sel} {
display: none;
}
}
// Definition list is not defined in bulma
2016-10-10 20:13:38 +00:00
dl {
dt {
display: inline;
font-weight: bold;
}
dd {
display: inline;
&::after {
content: "\A";
white-space: pre;
}
}
}
2017-04-20 12:20:32 +00:00
.blog-heading {
display: flex;
flex-direction: column;
.titlewrap {
position: relative;
margin: auto;
.title {
2017-04-21 17:04:01 +00:00
@include tablet {
2017-04-21 16:54:46 +00:00
font-size: 4rem;
}
2017-04-20 12:20:32 +00:00
font-weight: bolder;
}
.subtitle {
position: absolute;
}
.details {
right: 0;
position: absolute;
margin-top: -1.1rem;
line-height: 1;
text-align: right;
}
}
&::after {
content: '';
width: 80px;
height: 1px;
margin-top: 30px;
margin-right: auto;
margin-left: auto;
margin-bottom: 30px;
display: block;
background: $zeus-orange;
}
2016-10-06 12:21:01 +00:00
}
2017-04-20 21:06:45 +00:00
.blog-preview {
position: relative;
&::after {
content: '';
position: absolute;
bottom: 20px;
left: 0;
background: linear-gradient(to bottom, transparent, white);
height: 100px;
width: 100%;
}
}