basscss-rails 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +2 -14
  5. data/app/assets/stylesheets/basscss/_background-images.scss +17 -0
  6. data/app/assets/stylesheets/basscss/_base-buttons.scss +110 -0
  7. data/app/assets/stylesheets/basscss/_base-forms.scss +129 -0
  8. data/app/assets/stylesheets/basscss/_base-reset.scss +16 -0
  9. data/app/assets/stylesheets/basscss/_base-tables.scss +99 -0
  10. data/app/assets/stylesheets/basscss/_base-typography.scss +135 -0
  11. data/app/assets/stylesheets/basscss/_borders.scss +82 -3
  12. data/app/assets/stylesheets/basscss/_button-blue-outline.scss +46 -0
  13. data/app/assets/stylesheets/basscss/_button-blue.scss +41 -0
  14. data/app/assets/stylesheets/basscss/_button-gray.scss +42 -0
  15. data/app/assets/stylesheets/basscss/_button-light-gray.scss +43 -0
  16. data/app/assets/stylesheets/basscss/_button-link.scss +42 -0
  17. data/app/assets/stylesheets/basscss/_button-nav-dark.scss +23 -0
  18. data/app/assets/stylesheets/basscss/_button-nav-light.scss +26 -0
  19. data/app/assets/stylesheets/basscss/_button-nav-tab.scss +34 -0
  20. data/app/assets/stylesheets/basscss/_button-outline.scss +135 -0
  21. data/app/assets/stylesheets/basscss/_button-red.scss +41 -0
  22. data/app/assets/stylesheets/basscss/_button-sizes.scss +93 -0
  23. data/app/assets/stylesheets/basscss/_button-transparent.scss +139 -0
  24. data/app/assets/stylesheets/basscss/_color-base.scss +137 -0
  25. data/app/assets/stylesheets/basscss/_color-buttons.scss +196 -0
  26. data/app/assets/stylesheets/basscss/_color-forms-dark.scss +123 -0
  27. data/app/assets/stylesheets/basscss/_color-forms.scss +115 -0
  28. data/app/assets/stylesheets/basscss/_color-tables.scss +85 -0
  29. data/app/assets/stylesheets/basscss/_colors.scss +155 -19
  30. data/app/assets/stylesheets/basscss/_defaults.scss +72 -0
  31. data/app/assets/stylesheets/basscss/_flex-object.scss +109 -0
  32. data/app/assets/stylesheets/basscss/_grid.scss +303 -39
  33. data/app/assets/stylesheets/basscss/_highlight.scss +166 -0
  34. data/app/assets/stylesheets/basscss/_input-range.scss +155 -0
  35. data/app/assets/stylesheets/basscss/_positions.scss +17 -17
  36. data/app/assets/stylesheets/basscss/_progress.scss +101 -0
  37. data/app/assets/stylesheets/basscss/_responsive-states.scss +114 -0
  38. data/app/assets/stylesheets/basscss/_responsive-white-space.scss +194 -0
  39. data/app/assets/stylesheets/basscss/_table-object.scss +40 -8
  40. data/app/assets/stylesheets/basscss/_ui-utility-groups.scss +21 -0
  41. data/app/assets/stylesheets/basscss/_utility-headings.scss +33 -0
  42. data/app/assets/stylesheets/basscss/_utility-layout.scss +31 -0
  43. data/app/assets/stylesheets/basscss/_utility-typography.scss +20 -0
  44. data/app/assets/stylesheets/basscss/_white-space.scss +126 -0
  45. data/app/assets/stylesheets/basscss/basscss.scss +37 -40
  46. data/lib/basscss/rails/version.rb +1 -1
  47. metadata +38 -20
  48. data/app/assets/stylesheets/basscss/_button-themes.scss +0 -32
  49. data/app/assets/stylesheets/basscss/_buttons.scss +0 -33
  50. data/app/assets/stylesheets/basscss/_form-themes.scss +0 -37
  51. data/app/assets/stylesheets/basscss/_forms.scss +0 -68
  52. data/app/assets/stylesheets/basscss/_lists.scss +0 -16
  53. data/app/assets/stylesheets/basscss/_margins.scss +0 -34
  54. data/app/assets/stylesheets/basscss/_nav-themes.scss +0 -130
  55. data/app/assets/stylesheets/basscss/_navs.scss +0 -59
  56. data/app/assets/stylesheets/basscss/_padding.scss +0 -18
  57. data/app/assets/stylesheets/basscss/_reset.scss +0 -10
  58. data/app/assets/stylesheets/basscss/_table-themes.scss +0 -8
  59. data/app/assets/stylesheets/basscss/_tables.scss +0 -23
  60. data/app/assets/stylesheets/basscss/_theme.scss +0 -16
  61. data/app/assets/stylesheets/basscss/_type.scss +0 -43
  62. data/app/assets/stylesheets/basscss/_utilities.scss +0 -30
  63. data/app/assets/stylesheets/basscss/_variables.scss +0 -62
  64. data/app/assets/stylesheets/basscss/basscss-lite.scss +0 -19
