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,114 @@
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 Responsive States */
63
+
64
+ .sm-show, .md-show, .lg-show {
65
+ display: none !important
66
+ }
67
+
68
+ @media #{$breakpoint-sm} {
69
+ .sm-show { display: block !important }
70
+ }
71
+
72
+ @media #{$breakpoint-md} {
73
+ .md-show { display: block !important }
74
+ }
75
+
76
+ @media #{$breakpoint-lg} {
77
+ .lg-show { display: block !important }
78
+ }
79
+
80
+
81
+ @media #{$breakpoint-sm} {
82
+ .sm-hide { display: none !important }
83
+ }
84
+
85
+ @media #{$breakpoint-md} {
86
+ .md-hide { display: none !important }
87
+ }
88
+
89
+ @media #{$breakpoint-lg} {
90
+ .lg-hide { display: none !important }
91
+ }
92
+
93
+ .display-none { display: none !important }
94
+
95
+ .hide {
96
+ position: absolute !important;
97
+ height: 1px;
98
+ width: 1px;
99
+ overflow: hidden;
100
+ clip: rect(1px, 1px, 1px, 1px);
101
+ }
102
+
103
+
104
+ /* Basscss Defaults */
105
+
106
+ /*
107
+
108
+ COLOR VARIABLES
109
+
110
+ - Cool
111
+ - Warm
112
+ - Gray Scale
113
+
114
+ */
@@ -0,0 +1,194 @@
1
+
2
+ // Converted Variables
3
+
4
+ $space-1: .5rem !default;
5
+ $space-2: 1rem !default;
6
+ $space-3: 2rem !default;
7
+ $space-4: 4rem !default;
8
+
9
+ // Custom Media Query Variables
10
+
11
+ $breakpoint-sm: '(min-width: 40em)' !default;
12
+ $breakpoint-md: '(min-width: 52em)' !default;
13
+ $breakpoint-lg: '(min-width: 64em)' !default;
14
+
15
+ /* Basscss Responsive White Space */
16
+
17
+ @media #{$breakpoint-sm} {
18
+
19
+ .sm-m0 { margin: 0 }
20
+ .sm-mt0 { margin-top: 0 }
21
+ .sm-mr0 { margin-right: 0 }
22
+ .sm-mb0 { margin-bottom: 0 }
23
+ .sm-ml0 { margin-left: 0 }
24
+
25
+ .sm-m1 { margin: $space-1 }
26
+ .sm-mt1 { margin-top: $space-1 }
27
+ .sm-mr1 { margin-right: $space-1 }
28
+ .sm-mb1 { margin-bottom: $space-1 }
29
+ .sm-ml1 { margin-left: $space-1 }
30
+
31
+ .sm-m2 { margin: $space-2 }
32
+ .sm-mt2 { margin-top: $space-2 }
33
+ .sm-mr2 { margin-right: $space-2 }
34
+ .sm-mb2 { margin-bottom: $space-2 }
35
+ .sm-ml2 { margin-left: $space-2 }
36
+
37
+ .sm-m3 { margin: $space-3 }
38
+ .sm-mt3 { margin-top: $space-3 }
39
+ .sm-mr3 { margin-right: $space-3 }
40
+ .sm-mb3 { margin-bottom: $space-3 }
41
+ .sm-ml3 { margin-left: $space-3 }
42
+
43
+ .sm-m4 { margin: $space-4 }
44
+ .sm-mt4 { margin-top: $space-4 }
45
+ .sm-mr4 { margin-right: $space-4 }
46
+ .sm-mb4 { margin-bottom: $space-4 }
47
+ .sm-ml4 { margin-left: $space-4 }
48
+
49
+ .sm-mxn1 { margin-left: -$space-1; margin-right: -$space-1; }
50
+ .sm-mxn2 { margin-left: -$space-2; margin-right: -$space-2; }
51
+ .sm-mxn3 { margin-left: -$space-3; margin-right: -$space-3; }
52
+ .sm-mxn4 { margin-left: -$space-4; margin-right: -$space-4; }
53
+
54
+ .sm-mx-auto { margin-left: auto; margin-right: auto; }
55
+
56
+ }
57
+ @media #{$breakpoint-md} {
58
+
59
+ .md-m0 { margin: 0 }
60
+ .md-mt0 { margin-top: 0 }
61
+ .md-mr0 { margin-right: 0 }
62
+ .md-mb0 { margin-bottom: 0 }
63
+ .md-ml0 { margin-left: 0 }
64
+
65
+ .md-m1 { margin: $space-1 }
66
+ .md-mt1 { margin-top: $space-1 }
67
+ .md-mr1 { margin-right: $space-1 }
68
+ .md-mb1 { margin-bottom: $space-1 }
69
+ .md-ml1 { margin-left: $space-1 }
70
+
71
+ .md-m2 { margin: $space-2 }
72
+ .md-mt2 { margin-top: $space-2 }
73
+ .md-mr2 { margin-right: $space-2 }
74
+ .md-mb2 { margin-bottom: $space-2 }
75
+ .md-ml2 { margin-left: $space-2 }
76
+
77
+ .md-m3 { margin: $space-3 }
78
+ .md-mt3 { margin-top: $space-3 }
79
+ .md-mr3 { margin-right: $space-3 }
80
+ .md-mb3 { margin-bottom: $space-3 }
81
+ .md-ml3 { margin-left: $space-3 }
82
+
83
+ .md-m4 { margin: $space-4 }
84
+ .md-mt4 { margin-top: $space-4 }
85
+ .md-mr4 { margin-right: $space-4 }
86
+ .md-mb4 { margin-bottom: $space-4 }
87
+ .md-ml4 { margin-left: $space-4 }
88
+
89
+ .md-mxn1 { margin-left: -$space-1; margin-right: -$space-1; }
90
+ .md-mxn2 { margin-left: -$space-2; margin-right: -$space-2; }
91
+ .md-mxn3 { margin-left: -$space-3; margin-right: -$space-3; }
92
+ .md-mxn4 { margin-left: -$space-4; margin-right: -$space-4; }
93
+
94
+ .md-mx-auto { margin-left: auto; margin-right: auto; }
95
+
96
+ }
97
+ @media #{$breakpoint-lg} {
98
+
99
+ .lg-m0 { margin: 0 }
100
+ .lg-mt0 { margin-top: 0 }
101
+ .lg-mr0 { margin-right: 0 }
102
+ .lg-mb0 { margin-bottom: 0 }
103
+ .lg-ml0 { margin-left: 0 }
104
+
105
+ .lg-m1 { margin: $space-1 }
106
+ .lg-mt1 { margin-top: $space-1 }
107
+ .lg-mr1 { margin-right: $space-1 }
108
+ .lg-mb1 { margin-bottom: $space-1 }
109
+ .lg-ml1 { margin-left: $space-1 }
110
+
111
+ .lg-m2 { margin: $space-2 }
112
+ .lg-mt2 { margin-top: $space-2 }
113
+ .lg-mr2 { margin-right: $space-2 }
114
+ .lg-mb2 { margin-bottom: $space-2 }
115
+ .lg-ml2 { margin-left: $space-2 }
116
+
117
+ .lg-m3 { margin: $space-3 }
118
+ .lg-mt3 { margin-top: $space-3 }
119
+ .lg-mr3 { margin-right: $space-3 }
120
+ .lg-mb3 { margin-bottom: $space-3 }
121
+ .lg-ml3 { margin-left: $space-3 }
122
+
123
+ .lg-m4 { margin: $space-4 }
124
+ .lg-mt4 { margin-top: $space-4 }
125
+ .lg-mr4 { margin-right: $space-4 }
126
+ .lg-mb4 { margin-bottom: $space-4 }
127
+ .lg-ml4 { margin-left: $space-4 }
128
+
129
+ .lg-mxn1 { margin-left: -$space-1; margin-right: -$space-1; }
130
+ .lg-mxn2 { margin-left: -$space-2; margin-right: -$space-2; }
131
+ .lg-mxn3 { margin-left: -$space-3; margin-right: -$space-3; }
132
+ .lg-mxn4 { margin-left: -$space-4; margin-right: -$space-4; }
133
+
134
+ .lg-mx-auto { margin-left: auto; margin-right: auto; }
135
+
136
+ }
137
+
138
+ @media #{$breakpoint-sm} {
139
+
140
+ .sm-p1 { padding: $space-1 }
141
+ .sm-py1 { padding-top: $space-1; padding-bottom: $space-1 }
142
+ .sm-px1 { padding-left: $space-1; padding-right: $space-1 }
143
+
144
+ .sm-p2 { padding: $space-2 }
145
+ .sm-py2 { padding-top: $space-2; padding-bottom: $space-2 }
146
+ .sm-px2 { padding-left: $space-2; padding-right: $space-2 }
147
+
148
+ .sm-p3 { padding: $space-3 }
149
+ .sm-py3 { padding-top: $space-3; padding-bottom: $space-3 }
150
+ .sm-px3 { padding-left: $space-3; padding-right: $space-3 }
151
+
152
+ .sm-p4 { padding: $space-4 }
153
+ .sm-py4 { padding-top: $space-4; padding-bottom: $space-4 }
154
+ .sm-px4 { padding-left: $space-4; padding-right: $space-4 }
155
+
156
+ }
157
+ @media #{$breakpoint-md} {
158
+
159
+ .md-p1 { padding: $space-1 }
160
+ .md-py1 { padding-top: $space-1; padding-bottom: $space-1 }
161
+ .md-px1 { padding-left: $space-1; padding-right: $space-1 }
162
+
163
+ .md-p2 { padding: $space-2 }
164
+ .md-py2 { padding-top: $space-2; padding-bottom: $space-2 }
165
+ .md-px2 { padding-left: $space-2; padding-right: $space-2 }
166
+
167
+ .md-p3 { padding: $space-3 }
168
+ .md-py3 { padding-top: $space-3; padding-bottom: $space-3 }
169
+ .md-px3 { padding-left: $space-3; padding-right: $space-3 }
170
+
171
+ .md-p4 { padding: $space-4 }
172
+ .md-py4 { padding-top: $space-4; padding-bottom: $space-4 }
173
+ .md-px4 { padding-left: $space-4; padding-right: $space-4 }
174
+
175
+ }
176
+ @media #{$breakpoint-lg} {
177
+
178
+ .lg-p1 { padding: $space-1 }
179
+ .lg-py1 { padding-top: $space-1; padding-bottom: $space-1 }
180
+ .lg-px1 { padding-left: $space-1; padding-right: $space-1 }
181
+
182
+ .lg-p2 { padding: $space-2 }
183
+ .lg-py2 { padding-top: $space-2; padding-bottom: $space-2 }
184
+ .lg-px2 { padding-left: $space-2; padding-right: $space-2 }
185
+
186
+ .lg-p3 { padding: $space-3 }
187
+ .lg-py3 { padding-top: $space-3; padding-bottom: $space-3 }
188
+ .lg-px3 { padding-left: $space-3; padding-right: $space-3 }
189
+
190
+ .lg-p4 { padding: $space-4 }
191
+ .lg-py4 { padding-top: $space-4; padding-bottom: $space-4 }
192
+ .lg-px4 { padding-left: $space-4; padding-right: $space-4 }
193
+
194
+ }
@@ -1,26 +1,58 @@
1
- // Table object
2
1
 
