GIPainter-helpers 0.2.3 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +41 -41
- data/assets/stylesheets/Base/_borders.scss +58 -102
- data/assets/stylesheets/Base/_colors.scss +45 -89
- data/assets/stylesheets/Base/_core.scss +5 -4
- data/assets/stylesheets/Base/_positioning.scss +84 -103
- data/assets/stylesheets/Base/_spacing.scss +135 -187
- data/assets/stylesheets/Base/{_typo.scss → _typography.scss} +146 -179
- data/assets/stylesheets/Variables/_border.scss +18 -0
- data/assets/stylesheets/Variables/_spacing.scss +35 -0
- data/assets/stylesheets/Variables/_typography.scss +18 -0
- data/assets/stylesheets/_GIPainter-helpers.scss +14 -12
- data/lib/GIPainter-helpers.rb +51 -51
- data/lib/GIPainter-helpers/version.rb +3 -3
- data/templates/project/manifest.rb +6 -6
- metadata +6 -3
@@ -1,187 +1,135 @@
|
|
1
|
-
//-----------------------------------
|
2
|
-
// HELPER
|
3
|
-
// PADDINGS & MARGINS CLASSES GENERATION
|
4
|
-
//-----------------------------------
|
5
|
-
|
6
|
-
// From Bootstrap 4
|
7
|
-
|
8
|
-
/*----------------
|
9
|
-
Margin and Padding
|
10
|
-
----------------*/
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
}
|
53
|
-
|
54
|
-
//
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
$
|
74
|
-
$
|
75
|
-
|
76
|
-
$
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
$
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
$
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
.#{$abbrev}t#{$infix}-#{$size} { #{$prop}-top: $length-y !important; }
|
137
|
-
.#{$abbrev}r#{$infix}-#{$size} { #{$prop}-right: $length-x !important; }
|
138
|
-
.#{$abbrev}b#{$infix}-#{$size} { #{$prop}-bottom: $length-y !important; }
|
139
|
-
.#{$abbrev}l#{$infix}-#{$size} { #{$prop}-left: $length-x !important; }
|
140
|
-
.#{$abbrev}x#{$infix}-#{$size} {
|
141
|
-
#{$prop}-right: $length-x !important;
|
142
|
-
#{$prop}-left: $length-x !important;
|
143
|
-
}
|
144
|
-
.#{$abbrev}y#{$infix}-#{$size} {
|
145
|
-
#{$prop}-top: $length-y !important;
|
146
|
-
#{$prop}-bottom: $length-y !important;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
}
|
150
|
-
|
151
|
-
// Some special margin utils
|
152
|
-
.m#{$infix}-auto { margin: auto !important; }
|
153
|
-
.mt#{$infix}-auto { margin-top: auto !important; }
|
154
|
-
.mr#{$infix}-auto { margin-right: auto !important; }
|
155
|
-
.mb#{$infix}-auto { margin-bottom: auto !important; }
|
156
|
-
.ml#{$infix}-auto { margin-left: auto !important; }
|
157
|
-
.mx#{$infix}-auto {
|
158
|
-
margin-right: auto !important;
|
159
|
-
margin-left: auto !important;
|
160
|
-
}
|
161
|
-
.my#{$infix}-auto {
|
162
|
-
margin-top: auto !important;
|
163
|
-
margin-bottom: auto !important;
|
164
|
-
}
|
165
|
-
}
|
166
|
-
}
|
167
|
-
|
168
|
-
/*----------------
|
169
|
-
Display utilities
|
170
|
-
----------------*/
|
171
|
-
|
172
|
-
@each $breakpoint in map-keys($grid-breakpoints) {
|
173
|
-
@include media-breakpoint-up($breakpoint) {
|
174
|
-
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
175
|
-
|
176
|
-
.d#{$infix}-none { display: none !important; }
|
177
|
-
.d#{$infix}-inline { display: inline !important; }
|
178
|
-
.d#{$infix}-inline-block { display: inline-block !important; }
|
179
|
-
.d#{$infix}-block { display: block !important; }
|
180
|
-
.d#{$infix}-table { display: table !important; }
|
181
|
-
.d#{$infix}-table-cell { display: table-cell !important; }
|
182
|
-
.d#{$infix}-flex { display: flex !important; }
|
183
|
-
.d#{$infix}-inline-flex { display: inline-flex !important; }
|
184
|
-
}
|
185
|
-
}
|
186
|
-
|
187
|
-
|
1
|
+
//-----------------------------------
|
2
|
+
// HELPER
|
3
|
+
// PADDINGS & MARGINS CLASSES GENERATION
|
4
|
+
//-----------------------------------
|
5
|
+
|
6
|
+
// From Bootstrap 4
|
7
|
+
|
8
|
+
/*----------------
|
9
|
+
Margin and Padding
|
10
|
+
----------------*/
|
11
|
+
|
12
|
+
////
|
13
|
+
/// @access public
|
14
|
+
/// @group Margin/Padding
|
15
|
+
/// @type Margin & Paddings
|
16
|
+
////
|
17
|
+
|
18
|
+
/// Margins & Paddings wicth all breakpoints, from xs to xl and X-Y positions.
|
19
|
+
///
|
20
|
+
/// ! Max Padding/Margin Values : 5
|
21
|
+
/// @example css - class="mg/pd(Pos)-(value)"
|
22
|
+
/// .mgt-2 {
|
23
|
+
/// margin-top: 2px;
|
24
|
+
/// }
|
25
|
+
/// @example css - class="mg(Pos-X/Y)-(breakpoint)-(value)"
|
26
|
+
/// .mgy-sm-4 {
|
27
|
+
/// @media (min-width: 576px) {
|
28
|
+
/// margin-top: 4px;
|
29
|
+
/// margin-bottom: 4px;
|
30
|
+
/// }
|
31
|
+
/// }
|
32
|
+
|
33
|
+
@each $prop, $abbrev in (margin: mg, padding: pd) {
|
34
|
+
@each $size, $lengths in $spacers {
|
35
|
+
$length-x: map-get($lengths, x);
|
36
|
+
$length-y: map-get($lengths, y);
|
37
|
+
|
38
|
+
.#{$abbrev}-#{$size} { #{$prop}: $length-y $length-x; }
|
39
|
+
.#{$abbrev}t-#{$size} { #{$prop}-top: $length-y; }
|
40
|
+
.#{$abbrev}r-#{$size} { #{$prop}-right: $length-x; }
|
41
|
+
.#{$abbrev}b-#{$size} { #{$prop}-bottom: $length-y; }
|
42
|
+
.#{$abbrev}l-#{$size} { #{$prop}-left: $length-x; }
|
43
|
+
.#{$abbrev}x-#{$size} {
|
44
|
+
#{$prop}-right: $length-x;
|
45
|
+
#{$prop}-left: $length-x;
|
46
|
+
}
|
47
|
+
.#{$abbrev}y-#{$size} {
|
48
|
+
#{$prop}-top: $length-y;
|
49
|
+
#{$prop}-bottom: $length-y;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
// Some special margin utils
|
55
|
+
.m-auto { margin: auto; }
|
56
|
+
.mt-auto { margin-top: auto; }
|
57
|
+
.mr-auto { margin-right: auto; }
|
58
|
+
.mb-auto { margin-bottom: auto; }
|
59
|
+
.ml-auto { margin-left: auto; }
|
60
|
+
.mx-auto {
|
61
|
+
margin-right: auto;
|
62
|
+
margin-left: auto;
|
63
|
+
}
|
64
|
+
.my-auto {
|
65
|
+
margin-top: auto;
|
66
|
+
margin-bottom: auto;
|
67
|
+
}
|
68
|
+
|
69
|
+
@each $breakpoint-name, $breakpoint-value in $default_breakpoints {
|
70
|
+
@include mquery($breakpoint-value) {
|
71
|
+
@each $prop, $abbrev in (margin: mg, padding: pd) {
|
72
|
+
@each $size, $lengths in $spacers {
|
73
|
+
$length-x: map-get($lengths, x);
|
74
|
+
$length-y: map-get($lengths, y);
|
75
|
+
|
76
|
+
.#{$abbrev}#{$breakpoint-name}-#{$size} { #{$prop}: $length-y $length-x; }
|
77
|
+
.#{$abbrev}t#{$breakpoint-name}-#{$size} { #{$prop}-top: $length-y; }
|
78
|
+
.#{$abbrev}r#{$breakpoint-name}-#{$size} { #{$prop}-right: $length-x; }
|
79
|
+
.#{$abbrev}b#{$breakpoint-name}-#{$size} { #{$prop}-bottom: $length-y; }
|
80
|
+
.#{$abbrev}l#{$breakpoint-name}-#{$size} { #{$prop}-left: $length-x; }
|
81
|
+
.#{$abbrev}x#{$breakpoint-name}-#{$size} {
|
82
|
+
#{$prop}-right: $length-x;
|
83
|
+
#{$prop}-left: $length-x;
|
84
|
+
}
|
85
|
+
.#{$abbrev}y#{$breakpoint-name}-#{$size} {
|
86
|
+
#{$prop}-top: $length-y;
|
87
|
+
#{$prop}-bottom: $length-y;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
// Some special margin utils
|
93
|
+
.m#{$breakpoint-name}-auto { margin: auto; }
|
94
|
+
.mt#{$breakpoint-name}-auto { margin-top: auto; }
|
95
|
+
.mr#{$breakpoint-name}-auto { margin-right: auto; }
|
96
|
+
.mb#{$breakpoint-name}-auto { margin-bottom: auto; }
|
97
|
+
.ml#{$breakpoint-name}-auto { margin-left: auto; }
|
98
|
+
.mx#{$breakpoint-name}-auto {
|
99
|
+
margin-right: auto;
|
100
|
+
margin-left: auto;
|
101
|
+
}
|
102
|
+
.my#{$breakpoint-name}-auto {
|
103
|
+
margin-top: auto;
|
104
|
+
margin-bottom: auto;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
/*----------------
|
110
|
+
Display utilities
|
111
|
+
----------------*/
|
112
|
+
|
113
|
+
.d-none { display: none; }
|
114
|
+
.d-inline { display: inline; }
|
115
|
+
.d-inline-block { display: inline-block; }
|
116
|
+
.d-block { display: block; }
|
117
|
+
.d-table { display: table; }
|
118
|
+
.d-table-cell { display: table-cell; }
|
119
|
+
.d-flex { display: flex; }
|
120
|
+
.d-inline-flex { display: inline-flex; }
|
121
|
+
|
122
|
+
@each $breakpoint-name, $breakpoint-value in $default_breakpoints {
|
123
|
+
@include mquery($breakpoint-value) {
|
124
|
+
.d#{$breakpoint-name}-none { display: none; }
|
125
|
+
.d#{$breakpoint-name}-inline { display: inline; }
|
126
|
+
.d#{$breakpoint-name}-inline-block { display: inline-block; }
|
127
|
+
.d#{$breakpoint-name}-block { display: block; }
|
128
|
+
.d#{$breakpoint-name}-table { display: table; }
|
129
|
+
.d#{$breakpoint-name}-table-cell { display: table-cell; }
|
130
|
+
.d#{$breakpoint-name}-flex { display: flex; }
|
131
|
+
.d#{$breakpoint-name}-inline-flex { display: inline-flex; }
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
|
@@ -1,180 +1,147 @@
|
|
1
|
-
//-----------------------------------
|
2
|
-
// HELPER
|
3
|
-
// TYPOGRAPHY CLASSES GENERATION
|
4
|
-
//-----------------------------------
|
5
|
-
|
6
|
-
////
|
7
|
-
/// @access public
|
8
|
-
/// @group Typography
|
9
|
-
/// @type typography
|
10
|
-
////
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
}
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
$
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
)
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
}
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
}
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
.mark {
|
153
|
-
background-color: $brand-warning;
|
154
|
-
padding: .2em;
|
155
|
-
}
|
156
|
-
|
157
|
-
//Horizontal Rule
|
158
|
-
.separator{
|
159
|
-
clear: both;
|
160
|
-
margin: 0;
|
161
|
-
border: 0;
|
162
|
-
height: 2px;
|
163
|
-
background: $gray;
|
164
|
-
}
|
165
|
-
|
166
|
-
// Abbreviations and acronyms
|
167
|
-
.initialism {
|
168
|
-
font-size: 90%;
|
169
|
-
text-transform: uppercase;
|
170
|
-
}
|
171
|
-
|
172
|
-
//Deleted
|
173
|
-
.delete{
|
174
|
-
text-decoration: line-through;
|
175
|
-
}
|
176
|
-
|
177
|
-
//Underline
|
178
|
-
.underline{
|
179
|
-
text-decoration: underline;
|
1
|
+
//-----------------------------------
|
2
|
+
// HELPER
|
3
|
+
// TYPOGRAPHY CLASSES GENERATION
|
4
|
+
//-----------------------------------
|
5
|
+
|
6
|
+
////
|
7
|
+
/// @access public
|
8
|
+
/// @group Typography
|
9
|
+
/// @type typography
|
10
|
+
////
|
11
|
+
|
12
|
+
/*----------------
|
13
|
+
Fonts Family
|
14
|
+
----------------*/
|
15
|
+
|
16
|
+
@each $name, $value in $default_typo {
|
17
|
+
.#{"" + $name} {
|
18
|
+
font-family: $value;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
/*----------------
|
23
|
+
Fonts sizes
|
24
|
+
----------------*/
|
25
|
+
|
26
|
+
@each $name, $value in $default_typo_size {
|
27
|
+
.#{"" + $name} {
|
28
|
+
@include font-size($value);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.small {
|
33
|
+
@include font-size($font-size-small);
|
34
|
+
}
|
35
|
+
|
36
|
+
/*----------------
|
37
|
+
Lead-Sizes
|
38
|
+
----------------*/
|
39
|
+
|
40
|
+
.lead {
|
41
|
+
margin-bottom: $line-height-computed;
|
42
|
+
@include font-size( floor($font-size-base * 1.15));
|
43
|
+
@include line-height( floor($font-size-base * 1.15));
|
44
|
+
font-weight: 300;
|
45
|
+
|
46
|
+
@include mquery($screen-sm) {
|
47
|
+
@include font-size($font-size-base * 1.5);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
@for $i from 10 through $max-lead{
|
52
|
+
.lead-#{"" + $i}{
|
53
|
+
@include font-size($i);
|
54
|
+
@include line-height($i);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
/*----------------
|
59
|
+
Fonts Weight & Styles
|
60
|
+
----------------*/
|
61
|
+
|
62
|
+
@each $i in $weight-style {
|
63
|
+
.#{$i}{
|
64
|
+
font-weight: #{$i};
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
//Emphasis
|
69
|
+
.italic{
|
70
|
+
font-style: italic;
|
71
|
+
}
|
72
|
+
|
73
|
+
//Strong
|
74
|
+
.strong{
|
75
|
+
font-family: inherit;
|
76
|
+
font-weight: bold;
|
77
|
+
}
|
78
|
+
|
79
|
+
/*----------------
|
80
|
+
Text Align
|
81
|
+
----------------*/
|
82
|
+
|
83
|
+
@each $i in $align-style {
|
84
|
+
.#{$i}{
|
85
|
+
text-align: #{$i};
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.text-nowrap{
|
90
|
+
white-space: nowrap;
|
91
|
+
}
|
92
|
+
|
93
|
+
.truncate {
|
94
|
+
@include truncate;
|
95
|
+
}
|
96
|
+
|
97
|
+
/*----------------
|
98
|
+
Text Transform
|
99
|
+
----------------*/
|
100
|
+
|
101
|
+
@each $i in $style {
|
102
|
+
.#{$i}{
|
103
|
+
text-transform: #{$i};
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
/*----------------
|
108
|
+
Text Decoration
|
109
|
+
----------------*/
|
110
|
+
|
111
|
+
@each $i in $style {
|
112
|
+
.decoration-#{$i}{
|
113
|
+
text-decoration: #{$i};
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
.mark {
|
120
|
+
background-color: $brand-warning;
|
121
|
+
padding: .2em;
|
122
|
+
}
|
123
|
+
|
124
|
+
//Horizontal Rule
|
125
|
+
.separator{
|
126
|
+
clear: both;
|
127
|
+
margin: 0;
|
128
|
+
border: 0;
|
129
|
+
height: 2px;
|
130
|
+
background: $gray;
|
131
|
+
}
|
132
|
+
|
133
|
+
// Abbreviations and acronyms
|
134
|
+
.initialism {
|
135
|
+
font-size: 90%;
|
136
|
+
text-transform: uppercase;
|
137
|
+
}
|
138
|
+
|
139
|
+
//Deleted
|
140
|
+
.delete{
|
141
|
+
text-decoration: line-through;
|
142
|
+
}
|
143
|
+
|
144
|
+
//Underline
|
145
|
+
.underline{
|
146
|
+
text-decoration: underline;
|
180
147
|
}
|