Skip to content

Commit

Permalink
Install bourbon and bitters
Browse files Browse the repository at this point in the history
`$ cd public/stylesheets`
`$ bourbon install`
`$ bitters install`
  • Loading branch information
cappadona committed Aug 25, 2015
1 parent 0530ae0 commit 9ee941e
Show file tree
Hide file tree
Showing 88 changed files with 3,348 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/pages/index.liquid.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ published: true
%title {{ site.name }}
%meta{name: "keywords", value: "{{ site.meta_keywords }}"}
%meta{name: "description", value: "{{ site.meta_description }}"}
{{ 'application.css' | stylesheet_tag }}
%body
%h1 {{ page.title }}
{% block 'main' %}
%p Lorem ipsum....
{% endblock %}
{% endblock %}
5 changes: 5 additions & 0 deletions public/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Bourbon
@import 'bourbon/bourbon';

// Bitters
@import 'base/base';
15 changes: 15 additions & 0 deletions public/stylesheets/base/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Bitters 1.0.0
// http://bitters.bourbon.io
// Copyright 2013-2015 thoughtbot, inc.
// MIT License

@import "variables";

// Neat Settings -- uncomment if using Neat -- must be imported before Neat
// @import "grid-settings";

@import "buttons";
@import "forms";
@import "lists";
@import "tables";
@import "typography";
31 changes: 31 additions & 0 deletions public/stylesheets/base/_buttons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#{$all-button-inputs},
button {
@include appearance(none);
-webkit-font-smoothing: antialiased;
background-color: $action-color;
border-radius: $base-border-radius;
border: none;
color: #fff;
cursor: pointer;
display: inline-block;
font-family: $base-font-family;
font-size: $base-font-size;
font-weight: 600;
line-height: 1;
padding: 0.75em 1em;
text-decoration: none;
user-select: none;
vertical-align: middle;
white-space: nowrap;

&:hover,
&:focus {
background-color: darken($action-color, 15%);
color: #fff;
}

&:disabled {
cursor: not-allowed;
opacity: 0.5;
}
}
78 changes: 78 additions & 0 deletions public/stylesheets/base/_forms.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
fieldset {
background-color: lighten($base-border-color, 10%);
border: $base-border;
margin: 0 0 $small-spacing;
padding: $base-spacing;
}

input,
label,
select {
display: block;
font-family: $base-font-family;
font-size: $base-font-size;
}

label {
font-weight: 600;
margin-bottom: $small-spacing / 2;

&.required::after {
content: "*";
}

abbr {
display: none;
}
}

#{$all-text-inputs},
select[multiple=multiple],
textarea {
background-color: $base-background-color;
border: $base-border;
border-radius: $base-border-radius;
box-shadow: $form-box-shadow;
box-sizing: border-box;
font-family: $base-font-family;
font-size: $base-font-size;
margin-bottom: $base-spacing / 2;
padding: $base-spacing / 3;
transition: border-color;
width: 100%;

&:hover {
border-color: darken($base-border-color, 10%);
}

&:focus {
border-color: $action-color;
box-shadow: $form-box-shadow-focus;
outline: none;
}
}

textarea {
resize: vertical;
}

input[type="search"] {
@include appearance(none);
}

input[type="checkbox"],
input[type="radio"] {
display: inline;
margin-right: $small-spacing / 2;
}

input[type="file"] {
padding-bottom: $small-spacing;
width: 100%;
}

select {
margin-bottom: $base-spacing;
max-width: 100%;
width: auto;
}
14 changes: 14 additions & 0 deletions public/stylesheets/base/_grid-settings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@import "neat-helpers"; // or "../neat/neat-helpers" when not in Rails

// Neat Overrides
// $column: 90px;
// $gutter: 30px;
// $grid-columns: 12;
// $max-width: em(1088);

// Neat Breakpoints
$medium-screen: em(640);
$large-screen: em(860);

$medium-screen-up: new-breakpoint(min-width $medium-screen 4);
$large-screen-up: new-breakpoint(min-width $large-screen 8);
31 changes: 31 additions & 0 deletions public/stylesheets/base/_lists.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
ul,
ol {
list-style-type: none;
margin: 0;
padding: 0;

&%default-ul {
list-style-type: disc;
margin-bottom: $small-spacing;
padding-left: $base-spacing;
}

&%default-ol {
list-style-type: decimal;
margin-bottom: $small-spacing;
padding-left: $base-spacing;
}
}

dl {
margin-bottom: $small-spacing;

dt {
font-weight: bold;
margin-top: $small-spacing;
}

dd {
margin: 0;
}
}
25 changes: 25 additions & 0 deletions public/stylesheets/base/_tables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
table {
@include font-feature-settings("kern", "liga", "tnum");
border-collapse: collapse;
margin: $small-spacing 0;
table-layout: fixed;
width: 100%;
}

th {
border-bottom: 1px solid darken($base-border-color, 15%);
font-weight: 600;
padding: $small-spacing 0;
text-align: left;
}

td {
border-bottom: $base-border;
padding: $small-spacing 0;
}

tr,
td,
th {
vertical-align: middle;
}
55 changes: 55 additions & 0 deletions public/stylesheets/base/_typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
body {
@include font-feature-settings("kern", "liga", "pnum");
-webkit-font-smoothing: antialiased;
color: $base-font-color;
font-family: $base-font-family;
font-size: $base-font-size;
line-height: $base-line-height;
}

h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $heading-font-family;
font-size: $base-font-size;
line-height: $heading-line-height;
margin: 0 0 $small-spacing;
}

p {
margin: 0 0 $small-spacing;
}

a {
color: $action-color;
text-decoration: none;
transition: color 0.1s linear;

&:active,
&:focus,
&:hover {
color: darken($action-color, 15%);
}

&:active,
&:focus {
outline: none;
}
}

hr {
border-bottom: $base-border;
border-left: none;
border-right: none;
border-top: none;
margin: $base-spacing 0;
}

img,
picture {
margin: 0;
max-width: 100%;
}
35 changes: 35 additions & 0 deletions public/stylesheets/base/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Typography
$base-font-family: $helvetica;
$heading-font-family: $base-font-family;

// Font Sizes
$base-font-size: 1em;

// Line height
$base-line-height: 1.5;
$heading-line-height: 1.2;

// Other Sizes
$base-border-radius: 3px;
$base-spacing: $base-line-height * 1em;
$small-spacing: $base-spacing / 2;
$base-z-index: 0;

// Colors
$blue: #477dca;
$dark-gray: #333;
$medium-gray: #999;
$light-gray: #ddd;

// Font Colors
$base-background-color: #fff;
$base-font-color: $dark-gray;
$action-color: $blue;

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

// Forms
$form-box-shadow: inset 0 1px 3px rgba(#000, 0.06);
$form-box-shadow-focus: $form-box-shadow, 0 0 5px adjust-color($action-color, $lightness: -5%, $alpha: -0.3);
Loading

0 comments on commit 9ee941e

Please sign in to comment.