Edit sidebar and page meta styles

This commit is contained in:
Michael Rose 2016-03-10 22:29:30 -05:00
parent a31bd447d0
commit 1ccd5f6bf0
9 changed files with 119 additions and 85 deletions

View file

@ -24,12 +24,14 @@
.archive__subtitle {
margin: 0;
padding-bottom: 0.5em;
font-family: $serif;
font-size: 28px;
border-bottom: 1px solid $border-color;
}
.archive__item-title {
margin-bottom: 4px;
font-family: $sans-serif-narrow;
font-size: 20px;
a {
text-decoration: none;

View file

@ -2,12 +2,9 @@
SINGLE PAGE/POST
========================================================================== */
/* Main content */
#main {
counter-reset: captions;
@include container;
@include clearfix;
clear: both;
margin-top: 2em;
}
@ -33,7 +30,9 @@
}
}
.page__title {}
.page__title {
font-family: $serif;
}
.page__content {
ul, ol {
@ -98,85 +97,39 @@
}
}
/* Post byline */
.byline {
clear: both;
font-size: 80%;
/*
Social sharing
========================================================================== */
.page__share {
margin-top: 1em;
padding-top: 1em;
border-top: 1px solid $border-color;
}
/* Author profile */
.sidebar {
display: none;
a, a:hover {
border-bottom: 0 solid transparent;
}
img {
width: 100%;
}
@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);
}
}
.author__name {
margin-bottom: 0;
@include breakpoint($small) {
margin-top: 10px;
margin-bottom: 10px;
}
}
.author__bio {
font-size: 80%;
font-style: italic;
@include breakpoint($small) {
margin-bottom: 20px;
}
}
.author__avatar {
max-width: 110px;
border-radius: 50%;
}
.author__social-url {
display: block;
margin-bottom: 5px;
font-size: 14px;
color: #000;
text-decoration: none;
&:visited {
color: #000;
}
&:hover {
text-decoration: underline;
}
.fa {
margin-right: 5px;
}
}
@include breakpoint($small) {
display: block;
max-width: 125px;
}
@include breakpoint($large) {
.author__name,
.author__avatar,
.author__bio,
.author__social-url {
max-width: 150px;
}
}
/* Social sharing links */
.social-share {
h4 {
.page__share-title {
font-size: 14px;
margin-bottom: 10px;
text-transform: uppercase;
}
/*
Page meta
========================================================================== */
.page__meta {
margin-top: 2em;
font-family: $sans-serif;
font-size: 14px;
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
p {
margin-bottom: 10px;
}
}

78
_assets/css/_sidebar.scss Normal file
View file

@ -0,0 +1,78 @@
/* ==========================================================================
SIDEBAR
========================================================================== */
.sidebar {
display: none;
a, a:hover {
border-bottom: 0 solid transparent;
}
img {
width: 100%;
}
@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);
}
}
/*
Author profile and links
========================================================================== */
.author__name {
margin-bottom: 0;
font-family: $sans-serif-narrow;
@include breakpoint($small) {
margin-top: 10px;
margin-bottom: 10px;
}
}
.author__bio {
font-size: 80%;
font-style: italic;
@include breakpoint($small) {
margin-bottom: 20px;
}
}
.author__avatar {
max-width: 110px;
border-radius: 50%;
}
.author__social-url {
display: block;
margin-bottom: 5px;
font-size: 14px;
color: #000;
text-decoration: none;
&:visited {
color: #000;
}
&:hover {
text-decoration: underline;
}
.fa {
margin-right: 5px;
}
}
.author__name,
.author__avatar,
.author__bio,
.author__social-url {
@include breakpoint($small) {
display: block;
max-width: 125px;
}
@include breakpoint($large) {
max-width: 150px;
}
}

View file

@ -26,6 +26,7 @@
@import "page";
@import "archive";
@import "sidebar";
@import "vendor/font-awesome/font-awesome";
@import "vendor/magnific-popup/magnific-popup";

View file

@ -10,7 +10,7 @@
<img src="{{ author.avatar | prepend: "/images/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">
{% endif %}
<h3 class="author-name">{{ author.name }}</h3>
<h3 class="author__name">{{ author.name }}</h3>
{% if author.bio %}<p class="author__bio">{{ author.bio }}</p>{% endif %}
{% if author.uri %}
<a href="{{ author.uri }}" class="author__social-url" target="_blank"><i class="fa fa-fw fa-globe"></i>Website</a>

View file

@ -10,7 +10,7 @@
{% capture page_tags %}{% for tag in page.tags %}{{ tag | downcase }}#{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_hashes = (page_tags | split: ',' | sort:0) %}
<p><strong>{{ site.data.ui-text[site.locale].tags_label }}</strong> <span class="page__taxonomy-wrapper" itemprop="keywords">
<p class="page__taxonomy"><strong>{{ site.data.ui-text[site.locale].tags_label }}</strong> <span itemprop="keywords">
{% for hash in tag_hashes %}
{% assign keyValue = hash | split: '#' %}
{% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
@ -26,7 +26,7 @@
{% capture page_categories %}{% for category in page.categories %}{{ category | downcase }}#{{ category }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign category_hashes = (page_categories | split: ',' | sort:0) %}
<p><strong>{{ site.data.ui-text[site.locale].categories_label }}</strong> <span class="page__taxonomy-wrapper" itemprop="keywords">
<p class="page__taxonomy"><strong>{{ site.data.ui-text[site.locale].categories_label }}</strong> <span itemprop="keywords">
{% for hash in category_hashes %}
{% assign keyValue = hash | split: '#' %}
{% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}

View file

@ -1,6 +1,6 @@
<div class="social-share">
<h4>{{ site.data.ui-text[site.locale].share_on }}</h4>
<section class="page__share">
<h4 class="page__share-title">{{ site.data.ui-text[site.locale].share_on_label }}</h4>
<a href="https://twitter.com/intent/tweet?text={{ base_path }}{{ page.url }}" class="btn btn--twitter" title="Share on Twitter"><i class="fa fa-twitter"></i><span> Twitter</span></a>
<a href="https://www.facebook.com/sharer/sharer.php?u={{ base_path }}{{ page.url }}" class="btn btn--facebook" title="Share on Facebook"><i class="fa fa-facebook"></i><span> Facebook</span></a>
<a href="https://plus.google.com/share?url={{ base_path }}{{ page.url }}" class="btn btn--google-plus" title="Share on Google Plus"><i class="fa fa-google-plus"></i><span> Google+</span></a>
</div><!-- /.social-share -->
</section><!-- /.social-share -->

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long