Skip to content

Commit

Permalink
add bourbon, bitters and flexboxgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunicorn committed Nov 26, 2016
1 parent d0ab4dd commit 95fa5c7
Show file tree
Hide file tree
Showing 59 changed files with 2,491 additions and 7 deletions.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
source 'https://rubygems.org'

gem 'github-pages'
gem 'github-pages'
gem 'bourbon'
gem 'bitters'
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ GEM
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.4.0)
bitters (1.5.0)
bourbon (~> 5.0.0.beta.7)
sass (~> 3.4)
thor (~> 0.19)
blankslate (2.1.2.4)
bourbon (5.0.0.beta.7)
sass (~> 3.4.22)
thor (~> 0.19.1)
classifier-reborn (2.0.4)
fast-stemmer (~> 1.0)
coffee-script (2.4.1)
Expand Down Expand Up @@ -121,6 +128,7 @@ GEM
faraday (~> 0.8, < 1.0)
terminal-table (1.7.3)
unicode-display_width (~> 1.1.1)
thor (0.19.1)
thread_safe (0.3.5)
toml (0.1.2)
parslet (~> 1.5.0)
Expand All @@ -135,6 +143,8 @@ PLATFORMS
ruby

DEPENDENCIES
bitters
bourbon
github-pages

BUNDLED WITH
Expand Down
4 changes: 1 addition & 3 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<div>

<a href="{{site.baseurl}}" >OpenTechSchool</a>
<input type="checkbox" id="shownav" />
<label for="shownav" ><div></div><div></div><div></div></label>
<ul >
<li>
<a target="_blank" href="http://learn.opentechschool.org">Learn</a>
Expand All @@ -27,7 +25,7 @@
<li>
<a href="https://twitter.com/OpenTechSchool" title="Our Twitter" >Twitter</a>
</li>
<li style="margin: 0;">
<li>
<a href="http://www.facebook.com/OpenTechSchool" title="Our Facebook" >Facebook</a>
</li>
<li>
Expand Down
14 changes: 14 additions & 0 deletions _sass/base/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Bitters 1.5.0
// http://bitters.bourbon.io
// Copyright 2013-2015 thoughtbot, inc.
// MIT License

@import "variables";

@import "buttons";
@import "forms";
@import "layout";
@import "lists";
@import "media";
@import "tables";
@import "typography";
36 changes: 36 additions & 0 deletions _sass/base/_buttons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#{$all-buttons} {
appearance: none;
background-color: $action-color;
border: 0;
border-radius: $base-border-radius;
color: #fff;
cursor: pointer;
display: inline-block;
font-family: $base-font-family;
font-size: $base-font-size;
-webkit-font-smoothing: antialiased;
font-weight: 600;
line-height: 1;
padding: $small-spacing $base-spacing;
text-align: center;
text-decoration: none;
transition: background-color $base-duration $base-timing;
user-select: none;
vertical-align: middle;
white-space: nowrap;

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

&:disabled {
cursor: not-allowed;
opacity: 0.5;

&:hover {
background-color: $action-color;
}
}
}
82 changes: 82 additions & 0 deletions _sass/base/_forms.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
fieldset {
background-color: transparent;
border: 0;
margin: 0;
padding: 0;
}

legend {
font-weight: 600;
margin-bottom: $small-spacing / 2;
padding: 0;
}

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

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

#{$all-text-inputs} {
appearance: none;
background-color: $base-background-color;
border: $base-border;
border-radius: $base-border-radius;
box-shadow: $form-box-shadow;
box-sizing: border-box;
margin-bottom: $small-spacing;
padding: $base-spacing / 3;
transition: border-color $base-duration $base-timing;
width: 100%;

&:hover {
border-color: shade($base-border-color, 20%);
}

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

&:disabled {
background-color: shade($base-background-color, 5%);
cursor: not-allowed;

&:hover {
border: $base-border;
}
}

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

textarea {
resize: vertical;
}

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

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

select {
margin-bottom: $small-spacing;
width: 100%;
}
14 changes: 14 additions & 0 deletions _sass/base/_layout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
html {
box-sizing: border-box;
}

*,
*::before,
*::after {
box-sizing: inherit;
}

html,
body {
height: 100%;
}
19 changes: 19 additions & 0 deletions _sass/base/_lists.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ul,
ol {
list-style-type: none;
margin: 0;
padding: 0;
}

dl {
margin: 0;
}

dt {
font-weight: 600;
margin: 0;
}

dd {
margin: 0;
}
9 changes: 9 additions & 0 deletions _sass/base/_media.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
figure {
margin: 0;
}

img,
picture {
margin: 0;
max-width: 100%;
}
24 changes: 24 additions & 0 deletions _sass/base/_tables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
table {
border-collapse: collapse;
margin: $small-spacing 0;
table-layout: fixed;
width: 100%;
}

th {
border-bottom: 1px solid shade($base-border-color, 25%);
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;
}
42 changes: 42 additions & 0 deletions _sass/base/_typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
body {
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: modular-scale(1);
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 $base-duration $base-timing;

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

hr {
border-bottom: $base-border;
border-left: 0;
border-right: 0;
border-top: 0;
margin: $base-spacing 0;
}
46 changes: 46 additions & 0 deletions _sass/base/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Breakpoints
$medium-screen: 600px;
$large-screen: 900px;

// Typography
$base-font-family: $font-stack-system;
$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: #1565c0;
$dark-gray: #333;
$medium-gray: #999;
$light-gray: #ddd;

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

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

// Background Colors
$base-background-color: #fff;
$secondary-background-color: tint($base-border-color, 75%);

// 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);

// Animations
$base-duration: 150ms;
$base-timing: ease;
Loading

0 comments on commit 95fa5c7

Please sign in to comment.