Add blog post list and placeholder blog post
• add blog post list • add css specificially for the blog and projects pages • make layouts more modular for including different CSS on each page • use HTML for directory pages for better use with Liquid
This commit is contained in:
108
css/sidebar.scss
108
css/sidebar.scss
@ -3,10 +3,9 @@
|
||||
@import 'util';
|
||||
@import 'colors';
|
||||
@import 'fonts';
|
||||
@import 'mobile';
|
||||
|
||||
$flag-shadow: rgba(black, 0.2);
|
||||
$animate-time: 0.03s;
|
||||
$mobile-width: {{ site.mobile-width }};
|
||||
|
||||
#sidebar {
|
||||
display: flex;
|
||||
@ -27,47 +26,37 @@ $animate-time: 0.03s;
|
||||
margin-block-end: 0;
|
||||
list-style-type: none;
|
||||
line-height: 0;
|
||||
|
||||
margin: 0;
|
||||
padding: {
|
||||
left: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#navLinks {
|
||||
display: block;
|
||||
padding: {
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
color: $subtle;
|
||||
font-family: $sidebar-font;
|
||||
|
||||
a{
|
||||
a {
|
||||
color: $sidebar-link-text;
|
||||
text-decoration: none;
|
||||
@include prefix-group((
|
||||
transition-duration: $animate-time,
|
||||
transition-property: color,
|
||||
), webkit moz o);
|
||||
|
||||
@include prefix-group(( transition-duration: $animate-time, transition-property: color, ), webkit moz o);
|
||||
}
|
||||
|
||||
a:hover{
|
||||
a:hover {
|
||||
color: $sidebar-link-hover;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.flagButton, .flagButton::after, .flagPoint, .flagPoint::after {
|
||||
@include prefix-group((
|
||||
transition-duration: $animate-time,
|
||||
transition-timing-function: ease-out
|
||||
), webkit moz o);
|
||||
.flagButton,
|
||||
.flagButton::after,
|
||||
.flagPoint,
|
||||
.flagPoint::after {
|
||||
@include prefix-group(( transition-duration: $animate-time, transition-timing-function: ease-out), webkit moz o);
|
||||
}
|
||||
|
||||
|
||||
.flagText {
|
||||
font: {
|
||||
family: $sidebar-font;
|
||||
@ -75,150 +64,124 @@ $animate-time: 0.03s;
|
||||
weight: 600;
|
||||
}
|
||||
position: relative;
|
||||
|
||||
line-height: normal;
|
||||
text-align: center;
|
||||
|
||||
float: right;
|
||||
width: 160px;
|
||||
top:12px;
|
||||
|
||||
color: $sidebar-text;
|
||||
}
|
||||
|
||||
@media screen and (min-width: $mobile-width) {
|
||||
@media screen and (min-width: $mobile-width + 1) {
|
||||
.flag {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
left: -3px;
|
||||
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
|
||||
padding: {
|
||||
top: 5px;
|
||||
bottom: 5px;
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
.flagButton {
|
||||
display: block;
|
||||
float: left;
|
||||
|
||||
height: 50px;
|
||||
|
||||
border-radius: 0 5px 5px 0;
|
||||
|
||||
@include prefix(transition-property, width, webkit moz o);
|
||||
@include prefix(transition-property, border-radius, webkit moz o);
|
||||
}
|
||||
|
||||
.flagButton::after{
|
||||
.flagButton::after {
|
||||
z-index: -1;
|
||||
content: " ";
|
||||
display: block;
|
||||
position: relative;
|
||||
left: 3px;
|
||||
top: 4px;
|
||||
|
||||
height: 50px;
|
||||
width: 160px;
|
||||
background-color: $flag-shadow;
|
||||
border-radius: 0 5px 5px 0;
|
||||
|
||||
@include prefix(transition-property, width, webkit moz o);
|
||||
@include prefix(transition-property, border-radius, webkit moz o);
|
||||
}
|
||||
|
||||
.flagPoint{
|
||||
.flagPoint {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
left: 160px;
|
||||
border-top: 25px solid transparent;
|
||||
border-top: 25px solid transparent;
|
||||
border-bottom: 25px solid transparent;
|
||||
border-left-width: 0px;
|
||||
border-left-width: 0px;
|
||||
border-left-style: solid;
|
||||
background-color: transparent;
|
||||
|
||||
@include prefix(transition-property, left, webkit moz o);
|
||||
@include prefix(transition-property, border-left-width, webkit moz o);
|
||||
}
|
||||
|
||||
.flagPoint.blue {
|
||||
border-left-color: $blue;
|
||||
}
|
||||
|
||||
.flagPoint.orange {
|
||||
border-left-color: $orange;
|
||||
}
|
||||
|
||||
.flagPoint.green {
|
||||
border-left-color: $green;
|
||||
}
|
||||
|
||||
.flagPoint.magenta {
|
||||
border-left-color: $magenta;
|
||||
}
|
||||
|
||||
.flagPoint::after{
|
||||
.flagPoint::after {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 25px solid transparent;
|
||||
border-top: 25px solid transparent;
|
||||
border-bottom: 25px solid transparent;
|
||||
border-left: 0px solid $flag-shadow;
|
||||
border-left: 0px solid $flag-shadow;
|
||||
z-index: -1;
|
||||
content: " ";
|
||||
left: -20 + 3px;
|
||||
top: -25 + 4px;
|
||||
|
||||
@include prefix(transition-property, border-left-width, webkit moz o);
|
||||
}
|
||||
|
||||
.flagFold{
|
||||
.flagFold {
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: -100;
|
||||
left:0px;
|
||||
top:55px;
|
||||
left: 0px;
|
||||
top: 55px;
|
||||
width: 3px;
|
||||
height: 3px;
|
||||
mask-image: url('../svg/fold.svg');
|
||||
-webkit-mask-image: url('../svg/fold.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.flag:hover {
|
||||
|
||||
.flagButton {
|
||||
width: 170px;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.flagButton::after{
|
||||
.flagButton::after {
|
||||
width: 170px;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.flagPoint {
|
||||
left: 170px;
|
||||
border-left-width: 20px;
|
||||
}
|
||||
.flagPoint::after{
|
||||
.flagPoint::after {
|
||||
border-left-width: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: $mobile-width) {
|
||||
#sidebar{
|
||||
#sidebar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#navFlags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@ -226,29 +189,23 @@ $animate-time: 0.03s;
|
||||
padding: {
|
||||
left: 15px;
|
||||
right: 15px;
|
||||
}
|
||||
|
||||
}
|
||||
li {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#navLinks {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.flag {
|
||||
display: block;
|
||||
margin: 5px;
|
||||
|
||||
//text-decoration: none;
|
||||
|
||||
.flagPoint, .flagFold {
|
||||
margin: 5px; //text-decoration: none;
|
||||
.flagPoint,
|
||||
.flagFold {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.flagButton{
|
||||
.flagButton {
|
||||
border-radius: 5px;
|
||||
display: block;
|
||||
height: 50px;
|
||||
@ -263,8 +220,7 @@ $animate-time: 0.03s;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.flag:hover a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user