suitcss-rails 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +4 -0
  6. data/README.md +37 -0
  7. data/Rakefile +6 -0
  8. data/app/assets/stylesheets/normalize.css +424 -0
  9. data/app/assets/stylesheets/suitcss.css +5 -0
  10. data/app/assets/stylesheets/suitcss/base.css +1 -0
  11. data/app/assets/stylesheets/suitcss/base/index.css +83 -0
  12. data/app/assets/stylesheets/suitcss/components.css +4 -0
  13. data/app/assets/stylesheets/suitcss/components/arrange.css +155 -0
  14. data/app/assets/stylesheets/suitcss/components/button.css +77 -0
  15. data/app/assets/stylesheets/suitcss/components/flex-embed.css +74 -0
  16. data/app/assets/stylesheets/suitcss/components/grid.css +121 -0
  17. data/app/assets/stylesheets/suitcss/utils.css +9 -0
  18. data/app/assets/stylesheets/suitcss/utils/after.css +4 -0
  19. data/app/assets/stylesheets/suitcss/utils/after/index.css +117 -0
  20. data/app/assets/stylesheets/suitcss/utils/after/lg.css +127 -0
  21. data/app/assets/stylesheets/suitcss/utils/after/md.css +127 -0
  22. data/app/assets/stylesheets/suitcss/utils/after/sm.css +127 -0
  23. data/app/assets/stylesheets/suitcss/utils/align.css +21 -0
  24. data/app/assets/stylesheets/suitcss/utils/before.css +4 -0
  25. data/app/assets/stylesheets/suitcss/utils/before/index.css +117 -0
  26. data/app/assets/stylesheets/suitcss/utils/before/lg.css +127 -0
  27. data/app/assets/stylesheets/suitcss/utils/before/md.css +127 -0
  28. data/app/assets/stylesheets/suitcss/utils/before/sm.css +127 -0
  29. data/app/assets/stylesheets/suitcss/utils/display.css +53 -0
  30. data/app/assets/stylesheets/suitcss/utils/flex.css +4 -0
  31. data/app/assets/stylesheets/suitcss/utils/flex/index.css +253 -0
  32. data/app/assets/stylesheets/suitcss/utils/flex/lg.css +259 -0
  33. data/app/assets/stylesheets/suitcss/utils/flex/md.css +259 -0
  34. data/app/assets/stylesheets/suitcss/utils/flex/sm.css +259 -0
  35. data/app/assets/stylesheets/suitcss/utils/layout.css +66 -0
  36. data/app/assets/stylesheets/suitcss/utils/link.css +55 -0
  37. data/app/assets/stylesheets/suitcss/utils/offset.css +2 -0
  38. data/app/assets/stylesheets/suitcss/utils/position.css +48 -0
  39. data/app/assets/stylesheets/suitcss/utils/size.css +4 -0
  40. data/app/assets/stylesheets/suitcss/utils/size/index.css +172 -0
  41. data/app/assets/stylesheets/suitcss/utils/size/lg.css +176 -0
  42. data/app/assets/stylesheets/suitcss/utils/size/md.css +176 -0
  43. data/app/assets/stylesheets/suitcss/utils/size/sm.css +176 -0
  44. data/app/assets/stylesheets/suitcss/utils/text.css +76 -0
  45. data/bin/console +14 -0
  46. data/bin/setup +8 -0
  47. data/lib/suitcss/rails.rb +6 -0
  48. data/lib/suitcss/rails/version.rb +5 -0
  49. data/suitcss-rails.gemspec +24 -0
  50. metadata +133 -0
