basscss-rails 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/Rakefile +2 -2
  4. data/app/assets/stylesheets/basscss/_align.scss +3 -0
  5. data/app/assets/stylesheets/basscss/_all.scss +14 -0
  6. data/app/assets/stylesheets/basscss/_background-colors.scss +24 -63
  7. data/app/assets/stylesheets/basscss/_background-images.scss +5 -0
  8. data/app/assets/stylesheets/basscss/_border-colors.scss +24 -63
  9. data/app/assets/stylesheets/basscss/_border.scss +51 -0
  10. data/app/assets/stylesheets/basscss/_btn-outline.scss +4 -70
  11. data/app/assets/stylesheets/basscss/_btn-primary.scss +6 -71
  12. data/app/assets/stylesheets/basscss/_btn.scss +5 -71
  13. data/app/assets/stylesheets/basscss/_colors.scss +25 -53
  14. data/app/assets/stylesheets/basscss/_darken.scss +20 -0
  15. data/app/assets/stylesheets/basscss/_flexbox.scss +90 -0
  16. data/app/assets/stylesheets/basscss/_forms.scss +50 -0
  17. data/app/assets/stylesheets/basscss/_grid.scss +4 -73
  18. data/app/assets/stylesheets/basscss/_hide.scss +38 -0
  19. data/app/assets/stylesheets/basscss/_highlight-dark.scss +166 -0
  20. data/app/assets/stylesheets/basscss/_highlight.scss +5 -4
  21. data/app/assets/stylesheets/basscss/_input-range.scss +19 -98
  22. data/app/assets/stylesheets/basscss/{_utility-layout.scss → _layout.scss} +21 -1
  23. data/app/assets/stylesheets/basscss/_lighten.scss +20 -0
  24. data/app/assets/stylesheets/basscss/_margin.scss +96 -0
  25. data/app/assets/stylesheets/basscss/_media-object.scss +55 -0
  26. data/app/assets/stylesheets/basscss/_padding.scss +82 -0
  27. data/app/assets/stylesheets/basscss/{_positions.scss → _position.scss} +17 -5
  28. data/app/assets/stylesheets/basscss/_progress.scss +5 -73
  29. data/app/assets/stylesheets/basscss/{_responsive-white-space.scss → _responsive-margin.scss} +44 -64
  30. data/app/assets/stylesheets/basscss/_responsive-padding.scss +147 -0
  31. data/app/assets/stylesheets/basscss/_type-scale.scss +5 -64
  32. data/app/assets/stylesheets/basscss/_typography.scss +65 -0
  33. data/app/assets/stylesheets/basscss/basscss.scss +8 -33
  34. data/lib/basscss/rails/version.rb +1 -1
  35. metadata +19 -27
  36. data/app/assets/stylesheets/basscss/_base-forms.scss +0 -132
  37. data/app/assets/stylesheets/basscss/_base-reset.scss +0 -10
  38. data/app/assets/stylesheets/basscss/_base-tables.scss +0 -103
  39. data/app/assets/stylesheets/basscss/_base-typography.scss +0 -136
  40. data/app/assets/stylesheets/basscss/_borders.scss +0 -120
  41. data/app/assets/stylesheets/basscss/_btn-sizes.scss +0 -97
  42. data/app/assets/stylesheets/basscss/_color-base.scss +0 -114
  43. data/app/assets/stylesheets/basscss/_color-forms-dark.scss +0 -146
  44. data/app/assets/stylesheets/basscss/_color-forms.scss +0 -139
  45. data/app/assets/stylesheets/basscss/_color-input-range.scss +0 -123
  46. data/app/assets/stylesheets/basscss/_color-progress.scss +0 -99
  47. data/app/assets/stylesheets/basscss/_color-tables.scss +0 -89
  48. data/app/assets/stylesheets/basscss/_defaults.scss +0 -76
  49. data/app/assets/stylesheets/basscss/_flex-object.scss +0 -119
  50. data/app/assets/stylesheets/basscss/_responsive-states.scss +0 -118
  51. data/app/assets/stylesheets/basscss/_table-object.scss +0 -58
  52. data/app/assets/stylesheets/basscss/_ui-utility-groups.scss +0 -21
  53. data/app/assets/stylesheets/basscss/_utility-headings.scss +0 -33
  54. data/app/assets/stylesheets/basscss/_utility-typography.scss +0 -33
  55. data/app/assets/stylesheets/basscss/_white-space.scss +0 -132
@@ -1,61 +1,6 @@
1
1
 
2
2
  // Converted Variables
3
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
- $lighten-1: rgba(255,255,255,.0625) !default;
53
- $lighten-2: rgba(255,255,255,.125) !default;
54
- $lighten-3: rgba(255,255,255,.25) !default;
55
- $lighten-4: rgba(255,255,255,.5) !default;
56
- $border-width: 1px !default;
57
- $border-radius: 3px !default;
58
- $border-color: $darken-2 !default;
59
4
 
