Skip to content

Commit

Permalink
Use npm for Basscss CSS framework
Browse files Browse the repository at this point in the history
  • Loading branch information
hursey013 committed May 4, 2017
1 parent 593a1d5 commit 3873afc
Show file tree
Hide file tree
Showing 31 changed files with 33 additions and 1,376 deletions.
6 changes: 5 additions & 1 deletion app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
@import 'normalize.css/normalize';
@import 'hint.css/hint';

@import 'basscss/basscss';
@import 'basscss-sass/basscss';
@import 'basscss/margin';
@import 'basscss/padding';
@import 'basscss/responsive-margin';
@import 'basscss/responsive-padding';

@import 'components/all';

Expand Down
12 changes: 12 additions & 0 deletions app/assets/stylesheets/components/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ textarea {
&.phone {
font-family: $monospace-font-family;
}

&:focus,
&.is-focused {
border-color: $field-focus-color;
box-shadow: 0 0 0 2px rgba($field-focus-color, .5);
outline: none;
}

&:invalid,
&.is-error {
border-color: $border-color;
}
}

.radio-extra {
Expand Down
14 changes: 14 additions & 0 deletions app/assets/stylesheets/components/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ body { -webkit-font-smoothing: antialiased; }
.sans-serif { font-family: $sans-serif-font-family; }
.serif { font-family: $serif-font-family; }

.text-decoration-none { text-decoration: none; }

.lower { text-transform: lowercase; }

.ls-0 { letter-spacing: 0; }
Expand All @@ -14,6 +16,18 @@ body { -webkit-font-smoothing: antialiased; }
.fs-12p { font-size: 12px; }
.fs-20p { font-size: 20px; }

.caps {
letter-spacing: $caps-letter-spacing;
text-transform: uppercase;
}

.line-height-1 { line-height: $line-height-1; }
.line-height-2 { line-height: $line-height-2; }
.line-height-3 { line-height: $line-height-3; }
.line-height-4 { line-height: $line-height-4; }

.underline { text-decoration: underline; }

// given how similar & coupled these are, single line preferred
// scss-lint:disable SingleLinePerSelector
h1, .h1 { font-size: $h1; }
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"npm": "~3.8.x"
},
"dependencies": {
"basscss-sass": "^3.0.0",
"classlist.js": "^1.1.20150312",
"field-kit": "^2.1.0",
"focus-trap": "^2.3.0",
Expand All @@ -20,6 +21,7 @@
"babelify": "^7.3.0",
"browserify": "^13.0.0",
"browserify-incremental": "^3.1.1",
"chai": "^3.5.0",
"dirty-chai": "^1.2.2",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^14.1.0",
Expand Down
Empty file removed vendor/assets/stylesheets/.keep
Empty file.
16 changes: 0 additions & 16 deletions vendor/assets/stylesheets/basscss/_align.scss

This file was deleted.

58 changes: 0 additions & 58 deletions vendor/assets/stylesheets/basscss/_background-colors.scss

This file was deleted.

64 changes: 0 additions & 64 deletions vendor/assets/stylesheets/basscss/_base-forms.scss

This file was deleted.

11 changes: 0 additions & 11 deletions vendor/assets/stylesheets/basscss/_base-reset.scss

This file was deleted.

33 changes: 0 additions & 33 deletions vendor/assets/stylesheets/basscss/_base-tables.scss

This file was deleted.

71 changes: 0 additions & 71 deletions vendor/assets/stylesheets/basscss/_base-typography.scss

This file was deleted.

58 changes: 0 additions & 58 deletions vendor/assets/stylesheets/basscss/_border-colors.scss

This file was deleted.

Loading

0 comments on commit 3873afc

Please sign in to comment.