bitters 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55da48d092aba563e925debd5754187cb9755eff
4
- data.tar.gz: cbeb715ff4032828585e874be97a9927757928ff
3
+ metadata.gz: f2729f7f4fd51072ef769e5127bf576c95a43b55
4
+ data.tar.gz: 9c7bc5b58c2ea219757e3baa314c8321c4bb1c96
5
5
  SHA512:
6
- metadata.gz: a432ad479ee7b9ca027f229301e27ec4192b6614e691cc564a6d9c3d8dd972077b421b405f86ac1db2f79ffdf6c78ff37d6c2be1ffc73d4d90df83150c618286
7
- data.tar.gz: 5769a169d94e32f27c52f8f1bff3a0163002a171ccc8cb816ae1bb501770467d452713ac56fbecacc8f9afc3f010606dee8bf1d6e98f70483c6012ffa69b9ebc
6
+ metadata.gz: 7b3e68e07b15c9a4f7c231f4edf130e87ea63dc427405ccd83628e38960e4b93bdd0022ed10257c882198a1d857267d87b98b3bf0115b6cd5d72dcaf79f049fe
7
+ data.tar.gz: 63f719e9c48e8c4bc0e77417822a005c7890822eaf269f1e48f481539abdcc53753186493e65b94f4544dd5b2e24fbf8c22ff6b7fc96e2a011dba916f9a6d391
@@ -1,6 +1,8 @@
1
- # Up-to-date with SCSS-Lint v0.43.2
1
+ scss_files: "**/*.scss"
2
2
 
3
- scss_files: "app/assets/stylesheets/**/*.scss"
3
+ exclude: "node_modules/**"
4
+
5
+ severity: warning
4
6
 
5
7
  linters:
6
8
  BangFormat:
@@ -107,6 +109,10 @@ linters:
107
109
  PlaceholderInExtend:
108
110
  enabled: true
109
111
 
112
+ PrivateNamingConvention:
113
+ enabled: false
114
+ prefix: _
115
+
110
116
  PropertyCount:
111
117
  enabled: false
112
118
 
@@ -174,6 +180,10 @@ linters:
174
180
  SpaceAfterPropertyName:
175
181
  enabled: true
176
182
 
183
+ SpaceAfterVariableColon:
184
+ enabled: true
185
+ style: one_space
186
+
177
187
  SpaceAfterVariableName:
178
188
  enabled: true
179
189
 
@@ -34,7 +34,7 @@ preview your changes! Running `gulp` to pull in the stylesheets and serve a smal
34
34
  $ gulp
35
35
  ```
36
36
 
37
- This will have gulp compile the stylesheets from `app/assets/stylesheets` and link them to a test page so
37
+ This will have gulp compile the stylesheets from `core/` and link them to a test page so
38
38
  you can preview your changes!!
39
39
 
40
40
  5. Squash your commits into a single one (more on that [here](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html)).
@@ -1,12 +1,12 @@
1
- var gulp = require("gulp"),
2
- autoprefix = require("gulp-autoprefixer"),
3
- sass = require("gulp-sass"),
4
- connect = require("gulp-connect"),
5
- bourbon = require("node-bourbon").includePaths;
1
+ var bourbon = require("bourbon").includePaths,
2
+ autoprefix = require("gulp-autoprefixer"),
3
+ connect = require("gulp-connect"),
4
+ gulp = require("gulp"),
5
+ sass = require("gulp-sass");
6
6
 
7
7
  var paths = {
8
8
  scss: [
9
- "./app/assets/stylesheets/**/*.scss",
9
+ "./core/**/*.scss",
10
10
  "./contrib/*.scss"
11
11
  ]
12
12
  };
data/README.md CHANGED
@@ -18,7 +18,7 @@ for updates.
18
18
  ## Requirements
19
19
 
20
20
  - [Sass](https://github.com/sass/sass) 3.4+ or [LibSass](https://github.com/sass/libsass) 3.1+
21
- - [Bourbon](https://github.com/thoughtbot/bourbon) 4.2+
21
+ - [Bourbon](https://github.com/thoughtbot/bourbon) 5.0+
22
22
  - Ruby 1.9.3+ (required to install Bitters from the command line)
23
23
 
24
24
  ## Installation
@@ -33,7 +33,7 @@ For command line help, visit our wiki page on Bitters’ [command line interface
33
33
 
34
34
  *If you use [rbenv](https://github.com/sstephenson/rbenv), be sure to run `rbenv rehash` without any errors.*
35
35
 
36
- 2. Install [Bourbon](https://github.com/thoughtbot/bourbon#installation) (required) and [Neat](https://github.com/thoughtbot/neat#installation) (optional).
36
+ 2. Install [Bourbon](https://github.com/thoughtbot/bourbon#installation)
37
37
 
38
38
  3. Install the Bitters library into the current directory by running the following command at the command-line. If you’re using Ruby on Rails, run the command in `app/assets/stylesheets`:
39
39
 
@@ -50,33 +50,13 @@ For command line help, visit our wiki page on Bitters’ [command line interface
50
50
  @import "base/base";
51
51
  ```