60
5
  // Custom Media Query Variables
61
6
 
@@ -65,11 +10,6 @@ $breakpoint-lg: '(min-width: 64em)' !default;
65
10
 
66
11
  /* Basscss Grid */
67
12
 
68
- .container {
69
- max-width: $container-width;
70
- margin-left: auto;
71
- margin-right: auto;
72
- }
73
13
  .col {
74
14
  float: left;
75
15
  box-sizing: border-box;
@@ -127,6 +67,7 @@ $breakpoint-lg: '(min-width: 64em)' !default;
127
67
  .col-12 {
128
68
  width: 100%;
129
69
  }
70
+
130
71
  @media #{$breakpoint-sm} {
131
72
 
132
73
  .sm-col {
@@ -188,6 +129,7 @@ $breakpoint-lg: '(min-width: 64em)' !default;
188
129
  }
189
130
 
190
131
  }
132
+
191
133
  @media #{$breakpoint-md} {
192
134
 
193
135
  .md-col {
@@ -249,6 +191,7 @@ $breakpoint-lg: '(min-width: 64em)' !default;
249
191
  }
250
192
 
251
193
  }
194
+
252
195
  @media #{$breakpoint-lg} {
253
196
 
254
197
  .lg-col {
@@ -309,16 +252,4 @@ $breakpoint-lg: '(min-width: 64em)' !default;
309
252
  width: 100%;
310
253
  }
311
254
 
