From a1026e6ceaf0484073160bc76cab37a1a3210173 Mon Sep 17 00:00:00 2001 From: quassy Date: Sat, 13 Jun 2015 02:26:05 +0200 Subject: [PATCH] Remove duplicate code --- _includes/app_content.html | 7 +------ _layouts/post.html | 4 ++-- _scss/_content.scss | 8 ++++++-- _scss/_highlights.scss | 8 +++++++- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/_includes/app_content.html b/_includes/app_content.html index 1e51737..6eb5199 100644 --- a/_includes/app_content.html +++ b/_includes/app_content.html @@ -7,12 +7,7 @@

{{ dist.system }}

Add a {{ dist.type }} repository for {{ dist.system }} version {{ repo.version }} to install the software, by entering the following commands in a terminal:

-
sudo apt-add-repository {{ repo.repository }} && sudo apt-get update
-sudo apt-get install {{ repo.package }}
-
-
- -
sudo apt-add-repository {{ repo.repository }} && sudo apt-get update
+        
sudo apt-add-repository {{ repo.repository }} && sudo apt-get update
 sudo apt-get install {{ repo.package }}
{% endfor %} diff --git a/_layouts/post.html b/_layouts/post.html index d38796e..f5dc4f1 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -45,7 +45,7 @@

{{ post.title }}

- Improve this entry on GitHub! + Improve this entry on GitHub! {% if post.tags.size > 0 %} {% capture tags_content %}Tagged with {% endcapture %} @@ -64,7 +64,7 @@

{{ post.title }}

{% assign tags_content = '' %} {% endif %} - {{ tags_content }}
+ diff --git a/_scss/_content.scss b/_scss/_content.scss index a4b42b4..2833e42 100644 --- a/_scss/_content.scss +++ b/_scss/_content.scss @@ -64,14 +64,18 @@ ul ul, ol ul { list-style-type: circle; } -em, i { +em, i, .i { font-style: italic; } -strong, b { +strong, b, .b { font-weight: bold; } +u, .u { + text-decoration: underline; +} + img { max-width: 100%; } diff --git a/_scss/_highlights.scss b/_scss/_highlights.scss index 5eb63c9..e25323f 100644 --- a/_scss/_highlights.scss +++ b/_scss/_highlights.scss @@ -5,9 +5,15 @@ .highlight { background-color: $base02; - color: $base2; + color: $white; padding: 5px 10px; margin: 15px 0; + display: flex; + justify-content: left; + align-items: center; + &:first-child { + margin:8px; + } } .highlight pre {