bitters 0.0.2 → 0.9.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -5
- data/LICENSE +23 -0
- data/README.md +30 -10
- data/bin/bitters +2 -2
- data/bitters.gemspec +3 -3
- data/bitters/_bitters.scss +7 -0
- data/bitters/_flashes.scss +50 -0
- data/bitters/_forms.scss +85 -0
- data/bitters/_grid-settings.scss +14 -0
- data/bitters/_lists.scss +31 -0
- data/bitters/_tables.scss +20 -0
- data/bitters/_typography.scss +103 -0
- data/bitters/_variables.scss +40 -0
- data/bitters/extends/_base.scss +1 -0
- data/bitters/extends/_button.scss +4 -0
- data/lib/bitters/generator.rb +25 -25
- data/lib/bitters/version.rb +1 -1
- metadata +52 -27
- checksums.yaml +0 -7
- data/LICENSE.txt +0 -22
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bitters (0.0.
|
4
|
+
bitters (0.9.0.beta.1)
|
5
5
|
bourbon (>= 3.1)
|
6
|
-
neat (>= 1.4)
|
7
6
|
sass (>= 3.2)
|
7
|
+
thor
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -12,9 +12,6 @@ GEM
|
|
12
12
|
bourbon (3.1.8)
|
13
13
|
sass (>= 3.2.0)
|
14
14
|
thor
|
15
|
-
neat (1.4.0)
|
16
|
-
bourbon (>= 2.1)
|
17
|
-
sass (>= 3.2)
|
18
15
|
rake (10.1.0)
|
19
16
|
sass (3.2.10)
|
20
17
|
thor (0.18.1)
|
data/LICENSE
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
LICENSE
|
2
|
+
|
3
|
+
The MIT License
|
4
|
+
|
5
|
+
Copyright (c) 2013 thoughtbot, inc.
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
9
|
+
in the Software without restriction, including without limitation the rights
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
12
|
+
furnished to do so, subject to the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
15
|
+
all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -6,25 +6,42 @@ Bitters is meant to help designers get projects started on new projects faster.
|
|
6
6
|
|
7
7
|
Install Instructions
|
8
8
|
===
|
9
|
-
|
9
|
+
Install Bitters:
|
10
|
+
|
11
|
+
```bash
|
12
|
+
gem install Bitters
|
13
|
+
```
|
14
|
+
|
15
|
+
Install [Bourbon](https://github.com/thoughtbot/bourbon#install-for-rails-31) and [Neat](https://github.com/thoughtbot/neat#install-instructions) (optional).
|
16
|
+
|
17
|
+
Then `cd` to your Sass directory and run:
|
18
|
+
|
19
|
+
```bash
|
20
|
+
bitters install
|
21
|
+
```
|
22
|
+
|
23
|
+
The generated folder will contain all Bitters files.
|
24
|
+
|
25
|
+
Import Bitters after Bourbon and Neat in your `application.css.scss`. All additional stylesheets should be imported below Bitters:
|
10
26
|
|
11
27
|
```scss
|
12
|
-
@import "normalize";
|
13
28
|
@import "bourbon";
|
14
29
|
@import "neat";
|
15
|
-
@import "
|
30
|
+
@import "bitters/bitters";
|
16
31
|
|
17
32
|
// All other imports
|
18
33
|
```
|
19
34
|
|
20
|
-
|
35
|
+
We suggest using [Normalize](http://necolas.github.io/normalize.css/) for a CSS reset with Bitters.
|
36
|
+
|
37
|
+
If you are using the Neat overrides found in `_grid-settings.scss`, `@import "bitters/grid-settings"` between Bourbon and Neat as directed by [Neats Documentation](https://github.com/thoughtbot/neat#getting-started).
|
21
38
|
|
22
39
|
```scss
|
23
40
|
@import "normalize";
|
24
41
|
@import "bourbon";
|
25
|
-
@import "
|
42
|
+
@import "bitters/grid-settings";
|
26
43
|
@import "neat";
|
27
|
-
@import "
|
44
|
+
@import "bitters/bitters";
|
28
45
|
|
29
46
|
// All other imports
|
30
47
|
```
|
@@ -33,24 +50,27 @@ Getting Started
|
|
33
50
|
===
|
34
51
|
|
35
52
|
### Sass structure & default style
|
36
|
-
The base folder should contain styles for all the basic elements used throughout the sites style. Feel free to add
|
53
|
+
The base folder should contain styles for all the basic elements used throughout the sites style. Feel free to add code to the existing files or add new files to customize Bitters for your site.
|
37
54
|
|
38
55
|
The default style is meant to get out of the way and give you a good starting place for new projects. It shouldn't dictate any design decisions, only make the styles not look terrible from the start.
|
39
56
|
|
40
57
|
### Variables
|
41
|
-
This houses all variables that are used or will be used in more than one file. For variable names we try to use the most semantic name possible in our Scss.
|
58
|
+
This houses all variables that are used, or will be used, in more than one file in your site. For variable names we try to use the most semantic name possible in our Scss.
|
59
|
+
|
60
|
+
### Grid settings
|
61
|
+
Variables specifically created for Neat 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.
|
42
62
|
|
43
63
|
### Typography
|
44
64
|
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 `.25`.
|
45
65
|
|
46
66
|
### Lists
|
47
|
-
All lists have stripped out styles. No bullets, no left padding. To add back the expected browser default styles add `@extend %default;` to the `<ul>` or `<ol
|
67
|
+
All lists have stripped out styles. No bullets, no left padding. To add back the expected browser default styles add `@extend %default-ul;` or `@extend %default-ol;` to the `<ul>` or `<ol>` respectively..
|
48
68
|
|
49
69
|
### Forms
|
50
70
|
Adds basic styles all form elements. The variables at the top of the file all inherit from the variables file but make it really easy to be overridden.
|
51
71
|
|
52
72
|
### Flashes
|
53
|
-
|
73
|
+
Used for any error, warning or success messages in applications or forms. Specifically made for rails application notices.
|
54
74
|
|
55
75
|
Requirements
|
56
76
|
===
|
data/bin/bitters
CHANGED
data/bitters.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["support@thoughtbot.com"]
|
11
11
|
spec.description = "Base styles for Web design"
|
12
12
|
spec.summary = "Base styles for Web design"
|
13
|
-
spec.homepage = "http://github.com/
|
13
|
+
spec.homepage = "http://github.com/thoughtbot/biters"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
22
22
|
spec.add_development_dependency 'rake'
|
23
23
|
|
24
|
-
spec.add_dependency 'sass', '>= 3.2'
|
25
24
|
spec.add_dependency 'bourbon', '>= 3.1'
|
26
|
-
spec.add_dependency '
|
25
|
+
spec.add_dependency 'sass', '>= 3.2'
|
26
|
+
spec.add_dependency 'thor'
|
27
27
|
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/* Success, error & notice boxes for messages and errors. */
|
2
|
+
%flash {
|
3
|
+
margin-bottom: $base-line-height / 2;
|
4
|
+
padding: $base-line-height / 2;
|
5
|
+
font-weight: bold;
|
6
|
+
}
|
7
|
+
|
8
|
+
.error, #flash_failure {
|
9
|
+
@extend %flash;
|
10
|
+
background: $error-color;
|
11
|
+
color: darken($error-color, 60);
|
12
|
+
|
13
|
+
a {
|
14
|
+
color: darken($error-color, 70);
|
15
|
+
|
16
|
+
&:hover {
|
17
|
+
color: darken($error-color, 90);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.notice, #flash_notice {
|
23
|
+
@extend %flash;
|
24
|
+
background: $notice-color;
|
25
|
+
color: darken($notice-color, 60);
|
26
|
+
|
27
|
+
a {
|
28
|
+
color: darken($notice-color, 70);
|
29
|
+
|
30
|
+
&:hover {
|
31
|
+
color: darken($notice-color, 90);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
.success, #flash_success {
|
38
|
+
@extend %flash;
|
39
|
+
background: $success-color;
|
40
|
+
color: darken($success-color, 60);
|
41
|
+
|
42
|
+
a {
|
43
|
+
color: darken($success-color, 70);
|
44
|
+
|
45
|
+
&:hover {
|
46
|
+
color: darken($success-color, 90);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
data/bitters/_forms.scss
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
$form-border-color: $base-border-color;
|
2
|
+
$form-border-color-hover: darken($base-border-color, 10);
|
3
|
+
$form-border-color-focus: $base-accent-color;
|
4
|
+
$form-border-radius: $base-border-radius;
|
5
|
+
$form-box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.06);
|
6
|
+
$form-box-shadow-focus: $form-box-shadow, 0 0 5px rgba(darken($form-border-color-focus, 5), 0.7);
|
7
|
+
$form-font-size: $base-font-size;
|
8
|
+
$form-font-family: $base-font-family;
|
9
|
+
|
10
|
+
fieldset {
|
11
|
+
background: lighten($base-border-color, 10);
|
12
|
+
border: 1px solid $base-border-color;
|
13
|
+
margin: 0 0 ($base-line-height / 2) 0;
|
14
|
+
padding: $base-line-height;
|
15
|
+
}
|
16
|
+
|
17
|
+
input,
|
18
|
+
label,
|
19
|
+
select {
|
20
|
+
display: block;
|
21
|
+
font-family: $form-font-family;
|
22
|
+
font-size: $form-font-size;
|
23
|
+
}
|
24
|
+
|
25
|
+
label {
|
26
|
+
font-weight: bold;
|
27
|
+
margin-bottom: $base-line-height / 4;
|
28
|
+
|
29
|
+
&.required:after {
|
30
|
+
content: "*";
|
31
|
+
}
|
32
|
+
|
33
|
+
abbr {
|
34
|
+
display: none;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
textarea,
|
39
|
+
#{$all-text-inputs} {
|
40
|
+
@include box-sizing(border-box);
|
41
|
+
@include transition(border-color);
|
42
|
+
background-color: white;
|
43
|
+
border-radius: $form-border-radius;
|
44
|
+
border: 1px solid $form-border-color;
|
45
|
+
box-shadow: $form-box-shadow;
|
46
|
+
font-family: $form-font-family;
|
47
|
+
font-size: $form-font-size;
|
48
|
+
margin-bottom: $base-line-height / 2;
|
49
|
+
padding: ($base-line-height / 3) ($base-line-height / 3);
|
50
|
+
width: 100%;
|
51
|
+
|
52
|
+
&:hover {
|
53
|
+
border-color: $form-border-color-hover;
|
54
|
+
}
|
55
|
+
|
56
|
+
&:focus {
|
57
|
+
border-color: $form-border-color-focus;
|
58
|
+
box-shadow: $form-box-shadow-focus;
|
59
|
+
outline: none;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
input[type="search"] {
|
64
|
+
@include appearance(none);
|
65
|
+
}
|
66
|
+
|
67
|
+
input[type="checkbox"], input[type="radio"] {
|
68
|
+
display: inline;
|
69
|
+
margin-right: $base-line-height / 4;
|
70
|
+
}
|
71
|
+
|
72
|
+
select {
|
73
|
+
width: auto;
|
74
|
+
margin-bottom: $base-line-height;
|
75
|
+
}
|
76
|
+
|
77
|
+
button,
|
78
|
+
input[type="submit"] {
|
79
|
+
@extend %button;
|
80
|
+
@include appearance(none);
|
81
|
+
cursor: pointer;
|
82
|
+
user-select: none;
|
83
|
+
vertical-align: middle;
|
84
|
+
white-space: nowrap;
|
85
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
@import "neat-helpers"; // or "neat/neat-helpers" when not in Rails
|
2
|
+
|
3
|
+
// Neat Overrides
|
4
|
+
///////////////////////////////////////////////////////////////////////////////
|
5
|
+
// $column: 90px;
|
6
|
+
// $gutter: 30px;
|
7
|
+
// $grid-columns: 12;
|
8
|
+
// $max-width: em(1088);
|
9
|
+
|
10
|
+
// Neat Breakpoints
|
11
|
+
///////////////////////////////////////////////////////////////////////////////
|
12
|
+
$small-screen: new-breakpoint(min-width em(540) 2);
|
13
|
+
$medium-screen: new-breakpoint(min-width em(760) 4);
|
14
|
+
$large-screen: new-breakpoint(min-width em(920) 8);
|
data/bitters/_lists.scss
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
ul, ol {
|
2
|
+
margin: 0;
|
3
|
+
padding: 0;
|
4
|
+
list-style-type: none;
|
5
|
+
|
6
|
+
&%default-ul {
|
7
|
+
list-style-type: disc;
|
8
|
+
margin-bottom: $base-line-height / 2;
|
9
|
+
padding-left: $base-line-height;
|
10
|
+
}
|
11
|
+
|
12
|
+
&%default-ol {
|
13
|
+
list-style-type: decimal;
|
14
|
+
margin-bottom: $base-line-height / 2;
|
15
|
+
padding-left: $base-line-height;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
dl {
|
20
|
+
line-height: $base-line-height;
|
21
|
+
margin-bottom: $base-line-height / 2;
|
22
|
+
|
23
|
+
dt {
|
24
|
+
font-weight: bold;
|
25
|
+
margin-top: $base-line-height / 2;
|
26
|
+
}
|
27
|
+
|
28
|
+
dd {
|
29
|
+
margin: 0;
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
table {
|
2
|
+
margin: ($base-line-height / 2) 0;
|
3
|
+
width: 100%;
|
4
|
+
}
|
5
|
+
|
6
|
+
th {
|
7
|
+
border-bottom: 1px solid darken($base-border-color, 15%);
|
8
|
+
font-weight: bold;
|
9
|
+
padding: ($base-line-height / 2) 0;
|
10
|
+
text-align: left;
|
11
|
+
}
|
12
|
+
|
13
|
+
td {
|
14
|
+
border-bottom: 1px solid $base-border-color;
|
15
|
+
padding: ($base-line-height / 2) 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
tr, td, th {
|
19
|
+
vertical-align: middle;
|
20
|
+
}
|
@@ -0,0 +1,103 @@
|
|
1
|
+
body {
|
2
|
+
color: $base-font-color;
|
3
|
+
font-family: $base-font-family;
|
4
|
+
font-size: $base-font-size;
|
5
|
+
-webkit-font-smoothing: antialiased;
|
6
|
+
line-height: $base-line-height;
|
7
|
+
}
|
8
|
+
|
9
|
+
h1, h2, h3, h4, h5, h6 {
|
10
|
+
text-rendering: optimizeLegibility; // Fix the character spacing for headings
|
11
|
+
margin: 0;
|
12
|
+
line-height: 1.25em;
|
13
|
+
}
|
14
|
+
|
15
|
+
h1 {
|
16
|
+
font-size: $base-font-size * 2.25; // 16 * 2.25 = 36px
|
17
|
+
}
|
18
|
+
|
19
|
+
h2 {
|
20
|
+
font-size: $base-font-size * 2; // 16 * 2 = 32px
|
21
|
+
}
|
22
|
+
|
23
|
+
h3 {
|
24
|
+
font-size: $base-font-size * 1.75; // 16 * 1.75 = 28px
|
25
|
+
}
|
26
|
+
|
27
|
+
h4 {
|
28
|
+
font-size: $base-font-size * 1.5; // 16 * 1.5 = 24px
|
29
|
+
}
|
30
|
+
|
31
|
+
h5 {
|
32
|
+
font-size: $base-font-size * 1.25; // 16 * 1.25 = 20px
|
33
|
+
}
|
34
|
+
|
35
|
+
h6 {
|
36
|
+
font-size: $base-font-size;
|
37
|
+
}
|
38
|
+
|
39
|
+
p {
|
40
|
+
margin: 0 0 ($base-line-height * .5);
|
41
|
+
}
|
42
|
+
|
43
|
+
a {
|
44
|
+
color: $base-link-color;
|
45
|
+
text-decoration: none;
|
46
|
+
@include transition(color 0.1s linear);
|
47
|
+
|
48
|
+
&:hover {
|
49
|
+
color: $hover-link-color;
|
50
|
+
}
|
51
|
+
|
52
|
+
&:active, &:focus {
|
53
|
+
color: $hover-link-color;
|
54
|
+
outline: none;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
hr {
|
59
|
+
border-bottom: 1px solid $base-border-color;
|
60
|
+
border-left: none;
|
61
|
+
border-right: none;
|
62
|
+
border-top: none;
|
63
|
+
margin: $base-line-height 0;
|
64
|
+
}
|
65
|
+
|
66
|
+
img {
|
67
|
+
margin: 0;
|
68
|
+
max-width: 100%;
|
69
|
+
}
|
70
|
+
|
71
|
+
abbr, acronym {
|
72
|
+
border-bottom: 1px dotted $base-border-color;
|
73
|
+
cursor: help;
|
74
|
+
}
|
75
|
+
|
76
|
+
address {
|
77
|
+
display: block;
|
78
|
+
margin: 0 0 ($base-line-height / 2);
|
79
|
+
}
|
80
|
+
|
81
|
+
hgroup {
|
82
|
+
margin-bottom: $base-line-height / 2;
|
83
|
+
}
|
84
|
+
|
85
|
+
del {
|
86
|
+
color: lighten($base-font-color, 15);
|
87
|
+
}
|
88
|
+
|
89
|
+
blockquote {
|
90
|
+
border-left: 2px solid $base-border-color;
|
91
|
+
color: lighten($base-font-color, 15);
|
92
|
+
margin: $base-line-height 0;
|
93
|
+
padding-left: $base-line-height / 2;
|
94
|
+
}
|
95
|
+
|
96
|
+
cite {
|
97
|
+
color: lighten($base-font-color, 25);
|
98
|
+
font-style: italic;
|
99
|
+
|
100
|
+
&:before {
|
101
|
+
content: '\2014 \00A0';
|
102
|
+
}
|
103
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
// Typography
|
2
|
+
///////////////////////////////////////////////////////////////////////////////
|
3
|
+
$sans-serif: $helvetica;
|
4
|
+
$serif: $georgia;
|
5
|
+
|
6
|
+
$base-font-family: $sans-serif;
|
7
|
+
$header-font-family: $base-font-family;
|
8
|
+
|
9
|
+
// Sizes
|
10
|
+
///////////////////////////////////////////////////////////////////////////////
|
11
|
+
$base-font-size: 1em;
|
12
|
+
$base-line-height: $base-font-size * 1.5;
|
13
|
+
$base-border-radius: em(3);
|
14
|
+
|
15
|
+
// Colors
|
16
|
+
///////////////////////////////////////////////////////////////////////////////
|
17
|
+
|
18
|
+
$blue: #477DCA;
|
19
|
+
$dark-gray: #333;
|
20
|
+
$medium-gray: #999;
|
21
|
+
$light-gray: #DDD;
|
22
|
+
$light-red: #FBE3E4;
|
23
|
+
$light-yellow: #FFF6BF;
|
24
|
+
$light-green: #E6EFC2;
|
25
|
+
|
26
|
+
// Font Colors
|
27
|
+
$base-font-color: $dark-gray;
|
28
|
+
$base-accent-color: $blue;
|
29
|
+
|
30
|
+
// Text Link Colors
|
31
|
+
$base-link-color: $base-accent-color;
|
32
|
+
$hover-link-color: darken($base-accent-color, 15);
|
33
|
+
|
34
|
+
// Border color
|
35
|
+
$base-border-color: $light-gray;
|
36
|
+
|
37
|
+
// Flash Colors
|
38
|
+
$error-color: $light-red;
|
39
|
+
$notice-color: $light-yellow;
|
40
|
+
$success-color: $light-green;
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "button";
|
data/lib/bitters/generator.rb
CHANGED
@@ -1,21 +1,24 @@
|
|
1
|
-
require
|
1
|
+
require 'bitters/version'
|
2
|
+
require 'fileutils'
|
3
|
+
require 'thor'
|
2
4
|
|
3
5
|
module Bitters
|
4
|
-
class Generator
|
5
|
-
|
6
|
-
|
7
|
-
|
6
|
+
class Generator < Thor
|
7
|
+
map ['-v', '--version'] => :version
|
8
|
+
map ['scaffold'] => :install
|
9
|
+
map ['delete'] => :remove
|
8
10
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
desc 'install', 'Install Bitters into your project'
|
12
|
+
def install
|
13
|
+
if bitters_files_already_exist?
|
14
|
+
puts "Bitters files already installed, doing nothing."
|
15
|
+
else
|
16
|
+
install_files
|
17
|
+
puts "Bitters files installed to /bitters"
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
21
|
+
desc 'reset', 'Reset Bitters'
|
19
22
|
def update
|
20
23
|
if bitters_files_already_exist?
|
21
24
|
remove_bitters_directory
|
@@ -26,15 +29,7 @@ module Bitters
|
|
26
29
|
end
|
27
30
|
end
|
28
31
|
|
29
|
-
|
30
|
-
if bitters_files_already_exist?
|
31
|
-
puts "Bitters files already installed, doing nothing."
|
32
|
-
else
|
33
|
-
install_files
|
34
|
-
puts "Bitters files installed to /base"
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
32
|
+
desc 'remove', 'Remove Bitters'
|
38
33
|
def remove
|
39
34
|
if bitters_files_already_exist?
|
40
35
|
remove_bitters_directory
|
@@ -44,19 +39,24 @@ module Bitters
|
|
44
39
|
end
|
45
40
|
end
|
46
41
|
|
42
|
+
desc 'version', 'Show Bitters version'
|
43
|
+
def version
|
44
|
+
say "Bitters #{Bitters::VERSION}"
|
45
|
+
end
|
46
|
+
|
47
47
|
private
|
48
48
|
|
49
49
|
def bitters_files_already_exist?
|
50
|
-
File.directory?("
|
50
|
+
File.directory?("bitters")
|
51
51
|
end
|
52
52
|
|
53
53
|
def install_files
|
54
|
-
FileUtils.mkdir_p("
|
55
|
-
FileUtils.cp_r(all_stylesheets, "
|
54
|
+
FileUtils.mkdir_p("bitters")
|
55
|
+
FileUtils.cp_r(all_stylesheets, "bitters/")
|
56
56
|
end
|
57
57
|
|
58
58
|
def remove_bitters_directory
|
59
|
-
FileUtils.rm_rf("
|
59
|
+
FileUtils.rm_rf("bitters")
|
60
60
|
end
|
61
61
|
|
62
62
|
def all_stylesheets
|
data/lib/bitters/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.9.0.beta.1
|
5
|
+
prerelease: 6
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Kyle Fiedler
|
@@ -9,11 +10,12 @@ authors:
|
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2013-
|
13
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: bundler
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
20
|
- - ~>
|
19
21
|
- !ruby/object:Gem::Version
|
@@ -21,6 +23,7 @@ dependencies:
|
|
21
23
|
type: :development
|
22
24
|
prerelease: false
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
24
27
|
requirements:
|
25
28
|
- - ~>
|
26
29
|
- !ruby/object:Gem::Version
|
@@ -28,59 +31,67 @@ dependencies:
|
|
28
31
|
- !ruby/object:Gem::Dependency
|
29
32
|
name: rake
|
30
33
|
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
31
35
|
requirements:
|
32
|
-
- - '>='
|
36
|
+
- - ! '>='
|
33
37
|
- !ruby/object:Gem::Version
|
34
38
|
version: '0'
|
35
39
|
type: :development
|
36
40
|
prerelease: false
|
37
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
38
43
|
requirements:
|
39
|
-
- - '>='
|
44
|
+
- - ! '>='
|
40
45
|
- !ruby/object:Gem::Version
|
41
46
|
version: '0'
|
42
47
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
48
|
+
name: bourbon
|
44
49
|
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
45
51
|
requirements:
|
46
|
-
- - '>='
|
52
|
+
- - ! '>='
|
47
53
|
- !ruby/object:Gem::Version
|
48
|
-
version: '3.
|
54
|
+
version: '3.1'
|
49
55
|
type: :runtime
|
50
56
|
prerelease: false
|
51
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
52
59
|
requirements:
|
53
|
-
- - '>='
|
60
|
+
- - ! '>='
|
54
61
|
- !ruby/object:Gem::Version
|
55
|
-
version: '3.
|
62
|
+
version: '3.1'
|
56
63
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
64
|
+
name: sass
|
58
65
|
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
59
67
|
requirements:
|
60
|
-
- - '>='
|
68
|
+
- - ! '>='
|
61
69
|
- !ruby/object:Gem::Version
|
62
|
-
version: '3.
|
70
|
+
version: '3.2'
|
63
71
|
type: :runtime
|
64
72
|
prerelease: false
|
65
73
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
66
75
|
requirements:
|
67
|
-
- - '>='
|
76
|
+
- - ! '>='
|
68
77
|
- !ruby/object:Gem::Version
|
69
|
-
version: '3.
|
78
|
+
version: '3.2'
|
70
79
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
80
|
+
name: thor
|
72
81
|
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
73
83
|
requirements:
|
74
|
-
- - '>='
|
84
|
+
- - ! '>='
|
75
85
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
86
|
+
version: '0'
|
77
87
|
type: :runtime
|
78
88
|
prerelease: false
|
79
89
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
80
91
|
requirements:
|
81
|
-
- - '>='
|
92
|
+
- - ! '>='
|
82
93
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
94
|
+
version: '0'
|
84
95
|
description: Base styles for Web design
|
85
96
|
email:
|
86
97
|
- support@thoughtbot.com
|
@@ -92,7 +103,7 @@ files:
|
|
92
103
|
- .gitignore
|
93
104
|
- Gemfile
|
94
105
|
- Gemfile.lock
|
95
|
-
- LICENSE
|
106
|
+
- LICENSE
|
96
107
|
- README.md
|
97
108
|
- Rakefile
|
98
109
|
- app/assets/stylesheets/_base.scss
|
@@ -106,31 +117,45 @@ files:
|
|
106
117
|
- app/assets/stylesheets/_variables.scss
|
107
118
|
- bin/bitters
|
108
119
|
- bitters.gemspec
|
120
|
+
- bitters/_bitters.scss
|
121
|
+
- bitters/_flashes.scss
|
122
|
+
- bitters/_forms.scss
|
123
|
+
- bitters/_grid-settings.scss
|
124
|
+
- bitters/_lists.scss
|
125
|
+
- bitters/_tables.scss
|
126
|
+
- bitters/_typography.scss
|
127
|
+
- bitters/_variables.scss
|
128
|
+
- bitters/extends/_base.scss
|
129
|
+
- bitters/extends/_button.scss
|
109
130
|
- lib/bitters.rb
|
110
131
|
- lib/bitters/generator.rb
|
111
132
|
- lib/bitters/version.rb
|
112
|
-
homepage: http://github.com/
|
133
|
+
homepage: http://github.com/thoughtbot/biters
|
113
134
|
licenses:
|
114
135
|
- MIT
|
115
|
-
metadata: {}
|
116
136
|
post_install_message:
|
117
137
|
rdoc_options: []
|
118
138
|
require_paths:
|
119
139
|
- lib
|
120
140
|
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
+
none: false
|
121
142
|
requirements:
|
122
|
-
- - '>='
|
143
|
+
- - ! '>='
|
123
144
|
- !ruby/object:Gem::Version
|
124
145
|
version: '0'
|
146
|
+
segments:
|
147
|
+
- 0
|
148
|
+
hash: -2003497327531397522
|
125
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
126
151
|
requirements:
|
127
|
-
- - '
|
152
|
+
- - ! '>'
|
128
153
|
- !ruby/object:Gem::Version
|
129
|
-
version:
|
154
|
+
version: 1.3.1
|
130
155
|
requirements: []
|
131
156
|
rubyforge_project:
|
132
|
-
rubygems_version:
|
157
|
+
rubygems_version: 1.8.25
|
133
158
|
signing_key:
|
134
|
-
specification_version:
|
159
|
+
specification_version: 3
|
135
160
|
summary: Base styles for Web design
|
136
161
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 57d20ec640123330b59b38d1a1ff1c1d7d9b14ad
|
4
|
-
data.tar.gz: a184926ad75a64dc340bca3579c6c6a8464a4c54
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: b7f91dd91cf30c6e3c90c52ff45b24da35ea9ad4414aa39f3ec964808d3cc852c82ee156d9786c59e7c77efed81cb97d71be0421354652b92b19812bdea4c27f
|
7
|
-
data.tar.gz: ccb6932cec32fe04a9e6f3c92d2edfa6392c5e9c43c84caf04b43d270bb0818801b72f85c48da84bba6612088cf26d8c2e739291d87a8a1f89ab54457fa73ec2
|
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2013 Reda Lemeden
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|