312
- }
313
-
314
- /* Basscss Defaults */
315
-
316
- /*
317
-
318
- COLOR VARIABLES
319
-
320
- - Cool
321
- - Warm
322
- - Gray Scale
323
-
324
- */
255
+ }
@@ -0,0 +1,38 @@
1
+
2
+ // Converted Variables
3
+
4
+
5
+ // Custom Media Query Variables
6
+
7
+ $breakpoint-xs: '(max-width: 40em)' !default;
8
+ $breakpoint-sm-md: '(min-width: 40em) and (max-width: 52em)' !default;
9
+ $breakpoint-md-lg: '(min-width: 52em) and (max-width: 64em)' !default;
10
+ $breakpoint-lg: '(min-width: 64em)' !default;
11
+
12
+ /* Basscss Hide */
13
+
14
+ .hide {
15
+ position: absolute !important;
16
+ height: 1px;
17
+ width: 1px;
18
+ overflow: hidden;
19
+ clip: rect(1px, 1px, 1px, 1px);
20
+ }
21
+
22
+ @media #{$breakpoint-xs} {
23
+ .xs-hide { display: none !important }
24
+ }
25
+
26
+ @media #{$breakpoint-sm-md} {
27
+ .sm-hide { display: none !important }
28
+ }
29
+
30
+ @media #{$breakpoint-md-lg} {
31
+ .md-hide { display: none !important }
32
+ }
33
+
34
+ @media #{$breakpoint-lg} {
35
+ .lg-hide { display: none !important }
36
+ }
37
+
38
+ .display-none { display: none !important }
@@ -0,0 +1,166 @@
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
+ $hljs-comment: $silver !default;
22
+ $hljs-keyword: white !default;
23
+ $hljs-number: $lime !default;
24
+ $hljs-string: $red !default;
25
+ $hljs-title: $red !default;
26
+ $hljs-type: $aqua !default;
27
+ $hljs-tag: $aqua !default;
28
+ $hljs-attribute: $lime !default;
29
+ $hljs-regexp: $lime !default;
30
+ $hljs-symbol: $fuchsia !default;
31
+ $hljs-built-in: $aqua !default;
32
+ $hljs-preprocessor: $silver !default;
33
+ $hljs-deletion: $fuchsia !default;
34
+ $hljs-addition: $lime !default;
35
+ $hljs-change: $aqua !default;
36
+ $hljs-chunk: $gray !default;
37
+
38
+ // Custom Media Query Variables
39
+
40
+
41
+ /* Basscss Highlight */
42
+
43
+ /*
44
+
45
+ COLOR VARIABLES
46
+
47
+ - Cool
48
+ - Warm
49
+ - Gray Scale
50
+
51
+ */
52
+
53
+ .highlight-dark .hljs {
54
+ color: white;
55
+ -webkit-text-size-adjust: none;
56
+ }
57
+
58
+ .highlight-dark .hljs-comment,
59
+ .highlight-dark .diff .hljs-header,
60
+ .highlight-dark .hljs-javadoc {
61
+ color: $hljs-comment;
62
+ font-style: italic;
63
+ }
64
+
65
+ .highlight-dark .hljs-keyword,
66
+ .highlight-dark .css .rule .hljs-keyword,
67
+ .highlight-dark .hljs-winutils,
68
+ .highlight-dark .nginx .hljs-title,
69
+ .highlight-dark .hljs-subst,
70
+ .highlight-dark .hljs-request,
71
+ .highlight-dark .hljs-status {
72
+ color: $hljs-keyword;
73
+ font-weight: bold;
74
+ }
75
+
76
+ .highlight-dark .hljs-number,
77
+ .highlight-dark .hljs-hexcolor,
78
+ .highlight-dark .ruby .hljs-constant {
79
+ color: $hljs-number;
80
+ }
81
+
82
+ .highlight-dark .hljs-string,
83
+ .highlight-dark .hljs-tag .hljs-value,
84
+ .highlight-dark .hljs-phpdoc,
85
+ .highlight-dark .hljs-dartdoc,
86
+ .highlight-dark .tex .hljs-formula {
87
+ color: $hljs-string;
88
+ }
89
+
90
+ .hljs-title,
91
+ .hljs-id,
92
+ .scss .hljs-preprocessor {
93
+ color: $hljs-title;
94
+ font-weight: bold;
95
+ }
96
+
97
+ .highlight-dark .hljs-list .hljs-keyword,
98
+ .highlight-dark .hljs-subst {
99
+ font-weight: normal;
100
+ }
101
+
102
+ .highlight-dark .hljs-class .hljs-title,
103
+ .highlight-dark .hljs-type,
104
+ .highlight-dark .vhdl .hljs-literal,
105
+ .highlight-dark .tex .hljs-command {
106
+ color: $hljs-type;
107
+ font-weight: bold;
108
+ }
109
+
110
+ .highlight-dark .hljs-tag,
111
+ .highlight-dark .hljs-tag .hljs-title,
112
+ .highlight-dark .hljs-rules .hljs-property,
113
+ .highlight-dark .django .hljs-tag .hljs-keyword {
114
+ color: $hljs-tag;
115
+ font-weight: normal;
116
+ }
117
+
118
+ .highlight-dark .hljs-attribute,
119
+ .highlight-dark .hljs-variable,
120
+ .highlight-dark .lisp .hljs-body {
121
+ color: $hljs-attribute;
122
+ }
123
+
124
+ .highlight-dark .hljs-regexp {
125
+ color: $hljs-regexp;
126
+ }
127
+
128
+ .highlight-dark .hljs-symbol,
129
+ .highlight-dark .ruby .hljs-symbol .hljs-string,
130
+ .highlight-dark .lisp .hljs-keyword,
131
+ .highlight-dark .clojure .hljs-keyword,
132
+ .highlight-dark .scheme .hljs-keyword,
133
+ .highlight-dark .tex .hljs-special,
134
+ .highlight-dark .hljs-prompt {
135
+ color: $hljs-symbol;
136
+ }
137
+
138
+ .highlight-dark .hljs-built_in {
139
+ color: $hljs-built-in;
140
+ }
141
+
142
+ .highlight-dark .hljs-preprocessor,
143
+ .highlight-dark .hljs-pragma,
144
+ .highlight-dark .hljs-pi,
145
+ .highlight-dark .hljs-doctype,
146
+ .highlight-dark .hljs-shebang,
147
+ .highlight-dark .hljs-cdata {
148
+ color: $hljs-preprocessor;
149
+ font-weight: bold;
150
+ }
151
+
152
+ .highlight-dark .hljs-deletion {
153
+ background: $hljs-deletion;
154
+ }
155
+
156
+ .highlight-dark .hljs-addition {
157
+ background: $hljs-addition;
158
+ }
159
+
160
+ .highlight-dark .diff .hljs-change {
161
+ background: $hljs-change;
162
+ }
163
+
164
+ .highlight-dark .hljs-chunk {
165
+ color: $hljs-chunk;
166
+ }
@@ -18,12 +18,11 @@ $white: #fff !default;
18
18
  $silver: #ddd !default;
19
19
  $gray: #aaa !default;
20
20
  $black: #111 !default;
21
- $monospace-font-family: 'Source Code Pro', Consolas, monospace !default;
22
21
  $hljs-comment: $gray !default;
23
22
  $hljs-keyword: $black !default;
24
23
  $hljs-number: $olive !default;
25
- $hljs-string: $red !default;
26
- $hljs-title: $red !default;
24
+ $hljs-string: $blue !default;
25
+ $hljs-title: $blue !default;
27
26
  $hljs-type: $navy !default;
28
27
  $hljs-tag: $navy !default;
29
28
  $hljs-attribute: $olive !default;
@@ -163,4 +162,6 @@ $hljs-chunk: $silver !default;
163
162
 