@@ -0,0 +1,20 @@
1
+
2
+ // Converted Variables
3
+
4
+
5
+ // Custom Media Query Variables
6
+
7
+
8
+ /* Basscss Utility Typography */
9
+
10
+ .bold { font-weight: $bold-font-weight /* Fallback value: bold */ }
11
+ .regular { font-weight: normal }
12
+ .italic { font-style: italic }
13
+ .caps { text-transform: uppercase; letter-spacing: .2em; }
14
+
15
+ .left-align { text-align: left }
16
+ .center { text-align: center }
17
+ .right-align { text-align: right }
18
+ .justify { text-align: justify }
19
+
20
+ .nowrap { white-space: nowrap }
@@ -0,0 +1,126 @@
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 Utility White Space */
63
+
64
+ .m0 { margin: 0 }
65
+ .mt0 { margin-top: 0 }
66
+ .mr0 { margin-right: 0 }
67
+ .mb0 { margin-bottom: 0 }
68
+ .ml0 { margin-left: 0 }
69
+
70
+ .m1 { margin: $space-1 }
71
+ .mt1 { margin-top: $space-1 }
72
+ .mr1 { margin-right: $space-1 }
73
+ .mb1 { margin-bottom: $space-1 }
74
+ .ml1 { margin-left: $space-1 }
75
+
76
+ .m2 { margin: $space-2 }
77
+ .mt2 { margin-top: $space-2 }
78
+ .mr2 { margin-right: $space-2 }
79
+ .mb2 { margin-bottom: $space-2 }
80
+ .ml2 { margin-left: $space-2 }
81
+
82
+ .m3 { margin: $space-3 }
83
+ .mt3 { margin-top: $space-3 }
84
+ .mr3 { margin-right: $space-3 }
85
+ .mb3 { margin-bottom: $space-3 }
86
+ .ml3 { margin-left: $space-3 }
87
+
88
+ .m4 { margin: $space-4 }
89
+ .mt4 { margin-top: $space-4 }
90
+ .mr4 { margin-right: $space-4 }
91
+ .mb4 { margin-bottom: $space-4 }
92
+ .ml4 { margin-left: $space-4 }
93
+
94
+ .mxn1 { margin-left: -$space-1; margin-right: -$space-1; }
95
+ .mxn2 { margin-left: -$space-2; margin-right: -$space-2; }
96
+ .mxn3 { margin-left: -$space-3; margin-right: -$space-3; }
97
+ .mxn4 { margin-left: -$space-4; margin-right: -$space-4; }
98
+
99
+ .mx-auto { margin-left: auto; margin-right: auto; }
100
+ .p1 { padding: $space-1 }
101
+ .py1 { padding-top: $space-1; padding-bottom: $space-1 }
102
+ .px1 { padding-left: $space-1; padding-right: $space-1 }
103
+
104
+ .p2 { padding: $space-2 }
105
+ .py2 { padding-top: $space-2; padding-bottom: $space-2 }
106
+ .px2 { padding-left: $space-2; padding-right: $space-2 }
107
+
108
+ .p3 { padding: $space-3 }
109
+ .py3 { padding-top: $space-3; padding-bottom: $space-3 }
110
+ .px3 { padding-left: $space-3; padding-right: $space-3 }
111
+
112
+ .p4 { padding: $space-4 }
113
+ .py4 { padding-top: $space-4; padding-bottom: $space-4 }
114
+ .px4 { padding-left: $space-4; padding-right: $space-4 }
115
+
116
+ /* Basscss Defaults */
117
+
118
+ /*
119
+
120
+ COLOR VARIABLES
121
+
122
+ - Cool
123
+ - Warm
124
+ - Gray Scale
125
+
126
+ */
@@ -1,43 +1,40 @@
1
- /*
2
-
3
- BASSCSS
4
-
5
- Next-level CSS toolkit - http://basscss.com
6
-
7
- Made with love by Jxnblk - ©2014 Brent Jackson
8
- MIT License http://opensource.org/licenses/MIT
9
-
10
- */
11
-
12
-
13
- @import "variables";
14
-
15
- @import "reset";
16
-
17
- @import "type";
18
- @import "margins";
19
- @import "padding";
20
- @import "utilities";
21
- @import "forms";
22
- @import "lists";
1
+ @import "defaults";
2
+ @import "base-reset";
3
+ @import "base-forms";
4
+ @import "base-buttons";
5
+ @import "base-tables";
6
+ @import "base-typography";
7
+ @import "utility-layout";
8
+ @import "utility-typography";
9
+ @import "white-space";
10
+ @import "responsive-states";
23
11
  @import "positions";
