hacks-guide-minimal-mistake.../_assets/css/_sidebar.scss

89 lines
1.7 KiB
SCSS
Raw Normal View History

2016-03-11 04:29:30 +01:00
/* ==========================================================================
SIDEBAR
========================================================================== */
.sidebar {
@include grid(12,10);
@include prefix(12,1);
@include suffix(12,1);
margin-bottom: 1em;
2016-03-11 04:29:30 +01:00
@include breakpoint($small) {
display: block;
@include grid(12,2);
@include prefix(12,0.5);
@include suffix(12,0.5);
}
@include breakpoint($x-large) {
@include grid(12,1.5);
@include prefix(12,2);
}
h2, h3, h4, h5, h6 {
font-family: $sans-serif-narrow;
}
p, li {
font-size: 14px;
}
img {
width: 100%;
}
2016-03-11 04:29:30 +01:00
}
/*
Author profile and links
========================================================================== */
.author__name {
margin-bottom: 0;
font-family: $sans-serif-narrow;
font-size: 18px;
2016-03-11 04:29:30 +01:00
@include breakpoint($small) {
margin-top: 10px;
margin-bottom: 10px;
font-size: 24px;
2016-03-11 04:29:30 +01:00
}
}
.author__bio {
display: none;
2016-03-11 04:29:30 +01:00
@include breakpoint($small) {
display: block;
2016-03-11 04:29:30 +01:00
margin-bottom: 20px;
font-size: 80%;
font-style: italic;
2016-03-11 04:29:30 +01:00
}
}
.author__avatar {
display: none;
@include breakpoint($small) {
max-width: 110px;
border-radius: 50%;
}
2016-03-11 04:29:30 +01:00
}
.author__social-url {
display: inline-block;
2016-03-11 04:29:30 +01:00
margin-bottom: 5px;
padding-right: 5px;
2016-03-11 04:29:30 +01:00
font-size: 14px;
color: #000;
text-decoration: none;
@include breakpoint($small) {
display: block;
2016-03-11 04:29:30 +01:00
}
&:hover {
text-decoration: underline;
}
}
.author__name,
.author__avatar,
.author__bio,
.author__social-url {
@include breakpoint($small) {
display: block;
max-width: 125px;
}
@include breakpoint($large) {
max-width: 150px;
}
}