basscss-rails 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +9 -1
  3. data/app/assets/stylesheets/basscss/_align.scss +13 -0
  4. data/app/assets/stylesheets/basscss/_background-colors.scss +99 -0
  5. data/app/assets/stylesheets/basscss/_base-buttons.scss +5 -1
  6. data/app/assets/stylesheets/basscss/_base-forms.scss +12 -13
  7. data/app/assets/stylesheets/basscss/_base-reset.scss +1 -7
  8. data/app/assets/stylesheets/basscss/_base-typography.scss +36 -39
  9. data/app/assets/stylesheets/basscss/_border-colors.scss +99 -0
  10. data/app/assets/stylesheets/basscss/_borders.scss +2 -0
  11. data/app/assets/stylesheets/basscss/_btn-outline.scss +98 -0
  12. data/app/assets/stylesheets/basscss/_btn-primary.scss +97 -0
  13. data/app/assets/stylesheets/basscss/_btn.scss +113 -0
  14. data/app/assets/stylesheets/basscss/_button-link.scss +9 -9
  15. data/app/assets/stylesheets/basscss/_button-outline.scss +0 -12
  16. data/app/assets/stylesheets/basscss/_button-solid.scss +104 -0
  17. data/app/assets/stylesheets/basscss/_button-transparent.scss +0 -12
  18. data/app/assets/stylesheets/basscss/_color-base.scss +16 -43
  19. data/app/assets/stylesheets/basscss/_color-forms-dark.scss +25 -6
  20. data/app/assets/stylesheets/basscss/_color-forms.scss +37 -17
  21. data/app/assets/stylesheets/basscss/_color-input-range.scss +119 -0
  22. data/app/assets/stylesheets/basscss/_color-progress.scss +95 -0
  23. data/app/assets/stylesheets/basscss/_colors.scss +5 -64
  24. data/app/assets/stylesheets/basscss/_flex-object.scss +2 -7
  25. data/app/assets/stylesheets/basscss/_type-scale.scss +81 -0
  26. data/app/assets/stylesheets/basscss/_utility-layout.scss +3 -2
  27. data/app/assets/stylesheets/basscss/_utility-typography.scss +14 -1
  28. data/app/assets/stylesheets/basscss/_white-space.scss +2 -0
  29. data/app/assets/stylesheets/basscss/basscss.scss +27 -25
  30. data/lib/basscss/rails/version.rb +1 -1
  31. metadata +14 -3
@@ -61,13 +61,10 @@ $breakpoint-lg: '(min-width: 64em)' !default;
61
61
 
62
62
  /* Basscss Colors */
63
63
 
64
-
65
- /* Color */
66
-
67
- .black, .dark-gray { color: $black }
68
- .gray, .mid-gray { color: $gray }
69
- .silver, .light-gray { color: $silver }
70
- .white { color: $white }
64
+ .black { color: $black }
65
+ .gray { color: $gray }
66
+ .silver { color: $silver }
67
+ .white { color: $white }
71
68
 
72
69
  .aqua { color: $aqua }
73
70
  .blue { color: $blue }
@@ -84,63 +81,7 @@ $breakpoint-lg: '(min-width: 64em)' !default;
84
81
  .purple { color: $purple }
85
82
  .maroon { color: $maroon }
86
83
 
87
-
88
- /* Background Color */
89
-
90
- .bg-black, .bg-dark-gray { background-color: $black }
91
- .bg-gray, .bg-mid-gray { background-color: $gray }
92
- .bg-silver, .bg-light-gray { background-color: $silver }
93
- .bg-white { background-color: $white }
94
-
95
- .bg-aqua { background-color: $aqua }
96
- .bg-blue { background-color: $blue }
97
- .bg-navy { background-color: $navy }
98
- .bg-teal { background-color: $teal }
99
- .bg-green { background-color: $green }
100
- .bg-olive { background-color: $olive }
101
- .bg-lime { background-color: $lime }
102
-
103
- .bg-yellow { background-color: $yellow }
104
- .bg-orange { background-color: $orange }
105
- .bg-red { background-color: $red }
106
- .bg-fuchsia { background-color: $fuchsia }
107
- .bg-purple { background-color: $purple }
108
- .bg-maroon { background-color: $maroon }
109
-
110
- .bg-darken-1 { background-color: $darken-1 }
111
- .bg-darken-2 { background-color: $darken-2 }
112
- .bg-darken-3 { background-color: $darken-3 }
113
- .bg-darken-4 { background-color: $darken-4 }
114
-
115
-
116
- /* Border Color */
117
-
118
- .border-aqua { border-color: $aqua }
119
- .border-blue { border-color: $blue }
120
- .border-navy { border-color: $navy }
121
- .border-teal { border-color: $teal }
122
- .border-green { border-color: $green }
123
- .border-olive { border-color: $olive }
124
- .border-lime { border-color: $lime }
125
-
126
- .border-yellow { border-color: $yellow }
127
- .border-orange { border-color: $orange }
128
- .border-red { border-color: $red }
129
- .border-fuchsia { border-color: $fuchsia }
130
- .border-purple { border-color: $purple }
131
- .border-maroon { border-color: $maroon }
132
-
133
- .border-black { border-color: $black }
134
- .border-gray { border-color: $gray }
135
- .border-silver { border-color: $silver }
136
- .border-white { border-color: $white }
137
-
138
- .border-darken-1 { border-color: $darken-1 }
139
- .border-darken-2 { border-color: $darken-2 }
140
- .border-darken-3 { border-color: $darken-3 }
141
- .border-darken-4 { border-color: $darken-4 }
142
-
143
- /* Opacity */
84
+ .color-inherit { color: inherit }
144
85
  .muted { opacity: .5 }
