Skip to content

Commit

Permalink
Refactor Home page SCSS
Browse files Browse the repository at this point in the history
* Split sections into different files
  • Loading branch information
smharley committed May 22, 2017
1 parent d2c1449 commit d57b4cc
Show file tree
Hide file tree
Showing 16 changed files with 481 additions and 648 deletions.
4 changes: 2 additions & 2 deletions app/assets/stylesheets/base/_button_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@

@mixin large-button($type: $outline, $base-color: $purple, $hover-color: $white) {
@include button($type, $base-color, $hover-color);
font-size: 1em;
padding: 0.8em 2.4em;
font-size: $font-size-base;
padding: $small-spacing ($base-spacing * 2);
}

@mixin small-button($type: $outline, $base-color: $purple, $hover-color: $white) {
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/base/_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@
.inner-wrapper {
@include clearfix;
}

img {
max-width: 100%;
}
13 changes: 13 additions & 0 deletions app/assets/stylesheets/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ $inactive-color: #999;
$active-color: $teal;
$repo-list-toggle-size: 1.5rem;

$base-text-shadow: 0 1px 2px rgba($black, 0.2);

$base-background-color: rgb(248, 248, 248);
$base-border-color: rgb(220, 220, 220);
$base-font-color: rgb(100, 100, 100);
Expand All @@ -31,6 +33,9 @@ $base-secondary-color: lighten($purple, 10%);
$table-heading-background-color: rgb(245, 245, 245);
$code-background-color: rgba(#99abc0, 0.25);

$home-gradient-top: rgb(196, 115, 209);
$home-gradient-bottom: rgb(153, 115, 209);

$icon-font: "FontAwesome";
$icon-dropdown: '\f0d7';
$icon-dropup: '\f0d8';
Expand Down Expand Up @@ -62,11 +67,19 @@ $small-spacing: $base-spacing * 0.75;
$medium-spacing: $base-spacing * 1.5;
$large-spacing: $base-spacing * 3;

$letter-spacing-base: 1px;
$letter-spacing-large: 2px;

$font-weight-light: 300;
$font-weight-normal: 400;
$font-weight-bold: 700;

$font-size-small: 0.875em;
$font-size-base: 1em;
$font-size-medium: 1.25em;
$font-size-large: 2.7em;
$font-size-xlarge: 3em;
$font-size-xxlarge: 3.8em;

// Transition
$base-transition-timing: 0.2s;
Expand Down
3 changes: 2 additions & 1 deletion app/assets/stylesheets/components/_pricing.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.plan-category {
@include span-columns(12 of 12);
color: $base-accent-color;
margin-bottom: $medium-spacing;
margin: $medium-spacing 0;
text-align: center;

.fa {
Expand All @@ -20,6 +20,7 @@
border-radius: $base-border-radius;
margin-bottom: $medium-spacing;
position: relative;
text-align: left;

@include media($medium-large-screen-only) {
padding-left: $medium-spacing;
Expand Down
Loading

0 comments on commit d57b4cc

Please sign in to comment.