24
- @import "tables";
25
-
26
- // Components
27
- @import "buttons";
12
+ @import "button-sizes";
28
13
  @import "grid";
29
- @import "table-object";
30
- @import "navs";
31
-
32
-
33
- // Thematic styles
34
- @import "theme";
35
- @import "colors";
14
+ @import "flex-object";
15
+ @import "color-base";
16
+ @import "color-forms";
17
+ @import "color-forms-dark";
18
+ @import "input-range";
19
+ @import "progress";
20
+ @import "color-tables";
21
+ @import "button-outline";
22
+ @import "button-transparent";
23
+ @import "background-images";
36
24
  @import "borders";
37
-
38
- @import "form-themes";
39
- @import "table-themes";
40
-
41
- @import "button-themes";
42
- @import "nav-themes";
43
-
25
+ @import "colors";
26
+ @import "responsive-white-space";
27
+ @import "utility-headings";
28
+ @import "ui-utility-groups";
29
+ @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";
@@ -1,5 +1,5 @@
1
1
  module Basscss
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = '1.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: 0.0.1
4
+ version: 1.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: 2014-08-23 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -51,28 +51,46 @@ files:
51
51
  - LICENSE.txt
52
52
  - README.md
53
53
  - Rakefile
54
+ - app/assets/stylesheets/basscss/_background-images.scss
55
+ - app/assets/stylesheets/basscss/_base-buttons.scss
56
+ - app/assets/stylesheets/basscss/_base-forms.scss
57
+ - app/assets/stylesheets/basscss/_base-reset.scss
58
+ - app/assets/stylesheets/basscss/_base-tables.scss
59
+ - app/assets/stylesheets/basscss/_base-typography.scss
54
60
  - app/assets/stylesheets/basscss/_borders.scss