145
86
 
146
87
  /* Basscss Defaults */
@@ -74,25 +74,20 @@ $breakpoint-lg: '(min-width: 64em)' !default;
74
74
 
75
75
  .flex-justify { -webkit-box-pack: justify; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between }
76
76
 
77
- .flex-first { -webkit-box-ordinal-group: 0; -webkit-order: -1; -ms-flex-order: -1; order: -1 }
78
- .flex-last { -webkit-box-ordinal-group: 1025; -webkit-order: 1024; -ms-flex-order: 1024; order: 1024 }
79
-
80
77
  .flex-auto { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; -ms-flex: 1 1 auto; flex: 1 1 auto }
81
78
  .flex-grow { -webkit-box-flex: 1; -webkit-flex: 1 0 auto; -ms-flex: 1 0 auto; flex: 1 0 auto }
82
79
  .flex-none { -webkit-box-flex: 0; -webkit-flex: none; -ms-flex: none; flex: none }
83
80
 
84
- .flex > div { box-sizing: border-box }
81
+ .flex-first { -webkit-box-ordinal-group: 0; -webkit-order: -1; -ms-flex-order: -1; order: -1 }
82
+ .flex-last { -webkit-box-ordinal-group: 100000; -webkit-order: 99999; -ms-flex-order: 99999; order: 99999 }
85
83
  @media #{$breakpoint-sm} {
86
84
  .sm-flex { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex }
87
- .sm-flex > div { box-sizing: border-box }
88
85
  }
89
86
  @media #{$breakpoint-md} {
90
87
  .md-flex { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex }
91
- .md-flex > div { box-sizing: border-box }
92
88
  }
93
89
  @media #{$breakpoint-lg} {
94
90
  .lg-flex { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex }
95
- .lg-flex > div { box-sizing: border-box }
96
91
  }
97
92
 
98
93
 
