suitcss-rails 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/README.md +37 -0
- data/Rakefile +6 -0
- data/app/assets/stylesheets/normalize.css +424 -0
- data/app/assets/stylesheets/suitcss.css +5 -0
- data/app/assets/stylesheets/suitcss/base.css +1 -0
- data/app/assets/stylesheets/suitcss/base/index.css +83 -0
- data/app/assets/stylesheets/suitcss/components.css +4 -0
- data/app/assets/stylesheets/suitcss/components/arrange.css +155 -0
- data/app/assets/stylesheets/suitcss/components/button.css +77 -0
- data/app/assets/stylesheets/suitcss/components/flex-embed.css +74 -0
- data/app/assets/stylesheets/suitcss/components/grid.css +121 -0
- data/app/assets/stylesheets/suitcss/utils.css +9 -0
- data/app/assets/stylesheets/suitcss/utils/after.css +4 -0
- data/app/assets/stylesheets/suitcss/utils/after/index.css +117 -0
- data/app/assets/stylesheets/suitcss/utils/after/lg.css +127 -0
- data/app/assets/stylesheets/suitcss/utils/after/md.css +127 -0
- data/app/assets/stylesheets/suitcss/utils/after/sm.css +127 -0
- data/app/assets/stylesheets/suitcss/utils/align.css +21 -0
- data/app/assets/stylesheets/suitcss/utils/before.css +4 -0
- data/app/assets/stylesheets/suitcss/utils/before/index.css +117 -0
- data/app/assets/stylesheets/suitcss/utils/before/lg.css +127 -0
- data/app/assets/stylesheets/suitcss/utils/before/md.css +127 -0
- data/app/assets/stylesheets/suitcss/utils/before/sm.css +127 -0
- data/app/assets/stylesheets/suitcss/utils/display.css +53 -0
- data/app/assets/stylesheets/suitcss/utils/flex.css +4 -0
- data/app/assets/stylesheets/suitcss/utils/flex/index.css +253 -0
- data/app/assets/stylesheets/suitcss/utils/flex/lg.css +259 -0
- data/app/assets/stylesheets/suitcss/utils/flex/md.css +259 -0
- data/app/assets/stylesheets/suitcss/utils/flex/sm.css +259 -0
- data/app/assets/stylesheets/suitcss/utils/layout.css +66 -0
- data/app/assets/stylesheets/suitcss/utils/link.css +55 -0
- data/app/assets/stylesheets/suitcss/utils/offset.css +2 -0
- data/app/assets/stylesheets/suitcss/utils/position.css +48 -0
- data/app/assets/stylesheets/suitcss/utils/size.css +4 -0
- data/app/assets/stylesheets/suitcss/utils/size/index.css +172 -0
- data/app/assets/stylesheets/suitcss/utils/size/lg.css +176 -0
- data/app/assets/stylesheets/suitcss/utils/size/md.css +176 -0
- data/app/assets/stylesheets/suitcss/utils/size/sm.css +176 -0
- data/app/assets/stylesheets/suitcss/utils/text.css +76 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/suitcss/rails.rb +6 -0
- data/lib/suitcss/rails/version.rb +5 -0
- data/suitcss-rails.gemspec +24 -0
- metadata +133 -0
@@ -0,0 +1,259 @@
|
|
1
|
+
/**
|
2
|
+
* @define utilities
|
3
|
+
* Size: breakpoint 1 (medium)
|
4
|
+
*/
|
5
|
+
|
6
|
+
@media (--md-viewport) {
|
7
|
+
|
8
|
+
/* Applies to flex container
|
9
|
+
======================================================================== */
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Container
|
13
|
+
*/
|
14
|
+
|
15
|
+
.u-md-flex {
|
16
|
+
display: flex !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
.u-md-flexInline {
|
20
|
+
display: inline-flex !important;
|
21
|
+
}
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Direction: row
|
25
|
+
*/
|
26
|
+
|
27
|
+
.u-md-flexRow {
|
28
|
+
flex-direction: row !important;
|
29
|
+
}
|
30
|
+
|
31
|
+
.u-md-flexRowReverse {
|
32
|
+
flex-direction: row-reverse !important;
|
33
|
+
}
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Direction: column
|
37
|
+
*/
|
38
|
+
|
39
|
+
.u-md-flexCol {
|
40
|
+
flex-direction: column !important;
|
41
|
+
}
|
42
|
+
|
43
|
+
.u-md-flexColReverse {
|
44
|
+
flex-direction: column-reverse !important;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Wrap
|
49
|
+
*/
|
50
|
+
|
51
|
+
.u-md-flexWrap {
|
52
|
+
flex-wrap: wrap !important;
|
53
|
+
}
|
54
|
+
|
55
|
+
.u-md-flexNoWrap {
|
56
|
+
flex-wrap: nowrap !important;
|
57
|
+
}
|
58
|
+
|
59
|
+
.u-md-flexWrapReverse {
|
60
|
+
flex-wrap: wrap-reverse !important;
|
61
|
+
}
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Align items along the main axis of the current line of the flex container
|
65
|
+
*/
|
66
|
+
|
67
|
+
.u-md-flexJustifyStart {
|
68
|
+
justify-content: flex-start !important;
|
69
|
+
}
|
70
|
+
|
71
|
+
.u-md-flexJustifyEnd {
|
72
|
+
justify-content: flex-end !important;
|
73
|
+
}
|
74
|
+
|
75
|
+
.u-md-flexJustifyCenter {
|
76
|
+
justify-content: center !important;
|
77
|
+
}
|
78
|
+
|
79
|
+
.u-md-flexJustifyBetween {
|
80
|
+
justify-content: space-between !important;
|
81
|
+
}
|
82
|
+
|
83
|
+
.u-md-flexJustifyAround {
|
84
|
+
justify-content: space-around !important;
|
85
|
+
}
|
86
|
+
|
87
|
+
/**
|
88
|
+
* Align items in the cross axis of the current line of the flex container
|
89
|
+
* Similar to `justify-content` but in the perpendicular direction
|
90
|
+
*/
|
91
|
+
|
92
|
+
.u-md-flexAlignItemsStart {
|
93
|
+
align-items: flex-start !important;
|
94
|
+
}
|
95
|
+
|
96
|
+
.u-md-flexAlignItemsEnd {
|
97
|
+
align-items: flex-end !important;
|
98
|
+
}
|
99
|
+
|
100
|
+
.u-md-flexAlignItemsCenter {
|
101
|
+
align-items: center !important;
|
102
|
+
}
|
103
|
+
|
104
|
+
.u-md-flexAlignItemsStretch {
|
105
|
+
align-items: stretch !important;
|
106
|
+
}
|
107
|
+
|
108
|
+
.u-md-flexAlignItemsBaseline {
|
109
|
+
align-items: baseline !important;
|
110
|
+
}
|
111
|
+
|
112
|
+
/**
|
113
|
+
* Aligns items within the flex container when there is extra
|
114
|
+
* space in the cross-axis
|
115
|
+
*
|
116
|
+
* Has no effect when there is only one line of flex items.
|
117
|
+
*/
|
118
|
+
|
119
|
+
.u-md-flexAlignContentStart {
|
120
|
+
align-content: flex-start !important;
|
121
|
+
}
|
122
|
+
|
123
|
+
.u-md-flexAlignContentEnd {
|
124
|
+
align-content: flex-end !important;
|
125
|
+
}
|
126
|
+
|
127
|
+
.u-md-flexAlignContentCenter {
|
128
|
+
align-content: center !important;
|
129
|
+
}
|
130
|
+
|
131
|
+
.u-md-flexAlignContentStretch {
|
132
|
+
align-content: stretch !important;
|
133
|
+
}
|
134
|
+
|
135
|
+
.u-md-flexAlignContentBetween {
|
136
|
+
align-content: space-between !important;
|
137
|
+
}
|
138
|
+
|
139
|
+
.u-md-flexAlignContentAround {
|
140
|
+
align-content: space-around !important;
|
141
|
+
}
|
142
|
+
|
143
|
+
/**
|
144
|
+
* 1. Set the flex-shrink default explicitly to fix IE10 - http://git.io/vllC7
|
145
|
+
*/
|
146
|
+
|
147
|
+
/* postcss-bem-linter: ignore */
|
148
|
+
|
149
|
+
.u-md-flex > *,
|
150
|
+
.u-md-flexInline > * {
|
151
|
+
flex-shrink: 1; /* 1 */
|
152
|
+
}
|
153
|
+
|
154
|
+
/* Applies to flex items
|
155
|
+
======================================================================== */
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Override default alignment of single item when specified by `align-items`
|
159
|
+
*/
|
160
|
+
|
161
|
+
.u-md-flexAlignSelfStart {
|
162
|
+
align-self: flex-start !important;
|
163
|
+
}
|
164
|
+
|
165
|
+
.u-md-flexAlignSelfEnd {
|
166
|
+
align-self: flex-end !important;
|
167
|
+
}
|
168
|
+
|
169
|
+
.u-md-flexAlignSelfCenter {
|
170
|
+
align-self: center !important;
|
171
|
+
}
|
172
|
+
|
173
|
+
.u-md-flexAlignSelfStretch {
|
174
|
+
align-self: stretch !important;
|
175
|
+
}
|
176
|
+
|
177
|
+
.u-md-flexAlignSelfBaseline {
|
178
|
+
align-self: baseline !important;
|
179
|
+
}
|
180
|
+
|
181
|
+
.u-md-flexAlignSelfAuto {
|
182
|
+
align-self: auto !important;
|
183
|
+
}
|
184
|
+
|
185
|
+
/**
|
186
|
+
* Change order without editing underlying HTML
|
187
|
+
*/
|
188
|
+
|
189
|
+
.u-md-flexOrderFirst {
|
190
|
+
order: -1 !important;
|
191
|
+
}
|
192
|
+
|
193
|
+
.u-md-flexOrderLast {
|
194
|
+
order: 1 !important;
|
195
|
+
}
|
196
|
+
|
197
|
+
.u-md-flexOrderNone {
|
198
|
+
order: 0 !important;
|
199
|
+
}
|
200
|
+
|
201
|
+
/**
|
202
|
+
* Specify the flex grow factor, which determines how much the flex item will
|
203
|
+
* grow relative to the rest of the flex items in the flex container.
|
204
|
+
*
|
205
|
+
* Supports 1-5 proportions
|
206
|
+
*
|
207
|
+
* 1. Provide all values to avoid IE10 bug with shorthand flex
|
208
|
+
* http://git.io/vllC7
|
209
|
+
*
|
210
|
+
* Use `0%` to avoid bug in IE10/11 with unitless flex basis
|
211
|
+
* http://git.io/vllWx
|
212
|
+
*/
|
213
|
+
|
214
|
+
.u-md-flexGrow1 {
|
215
|
+
flex: 1 1 0% !important; /* 1 */
|
216
|
+
}
|
217
|
+
|
218
|
+
.u-md-flexGrow2 {
|
219
|
+
flex: 2 1 0% !important;
|
220
|
+
}
|
221
|
+
|
222
|
+
.u-md-flexGrow3 {
|
223
|
+
flex: 3 1 0% !important;
|
224
|
+
}
|
225
|
+
|
226
|
+
.u-md-flexGrow4 {
|
227
|
+
flex: 4 1 0% !important;
|
228
|
+
}
|
229
|
+
|
230
|
+
.u-md-flexGrow5 {
|
231
|
+
flex: 5 1 0% !important;
|
232
|
+
}
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Aligning with `auto` margins
|
236
|
+
* http://www.w3.org/TR/css-flexbox-1/#auto-margins
|
237
|
+
*/
|
238
|
+
|
239
|
+
.u-md-flexExpand {
|
240
|
+
margin: auto !important;
|
241
|
+
}
|
242
|
+
|
243
|
+
.u-md-flexExpandLeft {
|
244
|
+
margin-left: auto !important;
|
245
|
+
}
|
246
|
+
|
247
|
+
.u-md-flexExpandRight {
|
248
|
+
margin-right: auto !important;
|
249
|
+
}
|
250
|
+
|
251
|
+
.u-md-flexExpandTop {
|
252
|
+
margin-top: auto !important;
|
253
|
+
}
|
254
|
+
|
255
|
+
.u-md-flexExpandBottom {
|
256
|
+
margin-bottom: auto !important;
|
257
|
+
}
|
258
|
+
|
259
|
+
}
|
@@ -0,0 +1,259 @@
|
|
1
|
+
/**
|
2
|
+
* @define utilities
|
3
|
+
* Size: breakpoint 1 (small)
|
4
|
+
*/
|
5
|
+
|
6
|
+
@media (--sm-viewport) {
|
7
|
+
|
8
|
+
/* Applies to flex container
|
9
|
+
======================================================================== */
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Container
|
13
|
+
*/
|
14
|
+
|
15
|
+
.u-sm-flex {
|
16
|
+
display: flex !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
.u-sm-flexInline {
|
20
|
+
display: inline-flex !important;
|
21
|
+
}
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Direction: row
|
25
|
+
*/
|
26
|
+
|
27
|
+
.u-sm-flexRow {
|
28
|
+
flex-direction: row !important;
|
29
|
+
}
|
30
|
+
|
31
|
+
.u-sm-flexRowReverse {
|
32
|
+
flex-direction: row-reverse !important;
|
33
|
+
}
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Direction: column
|
37
|
+
*/
|
38
|
+
|
39
|
+
.u-sm-flexCol {
|
40
|
+
flex-direction: column !important;
|
41
|
+
}
|
42
|
+
|
43
|
+
.u-sm-flexColReverse {
|
44
|
+
flex-direction: column-reverse !important;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Wrap
|
49
|
+
*/
|
50
|
+
|
51
|
+
.u-sm-flexWrap {
|
52
|
+
flex-wrap: wrap !important;
|
53
|
+
}
|
54
|
+
|
55
|
+
.u-sm-flexNoWrap {
|
56
|
+
flex-wrap: nowrap !important;
|
57
|
+
}
|
58
|
+
|
59
|
+
.u-sm-flexWrapReverse {
|
60
|
+
flex-wrap: wrap-reverse !important;
|
61
|
+
}
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Align items along the main axis of the current line of the flex container
|
65
|
+
*/
|
66
|
+
|
67
|
+
.u-sm-flexJustifyStart {
|
68
|
+
justify-content: flex-start !important;
|
69
|
+
}
|
70
|
+
|
71
|
+
.u-sm-flexJustifyEnd {
|
72
|
+
justify-content: flex-end !important;
|
73
|
+
}
|
74
|
+
|
75
|
+
.u-sm-flexJustifyCenter {
|
76
|
+
justify-content: center !important;
|
77
|
+
}
|
78
|
+
|
79
|
+
.u-sm-flexJustifyBetween {
|
80
|
+
justify-content: space-between !important;
|
81
|
+
}
|
82
|
+
|
83
|
+
.u-sm-flexJustifyAround {
|
84
|
+
justify-content: space-around !important;
|
85
|
+
}
|
86
|
+
|
87
|
+
/**
|
88
|
+
* Align items in the cross axis of the current line of the flex container
|
89
|
+
* Similar to `justify-content` but in the perpendicular direction
|
90
|
+
*/
|
91
|
+
|
92
|
+
.u-sm-flexAlignItemsStart {
|
93
|
+
align-items: flex-start !important;
|
94
|
+
}
|
95
|
+
|
96
|
+
.u-sm-flexAlignItemsEnd {
|
97
|
+
align-items: flex-end !important;
|
98
|
+
}
|
99
|
+
|
100
|
+
.u-sm-flexAlignItemsCenter {
|
101
|
+
align-items: center !important;
|
102
|
+
}
|
103
|
+
|
104
|
+
.u-sm-flexAlignItemsStretch {
|
105
|
+
align-items: stretch !important;
|
106
|
+
}
|
107
|
+
|
108
|
+
.u-sm-flexAlignItemsBaseline {
|
109
|
+
align-items: baseline !important;
|
110
|
+
}
|
111
|
+
|
112
|
+
/**
|
113
|
+
* Aligns items within the flex container when there is extra
|
114
|
+
* space in the cross-axis
|
115
|
+
*
|
116
|
+
* Has no effect when there is only one line of flex items.
|
117
|
+
*/
|
118
|
+
|
119
|
+
.u-sm-flexAlignContentStart {
|
120
|
+
align-content: flex-start !important;
|
121
|
+
}
|
122
|
+
|
123
|
+
.u-sm-flexAlignContentEnd {
|
124
|
+
align-content: flex-end !important;
|
125
|
+
}
|
126
|
+
|
127
|
+
.u-sm-flexAlignContentCenter {
|
128
|
+
align-content: center !important;
|
129
|
+
}
|
130
|
+
|
131
|
+
.u-sm-flexAlignContentStretch {
|
132
|
+
align-content: stretch !important;
|
133
|
+
}
|
134
|
+
|
135
|
+
.u-sm-flexAlignContentBetween {
|
136
|
+
align-content: space-between !important;
|
137
|
+
}
|
138
|
+
|
139
|
+
.u-sm-flexAlignContentAround {
|
140
|
+
align-content: space-around !important;
|
141
|
+
}
|
142
|
+
|
143
|
+
/**
|
144
|
+
* 1. Set the flex-shrink default explicitly to fix IE10 - http://git.io/vllC7
|
145
|
+
*/
|
146
|
+
|
147
|
+
/* postcss-bem-linter: ignore */
|
148
|
+
|
149
|
+
.u-sm-flex > *,
|
150
|
+
.u-sm-flexInline > * {
|
151
|
+
flex-shrink: 1; /* 1 */
|
152
|
+
}
|
153
|
+
|
154
|
+
/* Applies to flex items
|
155
|
+
======================================================================== */
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Override default alignment of single item when specified by `align-items`
|
159
|
+
*/
|
160
|
+
|
161
|
+
.u-sm-flexAlignSelfStart {
|
162
|
+
align-self: flex-start !important;
|
163
|
+
}
|
164
|
+
|
165
|
+
.u-sm-flexAlignSelfEnd {
|
166
|
+
align-self: flex-end !important;
|
167
|
+
}
|
168
|
+
|
169
|
+
.u-sm-flexAlignSelfCenter {
|
170
|
+
align-self: center !important;
|
171
|
+
}
|
172
|
+
|
173
|
+
.u-sm-flexAlignSelfStretch {
|
174
|
+
align-self: stretch !important;
|
175
|
+
}
|
176
|
+
|
177
|
+
.u-sm-flexAlignSelfBaseline {
|
178
|
+
align-self: baseline !important;
|
179
|
+
}
|
180
|
+
|
181
|
+
.u-sm-flexAlignSelfAuto {
|
182
|
+
align-self: auto !important;
|
183
|
+
}
|
184
|
+
|
185
|
+
/**
|
186
|
+
* Change order without editing underlying HTML
|
187
|
+
*/
|
188
|
+
|
189
|
+
.u-sm-flexOrderFirst {
|
190
|
+
order: -1 !important;
|
191
|
+
}
|
192
|
+
|
193
|
+
.u-sm-flexOrderLast {
|
194
|
+
order: 1 !important;
|
195
|
+
}
|
196
|
+
|
197
|
+
.u-sm-flexOrderNone {
|
198
|
+
order: 0 !important;
|
199
|
+
}
|
200
|
+
|
201
|
+
/**
|
202
|
+
* Specify the flex grow factor, which determines how much the flex item will
|
203
|
+
* grow relative to the rest of the flex items in the flex container.
|
204
|
+
*
|
205
|
+
* Supports 1-5 proportions
|
206
|
+
*
|
207
|
+
* 1. Provide all values to avoid IE10 bug with shorthand flex
|
208
|
+
* http://git.io/vllC7
|
209
|
+
*
|
210
|
+
* Use `0%` to avoid bug in IE10/11 with unitless flex basis
|
211
|
+
* http://git.io/vllWx
|
212
|
+
*/
|
213
|
+
|
214
|
+
.u-sm-flexGrow1 {
|
215
|
+
flex: 1 1 0% !important; /* 1 */
|
216
|
+
}
|
217
|
+
|
218
|
+
.u-sm-flexGrow2 {
|
219
|
+
flex: 2 1 0% !important;
|
220
|
+
}
|
221
|
+
|
222
|
+
.u-sm-flexGrow3 {
|
223
|
+
flex: 3 1 0% !important;
|
224
|
+
}
|
225
|
+
|
226
|
+
.u-sm-flexGrow4 {
|
227
|
+
flex: 4 1 0% !important;
|
228
|
+
}
|
229
|
+
|
230
|
+
.u-sm-flexGrow5 {
|
231
|
+
flex: 5 1 0% !important;
|
232
|
+
}
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Aligning with `auto` margins
|
236
|
+
* http://www.w3.org/TR/css-flexbox-1/#auto-margins
|
237
|
+
*/
|
238
|
+
|
239
|
+
.u-sm-flexExpand {
|
240
|
+
margin: auto !important;
|
241
|
+
}
|
242
|
+
|
243
|
+
.u-sm-flexExpandLeft {
|
244
|
+
margin-left: auto !important;
|
245
|
+
}
|
246
|
+
|
247
|
+
.u-sm-flexExpandRight {
|
248
|
+
margin-right: auto !important;
|
249
|
+
}
|
250
|
+
|
251
|
+
.u-sm-flexExpandTop {
|
252
|
+
margin-top: auto !important;
|
253
|
+
}
|
254
|
+
|
255
|
+
.u-sm-flexExpandBottom {
|
256
|
+
margin-bottom: auto !important;
|
257
|
+
}
|
258
|
+
|
259
|
+
}
|