3
- .mobile-table {
2
+ // Converted Variables
3
+
4
+
5
+ // Custom Media Query Variables
6
+
7
+ $breakpoint-sm: '(min-width: 40em)' !default;
8
+ $breakpoint-md: '(min-width: 52em)' !default;
9
+ $breakpoint-lg: '(min-width: 64em)' !default;
10
+
11
+ /* Basscss Table Object */
12
+
13
+ .table {
4
14
  display: table;
5
15
  width: 100%;
6
16
  }
7
- .mobile-table-cell {
17
+ .table-cell {
8
18
  display: table-cell;
9
19
  vertical-align: middle;
10
20
  }
11
21
 
12
- @media (min-width: $breakpoint-desktop){
13
- .table {
22
+ .table-fixed { table-layout: fixed }
23
+ @media #{$breakpoint-sm} {
24
+
25
+ .sm-table {
14
26
  display: table;
15
27
  width: 100%;
16
28
  }
17
- .table-cell {
29
+ .sm-table-cell {
18
30
  display: table-cell;
19
31
  vertical-align: middle;
20
32
  }
33
+
21
34
  }
35
+ @media #{$breakpoint-md} {
36
+
37
+ .md-table {
38
+ display: table;
39
+ width: 100%;
40
+ }
41
+ .md-table-cell {
42
+ display: table-cell;
43
+ vertical-align: middle;
44
+ }
22
45
 
23
- .table-fixed {
24
- table-layout: fixed;
25
46
  }
47
+ @media #{$breakpoint-lg} {
48
+
49
+ .lg-table {
50
+ display: table;
51
+ width: 100%;
52
+ }
53
+ .lg-table-cell {
54
+ display: table-cell;
55
+ vertical-align: middle;
56
+ }
26
57
 
58
+ }
@@ -0,0 +1,21 @@
1
+
2
+ // Converted Variables
3
+
4
+ $border-width: 1px !default;
5
+
6
+ // Custom Media Query Variables
7
+
8
+
9
+ /* Basscss UI Utility Groups */
10
+
11
+ .x-group-item { margin-left: -$border-width }
12
+ .x-group-item:first-of-type { margin-left: 0 }
13
+
14
+ .y-group-item { margin-top: -$border-width }
15
+ .y-group-item:first-of-type { margin-top: 0 }
16
+
17
+ .x-group-item:focus,
18
+ .y-group-item:focus {
19
+ position: relative;
20
+ z-index: 1;
21
+ }
@@ -0,0 +1,33 @@
1
+
2
+ // Converted Variables
3
+
4
+ $h00: 4rem !default;
5
+ $h0: 3rem !default;
6
+ $h00-responsive: 8vw !default;
7
+ $h0-responsive: 6vw !default;
8
+ $h1-responsive: 4vw !default;
9
+ $h00-responsive-max: 7.68rem !default;
10
+ $h0-responsive-max: 5.76rem !default;
11
+ $h1-responsive-max: 3.84rem !default;
12
+
13
+ // Custom Media Query Variables
14
+
15
+ $breakpoint-md: '(min-width: 52em)' !default;
16
+ $breakpoint-xl: '(min-width: 96em)' !default;
17
+
18
+ /* Basscss Utility Headings */
19
+
20
+ .h00 { font-size: $h00 }
21
+ .h0 { font-size: $h0 }
22
+
23
+ @media #{$breakpoint-md} {
24
+ .h00-responsive { font-size: $h00-responsive }
25
+ .h0-responsive { font-size: $h0-responsive }
26
+ .h1-responsive { font-size: $h1-responsive }
27
+ }
28
+
29
+ @media #{$breakpoint-xl} {
30
+ .h00-responsive { font-size: $h00-responsive-max }
31
+ .h0-responsive { font-size: $h0-responsive-max }
32
+ .h1-responsive { font-size: $h1-responsive-max }
33
+ }
@@ -0,0 +1,31 @@
1
+
2
+ // Converted Variables
3
+
4
+
5
+ // Custom Media Query Variables
6
+
7
+
8
+ /* Basscss Utility Layout */
9
+
10
+ .inline { display: inline }
11
+ .block { display: block }
12
+ .inline-block { display: inline-block }
13
+
14
+ .overflow-hidden { overflow: hidden }
15
+ .overflow-scroll { overflow: scroll }
16
+ .overflow-auto { overflow: auto }
17
+
18
+ .clearfix:before,
19
+ .clearfix:after {
20
+ content: " ";
21
+ display: table
22
+ }
23
+ .clearfix:after { clear: both }
24
+
25
+ .left { float: left }
26
+ .right { float: right }
27
+
28
+ .fit { max-width: 100% }
29
+
30
+ .half-width { width: 50% }
31
+ .full-width { width: 100% }