55
- - app/assets/stylesheets/basscss/_button-themes.scss
56
- - app/assets/stylesheets/basscss/_buttons.scss
61
+ - app/assets/stylesheets/basscss/_button-blue-outline.scss
62
+ - app/assets/stylesheets/basscss/_button-blue.scss
63
+ - app/assets/stylesheets/basscss/_button-gray.scss
64
+ - app/assets/stylesheets/basscss/_button-light-gray.scss
65
+ - app/assets/stylesheets/basscss/_button-link.scss
66
+ - app/assets/stylesheets/basscss/_button-nav-dark.scss
67
+ - app/assets/stylesheets/basscss/_button-nav-light.scss
68
+ - app/assets/stylesheets/basscss/_button-nav-tab.scss
69
+ - app/assets/stylesheets/basscss/_button-outline.scss
70
+ - app/assets/stylesheets/basscss/_button-red.scss
71
+ - app/assets/stylesheets/basscss/_button-sizes.scss
72
+ - app/assets/stylesheets/basscss/_button-transparent.scss
73
+ - app/assets/stylesheets/basscss/_color-base.scss
74
+ - app/assets/stylesheets/basscss/_color-buttons.scss
75
+ - app/assets/stylesheets/basscss/_color-forms-dark.scss
76
+ - app/assets/stylesheets/basscss/_color-forms.scss
77
+ - app/assets/stylesheets/basscss/_color-tables.scss
57
78
  - app/assets/stylesheets/basscss/_colors.scss
58
- - app/assets/stylesheets/basscss/_form-themes.scss
59
- - app/assets/stylesheets/basscss/_forms.scss
79
+ - app/assets/stylesheets/basscss/_defaults.scss
80
+ - app/assets/stylesheets/basscss/_flex-object.scss
60
81
  - app/assets/stylesheets/basscss/_grid.scss
61
- - app/assets/stylesheets/basscss/_lists.scss
62
- - app/assets/stylesheets/basscss/_margins.scss
63
- - app/assets/stylesheets/basscss/_nav-themes.scss
64
- - app/assets/stylesheets/basscss/_navs.scss
65
- - app/assets/stylesheets/basscss/_padding.scss
82
+ - app/assets/stylesheets/basscss/_highlight.scss
83
+ - app/assets/stylesheets/basscss/_input-range.scss
66
84
  - app/assets/stylesheets/basscss/_positions.scss
67
- - app/assets/stylesheets/basscss/_reset.scss
85
+ - app/assets/stylesheets/basscss/_progress.scss
86
+ - app/assets/stylesheets/basscss/_responsive-states.scss
87
+ - app/assets/stylesheets/basscss/_responsive-white-space.scss
68
88
  - app/assets/stylesheets/basscss/_table-object.scss
69
- - app/assets/stylesheets/basscss/_table-themes.scss
70
- - app/assets/stylesheets/basscss/_tables.scss
71
- - app/assets/stylesheets/basscss/_theme.scss
72
- - app/assets/stylesheets/basscss/_type.scss
73
- - app/assets/stylesheets/basscss/_utilities.scss
74
- - app/assets/stylesheets/basscss/_variables.scss
75
- - app/assets/stylesheets/basscss/basscss-lite.scss
89
+ - app/assets/stylesheets/basscss/_ui-utility-groups.scss
90
+ - app/assets/stylesheets/basscss/_utility-headings.scss
91
+ - app/assets/stylesheets/basscss/_utility-layout.scss
92
+ - app/assets/stylesheets/basscss/_utility-typography.scss
93
+ - app/assets/stylesheets/basscss/_white-space.scss
76
94
  - app/assets/stylesheets/basscss/basscss.scss
77
95
  - basscss-rails.gemspec
78
96
  - lib/basscss/rails.rb
@@ -98,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
116
  version: '0'
99
117
  requirements: []
100
118
  rubyforge_project:
101
- rubygems_version: 2.2.2
119
+ rubygems_version: 2.4.5
102
120
  signing_key:
103
121
  specification_version: 4
104
122
  summary: Include BASSCSS in your Rails apps.
