suitcss-rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
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,9 @@
1
+ @import "utils/align";
2
+ @import "utils/display";
3
+ @import "utils/layout";
4
+ @import "utils/link";
5
+ @import "utils/offset";
6
+ @import "utils/position";
7
+ @import "utils/size";
8
+ @import "utils/text";
9
+ @import "utils/flex";
@@ -0,0 +1,4 @@
1
+ @import "after/index";
2
+ @import "after/sm";
3
+ @import "after/md";
4
+ @import "after/lg";
@@ -0,0 +1,117 @@
1
+ /**
2
+ * @define utilities
3
+ * Specify the proportional offset after an element.
4
+ * Intentional redundancy build into each set of unit classes.
5
+ * Supports: 2, 4, 5, 6, 8, 10, 12 section
6
+ */
7
+
8
+ .u-after1of12 {
9
+ margin-right: calc(100% * 1 / 12) !important;
10
+ }
11
+
12
+ .u-after1of10 {
13
+ margin-right: 10% !important;
14
+ }
15
+
16
+ .u-after1of8 {
17
+ margin-right: 12.5% !important;
18
+ }
19
+
20
+ .u-after1of6,
21
+ .u-after2of12 {
22
+ margin-right: calc(100% * 1 / 6) !important;
23
+ }
24
+
25
+ .u-after1of5,
26
+ .u-after2of10 {
27
+ margin-right: 20% !important;
28
+ }
29
+
30
+ .u-after1of4,
31
+ .u-after2of8,
32
+ .u-after3of12 {
33
+ margin-right: 25% !important;
34
+ }
35
+
36
+ .u-after3of10 {
37
+ margin-right: 30% !important;
38
+ }
39
+
40
+ .u-after1of3,
41
+ .u-after2of6,
42
+ .u-after4of12 {
43
+ margin-right: calc(100% * 1 / 3) !important;
44
+ }
45
+
46
+ .u-after3of8 {
47
+ margin-right: 37.5% !important;
48
+ }
49
+
50
+ .u-after2of5,
51
+ .u-after4of10 {
52
+ margin-right: 40% !important;
53
+ }
54
+
55
+ .u-after5of12 {
56
+ margin-right: calc(100% * 5 / 12) !important;
57
+ }
58
+
59
+ .u-after1of2,
60
+ .u-after2of4,
61
+ .u-after3of6,
62
+ .u-after4of8,
63
+ .u-after5of10,
64
+ .u-after6of12 {
65
+ margin-right: 50% !important;
66
+ }
67
+
68
+ .u-after7of12 {
69
+ margin-right: calc(100% * 7 / 12) !important;
70
+ }
71
+
72
+ .u-after3of5,
73
+ .u-after6of10 {
74
+ margin-right: 60% !important;
75
+ }
76
+
77
+ .u-after5of8 {
78
+ margin-right: 62.5% !important;
79
+ }
80
+
81
+ .u-after2of3,
82
+ .u-after4of6,
83
+ .u-after8of12 {
84
+ margin-right: calc(100% * 2 / 3) !important;
85
+ }
86
+
87
+ .u-after7of10 {
88
+ margin-right: 70% !important;
89
+ }
90
+
91
+ .u-after3of4,
92
+ .u-after6of8,
93
+ .u-after9of12 {
94
+ margin-right: 75% !important;
95
+ }
96
+
97
+ .u-after4of5,
98
+ .u-after8of10 {
99
+ margin-right: 80% !important;
100
+ }
101
+
102
+ .u-after5of6,
103
+ .u-after10of12 {
104
+ margin-right: calc(100% * 5 / 6) !important;
105
+ }
106
+
107
+ .u-after7of8 {
108
+ margin-right: 87.5% !important;
109
+ }
110
+
111
+ .u-after9of10 {
112
+ margin-right: 90% !important;
113
+ }
114
+
115
+ .u-after11of12 {
116
+ margin-right: 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 after an element.
6
+ * Intentional redundancy build into each set of unit classes.
7
+ * Supports: 2, 4, 5, 6, 8, 10, 12 section
8
+ */
9
+
10
+ @media (--lg-viewport) {
11
+
12
+ .u-lg-afterNone {
13
+ margin-right: 0 !important;
14
+ }
15
+
16
+ .u-lg-after1of12 {
17
+ margin-right: calc(100% * 1 / 12) !important;
18
+ }
19
+
20
+ .u-lg-after1of10 {
21
+ margin-right: 10% !important;
22
+ }
23
+
24
+ .u-lg-after1of8 {
25
+ margin-right: 12.5% !important;
26
+ }
27
+
28
+ .u-lg-after1of6,
29
+ .u-lg-after2of12 {
30
+ margin-right: calc(100% * 1 / 6) !important;
31
+ }
32
+
33
+ .u-lg-after1of5,
34
+ .u-lg-after2of10 {
35
+ margin-right: 20% !important;
36
+ }
37
+
38
+ .u-lg-after1of4,
39
+ .u-lg-after2of8,
40
+ .u-lg-after3of12 {
41
+ margin-right: 25% !important;
42
+ }
43
+
44
+ .u-lg-after3of10 {
45
+ margin-right: 30% !important;
46
+ }
47
+
48
+ .u-lg-after1of3,
49
+ .u-lg-after2of6,
50
+ .u-lg-after4of12 {
51
+ margin-right: calc(100% * 1 / 3) !important;
52
+ }
53
+
54
+ .u-lg-after3of8 {
55
+ margin-right: 37.5% !important;
56
+ }
57
+
58
+ .u-lg-after2of5,
59
+ .u-lg-after4of10 {
60
+ margin-right: 40% !important;
61
+ }
62
+
63
+ .u-lg-after5of12 {
64
+ margin-right: calc(100% * 5 / 12) !important;
65
+ }
66
+
67
+ .u-lg-after1of2,
68
+ .u-lg-after2of4,
69
+ .u-lg-after3of6,
70
+ .u-lg-after4of8,
71
+ .u-lg-after5of10,
72
+ .u-lg-after6of12 {
73
+ margin-right: 50% !important;
74
+ }
75
+
76
+ .u-lg-after7of12 {
77
+ margin-right: calc(100% * 7 / 12) !important;
78
+ }
79
+
80
+ .u-lg-after3of5,
81
+ .u-lg-after6of10 {
82
+ margin-right: 60% !important;
83
+ }
84
+
85
+ .u-lg-after5of8 {
86
+ margin-right: 62.5% !important;
87
+ }
88
+
89
+ .u-lg-after2of3,
90
+ .u-lg-after4of6,
91
+ .u-lg-after8of12 {
92
+ margin-right: calc(100% * 2 / 3) !important;
93
+ }
94
+
95
+ .u-lg-after7of10 {
96
+ margin-right: 70% !important;
97
+ }
98
+
99
+ .u-lg-after3of4,
100
+ .u-lg-after6of8,
101
+ .u-lg-after9of12 {
102
+ margin-right: 75% !important;
103
+ }
104
+
105
+ .u-lg-after4of5,
106
+ .u-lg-after8of10 {
107
+ margin-right: 80% !important;
108
+ }
109
+
110
+ .u-lg-after5of6,
111
+ .u-lg-after10of12 {
112
+ margin-right: calc(100% * 5 / 6) !important;
113
+ }
114
+
115
+ .u-lg-after7of8 {
116
+ margin-right: 87.5% !important;
117
+ }
118
+
119
+ .u-lg-after9of10 {
120
+ margin-right: 90% !important;
121
+ }
122
+
123
+ .u-lg-after11of12 {
124
+ margin-right: 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 after an element.
6
+ * Intentional redundancy build into each set of unit classes.
7
+ * Supports: 2, 4, 5, 6, 8, 10, 12 section
8
+ */
9
+
10
+ @media (--md-viewport) {
11
+
12
+ .u-md-afterNone {
13
+ margin-right: 0 !important;
14
+ }
15
+
16
+ .u-md-after1of12 {
17
+ margin-right: calc(100% * 1 / 12) !important;
18
+ }
19
+
20
+ .u-md-after1of10 {
21
+ margin-right: 10% !important;
22
+ }
23
+
24
+ .u-md-after1of8 {
25
+ margin-right: 12.5% !important;
26
+ }
27
+
28
+ .u-md-after1of6,
29
+ .u-md-after2of12 {
30
+ margin-right: calc(100% * 1 / 6) !important;
31
+ }
32
+
33
+ .u-md-after1of5,
34
+ .u-md-after2of10 {
35
+ margin-right: 20% !important;
36
+ }
37
+
38
+ .u-md-after1of4,
39
+ .u-md-after2of8,
40
+ .u-md-after3of12 {
41
+ margin-right: 25% !important;
42
+ }
43
+
44
+ .u-md-after3of10 {
45
+ margin-right: 30% !important;
46
+ }
47
+
48
+ .u-md-after1of3,
49
+ .u-md-after2of6,
50
+ .u-md-after4of12 {
51
+ margin-right: calc(100% * 1 / 3) !important;
52
+ }
53
+
54
+ .u-md-after3of8 {
55
+ margin-right: 37.5% !important;
56
+ }
57
+
58
+ .u-md-after2of5,
59
+ .u-md-after4of10 {
60
+ margin-right: 40% !important;
61
+ }
62
+
63
+ .u-md-after5of12 {
64
+ margin-right: calc(100% * 5 / 12) !important;
65
+ }
66
+
67
+ .u-md-after1of2,
68
+ .u-md-after2of4,
69
+ .u-md-after3of6,
70
+ .u-md-after4of8,
71
+ .u-md-after5of10,
72
+ .u-md-after6of12 {
73
+ margin-right: 50% !important;
74
+ }
75
+
76
+ .u-md-after7of12 {
77
+ margin-right: calc(100% * 7 / 12) !important;
78
+ }
79
+
80
+ .u-md-after3of5,
81
+ .u-md-after6of10 {
82
+ margin-right: 60% !important;
83
+ }
84
+
85
+ .u-md-after5of8 {
86
+ margin-right: 62.5% !important;
87
+ }
88
+
89
+ .u-md-after2of3,
90
+ .u-md-after4of6,
91
+ .u-md-after8of12 {
92
+ margin-right: calc(100% * 2 / 3) !important;
93
+ }
94
+
95
+ .u-md-after7of10 {
96
+ margin-right: 70% !important;
97
+ }
98
+
99
+ .u-md-after3of4,
100
+ .u-md-after6of8,
101
+ .u-md-after9of12 {
102
+ margin-right: 75% !important;
103
+ }
104
+
105
+ .u-md-after4of5,
106
+ .u-md-after8of10 {
107
+ margin-right: 80% !important;
108
+ }
109
+
110
+ .u-md-after5of6,
111
+ .u-md-after10of12 {
112
+ margin-right: calc(100% * 5 / 6) !important;
113
+ }
114
+
115
+ .u-md-after7of8 {
116
+ margin-right: 87.5% !important;
117
+ }
118
+
119
+ .u-md-after9of10 {
120
+ margin-right: 90% !important;
121
+ }
122
+
123
+ .u-md-after11of12 {
124
+ margin-right: 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 after an element.
6
+ * Intentional redundancy build into each set of unit classes.
7
+ * Supports: 2, 4, 5, 6, 8, 10, 12 section
8
+ */
9
+
10
+ @media (--sm-viewport) {
11
+
12
+ .u-sm-afterNone {
13
+ margin-right: 0 !important;
14
+ }
15
+
16
+ .u-sm-after1of12 {
17
+ margin-right: calc(100% * 1 / 12) !important;
18
+ }
19
+
20
+ .u-sm-after1of10 {
21
+ margin-right: 10% !important;
22
+ }
23
+
24
+ .u-sm-after1of8 {
25
+ margin-right: 12.5% !important;
26
+ }
27
+
28
+ .u-sm-after1of6,
29
+ .u-sm-after2of12 {
30
+ margin-right: calc(100% * 1 / 6) !important;
31
+ }
32
+
33
+ .u-sm-after1of5,
34
+ .u-sm-after2of10 {
35
+ margin-right: 20% !important;
36
+ }
37
+
38
+ .u-sm-after1of4,
39
+ .u-sm-after2of8,
40
+ .u-sm-after3of12 {
41
+ margin-right: 25% !important;
42
+ }
43
+
44
+ .u-sm-after3of10 {
45
+ margin-right: 30% !important;
46
+ }
47
+
48
+ .u-sm-after1of3,
49
+ .u-sm-after2of6,
50
+ .u-sm-after4of12 {
51
+ margin-right: calc(100% * 1 / 3) !important;
52
+ }
53
+
54
+ .u-sm-after3of8 {
55
+ margin-right: 37.5% !important;
56
+ }
57
+
58
+ .u-sm-after2of5,
59
+ .u-sm-after4of10 {
60
+ margin-right: 40% !important;
61
+ }
62
+
63
+ .u-sm-after5of12 {
64
+ margin-right: calc(100% * 5 / 12) !important;
65
+ }
66
+
67
+ .u-sm-after1of2,
68
+ .u-sm-after2of4,
69
+ .u-sm-after3of6,
70
+ .u-sm-after4of8,
71
+ .u-sm-after5of10,
72
+ .u-sm-after6of12 {
73
+ margin-right: 50% !important;
74
+ }
75
+
76
+ .u-sm-after7of12 {
77
+ margin-right: calc(100% * 7 / 12) !important;
78
+ }
79
+
80
+ .u-sm-after3of5,
81
+ .u-sm-after6of10 {
82
+ margin-right: 60% !important;
83
+ }
84
+
85
+ .u-sm-after5of8 {
86
+ margin-right: 62.5% !important;
87
+ }
88
+
89
+ .u-sm-after2of3,
90
+ .u-sm-after4of6,
91
+ .u-sm-after8of12 {
92
+ margin-right: calc(100% * 2 / 3) !important;
93
+ }
94
+
95
+ .u-sm-after7of10 {
96
+ margin-right: 70% !important;
97
+ }
98
+
99
+ .u-sm-after3of4,
100
+ .u-sm-after6of8,
101
+ .u-sm-after9of12 {
102
+ margin-right: 75% !important;
103
+ }
104
+
105
+ .u-sm-after4of5,
106
+ .u-sm-after8of10 {
107
+ margin-right: 80% !important;
108
+ }
109
+
110
+ .u-sm-after5of6,
111
+ .u-sm-after10of12 {
112
+ margin-right: calc(100% * 5 / 6) !important;
113
+ }
114
+
115
+ .u-sm-after7of8 {
116
+ margin-right: 87.5% !important;
117
+ }
118
+
119
+ .u-sm-after9of10 {
120
+ margin-right: 90% !important;
121
+ }
122
+
123
+ .u-sm-after11of12 {
124
+ margin-right: calc(100% * 11 / 12) !important;
125
+ }
126
+
127
+ }