52
52
 
53
- 5. When using Neat, uncomment the following line in `_base.scss`:
54
-
55
- ```scss
56
- @import "grid-settings";
57
- ```
58
-
59
- And import Neat after Bitters in your `application.css.scss` or main manifest file:
60
-
61
- ```scss
62
- @import "bourbon";
63
- @import "base/base";
64
- @import "neat";
65
-
66
- // All other imports
67
- ```
68
-
69
- **Note:** If you are using Bitters and Neat without Ruby on Rails, you need to change the import for `neat-helpers` inside `_grid-settings.scss` to `"../neat/neat-helpers"`.
70
-
71
- If you want to use Neat functions in Bitters, you can `@import "grid-settings";` before Neat, remove `@import "grid-settings";` from `_base.scss` and import the rest of bitters after. For example:
53
+ 5. Once Bourbon and Bitters are set up, you can begin to import your styles below them.
72
54
 
73
55
  ```scss
74
56
  @import "bourbon";
75
- @import "base/grid-settings";
76
- @import "neat";
77
57
  @import "base/base";
78
-
79
- // All other imports
58
+ @import "my-project-styles";
59
+
80
60
  ```
81
61
 
82
62
  ## Using Bitters
@@ -87,9 +67,6 @@ The Bitters directory should contain styles for all the basic elements used thro
87
67
  ### Variables
88
68
  This houses all variables that are used, or will be used, in more than one file in your site. Variable names in Bitters that are used outside of the variables file start with `$base` to indicate that they are the most basic variables.
89
69
 