@@ -0,0 +1,176 @@
1
+ /**
2
+ * @define utilities
3
+ * Size: breakpoint 2 (medium)
4
+ */
5
+
6
+ @media (--md-viewport) {
7
+
8
+ /* Proportional widths: breakpoint 2 (medium)
9
+ ======================================================================== */
10
+
11
+ /**
12
+ * Specify the proportional width of an object.
13
+ * Intentional redundancy build into each set of unit classes.
14
+ * Supports: 2, 3, 4, 5, 6, 8, 10, 12 part
15
+ *
16
+ * 1. Use `flex-basis: auto` with a width to avoid box-sizing bug in IE10/11
17
+ * http://git.io/vllMD
18
+ */
19
+
20
+ /* postcss-bem-linter: ignore */
21
+
22
+ [class*="u-md-size"] {
23
+ flex-basis: auto !important; /* 1 */
24
+ }
25
+
26
+ .u-md-size1of12 {
27
+ width: calc(100% * 1 / 12) !important;
28
+ }
29
+
30
+ .u-md-size1of10 {
31
+ width: 10% !important;
32
+ }
33
+
34
+ .u-md-size1of8 {
35
+ width: 12.5% !important;
36
+ }
37
+
38
+ .u-md-size1of6,
39
+ .u-md-size2of12 {
40
+ width: calc(100% * 1 / 6) !important;
41
+ }
42
+
43
+ .u-md-size1of5,
44
+ .u-md-size2of10 {
45
+ width: 20% !important;
46
+ }
47
+
48
+ .u-md-size1of4,
49
+ .u-md-size2of8,
50
+ .u-md-size3of12 {
51
+ width: 25% !important;
52
+ }
53
+
54
+ .u-md-size3of10 {
55
+ width: 30% !important;
56
+ }
57
+
58
+ .u-md-size1of3,
59
+ .u-md-size2of6,
60
+ .u-md-size4of12 {
61
+ width: calc(100% * 1 / 3) !important;
62
+ }
63
+
64
+ .u-md-size3of8 {
65
+ width: 37.5% !important;
66
+ }
67
+
68
+ .u-md-size2of5,
69
+ .u-md-size4of10 {
70
+ width: 40% !important;
71
+ }
72
+
73
+ .u-md-size5of12 {
74
+ width: calc(100% * 5 / 12) !important;
75
+ }
76
+
77
+ .u-md-size1of2,
78
+ .u-md-size2of4,
79
+ .u-md-size3of6,
80
+ .u-md-size4of8,
81
+ .u-md-size5of10,
82
+ .u-md-size6of12 {
83
+ width: 50% !important;
84
+ }
85
+
86
+ .u-md-size7of12 {
87
+ width: calc(100% * 7 / 12) !important;
88
+ }
89
+
90
+ .u-md-size3of5,
91
+ .u-md-size6of10 {
92
+ width: 60% !important;
93
+ }
94
+
95
+ .u-md-size5of8 {
96
+ width: 62.5% !important;
97
+ }
98
+
99
+ .u-md-size2of3,
100
+ .u-md-size4of6,
101
+ .u-md-size8of12 {
102
+ width: calc(100% * 2 / 3) !important;
103
+ }
104
+
105
+ .u-md-size7of10 {
106
+ width: 70% !important;
107
+ }
108
+
109
+ .u-md-size3of4,
110
+ .u-md-size6of8,
111
+ .u-md-size9of12 {
112
+ width: 75% !important;
113
+ }
114
+
115
+ .u-md-size4of5,
116
+ .u-md-size8of10 {
117
+ width: 80% !important;
118
+ }
119
+
120
+ .u-md-size5of6,
121
+ .u-md-size10of12 {
122
+ width: calc(100% * 5 / 6) !important;
123
+ }
124
+
125
+ .u-md-size7of8 {
126
+ width: 87.5% !important;
127
+ }
128
+
129
+ .u-md-size9of10 {
130
+ width: 90% !important;
131
+ }
132
+
133
+ .u-md-size11of12 {
134
+ width: calc(100% * 11 / 12) !important;
135
+ }
136
+
137
+ /* Intrinsic widths
138
+ ======================================================================== */
139
+
140
+ /**
141
+ * Make an element fill the remaining space.
142
+ *
143
+ * 1. Be explicit to work around IE10 bug with shorthand flex
144
+ * http://git.io/vllC7
145
+ * 2. IE10 ignores previous `flex-basis` value. Setting again here fixes
146
+ * http://git.io/vllMt
147
+ */
148
+
149
+ .u-md-sizeFill {
150
+ flex: 1 1 0% !important; /* 1 */
151
+ flex-basis: 0% !important; /* 2 */
152
+ }
153
+
154
+ /**
155
+ * An alternative method to make an element fill the remaining space.
156
+ * Distributes space based on the initial width and height of the element
157
+ *
158
+ * http://www.w3.org/TR/css-flexbox/images/rel-vs-abs-flex.svg
159
+ */
160
+
161
+ .u-md-sizeFillAlt {
162
+ flex: 1 1 auto !important;
163
+ flex-basis: auto !important;
164
+ }
165
+
166
+ /**
167
+ * Make an element the width of its parent.
168
+ */
169
+
170
+ .u-md-sizeFull {
171
+ box-sizing: border-box !important;
172
+ display: block !important;
173
+ width: 100% !important;
174
+ }
175
+
176
+ }
@@ -0,0 +1,176 @@
1
+ /**
2
+ * @define utilities
3
+ * Size: breakpoint 1 (small)
4
+ */
5
+
6
+ @media (--sm-viewport) {
7
+
8
+ /* Proportional widths: breakpoint 1 (small)
9
+ ======================================================================== */
10
+
11
+ /**
12
+ * Specify the proportional width of an object.
13
+ * Intentional redundancy build into each set of unit classes.
14
+ * Supports: 2, 3, 4, 5, 6, 8, 10, 12 part
15
+ *
16
+ * 1. Use `flex-basis: auto` with a width to avoid box-sizing bug in IE10/11
17
+ * http://git.io/vllMD
18
+ */
19
+
20
+ /* postcss-bem-linter: ignore */
21
+
22
+ [class*="u-sm-size"] {
23
+ flex-basis: auto !important; /* 1 */
24
+ }
25
+
26
+ .u-sm-size1of12 {
27
+ width: calc(100% * 1 / 12) !important;
28
+ }
29
+
30
+ .u-sm-size1of10 {
31
+ width: 10% !important;
32
+ }
33
+
34
+ .u-sm-size1of8 {
35
+ width: 12.5% !important;
36
+ }
37
+
38
+ .u-sm-size1of6,
39
+ .u-sm-size2of12 {
40
+ width: calc(100% * 1 / 6) !important;
41
+ }
42
+
43
+ .u-sm-size1of5,
44
+ .u-sm-size2of10 {
45
+ width: 20% !important;
46
+ }
47
+
48
+ .u-sm-size1of4,
49
+ .u-sm-size2of8,
50
+ .u-sm-size3of12 {
51
+ width: 25% !important;
52
+ }
53
+
54
+ .u-sm-size3of10 {
55
+ width: 30% !important;
56
+ }
57
+
58
+ .u-sm-size1of3,
59
+ .u-sm-size2of6,
60
+ .u-sm-size4of12 {
61
+ width: calc(100% * 1 / 3) !important;
62
+ }
63
+
64
+ .u-sm-size3of8 {
65
+ width: 37.5% !important;
66
+ }
67
+
68
+ .u-sm-size2of5,
69
+ .u-sm-size4of10 {
70
+ width: 40% !important;
71
+ }
72
+
73
+ .u-sm-size5of12 {
74
+ width: calc(100% * 5 / 12) !important;
75
+ }
76
+
77
+ .u-sm-size1of2,
78
+ .u-sm-size2of4,
79
+ .u-sm-size3of6,
80
+ .u-sm-size4of8,
81
+ .u-sm-size5of10,
82
+ .u-sm-size6of12 {
83
+ width: 50% !important;
84
+ }
85
+
86
+ .u-sm-size7of12 {
87
+ width: calc(100% * 7 / 12) !important;
88
+ }
89
+
90
+ .u-sm-size3of5,
91
+ .u-sm-size6of10 {
92
+ width: 60% !important;
93
+ }
94
+
95
+ .u-sm-size5of8 {
96
+ width: 62.5% !important;
97
+ }
98
+
99
+ .u-sm-size2of3,
100
+ .u-sm-size4of6,
101
+ .u-sm-size8of12 {
102
+ width: calc(100% * 2 / 3) !important;
103
+ }
104
+
105
+ .u-sm-size7of10 {
106
+ width: 70% !important;
107
+ }
108
+
109
+ .u-sm-size3of4,
110
+ .u-sm-size6of8,
111
+ .u-sm-size9of12 {
112
+ width: 75% !important;
113
+ }
114
+
115
+ .u-sm-size4of5,
116
+ .u-sm-size8of10 {
117
+ width: 80% !important;
118
+ }
119
+
120
+ .u-sm-size5of6,
121
+ .u-sm-size10of12 {
122
+ width: calc(100% * 5 / 6) !important;
123
+ }
124
+
125
+ .u-sm-size7of8 {
126
+ width: 87.5% !important;
127
+ }
128
+
129
+ .u-sm-size9of10 {
130
+ width: 90% !important;
131
+ }
132
+
133
+ .u-sm-size11of12 {
134
+ width: calc(100% * 11 / 12) !important;
135
+ }
136
+
137
+ /* Intrinsic widths
138
+ ======================================================================== */
139
+
140
+ /**
141
+ * Make an element fill the remaining space.
142
+ *
143
+ * 1. Be explicit to work around IE10 bug with shorthand flex
144
+ * http://git.io/vllC7
145
+ * 2. IE10 ignores previous `flex-basis` value. Setting again here fixes
146
+ * http://git.io/vllMt
147
+ */
148
+
149
+ .u-sm-sizeFill {
150
+ flex: 1 1 0% !important; /* 1 */
151
+ flex-basis: 0% !important; /* 2 */
152
+ }
153
+
154
+ /**
155
+ * An alternative method to make an element fill the remaining space.
156
+ * Distributes space based on the initial width and height of the element
157
+ *
158
+ * http://www.w3.org/TR/css-flexbox/images/rel-vs-abs-flex.svg
159
+ */
160
+
161
+ .u-sm-sizeFillAlt {
162
+ flex: 1 1 auto !important;
163
+ flex-basis: auto !important;
164
+ }
165
+
166
+ /**
167
+ * Make an element the width of its parent.
168
+ */
169
+
170
+ .u-sm-sizeFull {
171
+ box-sizing: border-box !important;
172
+ display: block !important;
173
+ width: 100% !important;
174
+ }
175
+
176
+ }
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Word breaking
3
+ *
4
+ * Break strings when their length exceeds the width of their container.
5
+ */
6
+
7
+ .u-textBreak {
8
+ word-wrap: break-word !important;
9
+ }
10
+
11
+ /**
12
+ * Horizontal text alignment
13
+ */
14
+
15
+ .u-textCenter {
16
+ text-align: center !important;
17
+ }
18
+
19
+ .u-textLeft {
20
+ text-align: left !important;
21
+ }
22
+
23
+ .u-textRight {
24
+ text-align: right !important;
25
+ }
26
+
27
+ /**
28
+ * Inherit the ancestor's text color.
29
+ */
30
+
31
+ .u-textInheritColor {
32
+ color: inherit !important;
33
+ }
34
+
35
+ /**
36
+ * Enables font kerning in all browsers.
37
+ * http://blog.typekit.com/2014/02/05/kerning-on-the-web/
38
+ *
39
+ * 1. Chrome (not Windows), Firefox, IE 10+
40
+ * 2. Safari 7 and future browsers
41
+ * 3. Chrome (not Windows), Firefox, Safari 6+, iOS, Android
42
+ */
43
+
44
+ .u-textKern {
45
+ font-feature-settings: "kern" 1; /* 1 */
46
+ font-kerning: normal; /* 2 */
47
+ text-rendering: optimizeLegibility; /* 3 */
48
+ }
49
+
50
+ /**
51
+ * Prevent whitespace wrapping
52
+ */
53
+
54
+ .u-textNoWrap {
55
+ white-space: nowrap !important;
56
+ }
57
+
58
+ /**
59
+ * Text truncation
60
+ *
61
+ * Prevent text from wrapping onto multiple lines, and truncate with an
62
+ * ellipsis.
63
+ *
64
+ * 1. Ensure that the node has a maximum width after which truncation can
65
+ * occur.
66
+ * 2. Fix for IE 8/9 if `word-wrap: break-word` is in effect on ancestor
67
+ * nodes.
68
+ */
69
+
70
+ .u-textTruncate {
71
+ max-width: 100%; /* 1 */
72
+ overflow: hidden !important;
73
+ text-overflow: ellipsis !important;
74
+ white-space: nowrap !important;
75
+ word-wrap: normal !important; /* 2 */
76
+ }
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "suitcss/rails"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here