@@ -0,0 +1,81 @@
1
+
2
+ // Converted Variables
3
+
4
+ $aqua: #7fdbff !default;
5
+ $blue: #0074d9 !default;
6
+ $navy: #001f3f !default;
7
+ $teal: #39cccc !default;
8
+ $green: #2ecc40 !default;
9
+ $olive: #3d9970 !default;
10
+ $lime: #01ff70 !default;
11
+ $yellow: #ffdc00 !default;
12
+ $orange: #ff851b !default;
13
+ $red: #ff4136 !default;
14
+ $fuchsia: #f012be !default;
15
+ $purple: #b10dc9 !default;
16
+ $maroon: #85144b !default;
17
+ $white: #fff !default;
18
+ $silver: #ddd !default;
19
+ $gray: #aaa !default;
20
+ $black: #111 !default;
21
+ $font-family: 'Helvetica Neue', Helvetica, sans-serif !default;
22
+ $line-height: 1.5 !default;
23
+ $heading-font-family: $font-family !default;
24
+ $heading-font-weight: bold !default;
25
+ $heading-line-height: 1.25 !default;
26
+ $monospace-font-family: 'Source Code Pro', Consolas, monospace !default;
27
+ $h1: 2rem !default;
28
+ $h2: 1.5rem !default;
29
+ $h3: 1.25rem !default;
30
+ $h4: 1rem !default;
31
+ $h5: .875rem !default;
32
+ $h6: .75rem !default;
33
+ $bold-font-weight: bold !default;
34
+ $space-1: .5rem !default;
35
+ $space-2: 1rem !default;
36
+ $space-3: 2rem !default;
37
+ $space-4: 4rem !default;
38
+ $form-field-font-size: 1rem !default;
39
+ $form-field-height: 2.25rem !default;
40
+ $form-field-padding-y: .5rem !default;
41
+ $form-field-padding-x: .5rem !default;
42
+ $button-font-size: inherit !default;
43
+ $button-font-weight: bold !default;
44
+ $button-line-height: 1.125rem !default;
45
+ $button-padding-y: .5rem !default;
46
+ $button-padding-x: 1rem !default;
47
+ $container-width: 64em !default;
48
+ $darken-1: rgba(0,0,0,.0625) !default;
49
+ $darken-2: rgba(0,0,0,.125) !default;
50
+ $darken-3: rgba(0,0,0,.25) !default;
51
+ $darken-4: rgba(0,0,0,.5) !default;
52
+ $border-width: 1px !default;
53
+ $border-radius: 3px !default;
54
+ $border-color: $darken-2 !default;
55
+
56
+ // Custom Media Query Variables
57
+
58
+ $breakpoint-sm: '(min-width: 40em)' !default;
59
+ $breakpoint-md: '(min-width: 52em)' !default;
60
+ $breakpoint-lg: '(min-width: 64em)' !default;
61
+
62
+ /* Basscss Type Scale */
63
+
64
+ .h1 { font-size: $h1 }
65
+ .h2 { font-size: $h2 }
66
+ .h3 { font-size: $h3 }
67
+ .h4 { font-size: $h4 }
68
+ .h5 { font-size: $h5 }
69
+ .h6 { font-size: $h6 }
70
+
71
+ /* Basscss Defaults */
72
+
73
+ /*
74
+
75
+ COLOR VARIABLES
76
+
77
+ - Cool
78
+ - Warm
79
+ - Gray Scale
80
+
81
+ */
@@ -10,6 +10,8 @@
10
10
  .inline { display: inline }
11
11
  .block { display: block }
12
12
  .inline-block { display: inline-block }
13
+ .table { display: table }
14
+ .table-cell { display: table-cell }
13
15
 
14
16
  .overflow-hidden { overflow: hidden }
15
17
  .overflow-scroll { overflow: scroll }
@@ -27,5 +29,4 @@
27
29
 
28
30
  .fit { max-width: 100% }
29
31
 
30
- .half-width { width: 50% }
31
- .full-width { width: 100% }
32
+ .border-box { box-sizing: border-box }
@@ -17,4 +17,17 @@
17
17
  .right-align { text-align: right }
18
18
  .justify { text-align: justify }
19
19
 
20
- .nowrap { white-space: nowrap }
20
+ .nowrap { white-space: nowrap }
21
+ .break-word { word-wrap: break-word }
22
+
23
+ .truncate {
24
+ max-width: 100%;
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ }
29
+
30
+ .list-reset {
31
+ list-style: none;
32
+ padding-left: 0;
33
+ }
@@ -97,6 +97,8 @@ $breakpoint-lg: '(min-width: 64em)' !default;
97
97
  .mxn4 { margin-left: -$space-4; margin-right: -$space-4; }
98
98
 
99
99
  .mx-auto { margin-left: auto; margin-right: auto; }
100
+ .p0 { padding: 0 }
101
+
100
102
  .p1 { padding: $space-1 }
101
103
  .py1 { padding-top: $space-1; padding-bottom: $space-1 }
102
104
  .px1 { padding-left: $space-1; padding-right: $space-1 }
@@ -1,40 +1,42 @@
1
1
  @import "defaults";
2
2
  @import "base-reset";
3
3
  @import "base-forms";
4
- @import "base-buttons";
5
4
  @import "base-tables";
6
5
  @import "base-typography";
7
- @import "utility-layout";
6
+ @import "color-base";
7
+ @import "color-forms";
8
+ @import "color-tables";
9
+ @import "btn";
10
+ @import "btn-primary";
11
+ @import "btn-outline";
12
+ @import "type-scale";
8
13
  @import "utility-typography";
14
+ @import "utility-layout";
15
+ @import "align";
9
16
  @import "white-space";
10
- @import "responsive-states";
11
17
  @import "positions";
12
- @import "button-sizes";
18
+ @import "responsive-states";
13
19
  @import "grid";
14
20
  @import "flex-object";
15
- @import "color-base";
16
- @import "color-forms";
21
+ @import "borders";
22
+ @import "colors";
23
+ @import "background-colors";
24
+ @import "background-images";
25
+ @import "base-buttons";
26
+ @import "border-colors";
27
+ @import "button-link";
28
+ @import "button-outline";
29
+ @import "button-sizes";
30
+ @import "button-solid";
31
+ @import "button-transparent";
32
+ @import "color-buttons";
17
33
  @import "color-forms-dark";