90
- ### Grid settings
91
- Variables specifically created for [Neat](http://neat.bourbon.io) resets and breakpoints. To be used, these need to be imported separately from the rest of your base file above Neat in your main stylesheet. Otherwise just remove the file.
92
-
93
70
  ### Typography
94
71
  All type is based on `$base-font-size` which is set to 1em (16px) by default. The spacing around type is based on `$base-line-height` so as to keep a semi-baseline grid. All sizes are scaled up or down by a factor of `0.25`.
95
72
 
@@ -1,34 +1,38 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path("../lib", __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'bitters/version'
3
+ require "bitters/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = 'bitters'
8
- s.version = Bitters::VERSION
9
- s.authors = ['Kyle Fiedler', 'Reda Lemeden', 'Tyson Gach', 'Will McMahan']
10
- s.email = 'design+bourbon@thoughtbot.com'
11
- s.homepage = 'http://bitters.bourbon.io'
12
- s.license = 'MIT'
13
- s.summary = 'Scaffold styles, variables and structure for Bourbon projects.'
6
+ s.add_development_dependency "bundler", "~> 1.3"
7
+ s.add_development_dependency "rake"
8
+ s.add_development_dependency "rspec"
9
+ s.add_development_dependency "scss_lint", "~> 0.47"
10
+ s.add_runtime_dependency "bourbon", ">= 5.0.0.beta.1"
11
+ s.add_runtime_dependency "sass", "~> 3.4"
12
+ s.add_runtime_dependency "thor", "~> 0.19"
13
+ s.authors = [
14
+ "Kyle Fiedler",
15
+ "Reda Lemeden",
16
+ "Tyson Gach",
17
+ "Will McMahan",
18
+ ]
14
19
  s.description = <<-DESC
15
- Bitters helps designers start projects faster by defining a basic set of Sass
16
- variables, default element style and project structure. Its been specifically
17
- designed for use within web applications. Bitters should live in your project’s
18
- root Sass directory and we encourage you to modify and extend it to meet your
19
- design and brand requirements.
20
+ Bitters helps designers start projects faster by defining a basic set of
21
+ Sass variables, default element style and project structure. It's been
22
+ specifically designed for use within web applications. Bitters should live
23
+ in your project's root Sass directory and we encourage you to modify and
24
+ extend it to meet your design and brand requirements.
20
25
  DESC
21
- s.files = `git ls-files`.split($/)
22
- s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
- s.test_files = s.files.grep(%r{^(test|spec|features)/})
24
- s.require_paths = ['lib']
25
-
26
- s.add_development_dependency 'bundler', '~> 1.3'
27
- s.add_development_dependency 'rake'
28
- s.add_development_dependency 'rspec'
29
- s.add_development_dependency 'scss_lint', '~> 0.43'
30
-
31
- s.add_dependency 'bourbon', '>= 4.2'
32
- s.add_dependency 'sass', '>= 3.4'
33
- s.add_dependency 'thor'
26
+ s.email = "design+bitters@thoughtbot.com"
27
+ s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
28
+ s.files = `git ls-files`.split($/)
29
+ s.homepage = "http://bitters.bourbon.io"
30
+ s.license = "MIT"
31
+ s.name = "bitters"
32
+ s.require_paths = ["lib"]
33
+ s.summary = <<-SUMMARY
34
+ Scaffold styles, variables and structure for Bourbon projects.
35
+ SUMMARY
36
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
37
+ s.version = Bitters::VERSION
34
38
  end
@@ -1,5 +1,5 @@
1
1
  @import "bourbon";
2
- @import "../app/assets/stylesheets/base";
2
+ @import "../core/base";
3
3
 
4
4
  body {
5
5
  margin: 0 0 ($base-spacing * 2);
@@ -1,15 +1,14 @@
1
- // Bitters 1.2.0
1
+ // Bitters 1.3.0
2
2
  // http://bitters.bourbon.io
3
3
  // Copyright 2013-2015 thoughtbot, inc.
4
4
  // MIT License
5
5
 
6
6
  @import "variables";
7
7
 
8
- // Neat Settings -- uncomment if using Neat -- must be imported before Neat
9
- // @import "grid-settings";
10
-
11
8
  @import "buttons";
12
9
  @import "forms";
10
+ @import "layout";
13
11
  @import "lists";
12
+ @import "media";
14
13
  @import "tables";
15
14
  @import "typography";
@@ -18,7 +18,8 @@ label {
18
18
  }
19
19
 
20
20
  input,
21
- select {
21
+ select,
22
+ textarea {
22
23
  display: block;
23
24
  font-family: $base-font-family;
24
25
  font-size: $base-font-size;
@@ -31,8 +32,6 @@ select[multiple] {
31
32
  border-radius: $base-border-radius;
32
33
  box-shadow: $form-box-shadow;
33
34
  box-sizing: border-box;
34
- font-family: $base-font-family;
35
- font-size: $base-font-size;
36
35
  margin-bottom: $small-spacing;
37
36
  padding: $base-spacing / 3;
38
37
  transition: border-color $base-duration $base-timing;
@@ -78,7 +77,7 @@ textarea {
78
77
  }
79
78
 
80
79
  select {
81
- margin-bottom: $base-spacing;
80
+ margin-bottom: $small-spacing;
82
81
  max-width: 100%;
83
82
  width: auto;
84
83
  }
@@ -0,0 +1,9 @@
1
+ html {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ *,
6
+ *::before,
7
+ *::after {
8
+ box-sizing: inherit;
9
+ }
@@ -0,0 +1,19 @@
1
+ ul,
2
+ ol {
3
+ list-style-type: none;
4
+ margin: 0;
5
+ padding: 0;
6
+ }
7
+
8
+ dl {
9
+ margin: 0;
10
+ }
11
+
12
+ dt {
13
+ font-weight: 600;
14
+ margin: 0;
15
+ }
16
+
17
+ dd {
18
+ margin: 0;
19
+ }
@@ -0,0 +1,9 @@
1
+ figure {
2
+ margin: 0;
3
+ }
4
+
5
+ img,
6
+ picture {
7
+ margin: 0;
8
+ max-width: 100%;
9
+ }
@@ -12,7 +12,7 @@ h4,
12
12
  h5,
13
13
  h6 {
14
14
  font-family: $heading-font-family;
15
- font-size: $base-font-size;
15
+ font-size: modular-scale(1);
16
16
  line-height: $heading-line-height;
17
17
  margin: 0 0 $small-spacing;
18
18
  }
@@ -40,9 +40,3 @@ hr {
40
40
  border-top: 0;
41
41
  margin: $base-spacing 0;
42
42
  }
43
-
44
- img,
45
- picture {
46
- margin: 0;
47
- max-width: 100%;
48
- }
@@ -1,5 +1,9 @@
1
+ // Breakpoints
2
+ $medium-screen: 600px;
3
+ $large-screen: 900px;
4
+
1
5
  // Typography
2
- $base-font-family: $helvetica;
6
+ $base-font-family: $font-stack-system;
3
7
  $heading-font-family: $base-font-family;
4
8
 
5
9
  // Font Sizes
@@ -70,7 +70,7 @@ module Bitters
70
70
  end
71
71
 
72
72
  def stylesheets_directory
73
- File.join(top_level_directory, "app", "assets", "stylesheets")
73
+ File.join(top_level_directory, "core")
74
74
  end
75
75
 
76
76
  def top_level_directory
@@ -1,3 +1,3 @@
1
1
  module Bitters
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Bitters",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Scaffold styles, variables and structure for Bourbon projects.",
5
5
  "main": "Gulpfile.js",
6
6
  "repository": {
@@ -23,11 +23,11 @@
23
23
  "url": "https://github.com/thoughtbot/bitters/issues"
24
24
  },
25
25
  "homepage": "http://bitters.bourbon.io",
26
- "dependencies": {
27
- "gulp": "^3.8.11",
28
- "gulp-autoprefixer": "^2.3.1",
29
- "gulp-connect": "^2.2.0",
30
- "gulp-sass": "^2.0.2",
31
- "node-bourbon": "^4.2.3"
26
+ "devDependencies": {
27
+ "bourbon": "^5.0.0-beta.1",
28
+ "gulp": "^3.9",
29
+ "gulp-autoprefixer": "^3.1",
30
+ "gulp-connect": "^2.3",
31
+ "gulp-sass": "^2.2"
32
32
  }
33
33
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitters
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fiedler
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-01-04 00:00:00.000000000 Z
14
+ date: 2016-03-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -61,65 +61,64 @@ dependencies:
61
61
  requirements:
62
62
  - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: '0.43'
64
+ version: '0.47'
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: '0.43'
71
+ version: '0.47'
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: bourbon
74
74
  requirement: !ruby/object:Gem::Requirement
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
- version: '4.2'
78
+ version: 5.0.0.beta.1
79
79
  type: :runtime
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
- version: '4.2'
85
+ version: 5.0.0.beta.1
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: sass
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - ">="
90
+ - - "~>"
91
91
  - !ruby/object:Gem::Version
92
92
  version: '3.4'
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ">="
97
+ - - "~>"
98
98
  - !ruby/object:Gem::Version
99
99
  version: '3.4'
100
100
  - !ruby/object:Gem::Dependency
101
101
  name: thor
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - ">="
104
+ - - "~>"
105
105
  - !ruby/object:Gem::Version
106
- version: '0'
106
+ version: '0.19'
107
107
  type: :runtime
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ">="
111
+ - - "~>"
112
112
  - !ruby/object:Gem::Version
113
- version: '0'
114
- description: |
115
- Bitters helps designers start projects faster by defining a basic set of Sass
116
- variables, default element style and project structure. Its been specifically
117
- designed for use within web applications. Bitters should live in your project’s
118
- root Sass directory and we encourage you to modify and extend it to meet your
119
- design and brand requirements.
120
- email: design+bourbon@thoughtbot.com
121
- executables:
122
- - bitters
113
+ version: '0.19'
114
+ description: |2
115
+ Bitters helps designers start projects faster by defining a basic set of
116
+ Sass variables, default element style and project structure. It's been
117
+ specifically designed for use within web applications. Bitters should live
118
+ in your project's root Sass directory and we encourage you to modify and
119
+ extend it to meet your design and brand requirements.
120
+ email: design+bitters@thoughtbot.com
121
+ executables: []
123
122
  extensions: []
124
123
  extra_rdoc_files: []
125
124
  files:
@@ -132,18 +131,19 @@ files:
132
131
  - LICENSE.md
133
132
  - README.md
134
133
  - Rakefile
135
- - app/assets/stylesheets/_base.scss
136
- - app/assets/stylesheets/_buttons.scss
137
- - app/assets/stylesheets/_forms.scss
138
- - app/assets/stylesheets/_grid-settings.scss
139
- - app/assets/stylesheets/_lists.scss
140
- - app/assets/stylesheets/_tables.scss
141
- - app/assets/stylesheets/_typography.scss
142
- - app/assets/stylesheets/_variables.scss
143
134
  - bin/bitters
144
135
  - bitters.gemspec
145
136
  - contrib/index.html
146
137
  - contrib/styles.scss
138
+ - core/_base.scss
139
+ - core/_buttons.scss
140
+ - core/_forms.scss
141
+ - core/_layout.scss
142
+ - core/_lists.scss
143
+ - core/_media.scss
144
+ - core/_tables.scss
145
+ - core/_typography.scss
146
+ - core/_variables.scss
147
147
  - lib/bitters.rb
148
148
  - lib/bitters/generator.rb
149
149
  - lib/bitters/version.rb
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.4.5.1
175
+ rubygems_version: 2.2.2
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Scaffold styles, variables and structure for Bourbon projects.
@@ -180,4 +180,3 @@ test_files:
180
180
  - spec/bitters_spec.rb
181
181
  - spec/fixtures/application.scss
182
182
  - spec/spec_helper.rb
183
- has_rdoc:
@@ -1,14 +0,0 @@
1
- @import "neat-helpers"; // or "../neat/neat-helpers" when not in Rails
2
-
3
- // Neat Overrides
4
- // $column: 90px;
5
- // $gutter: 30px;
6
- // $grid-columns: 12;
7
- // $max-width: 1200px;
8
-
9
- // Neat Breakpoints
10
- $medium-screen: 600px;
11
- $large-screen: 900px;
12
-
13
- $medium-screen-up: new-breakpoint(min-width $medium-screen 4);
14
- $large-screen-up: new-breakpoint(min-width $large-screen 8);
@@ -1,19 +0,0 @@
1
- ul,
2
- ol {
3
- list-style-type: none;
4
- margin: 0;
5
- padding: 0;
6
- }
7
-
8
- dl {
9
- margin-bottom: $small-spacing;
10
-
11
- dt {
12
- font-weight: 600;
13
- margin-top: $small-spacing;
14
- }
15
-
16
- dd {
17
- margin: 0;
18
- }
19
- }