.blogpost { position: relative; #table-of-contents { @include tablet { position: absolute; left: 100%; } @include mobile { text-align: center; } #markdown-toc { @extend .menu-list; &, ul { margin: 0; list-style: none; } } } } $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; } } @keyframes lineAnimation { to { width: 80px; opacity: 1; } } .blog-heading { display: flex; flex-direction: column; .titlewrap { position: relative; margin: auto; .title { @include tablet { font-size: 4rem; } font-weight: bolder; } .subtitle { position: absolute; @include mobile { text-align: center; margin-top: 0; position: relative; margin-bottom: .2em; } } .details { right: 0; position: absolute; margin-top: -1.1rem; line-height: 1; text-align: right; @include mobile { text-align: center; margin-top: 0; position: relative; } } } // Under title line &::after { content: ''; opacity: 0; width: 0px; height: 1px; margin-top: 30px; margin-right: auto; margin-left: auto; margin-bottom: 30px; display: block; background: $zeus-orange; animation: lineAnimation 2s ease-in-out 1 normal forwards; animation-delay: 0.5s; } } .blog-preview { position: relative; // Fadeout &::after { content: ''; position: absolute; bottom: 20px; left: 0; /* 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 */ height: 100px; width: 100%; } } .content figure.full-width { margin-left: -50vw; margin-right: -50vw; width: 100vw; max-width: 100vw; position: relative; left: 50%; right: 50%; }