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,21 @@
|
|
1
|
+
/**
|
2
|
+
* @define utilities
|
3
|
+
* Vertical alignment utilities
|
4
|
+
* Depends on an appropriate `display` value.
|
5
|
+
*/
|
6
|
+
|
7
|
+
.u-alignBaseline {
|
8
|
+
vertical-align: baseline !important;
|
9
|
+
}
|
10
|
+
|
11
|
+
.u-alignBottom {
|
12
|
+
vertical-align: bottom !important;
|
13
|
+
}
|
14
|
+
|
15
|
+
.u-alignMiddle {
|
16
|
+
vertical-align: middle !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
.u-alignTop {
|
20
|
+
vertical-align: top !important;
|
21
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
/**
|
2
|
+
* @define utilities
|
3
|
+
* Specify the proportional offset before an object.
|
4
|
+
* Intentional redundancy build into each set of unit classes.
|
5
|
+
* Supports: 2, 3, 4, 5, 6, 8, 10, 12 section
|
6
|
+
*/
|
7
|
+
|
8
|
+
.u-before1of12 {
|
9
|
+
margin-left: calc(100% * 1 / 12) !important;
|
10
|
+
}
|
11
|
+
|
12
|
+
.u-before1of10 {
|
13
|
+
margin-left: 10% !important;
|
14
|
+
}
|
15
|
+
|
16
|
+
.u-before1of8 {
|
17
|
+
margin-left: 12.5% !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
.u-before1of6,
|
21
|
+
.u-before2of12 {
|
22
|
+
margin-left: calc(100% * 1 / 6) !important;
|
23
|
+
}
|
24
|
+
|
25
|
+
.u-before1of5,
|
26
|
+
.u-before2of10 {
|
27
|
+
margin-left: 20% !important;
|
28
|
+
}
|
29
|
+
|
30
|
+
.u-before1of4,
|
31
|
+
.u-before2of8,
|
32
|
+
.u-before3of12 {
|
33
|
+
margin-left: 25% !important;
|
34
|
+
}
|
35
|
+
|
36
|
+
.u-before3of10 {
|
37
|
+
margin-left: 30% !important;
|
38
|
+
}
|
39
|
+
|
40
|
+
.u-before1of3,
|
41
|
+
.u-before2of6,
|
42
|
+
.u-before4of12 {
|
43
|
+
margin-left: calc(100% * 1 / 3) !important;
|
44
|
+
}
|
45
|
+
|
46
|
+
.u-before3of8 {
|
47
|
+
margin-left: 37.5% !important;
|
48
|
+
}
|
49
|
+
|
50
|
+
.u-before2of5,
|
51
|
+
.u-before4of10 {
|
52
|
+
margin-left: 40% !important;
|
53
|
+
}
|
54
|
+
|
55
|
+
.u-before5of12 {
|
56
|
+
margin-left: calc(100% * 5 / 12) !important;
|
57
|
+
}
|
58
|
+
|
59
|
+
.u-before1of2,
|
60
|
+
.u-before2of4,
|
61
|
+
.u-before3of6,
|
62
|
+
.u-before4of8,
|
63
|
+
.u-before5of10,
|
64
|
+
.u-before6of12 {
|
65
|
+
margin-left: 50% !important;
|
66
|
+
}
|
67
|
+
|
68
|
+
.u-before7of12 {
|
69
|
+
margin-left: calc(100% * 7 / 12) !important;
|
70
|
+
}
|
71
|
+
|
72
|
+
.u-before3of5,
|
73
|
+
.u-before6of10 {
|
74
|
+
margin-left: 60% !important;
|
75
|
+
}
|
76
|
+
|
77
|
+
.u-before5of8 {
|
78
|
+
margin-left: 62.5% !important;
|
79
|
+
}
|
80
|
+
|
81
|
+
.u-before2of3,
|
82
|
+
.u-before4of6,
|
83
|
+
.u-before8of12 {
|
84
|
+
margin-left: calc(100% * 2 / 3) !important;
|
85
|
+
}
|
86
|
+
|
87
|
+
.u-before7of10 {
|
88
|
+
margin-left: 70% !important;
|
89
|
+
}
|
90
|
+
|
91
|
+
.u-before3of4,
|
92
|
+
.u-before6of8,
|
93
|
+
.u-before9of12 {
|
94
|
+
margin-left: 75% !important;
|
95
|
+
}
|
96
|
+
|
97
|
+
.u-before4of5,
|
98
|
+
.u-before8of10 {
|
99
|
+
margin-left: 80% !important;
|
100
|
+
}
|
101
|
+
|
102
|
+
.u-before5of6,
|
103
|
+
.u-before10of12 {
|
104
|
+
margin-left: calc(100% * 5 / 6) !important;
|
105
|
+
}
|
106
|
+
|
107
|
+
.u-before7of8 {
|
108
|
+
margin-left: 87.5% !important;
|
109
|
+
}
|
110
|
+
|
111
|
+
.u-before9of10 {
|
112
|
+
margin-left: 90% !important;
|
113
|
+
}
|
114
|
+
|
115
|
+
.u-before11of12 {
|
116
|
+
margin-left: calc(100% * 11 / 12) !important;
|
117
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
/**
|
2
|
+
* @define utilities
|
3
|
+
* Offset: breakpoint 3 (large)
|
4
|
+
*
|
5
|
+
* Specify the proportional offset before an element.
|
6
|
+
* Intentional redundancy build into each set of unit classes.
|
7
|
+
* Supports: 2, 3, 4, 5, 6, 8, 10, 12 section
|
8
|
+
*/
|
9
|
+
|
10
|
+
@media (--lg-viewport) {
|
11
|
+
|
12
|
+
.u-lg-beforeNone {
|
13
|
+
margin-left: 0 !important;
|
14
|
+
}
|
15
|
+
|
16
|
+
.u-lg-before1of12 {
|
17
|
+
margin-left: calc(100% * 1 / 12) !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
.u-lg-before1of10 {
|
21
|
+
margin-left: 10% !important;
|
22
|
+
}
|
23
|
+
|
24
|
+
.u-lg-before1of8 {
|
25
|
+
margin-left: 12.5% !important;
|
26
|
+
}
|
27
|
+
|
28
|
+
.u-lg-before1of6,
|
29
|
+
.u-lg-before2of12 {
|
30
|
+
margin-left: calc(100% * 1 / 6) !important;
|
31
|
+
}
|
32
|
+
|
33
|
+
.u-lg-before1of5,
|
34
|
+
.u-lg-before2of10 {
|
35
|
+
margin-left: 20% !important;
|
36
|
+
}
|
37
|
+
|
38
|
+
.u-lg-before1of4,
|
39
|
+
.u-lg-before2of8,
|
40
|
+
.u-lg-before3of12 {
|
41
|
+
margin-left: 25% !important;
|
42
|
+
}
|
43
|
+
|
44
|
+
.u-lg-before3of10 {
|
45
|
+
margin-left: 30% !important;
|
46
|
+
}
|
47
|
+
|
48
|
+
.u-lg-before1of3,
|
49
|
+
.u-lg-before2of6,
|
50
|
+
.u-lg-before4of12 {
|
51
|
+
margin-left: calc(100% * 1 / 3) !important;
|
52
|
+
}
|
53
|
+
|
54
|
+
.u-lg-before3of8 {
|
55
|
+
margin-left: 37.5% !important;
|
56
|
+
}
|
57
|
+
|
58
|
+
.u-lg-before2of5,
|
59
|
+
.u-lg-before4of10 {
|
60
|
+
margin-left: 40% !important;
|
61
|
+
}
|
62
|
+
|
63
|
+
.u-lg-before5of12 {
|
64
|
+
margin-left: calc(100% * 5 / 12) !important;
|
65
|
+
}
|
66
|
+
|
67
|
+
.u-lg-before1of2,
|
68
|
+
.u-lg-before2of4,
|
69
|
+
.u-lg-before3of6,
|
70
|
+
.u-lg-before4of8,
|
71
|
+
.u-lg-before5of10,
|
72
|
+
.u-lg-before6of12 {
|
73
|
+
margin-left: 50% !important;
|
74
|
+
}
|
75
|
+
|
76
|
+
.u-lg-before7of12 {
|
77
|
+
margin-left: calc(100% * 7 / 12) !important;
|
78
|
+
}
|
79
|
+
|
80
|
+
.u-lg-before3of5,
|
81
|
+
.u-lg-before6of10 {
|
82
|
+
margin-left: 60% !important;
|
83
|
+
}
|
84
|
+
|
85
|
+
.u-lg-before5of8 {
|
86
|
+
margin-left: 62.5% !important;
|
87
|
+
}
|
88
|
+
|
89
|
+
.u-lg-before2of3,
|
90
|
+
.u-lg-before4of6,
|
91
|
+
.u-lg-before8of12 {
|
92
|
+
margin-left: calc(100% * 2 / 3) !important;
|
93
|
+
}
|
94
|
+
|
95
|
+
.u-lg-before7of10 {
|
96
|
+
margin-left: 70% !important;
|
97
|
+
}
|
98
|
+
|
99
|
+
.u-lg-before3of4,
|
100
|
+
.u-lg-before6of8,
|
101
|
+
.u-lg-before9of12 {
|
102
|
+
margin-left: 75% !important;
|
103
|
+
}
|
104
|
+
|
105
|
+
.u-lg-before4of5,
|
106
|
+
.u-lg-before8of10 {
|
107
|
+
margin-left: 80% !important;
|
108
|
+
}
|
109
|
+
|
110
|
+
.u-lg-before5of6,
|
111
|
+
.u-lg-before10of12 {
|
112
|
+
margin-left: calc(100% * 5 / 6) !important;
|
113
|
+
}
|
114
|
+
|
115
|
+
.u-lg-before7of8 {
|
116
|
+
margin-left: 87.5% !important;
|
117
|
+
}
|
118
|
+
|
119
|
+
.u-lg-before9of10 {
|
120
|
+
margin-left: 90% !important;
|
121
|
+
}
|
122
|
+
|
123
|
+
.u-lg-before11of12 {
|
124
|
+
margin-left: calc(100% * 11 / 12) !important;
|
125
|
+
}
|
126
|
+
|
127
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
/**
|
2
|
+
* @define utilities
|
3
|
+
* Offset: breakpoint 2 (medium)
|
4
|
+
*
|
5
|
+
* Specify the proportional offset before an element.
|
6
|
+
* Intentional redundancy build into each set of unit classes.
|
7
|
+
* Supports: 2, 3, 4, 5, 6, 8, 10, 12 section
|
8
|
+
*/
|
9
|
+
|
10
|
+
@media (--md-viewport) {
|
11
|
+
|
12
|
+
.u-md-beforeNone {
|
13
|
+
margin-left: 0 !important;
|
14
|
+
}
|
15
|
+
|
16
|
+
.u-md-before1of12 {
|
17
|
+
margin-left: calc(100% * 1 / 12) !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
.u-md-before1of10 {
|
21
|
+
margin-left: 10% !important;
|
22
|
+
}
|
23
|
+
|
24
|
+
.u-md-before1of8 {
|
25
|
+
margin-left: 12.5% !important;
|
26
|
+
}
|
27
|
+
|
28
|
+
.u-md-before1of6,
|
29
|
+
.u-md-before2of12 {
|
30
|
+
margin-left: calc(100% * 1 / 6) !important;
|
31
|
+
}
|
32
|
+
|
33
|
+
.u-md-before1of5,
|
34
|
+
.u-md-before2of10 {
|
35
|
+
margin-left: 20% !important;
|
36
|
+
}
|
37
|
+
|
38
|
+
.u-md-before1of4,
|
39
|
+
.u-md-before2of8,
|
40
|
+
.u-md-before3of12 {
|
41
|
+
margin-left: 25% !important;
|
42
|
+
}
|
43
|
+
|
44
|
+
.u-md-before3of10 {
|
45
|
+
margin-left: 30% !important;
|
46
|
+
}
|
47
|
+
|
48
|
+
.u-md-before1of3,
|
49
|
+
.u-md-before2of6,
|
50
|
+
.u-md-before4of12 {
|
51
|
+
margin-left: calc(100% * 1 / 3) !important;
|
52
|
+
}
|
53
|
+
|
54
|
+
.u-md-before3of8 {
|
55
|
+
margin-left: 37.5% !important;
|
56
|
+
}
|
57
|
+
|
58
|
+
.u-md-before2of5,
|
59
|
+
.u-md-before4of10 {
|
60
|
+
margin-left: 40% !important;
|
61
|
+
}
|
62
|
+
|
63
|
+
.u-md-before5of12 {
|
64
|
+
margin-left: calc(100% * 5 / 12) !important;
|
65
|
+
}
|
66
|
+
|
67
|
+
.u-md-before1of2,
|
68
|
+
.u-md-before2of4,
|
69
|
+
.u-md-before3of6,
|
70
|
+
.u-md-before4of8,
|
71
|
+
.u-md-before5of10,
|
72
|
+
.u-md-before6of12 {
|
73
|
+
margin-left: 50% !important;
|
74
|
+
}
|
75
|
+
|
76
|
+
.u-md-before7of12 {
|
77
|
+
margin-left: calc(100% * 7 / 12) !important;
|
78
|
+
}
|
79
|
+
|
80
|
+
.u-md-before3of5,
|
81
|
+
.u-md-before6of10 {
|
82
|
+
margin-left: 60% !important;
|
83
|
+
}
|
84
|
+
|
85
|
+
.u-md-before5of8 {
|
86
|
+
margin-left: 62.5% !important;
|
87
|
+
}
|
88
|
+
|
89
|
+
.u-md-before2of3,
|
90
|
+
.u-md-before4of6,
|
91
|
+
.u-md-before8of12 {
|
92
|
+
margin-left: calc(100% * 2 / 3) !important;
|
93
|
+
}
|
94
|
+
|
95
|
+
.u-md-before7of10 {
|
96
|
+
margin-left: 70% !important;
|
97
|
+
}
|
98
|
+
|
99
|
+
.u-md-before3of4,
|
100
|
+
.u-md-before6of8,
|
101
|
+
.u-md-before9of12 {
|
102
|
+
margin-left: 75% !important;
|
103
|
+
}
|
104
|
+
|
105
|
+
.u-md-before4of5,
|
106
|
+
.u-md-before8of10 {
|
107
|
+
margin-left: 80% !important;
|
108
|
+
}
|
109
|
+
|
110
|
+
.u-md-before5of6,
|
111
|
+
.u-md-before10of12 {
|
112
|
+
margin-left: calc(100% * 5 / 6) !important;
|
113
|
+
}
|
114
|
+
|
115
|
+
.u-md-before7of8 {
|
116
|
+
margin-left: 87.5% !important;
|
117
|
+
}
|
118
|
+
|
119
|
+
.u-md-before9of10 {
|
120
|
+
margin-left: 90% !important;
|
121
|
+
}
|
122
|
+
|
123
|
+
.u-md-before11of12 {
|
124
|
+
margin-left: calc(100% * 11 / 12) !important;
|
125
|
+
}
|
126
|
+
|
127
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
/**
|
2
|
+
* @define utilities
|
3
|
+
* Offset: breakpoint 1 (small)
|
4
|
+
*
|
5
|
+
* Specify the proportional offset before an element.
|
6
|
+
* Intentional redundancy build into each set of unit classes.
|
7
|
+
* Supports: 2, 3, 4, 5, 6, 8, 10, 12 section
|
8
|
+
*/
|
9
|
+
|
10
|
+
@media (--sm-viewport) {
|
11
|
+
|
12
|
+
.u-sm-beforeNone {
|
13
|
+
margin-left: 0 !important;
|
14
|
+
}
|
15
|
+
|
16
|
+
.u-sm-before1of12 {
|
17
|
+
margin-left: calc(100% * 1 / 12) !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
.u-sm-before1of10 {
|
21
|
+
margin-left: 10% !important;
|
22
|
+
}
|
23
|
+
|
24
|
+
.u-sm-before1of8 {
|
25
|
+
margin-left: 12.5% !important;
|
26
|
+
}
|
27
|
+
|
28
|
+
.u-sm-before1of6,
|
29
|
+
.u-sm-before2of12 {
|
30
|
+
margin-left: calc(100% * 1 / 6) !important;
|
31
|
+
}
|
32
|
+
|
33
|
+
.u-sm-before1of5,
|
34
|
+
.u-sm-before2of10 {
|
35
|
+
margin-left: 20% !important;
|
36
|
+
}
|
37
|
+
|
38
|
+
.u-sm-before1of4,
|
39
|
+
.u-sm-before2of8,
|
40
|
+
.u-sm-before3of12 {
|
41
|
+
margin-left: 25% !important;
|
42
|
+
}
|
43
|
+
|
44
|
+
.u-sm-before3of10 {
|
45
|
+
margin-left: 30% !important;
|
46
|
+
}
|
47
|
+
|
48
|
+
.u-sm-before1of3,
|
49
|
+
.u-sm-before2of6,
|
50
|
+
.u-sm-before4of12 {
|
51
|
+
margin-left: calc(100% * 1 / 3) !important;
|
52
|
+
}
|
53
|
+
|
54
|
+
.u-sm-before3of8 {
|
55
|
+
margin-left: 37.5% !important;
|
56
|
+
}
|
57
|
+
|
58
|
+
.u-sm-before2of5,
|
59
|
+
.u-sm-before4of10 {
|
60
|
+
margin-left: 40% !important;
|
61
|
+
}
|
62
|
+
|
63
|
+
.u-sm-before5of12 {
|
64
|
+
margin-left: calc(100% * 5 / 12) !important;
|
65
|
+
}
|
66
|
+
|
67
|
+
.u-sm-before1of2,
|
68
|
+
.u-sm-before2of4,
|
69
|
+
.u-sm-before3of6,
|
70
|
+
.u-sm-before4of8,
|
71
|
+
.u-sm-before5of10,
|
72
|
+
.u-sm-before6of12 {
|
73
|
+
margin-left: 50% !important;
|
74
|
+
}
|
75
|
+
|
76
|
+
.u-sm-before7of12 {
|
77
|
+
margin-left: calc(100% * 7 / 12) !important;
|
78
|
+
}
|
79
|
+
|
80
|
+
.u-sm-before3of5,
|
81
|
+
.u-sm-before6of10 {
|
82
|
+
margin-left: 60% !important;
|
83
|
+
}
|
84
|
+
|
85
|
+
.u-sm-before5of8 {
|
86
|
+
margin-left: 62.5% !important;
|
87
|
+
}
|
88
|
+
|
89
|
+
.u-sm-before2of3,
|
90
|
+
.u-sm-before4of6,
|
91
|
+
.u-sm-before8of12 {
|
92
|
+
margin-left: calc(100% * 2 / 3) !important;
|
93
|
+
}
|
94
|
+
|
95
|
+
.u-sm-before7of10 {
|
96
|
+
margin-left: 70% !important;
|
97
|
+
}
|
98
|
+
|
99
|
+
.u-sm-before3of4,
|
100
|
+
.u-sm-before6of8,
|
101
|
+
.u-sm-before9of12 {
|
102
|
+
margin-left: 75% !important;
|
103
|
+
}
|
104
|
+
|
105
|
+
.u-sm-before4of5,
|
106
|
+
.u-sm-before8of10 {
|
107
|
+
margin-left: 80% !important;
|
108
|
+
}
|
109
|
+
|
110
|
+
.u-sm-before5of6,
|
111
|
+
.u-sm-before10of12 {
|
112
|
+
margin-left: calc(100% * 5 / 6) !important;
|
113
|
+
}
|
114
|
+
|
115
|
+
.u-sm-before7of8 {
|
116
|
+
margin-left: 87.5% !important;
|
117
|
+
}
|
118
|
+
|
119
|
+
.u-sm-before9of10 {
|
120
|
+
margin-left: 90% !important;
|
121
|
+
}
|
122
|
+
|
123
|
+
.u-sm-before11of12 {
|
124
|
+
margin-left: calc(100% * 11 / 12) !important;
|
125
|
+
}
|
126
|
+
|
127
|
+
}
|