@@ -1,32 +0,0 @@
1
- // Button Themes
2
-
3
- .button {
4
- border-radius: $border-radius;
5
- transition-duration: .2s;
6
- transition-timing-function: ease;
7
- transition-property: box-shadow , background-color;
8
- &:focus {
9
- outline: none;
10
- box-shadow: 0 0 0 2px #fff, 0 0 1px 4px rgba($blue, .5);
11
- }
12
- }
13
-
14
- .button-blue {
15
- color: #fff;
16
- background-color: $blue;
17
- &:hover {
18
- color: #fff;
19
- background-color: darken($blue, 20%);
20
- }
21
- }
22
-
23
- .button-gray {
24
- color: #fff;
25
- background-color: $mid-gray;
26
- &:hover {
27
- color: #fff;
28
- background-color: darken($mid-gray, 20%);
29
- }
30
- &:focus {}
31
- }
32
-
@@ -1,33 +0,0 @@
1
- // Buttons
2
-
3
- .button {
4
- font-family: inherit;
5
- font-weight: bold;
6
- text-decoration: none;
7
- cursor: pointer;
8
- border: none;
9
- -webkit-appearance: none;
10
- appearance: none;
11
- white-space: nowrap;
12
- display: inline-block;
13
- line-height: $ui-height;
14
- height: auto;
15
- min-height: $ui-height;
16
- padding: 0 $ui-padding;
17
- &:hover,
18
- &:focus {
19
- text-decoration: none;
20
- }
21
- }
22
-
23
- .button-big {
24
- line-height: $ui-height-big;
25
- min-height: $ui-height-big;
26
- padding: 0 1.5*$ui-padding;
27
- }
28
-
29
- .button-small {
30
- line-height: $ui-height-small;
31
- min-height: $ui-height-small;
32
- }
33
-
@@ -1,37 +0,0 @@
1
- // Form Themes
2
-
3
- // See _forms.scss for structural styles
4
-
5
- .form-light {
6
- .input,
7
- .textarea,
8
- .select {
9
- background-color: white;
10
- transition: box-shadow .2s ease;
11
- border-color: $border-color;
12
- border-radius: $border-radius;
13
- &:focus {
14
- outline: none;
15
- border-color: $blue;
16
- box-shadow: 0 0 .125rem rgba($blue,.5);
17
- }
18
- }
19
- .radio input,
20
- .checkbox input {
21
- transition: box-shadow .2s ease;
22
- &:focus {
23
- outline: none;
24
- box-shadow: 0 0 0 2px #fff, 0 0 1px 4px rgba($blue, .5);
25
- }
26
- }
27
- .radio input {
28
- border-radius: 50%;
29
- }
30
- .fieldset {
31
- border-width: 1px;
32
- border-style: solid;
33
- border-color: $border-color;
34
- border-radius: $border-radius;
35
- }
36
- }
37
-
@@ -1,68 +0,0 @@
1
- // Forms
2
-
3
- .form {
4
- font-size: 1rem;
5
- .field,
6
- .input,
7
- .select {
8
- -moz-box-sizing: border-box;
9
- box-sizing: border-box;
10
- max-width: 100%;
11
- height: $ui-height;
12
- line-height: $ui-height - $ui-padding;
13
- }
14
- .input,
15
- .select {
16
- border-style: solid;
17
- border-width: 1px;
18
- }
19
- .select {
20
- margin-right: 0;
21
- margin-left: 0;
22
- &[multiple] {
23
- height: auto;
24
- }
25
- }
26
- .input {
27
- padding: .5*$ui-padding $ui-padding;
28
- -webkit-appearance: none;
29
- appearance: none;
30
- }
31
- .textarea {
32
- -moz-box-sizing: border-box;
33
- box-sizing: border-box;
34
- padding: $ui-padding;
35
- line-height: 1.5;
36
- }
37
- .field-big,
38
- .input-big {
39
- height: $ui-height-big;
40
- }
41
- .field-small,
42
- .input-small {
43
- height: $ui-height-small;
44
- line-height: $ui-height-small - $ui-padding;
45
- }
46
- }
47
-
48
- .form-stacked {
49
- .label,
50
- .input,
51
- .select,
52
- .checkbox,
53
- .radio,
54
- .fieldset,
55
- .field {
56
- display: block;
57
- width: 100%;
58
- }
59
- .input,
60
- .select,
61
- .radio,
62
- .checkbox,
63
- .fieldset,
64
- .field {
65
- margin-bottom: 1rem;
66
- }
67
- }
68
-