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 +4 -4
- data/.scss-lint.yml +12 -2
- data/CONTRIBUTING.md +1 -1
- data/Gulpfile.js +6 -6
- data/README.md +5 -28
- data/bitters.gemspec +32 -28
- data/contrib/styles.scss +1 -1
- data/{app/assets/stylesheets → core}/_base.scss +3 -4
- data/{app/assets/stylesheets → core}/_buttons.scss +0 -0
- data/{app/assets/stylesheets → core}/_forms.scss +3 -4
- data/core/_layout.scss +9 -0
- data/core/_lists.scss +19 -0
- data/core/_media.scss +9 -0
- data/{app/assets/stylesheets → core}/_tables.scss +0 -0
- data/{app/assets/stylesheets → core}/_typography.scss +1 -7
- data/{app/assets/stylesheets → core}/_variables.scss +5 -1
- data/lib/bitters/generator.rb +1 -1
- data/lib/bitters/version.rb +1 -1
- data/package.json +7 -7
- metadata +30 -31
- data/app/assets/stylesheets/_grid-settings.scss +0 -14
- data/app/assets/stylesheets/_lists.scss +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2729f7f4fd51072ef769e5127bf576c95a43b55
|
4
|
+
data.tar.gz: 9c7bc5b58c2ea219757e3baa314c8321c4bb1c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b3e68e07b15c9a4f7c231f4edf130e87ea63dc427405ccd83628e38960e4b93bdd0022ed10257c882198a1d857267d87b98b3bf0115b6cd5d72dcaf79f049fe
|
7
|
+
data.tar.gz: 63f719e9c48e8c4bc0e77417822a005c7890822eaf269f1e48f481539abdcc53753186493e65b94f4544dd5b2e24fbf8c22ff6b7fc96e2a011dba916f9a6d391
|
data/.scss-lint.yml
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
|
1
|
+
scss_files: "**/*.scss"
|
2
2
|
|
3
|
-
|
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
|
|
data/CONTRIBUTING.md
CHANGED
@@ -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 `
|
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)).
|
data/Gulpfile.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
var
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
"./
|
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)
|
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)
|
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.
|
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
|
-
|
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
|
|
data/bitters.gemspec
CHANGED
@@ -1,34 +1,38 @@
|
|
1
|
-
|
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
|
3
|
+
require "bitters/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.
|
8
|
-
s.
|
9
|
-
s.
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
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
|
16
|
-
variables, default element style and project structure. It
|
17
|
-
designed for use within web applications. Bitters should live
|
18
|
-
root Sass directory and we encourage you to modify and
|
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.
|
22
|
-
s.executables
|
23
|
-
s.
|
24
|
-
s.
|
25
|
-
|
26
|
-
s.
|
27
|
-
s.
|
28
|
-
s.
|
29
|
-
|
30
|
-
|
31
|
-
s.
|
32
|
-
s.
|
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
|
data/contrib/styles.scss
CHANGED
@@ -1,15 +1,14 @@
|
|
1
|
-
// Bitters 1.
|
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";
|
File without changes
|
@@ -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: $
|
80
|
+
margin-bottom: $small-spacing;
|
82
81
|
max-width: 100%;
|
83
82
|
width: auto;
|
84
83
|
}
|
data/core/_layout.scss
ADDED
data/core/_lists.scss
ADDED
data/core/_media.scss
ADDED
File without changes
|
@@ -12,7 +12,7 @@ h4,
|
|
12
12
|
h5,
|
13
13
|
h6 {
|
14
14
|
font-family: $heading-font-family;
|
15
|
-
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
|
-
}
|
data/lib/bitters/generator.rb
CHANGED
data/lib/bitters/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "Bitters",
|
3
|
-
"version": "1.
|
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
|
-
"
|
27
|
-
"
|
28
|
-
"gulp
|
29
|
-
"gulp-
|
30
|
-
"gulp-
|
31
|
-
"
|
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.
|
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-
|
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.
|
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.
|
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:
|
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:
|
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
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
email: design+
|
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.
|
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);
|