34
+ @import "color-input-range";
35
+ @import "color-progress";
36
+ @import "highlight";
18
37
  @import "input-range";
19
38
  @import "progress";
20
- @import "color-tables";
21
- @import "button-outline";
22
- @import "button-transparent";
23
- @import "background-images";
24
- @import "borders";
25
- @import "colors";
26
39
  @import "responsive-white-space";
27
- @import "utility-headings";
28
- @import "ui-utility-groups";
29
40
  @import "table-object";
30
- @import "color-buttons";
31
- @import "button-link";
32
- @import "button-blue";
33
- @import "button-blue-outline";
34
- @import "button-gray";
35
- @import "button-light-gray";
36
- @import "button-red";
37
- @import "button-nav-light";
38
- @import "button-nav-dark";
39
- @import "button-nav-tab";
40
- @import "highlight";
41
+ @import "ui-utility-groups";
42
+ @import "utility-headings";
@@ -1,5 +1,5 @@
1
1
  module Basscss
2
2
  module Rails
3
- VERSION = '1.0.0'
3
+ VERSION = '2.0.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basscss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Otander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-28 00:00:00.000000000 Z
11
+ date: 2015-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -51,13 +51,19 @@ files:
51
51
  - LICENSE.txt
52
52
  - README.md
53
53
  - Rakefile
54
+ - app/assets/stylesheets/basscss/_align.scss
55
+ - app/assets/stylesheets/basscss/_background-colors.scss
54
56
  - app/assets/stylesheets/basscss/_background-images.scss
55
57
  - app/assets/stylesheets/basscss/_base-buttons.scss
56
58
  - app/assets/stylesheets/basscss/_base-forms.scss
57
59
  - app/assets/stylesheets/basscss/_base-reset.scss
58
60
  - app/assets/stylesheets/basscss/_base-tables.scss
59
61
  - app/assets/stylesheets/basscss/_base-typography.scss
62
+ - app/assets/stylesheets/basscss/_border-colors.scss
60
63
  - app/assets/stylesheets/basscss/_borders.scss
64
+ - app/assets/stylesheets/basscss/_btn-outline.scss
65
+ - app/assets/stylesheets/basscss/_btn-primary.scss
66
+ - app/assets/stylesheets/basscss/_btn.scss
61
67
  - app/assets/stylesheets/basscss/_button-blue-outline.scss
62
68
  - app/assets/stylesheets/basscss/_button-blue.scss
63
69
  - app/assets/stylesheets/basscss/_button-gray.scss
@@ -69,11 +75,14 @@ files:
69
75
  - app/assets/stylesheets/basscss/_button-outline.scss
70
76
  - app/assets/stylesheets/basscss/_button-red.scss
71
77
  - app/assets/stylesheets/basscss/_button-sizes.scss
78
+ - app/assets/stylesheets/basscss/_button-solid.scss
72
79
  - app/assets/stylesheets/basscss/_button-transparent.scss
73
80
  - app/assets/stylesheets/basscss/_color-base.scss
74
81
  - app/assets/stylesheets/basscss/_color-buttons.scss
75
82
  - app/assets/stylesheets/basscss/_color-forms-dark.scss
76
83
  - app/assets/stylesheets/basscss/_color-forms.scss
84
+ - app/assets/stylesheets/basscss/_color-input-range.scss
85
+ - app/assets/stylesheets/basscss/_color-progress.scss
77
86
  - app/assets/stylesheets/basscss/_color-tables.scss
78
87
  - app/assets/stylesheets/basscss/_colors.scss
79
88
  - app/assets/stylesheets/basscss/_defaults.scss
@@ -86,6 +95,7 @@ files:
86
95
  - app/assets/stylesheets/basscss/_responsive-states.scss
87
96
  - app/assets/stylesheets/basscss/_responsive-white-space.scss
88
97
  - app/assets/stylesheets/basscss/_table-object.scss
98
+ - app/assets/stylesheets/basscss/_type-scale.scss
89
99
  - app/assets/stylesheets/basscss/_ui-utility-groups.scss
90
100
  - app/assets/stylesheets/basscss/_utility-headings.scss
91
101
  - app/assets/stylesheets/basscss/_utility-layout.scss
@@ -116,8 +126,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
126
  version: '0'
117
127
  requirements: []
118
128
  rubyforge_project:
119
- rubygems_version: 2.4.5
129
+ rubygems_version: 2.4.3
120
130
  signing_key:
121
131
  specification_version: 4
122
132
  summary: Include BASSCSS in your Rails apps.
123
133
  test_files: []
134
+ has_rdoc: