Skip to content

Commit

Permalink
Use colors to separate meta from blog contents
Browse files Browse the repository at this point in the history
  • Loading branch information
c-lliope committed Sep 20, 2016
1 parent 8e82ca0 commit 451755d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 14 deletions.
27 changes: 20 additions & 7 deletions app/assets/stylesheets/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
body {
height: 100%;
}

.content {
@include outer-container;
padding: $base-spacing 0;
align-items: stretch;
display: flex;
flex-wrap: wrap;
min-height: 100%;
}

.left-column,
.right-column {
padding: $base-spacing;
flex: 0 0 100%;
}

.left-column {
background-color: $dark-blue;
color: $white;
}

.right-column {
background-color: $white;
color: $dark-gray;
}

@include media($large-screen) {
.left-column,
.right-column {
@include span-columns(5.5 of 12);
}

.right-column {
@include shift(1);
flex: 0 0 50%;
}
}
2 changes: 1 addition & 1 deletion app/assets/stylesheets/_timer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
.timer-label {
@include span-columns(4 of 6);
@include omega;
color: $medium-gray;
color: $action-color;
}

.right-aligned {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/base/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ textarea {
}

&::placeholder {
color: tint($base-font-color, 40%);
color: $medium-gray;
}
}

Expand Down
11 changes: 6 additions & 5 deletions app/assets/stylesheets/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ $small-spacing: $base-spacing / 2;
$base-z-index: 0;

// Colors
$blue: #1565c0;
$dark-gray: #333;
$dark-blue: #1856c7;
$blue: #248eff;
$dark-gray: #036;
$medium-gray: #999;
$light-gray: #ddd;
$white: #f1f1f9;

// Font Colors
$base-font-color: $dark-gray;
$base-font-color: $white;
$action-color: $blue;

// Border
$base-border-color: $light-gray;
$base-border-color: $medium-gray;
$base-border: 1px solid $base-border-color;

// Background Colors
Expand Down
2 changes: 2 additions & 0 deletions app/views/posts/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<%= link_to "Back", posts_path %>

<h1><%= @post.title %></h1>

<p>
Expand Down

0 comments on commit 451755d

Please sign in to comment.