Edit sidebar and page meta styles
This commit is contained in:
parent
a31bd447d0
commit
1ccd5f6bf0
9 changed files with 119 additions and 85 deletions
|
@ -24,12 +24,14 @@
|
||||||
.archive__subtitle {
|
.archive__subtitle {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-bottom: 0.5em;
|
padding-bottom: 0.5em;
|
||||||
|
font-family: $serif;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
border-bottom: 1px solid $border-color;
|
border-bottom: 1px solid $border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.archive__item-title {
|
.archive__item-title {
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
|
font-family: $sans-serif-narrow;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
@ -2,12 +2,9 @@
|
||||||
SINGLE PAGE/POST
|
SINGLE PAGE/POST
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/* Main content */
|
|
||||||
#main {
|
#main {
|
||||||
counter-reset: captions;
|
|
||||||
@include container;
|
@include container;
|
||||||
@include clearfix;
|
@include clearfix;
|
||||||
clear: both;
|
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +30,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.page__title {}
|
.page__title {
|
||||||
|
font-family: $serif;
|
||||||
|
}
|
||||||
|
|
||||||
.page__content {
|
.page__content {
|
||||||
ul, ol {
|
ul, ol {
|
||||||
|
@ -98,85 +97,39 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Post byline */
|
/*
|
||||||
.byline {
|
Social sharing
|
||||||
clear: both;
|
========================================================================== */
|
||||||
font-size: 80%;
|
|
||||||
|
.page__share {
|
||||||
|
margin-top: 1em;
|
||||||
|
padding-top: 1em;
|
||||||
|
border-top: 1px solid $border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Author profile */
|
.page__share-title {
|
||||||
.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;
|
font-size: 14px;
|
||||||
color: #000;
|
margin-bottom: 10px;
|
||||||
text-decoration: none;
|
text-transform: uppercase;
|
||||||
&: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 meta
|
||||||
font-size: 14px;
|
========================================================================== */
|
||||||
|
|
||||||
|
.page__meta {
|
||||||
|
margin-top: 2em;
|
||||||
|
font-family: $sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
78
_assets/css/_sidebar.scss
Normal file
78
_assets/css/_sidebar.scss
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
@import "page";
|
@import "page";
|
||||||
@import "archive";
|
@import "archive";
|
||||||
|
@import "sidebar";
|
||||||
|
|
||||||
@import "vendor/font-awesome/font-awesome";
|
@import "vendor/font-awesome/font-awesome";
|
||||||
@import "vendor/magnific-popup/magnific-popup";
|
@import "vendor/magnific-popup/magnific-popup";
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<img src="{{ author.avatar | prepend: "/images/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">
|
<img src="{{ author.avatar | prepend: "/images/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">
|
||||||
{% endif %}
|
{% 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.bio %}<p class="author__bio">{{ author.bio }}</p>{% endif %}
|
||||||
{% if author.uri %}
|
{% if author.uri %}
|
||||||
<a href="{{ author.uri }}" class="author__social-url" target="_blank"><i class="fa fa-fw fa-globe"></i>Website</a>
|
<a href="{{ author.uri }}" class="author__social-url" target="_blank"><i class="fa fa-fw fa-globe"></i>Website</a>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{% capture page_tags %}{% for tag in page.tags %}{{ tag | downcase }}#{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
{% 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) %}
|
{% 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 %}
|
{% for hash in tag_hashes %}
|
||||||
{% assign keyValue = hash | split: '#' %}
|
{% assign keyValue = hash | split: '#' %}
|
||||||
{% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
|
{% 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 %}
|
{% 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) %}
|
{% 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 %}
|
{% for hash in category_hashes %}
|
||||||
{% assign keyValue = hash | split: '#' %}
|
{% assign keyValue = hash | split: '#' %}
|
||||||
{% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
|
{% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="social-share">
|
<section class="page__share">
|
||||||
<h4>{{ site.data.ui-text[site.locale].share_on }}</h4>
|
<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://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://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>
|
<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
2
assets/js/main.min.js
vendored
2
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue