From 564d71285e2952619e874868955588fd193fd88b Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Tue, 30 Aug 2016 22:48:58 +0200 Subject: [PATCH] degeneralize box --- .../assets/stylesheets/includes/tiles.scss | 18 +-- content/index.erb | 134 +++++++++--------- 2 files changed, 78 insertions(+), 74 deletions(-) diff --git a/content/assets/stylesheets/includes/tiles.scss b/content/assets/stylesheets/includes/tiles.scss index e65d302..4e95000 100644 --- a/content/assets/stylesheets/includes/tiles.scss +++ b/content/assets/stylesheets/includes/tiles.scss @@ -2,16 +2,18 @@ a.box { color: #000; } -.box { - background-color: $box-colour; +#homepage { + .box { + background-color: $box-colour; - &.highlighted { - background-color: $highlighted-box-colour; - color: $highlighted-text-colour; + &.highlighted { + background-color: $highlighted-box-colour; + color: $highlighted-text-colour; - .content { - h1 { - color: white; + .content { + h1 { + color: white; + } } } } diff --git a/content/index.erb b/content/index.erb index b1bea41..3b4d8c5 100644 --- a/content/index.erb +++ b/content/index.erb @@ -1,76 +1,78 @@ -
-
- <%= render '/partials/_tile.*', article: all_events[0] %> -
-
-
- <%= render '/partials/_tile.*', article: all_events[1], htmlclass: "highlighted" %> +
+
+
+ <%= render '/partials/_tile.*', article: all_events[0] %>
-
-
- IDK LOL +
+
+ <%= render '/partials/_tile.*', article: all_events[1], htmlclass: "highlighted" %>
-
-
-
-
- <%= fa 'wikipedia-w' %> +
+
+ IDK LOL
-
-
- <%= fa 'video-camera' %> -
-
-
-
-
-
- <%= fa 'github' %> -
-
-
-
- <%= fa 'facebook-official' %> -
-
-
-
-
-
-
-
-

<%= sorted_articles.first[:title] %>

- <%= sorted_articles.first[:description] %> -
-
-
-
-
-
-

- Numero uno: @werthen -

-

- Numero dos: @myncke -

-

- Numero tres: @iepoev -

-

- Numero quatro: @becousae -

-
-
-
-
-
- GITHUB +
+
+
+ <%= fa 'wikipedia-w' %>
-
+
+
+ <%= fa 'video-camera' %> +
+
+
+
+
+
+ <%= fa 'github' %> +
+
+
+
+ <%= fa 'facebook-official' %> +
+
+
+
+
+
+
+
+

<%= sorted_articles.first[:title] %>

+ <%= sorted_articles.first[:description] %> +
+
+
+
+
- GITHUB +

+ Numero uno: @werthen +

+

+ Numero dos: @myncke +

+

+ Numero tres: @iepoev +

+

+ Numero quatro: @becousae +

+
+
+
+
+
+ GITHUB +
+
+
+
+ GITHUB +