164
163
  .hljs-chunk {
165
164
  color: $hljs-chunk;
166
- }
165
+ }
166
+
167
+ /* Mapped colors */
@@ -1,61 +1,11 @@
1
1
 
2
2
  // Converted Variables
3
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
4
  $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
- $lighten-1: rgba(255,255,255,.0625) !default;
53
- $lighten-2: rgba(255,255,255,.125) !default;
54
- $lighten-3: rgba(255,255,255,.25) !default;
55
- $lighten-4: rgba(255,255,255,.5) !default;
56
- $border-width: 1px !default;
5
+ $form-field-padding-y: .5rem !default;
6
+ $form-field-height: 2.25rem !default;
57
7
  $border-radius: 3px !default;
58
- $border-color: $darken-2 !default;
8
+ $darken-3: rgba(0, 0, 0, .25) !default;
59
9
  $range-thumb-width: $form-field-padding-x !default;
60
10
  $range-thumb-height: ( $form-field-height - ($form-field-padding-y * 2) ) !default;
61
11
  $range-track-height: ( $form-field-padding-y / 2 ) !default;
@@ -64,37 +14,33 @@ $range-thumb-pseudo-size: $form-field-height !default;
64
14
 
65
15
  // Custom Media Query Variables
66
16
 
67
- $breakpoint-sm: '(min-width: 40em)' !default;
68
- $breakpoint-md: '(min-width: 52em)' !default;
69
- $breakpoint-lg: '(min-width: 64em)' !default;
70
17
 
71
18
  /* Basscss Input Range */
72
19
 
73
- input[type=range] {
20
+ .input-range {
74
21
  vertical-align: middle;
75
22
  background-color: transparent;
76
- }
77
-
78
- .range-light {
79
- color: inherit;
80
- -webkit-appearance: none;
81
23
  padding-top: $form-field-padding-y;
82
24
  padding-bottom: $form-field-padding-y;
25
+ color: inherit;
26
+ background-color: transparent;
27
+ -webkit-appearance: none;
83
28
  }
84
29
 
85
- .range-light::-webkit-slider-thumb {
86
- -webkit-appearance: none;
30
+ .input-range::-webkit-slider-thumb {
87
31
  position: relative;
88
32
  width: $range-thumb-width;
89
33
  height: $range-thumb-height;
90
- border-radius: $border-radius;
91
- background-color: currentcolor;
92
34
  cursor: pointer;
93
35
  margin-top: $range-thumb-offset;
36
+ border-radius: $border-radius;
37
+ background-color: currentcolor;
38
+ -webkit-appearance: none;
94
39
  }
95
40
 
96
41
  /* Touch screen friendly pseudo element */
97
- .range-light::-webkit-slider-thumb:before {
42
+
43
+ .input-range::-webkit-slider-thumb:before {
98
44
  content: '';
99
45
  display: block;
100
46
  position: absolute;
@@ -105,55 +51,30 @@ input[type=range] {
105
51
  opacity: 0;
106
52
  }
107
53
 
108
- .range-light::-moz-range-thumb {
54
+ .input-range::-moz-range-thumb {
109
55
  width: $range-thumb-width;
110
56
  height: $range-thumb-height;
57
+ cursor: pointer;
111
58
  border-radius: $border-radius;
112
59
  border-color: transparent;
113
60
  border-width: 0;
114
61
  background-color: currentcolor;
115
- cursor: pointer;
116
62
  }
117
63
 
118
- .range-light::-webkit-slider-runnable-track {
64
+ .input-range::-webkit-slider-runnable-track {
119
65
  height: $range-track-height;
120
66
  cursor: pointer;
121
67
  border-radius: $border-radius;
122
68
  background-color: $darken-3;
123
69
  }
124
70
 
125
- .range-light::-moz-range-track {
71
+ .input-range::-moz-range-track {
126
72
  height: $range-track-height;
127
73
  cursor: pointer;
128
74
  border-radius: $border-radius;
129
75
  background-color: $darken-3;
130
76
  }
131
77
 
132
- .range-light:focus {
133
- outline: none;
134
- }
135
-
136
- .range-light:focus::-webkit-slider-thumb {
137
- outline: none;
138
- border: 0;
139
- box-shadow: 0 0 1px 2px currentcolor;
140
- }
141
-
142
- .range-light:focus::-moz-range-thumb {
78
+ .input-range:focus {
143
79
  outline: none;
144
- border: 0;
145
- box-shadow: 0 0 0 3px $darken-3;
146
- }
147
-
148
-
149
- /* Basscss Defaults */
150
-
151
- /*
152
-
153
- COLOR VARIABLES
154
-
155
- - Cool
156
- - Warm
157
- - Gray Scale
158
-
159
- */
80
+ }