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

128 lines
2.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;
}
}
2017-04-23 13:47:44 +00:00
@keyframes lineAnimation {
2017-04-24 19:11:18 +00:00
to {
2017-04-23 13:47:44 +00:00
width: 80px;
opacity: 1;
}
}
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;
2017-12-16 17:12:00 +00:00
@include mobile {
text-align: center;
margin-top: 0;
position: relative;
margin-bottom: .2em;
}
2017-04-20 12:20:32 +00:00
}
.details {
right: 0;
position: absolute;
margin-top: -1.1rem;
line-height: 1;
text-align: right;
2017-12-16 17:12:00 +00:00
@include mobile {
text-align: center;
margin-top: 0;
position: relative;
}
2017-04-20 12:20:32 +00:00
}
}
2017-04-24 19:11:18 +00:00
// Under title line
2017-04-20 12:20:32 +00:00
&::after {
content: '';
2017-04-23 13:47:44 +00:00
opacity: 0;
width: 0px;
2017-04-20 12:20:32 +00:00
height: 1px;
margin-top: 30px;
margin-right: auto;
margin-left: auto;
margin-bottom: 30px;
display: block;
background: $zeus-orange;
2017-04-23 13:47:44 +00:00
animation: lineAnimation 2s ease-in-out 1 normal forwards;
2017-04-24 19:11:18 +00:00
animation-delay: 0.5s;
2017-04-20 12:20:32 +00:00
}
2016-10-06 12:21:01 +00:00
}
2017-04-20 21:06:45 +00:00
.blog-preview {
position: relative;
2017-04-24 19:11:18 +00:00
// Fadeout
2017-04-20 21:06:45 +00:00
&::after {
content: '';
position: absolute;
bottom: 20px;
left: 0;
2017-12-16 20:48:33 +00:00
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&0+0,1+100;White+to+Transparent */
background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
2017-04-20 21:06:45 +00:00
height: 100px;
width: 100%;
}
}
2018-04-10 09:56:30 +00:00
.content figure.full-width {
margin-left: -50vw;
margin-right: -50vw;
width: 100vw;
max-width: 100vw;
position: relative;
left: 50%;
right: 50%;
}