GIPainter-base 0.3.3 → 0.4.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.
- checksums.yaml +4 -4
- data/assets/stylesheets/Base/_typography.scss +284 -0
- data/assets/stylesheets/Mixins/_colors.scss +9 -5
- data/assets/stylesheets/Mixins/_image.scss +54 -0
- data/assets/stylesheets/Mixins/_list.scss +70 -0
- data/assets/stylesheets/Mixins/_margin.scss +46 -0
- data/assets/stylesheets/Mixins/_media-query.scss +49 -0
- data/assets/stylesheets/Mixins/_miscellaneous.scss +42 -0
- data/assets/stylesheets/Mixins/_opacity.scss +2 -2
- data/assets/stylesheets/Mixins/_padding.scss +30 -0
- data/assets/stylesheets/Mixins/_position.scss +108 -0
- data/assets/stylesheets/Mixins/_pseudo.scss +109 -0
- data/assets/stylesheets/Mixins/_size.scss +73 -0
- data/assets/stylesheets/Mixins/_typography.scss +88 -33
- data/assets/stylesheets/Variables/_typography.scss +5 -1
- data/lib/GIPainter-base/version.rb +1 -1
- metadata +10 -3
- data/assets/stylesheets/Base/_normalize.scss +0 -429
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04554591ab510f805cc3bda693a54b4103470ba5
|
4
|
+
data.tar.gz: 54b0392ae0e3b98394fb174544011891a4bd3e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a733be7c5acc549d9b895e43ba7e8cc8a0a8d2d1a58222d5b650092ab36fd43a581912d61a7bef9bf765fd0a3109e8e59bace7893b6f29192532a42b13c37e
|
7
|
+
data.tar.gz: 6fdbea8be77166cdab42bfca958a95d5f8c399c00c35e828bc37cba0ef3926ee28afec551ad1af76e60ccbf6bf81bbc3d0ba5d974a3267b03d0ff0d5124299c2
|
@@ -1,3 +1,51 @@
|
|
1
|
+
*, ::after, ::before {
|
2
|
+
@include box-sizing(border-box);
|
3
|
+
}
|
4
|
+
|
5
|
+
html {
|
6
|
+
font-family: $font-family-sans-serif;
|
7
|
+
-ms-text-size-adjust: 100%;
|
8
|
+
-webkit-text-size-adjust: 100%;
|
9
|
+
}
|
10
|
+
|
11
|
+
body {
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
article,
|
16
|
+
aside,
|
17
|
+
details,
|
18
|
+
figcaption,
|
19
|
+
figure,
|
20
|
+
footer,
|
21
|
+
header,
|
22
|
+
hgroup,
|
23
|
+
main,
|
24
|
+
menu,
|
25
|
+
nav,
|
26
|
+
section,
|
27
|
+
summary {
|
28
|
+
display: block;
|
29
|
+
}
|
30
|
+
|
31
|
+
audio,
|
32
|
+
canvas,
|
33
|
+
progress,
|
34
|
+
video {
|
35
|
+
display: inline-block;
|
36
|
+
vertical-align: baseline;
|
37
|
+
}
|
38
|
+
|
39
|
+
audio:not([controls]) {
|
40
|
+
display: none;
|
41
|
+
height: 0;
|
42
|
+
}
|
43
|
+
|
44
|
+
[hidden],
|
45
|
+
template {
|
46
|
+
display: none;
|
47
|
+
}
|
48
|
+
|
1
49
|
h1,
|
2
50
|
h2,
|
3
51
|
h3,
|
@@ -60,4 +108,240 @@ h5 {
|
|
60
108
|
|
61
109
|
h6 {
|
62
110
|
@include font-size($font-size-h6);
|
111
|
+
}
|
112
|
+
|
113
|
+
p {
|
114
|
+
margin: 0 0 ($line-height-computed / 2);
|
115
|
+
}
|
116
|
+
|
117
|
+
a {
|
118
|
+
text-decoration: none;
|
119
|
+
color: $link-color;
|
120
|
+
background-color: transparent;
|
121
|
+
@include transition(color 0.5s ease-in-out);
|
122
|
+
|
123
|
+
&:hover,
|
124
|
+
&:focus {
|
125
|
+
color: darken($link-color, 20%);
|
126
|
+
}
|
127
|
+
|
128
|
+
&:visited {
|
129
|
+
color: darken($link-color, 20%);
|
130
|
+
}
|
131
|
+
|
132
|
+
&:active,
|
133
|
+
&:hover,
|
134
|
+
&:focus {
|
135
|
+
outline: 0;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
small {
|
140
|
+
font-size: floor((100% * $font-size-small / $font-size-base));
|
141
|
+
}
|
142
|
+
|
143
|
+
mark{
|
144
|
+
background-color: $brand-warning;
|
145
|
+
padding: .2em;
|
146
|
+
}
|
147
|
+
|
148
|
+
hr{
|
149
|
+
clear: both;
|
150
|
+
margin: 0;
|
151
|
+
border: 0;
|
152
|
+
height: 2px;
|
153
|
+
background: $gray;
|
154
|
+
@include box-sizing(content-box);
|
155
|
+
}
|
156
|
+
|
157
|
+
sub,
|
158
|
+
sup {
|
159
|
+
font-size: 75%;
|
160
|
+
line-height: 0;
|
161
|
+
position: relative;
|
162
|
+
vertical-align: baseline;
|
163
|
+
}
|
164
|
+
|
165
|
+
sup {
|
166
|
+
top: -0.5em;
|
167
|
+
}
|
168
|
+
|
169
|
+
sub {
|
170
|
+
bottom: -0.25em;
|
171
|
+
}
|
172
|
+
|
173
|
+
strong,
|
174
|
+
b{
|
175
|
+
font-family: inherit;
|
176
|
+
font-weight: bold;
|
177
|
+
}
|
178
|
+
|
179
|
+
em,
|
180
|
+
i{
|
181
|
+
font-style: italic;
|
182
|
+
}
|
183
|
+
|
184
|
+
dfn {
|
185
|
+
font-style: italic;
|
186
|
+
}
|
187
|
+
|
188
|
+
abbr[title],
|
189
|
+
abbr[data-original-title] {
|
190
|
+
cursor: help;
|
191
|
+
border-bottom: 1px dotted $gray;
|
192
|
+
}
|
193
|
+
|
194
|
+
del,
|
195
|
+
s{
|
196
|
+
text-decoration: line-through;
|
197
|
+
}
|
198
|
+
|
199
|
+
ins,
|
200
|
+
u{
|
201
|
+
text-decoration: underline;
|
202
|
+
}
|
203
|
+
|
204
|
+
pre {
|
205
|
+
overflow: auto;
|
206
|
+
}
|
207
|
+
|
208
|
+
code,
|
209
|
+
kbd,
|
210
|
+
pre,
|
211
|
+
samp {
|
212
|
+
font-family: $font-family-monospace;
|
213
|
+
font-size: 1em;
|
214
|
+
}
|
215
|
+
|
216
|
+
blockquote,
|
217
|
+
q {
|
218
|
+
padding: ($line-height-computed / 2) $line-height-computed;
|
219
|
+
margin: 0 0 $line-height-computed;
|
220
|
+
@include font-size($font-size-base * 1.25);
|
221
|
+
border-left: 5px solid $gray-light;
|
222
|
+
|
223
|
+
p,
|
224
|
+
ul,
|
225
|
+
ol {
|
226
|
+
&:last-child {
|
227
|
+
margin-bottom: 0;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
footer,
|
232
|
+
small {
|
233
|
+
display: block;
|
234
|
+
font-size: 80%;
|
235
|
+
line-height: $line-height-base;
|
236
|
+
color: $gray;
|
237
|
+
|
238
|
+
&:before {
|
239
|
+
content: '\2014 \00A0';
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
figure {
|
245
|
+
margin: 1em 40px;
|
246
|
+
}
|
247
|
+
|
248
|
+
img {
|
249
|
+
border: 0;
|
250
|
+
@include image-responsive;
|
251
|
+
}
|
252
|
+
|
253
|
+
svg:not(:root) {
|
254
|
+
overflow: hidden;
|
255
|
+
}
|
256
|
+
|
257
|
+
button,
|
258
|
+
input,
|
259
|
+
optgroup,
|
260
|
+
select,
|
261
|
+
textarea {
|
262
|
+
color: inherit;
|
263
|
+
font: inherit;
|
264
|
+
margin: 0;
|
265
|
+
}
|
266
|
+
|
267
|
+
button {
|
268
|
+
overflow: visible;
|
269
|
+
}
|
270
|
+
|
271
|
+
button,
|
272
|
+
select {
|
273
|
+
text-transform: none;
|
274
|
+
}
|
275
|
+
|
276
|
+
button,
|
277
|
+
html input[type="button"],
|
278
|
+
input[type="reset"],
|
279
|
+
input[type="submit"] {
|
280
|
+
@include appearance(button);
|
281
|
+
cursor: pointer;
|
282
|
+
}
|
283
|
+
|
284
|
+
button[disabled],
|
285
|
+
html input[disabled] {
|
286
|
+
cursor: default;
|
287
|
+
}
|
288
|
+
|
289
|
+
button::-moz-focus-inner,
|
290
|
+
input::-moz-focus-inner {
|
291
|
+
border: 0;
|
292
|
+
padding: 0;
|
293
|
+
}
|
294
|
+
|
295
|
+
input {
|
296
|
+
line-height: normal;
|
297
|
+
}
|
298
|
+
|
299
|
+
input[type="checkbox"],
|
300
|
+
input[type="radio"] {
|
301
|
+
@include box-sizing(border-box);
|
302
|
+
padding: 0;
|
303
|
+
}
|
304
|
+
|
305
|
+
input[type="number"]::-webkit-inner-spin-button,
|
306
|
+
input[type="number"]::-webkit-outer-spin-button {
|
307
|
+
height: auto;
|
308
|
+
}
|
309
|
+
|
310
|
+
input[type="search"] {
|
311
|
+
@include appearance(textfield);
|
312
|
+
@include box-sizing(content-box);
|
313
|
+
}
|
314
|
+
|
315
|
+
input[type="search"]::-webkit-search-cancel-button,
|
316
|
+
input[type="search"]::-webkit-search-decoration {
|
317
|
+
@include appearance(none);
|
318
|
+
}
|
319
|
+
|
320
|
+
fieldset {
|
321
|
+
border: 1px solid #c0c0c0;
|
322
|
+
margin: 0 2px;
|
323
|
+
padding: 0.35em 0.625em 0.75em;
|
324
|
+
}
|
325
|
+
|
326
|
+
legend {
|
327
|
+
border: 0;
|
328
|
+
padding: 0;
|
329
|
+
}
|
330
|
+
|
331
|
+
textarea {
|
332
|
+
overflow: auto;
|
333
|
+
}
|
334
|
+
|
335
|
+
optgroup {
|
336
|
+
font-weight: bold;
|
337
|
+
}
|
338
|
+
|
339
|
+
table {
|
340
|
+
border-collapse: collapse;
|
341
|
+
border-spacing: 0;
|
342
|
+
}
|
343
|
+
|
344
|
+
td,
|
345
|
+
th {
|
346
|
+
padding: 0;
|
63
347
|
}
|
@@ -8,9 +8,9 @@
|
|
8
8
|
/// @type string
|
9
9
|
////
|
10
10
|
|
11
|
-
/// Background opacity
|
11
|
+
/// Mixin helper to set Background opacity
|
12
12
|
/// @param {Color} $color - color of your background
|
13
|
-
/// @param {
|
13
|
+
/// @param {Number} $opacity [0.7] - opacity value
|
14
14
|
/// @example scss - Usage
|
15
15
|
/// .foo {
|
16
16
|
/// @include background-opacity(#FF0000);
|
@@ -22,11 +22,15 @@
|
|
22
22
|
/// }
|
23
23
|
|
24
24
|
@mixin background-opacity($color, $opacity: 0.7) {
|
25
|
-
|
26
|
-
|
25
|
+
$rgba: rgba($color, $opacity);
|
26
|
+
$ie-hex-str: ie-hex-str($rgba);
|
27
|
+
background-color: transparent;
|
28
|
+
background-color: $rgba;
|
29
|
+
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$ie-hex-str},endColorstr=#{$ie-hex-str});
|
30
|
+
zoom: 1;
|
27
31
|
}
|
28
32
|
|
29
|
-
///
|
33
|
+
/// Mixin helper to set text contrast
|
30
34
|
/// @param {Color} $color - color of your background
|
31
35
|
/// @example scss - Usage
|
32
36
|
/// .foo {
|
@@ -0,0 +1,54 @@
|
|
1
|
+
//-----------------------------------
|
2
|
+
// IMAGE MIXINS
|
3
|
+
//-----------------------------------
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @access public
|
7
|
+
/// @group Mixins
|
8
|
+
/// @type string
|
9
|
+
////
|
10
|
+
|
11
|
+
/// Mixin helper to retina image.
|
12
|
+
/// on retina, use image that's scaled by 2
|
13
|
+
/// @param {String} $image - image file path
|
14
|
+
/// @param {Length} $width - image width
|
15
|
+
/// @param {Length} $height - image height
|
16
|
+
/// @example scss - Usage
|
17
|
+
/// .foo {
|
18
|
+
/// @include image-2x('../images/image.png', 100%, auto);
|
19
|
+
/// }
|
20
|
+
/// @example css - Result
|
21
|
+
/// @media (-webkit-min-device-pixel-ratio: 1.3), (min-resolution: 124dpi), (min-resolution: 1.3dppx) {
|
22
|
+
/// .foo {
|
23
|
+
/// background-image: url('../images/image.png');
|
24
|
+
/// background-size: 100% auto;
|
25
|
+
/// }
|
26
|
+
/// }
|
27
|
+
|
28
|
+
@mixin image-2x($image, $width, $height) {
|
29
|
+
background-image: url($image);
|
30
|
+
|
31
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
32
|
+
background-image: url($image);
|
33
|
+
background-size: $width $height;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
/// Mixin helper to responsive image.
|
38
|
+
/// @param {String} $display - display of element
|
39
|
+
/// @example scss - Usage
|
40
|
+
/// img {
|
41
|
+
/// @include image-responsive;
|
42
|
+
/// }
|
43
|
+
/// @example css - Result
|
44
|
+
/// img {
|
45
|
+
/// display: block;
|
46
|
+
/// max-width: 100%;
|
47
|
+
/// height: auto;
|
48
|
+
/// }
|
49
|
+
|
50
|
+
@mixin image-responsive($display: block) {
|
51
|
+
display: $display;
|
52
|
+
max-width: 100%;
|
53
|
+
height: auto;
|
54
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
//-----------------------------------
|
2
|
+
// LIST MIXINS
|
3
|
+
//-----------------------------------
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @access public
|
7
|
+
/// @group Mixins
|
8
|
+
/// @type string
|
9
|
+
////
|
10
|
+
|
11
|
+
/// Mixin helper to Remove default styling from a list.
|
12
|
+
/// @param {Boolean} $no-margin [true] - If true, top and bottom margins will be removed from the list.
|
13
|
+
/// @example scss - Usage
|
14
|
+
/// .foo {
|
15
|
+
/// @include list-unstyled;
|
16
|
+
/// }
|
17
|
+
/// @example css - Result
|
18
|
+
/// .foo {
|
19
|
+
/// list-style-type: none;
|
20
|
+
/// padding-left: 0;
|
21
|
+
/// margin-top: 0;
|
22
|
+
/// margin-bottom: 0;
|
23
|
+
/// }
|
24
|
+
|
25
|
+
@mixin list-unstyled($no-margin: true) {
|
26
|
+
list-style-type: none;
|
27
|
+
padding-left: 0;
|
28
|
+
@if $no-margin {
|
29
|
+
margin-top: 0;
|
30
|
+
margin-bottom: 0;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
/// Mixin helper to make list inline with separator.
|
35
|
+
/// @param {String} $separator [", "] - separator text
|
36
|
+
/// @param {String} $display [inline-block] - display of each list item
|
37
|
+
/// @param {Boolean} $no-margin [true] - If true, top and bottom margins will be removed from the list.
|
38
|
+
/// @example scss - Usage
|
39
|
+
/// .foo {
|
40
|
+
/// @include list-inline("|");
|
41
|
+
/// }
|
42
|
+
/// @example css - Result
|
43
|
+
/// .foo {
|
44
|
+
/// list-style-type: none;
|
45
|
+
/// padding-left: 0;
|
46
|
+
/// margin-top: 0;
|
47
|
+
/// margin-bottom: 0;
|
48
|
+
/// }
|
49
|
+
///
|
50
|
+
/// .foo > li {
|
51
|
+
/// display: inline-block;
|
52
|
+
/// }
|
53
|
+
///
|
54
|
+
/// .foo > li:not(:last-child):after {
|
55
|
+
/// content: "|";
|
56
|
+
/// display: inline-block;
|
57
|
+
/// margin: 0 1em;
|
58
|
+
/// }
|
59
|
+
|
60
|
+
@mixin list-inline ($separator: ",", $display: inline-block, $no-margin: true) {
|
61
|
+
@include list-unstyled($no-margin);
|
62
|
+
& > li {
|
63
|
+
display: $display;
|
64
|
+
&:not(:last-child):after {
|
65
|
+
content: $separator;
|
66
|
+
display: inline-block;
|
67
|
+
margin: 0 1em;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
//-----------------------------------
|
2
|
+
// MARGIN MIXINS
|
3
|
+
//-----------------------------------
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @access public
|
7
|
+
/// @group Mixins
|
8
|
+
/// @type string
|
9
|
+
////
|
10
|
+
|
11
|
+
/// Mixin helper set margin.
|
12
|
+
/// @param {Length} $value - value you want set
|
13
|
+
/// @param {String} $side [null] - set you side
|
14
|
+
/// @example scss - Usage
|
15
|
+
/// .foo {
|
16
|
+
/// @include margin_set(16px 10px );
|
17
|
+
/// }
|
18
|
+
/// @example css - Result
|
19
|
+
/// .foo {
|
20
|
+
/// margin: 16px 10px;
|
21
|
+
/// }
|
22
|
+
|
23
|
+
@mixin margin-set($value, $side: null) {
|
24
|
+
@if $side {
|
25
|
+
margin: $value;
|
26
|
+
}
|
27
|
+
@else{
|
28
|
+
margin-#{$side}: $value;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
/// Mixin helper set margin auto.
|
33
|
+
/// @example scss - Usage
|
34
|
+
/// .foo {
|
35
|
+
/// @include margin-auto;
|
36
|
+
/// }
|
37
|
+
/// @example css - Result
|
38
|
+
/// .foo {
|
39
|
+
/// margin-left: auto;
|
40
|
+
/// margin-right: auto;
|
41
|
+
/// }
|
42
|
+
|
43
|
+
@mixin margin-auto {
|
44
|
+
margin-left: auto;
|
45
|
+
margin-right: auto;
|
46
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
//-----------------------------------
|
2
|
+
// MEDIA QUERY MIXINS
|
3
|
+
//-----------------------------------
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @access public
|
7
|
+
/// @group Mixins
|
8
|
+
/// @type string
|
9
|
+
////
|
10
|
+
|
11
|
+
/// Mixin helper set media query breakpoint.
|
12
|
+
/// @param {Length} $width - breakpoint width
|
13
|
+
/// @param {String} $type [min] - type of your breakpoint (max, min)
|
14
|
+
/// @example scss - Usage
|
15
|
+
/// .foo {
|
16
|
+
/// @include mquery($screen-md){
|
17
|
+
/// background-color: red;
|
18
|
+
/// }
|
19
|
+
/// }
|
20
|
+
/// @example css - Result
|
21
|
+
/// @media only screen and (min-width: 992px) {
|
22
|
+
/// .foo {
|
23
|
+
/// background-color: red;
|
24
|
+
/// }
|
25
|
+
/// }
|
26
|
+
|
27
|
+
@mixin mquery($width, $type: min) {
|
28
|
+
@if $type == max {
|
29
|
+
$width: $width - 1px;
|
30
|
+
}
|
31
|
+
@media only screen and (#{$type}-width: $width) {
|
32
|
+
@content;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
/// Media query helper for declaring media queries by device pixel ratio.
|
37
|
+
/// @param {Number} $ratio - Min device pixel ratio
|
38
|
+
/// @example scss - Usage
|
39
|
+
/// .foo {
|
40
|
+
/// @include mquery-r(2) {
|
41
|
+
/// width: 100%;
|
42
|
+
/// }
|
43
|
+
/// }
|
44
|
+
|
45
|
+
@mixin mquery-r($ratio) {
|
46
|
+
@media only screen and (-webkit-min-device-pixel-ratio: $ratio), only screen and (min--moz-device-pixel-ratio: $ratio), only screen and (-o-min-device-pixel-ratio: $ratio), only screen and (min-device-pixel-ratio: $ratio) {
|
47
|
+
@content;
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
//-----------------------------------
|
2
|
+
// MISCELLANEOUS MIXINS
|
3
|
+
//-----------------------------------
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @access public
|
7
|
+
/// @group Mixins
|
8
|
+
/// @type string
|
9
|
+
////
|
10
|
+
|
11
|
+
/// Mixin helper to hide element
|
12
|
+
/// @example scss - Usage
|
13
|
+
/// .foo {
|
14
|
+
/// @include hidden;
|
15
|
+
/// }
|
16
|
+
/// @example css - Result
|
17
|
+
/// .foo {
|
18
|
+
/// display: none;
|
19
|
+
/// visibilitty: hidden;
|
20
|
+
/// }
|
21
|
+
|
22
|
+
@mixin hidden {
|
23
|
+
display: none;
|
24
|
+
visibility: hidden;
|
25
|
+
}
|
26
|
+
|
27
|
+
/// Mixin helper to show element
|
28
|
+
/// @param {String} $state [block] - display element;
|
29
|
+
/// @example scss - Usage
|
30
|
+
/// .foo {
|
31
|
+
/// @include visible(inline-block);
|
32
|
+
/// }
|
33
|
+
/// @example css - Result
|
34
|
+
/// .foo {
|
35
|
+
/// display: inline-block
|
36
|
+
/// visibility: visible;
|
37
|
+
/// }
|
38
|
+
|
39
|
+
@mixin visible($state: block) {
|
40
|
+
display: $state;
|
41
|
+
visibility: visible;
|
42
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
//-----------------------------------
|
2
|
+
// PADDING MIXINS
|
3
|
+
//-----------------------------------
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @access public
|
7
|
+
/// @group Mixins
|
8
|
+
/// @type string
|
9
|
+
////
|
10
|
+
|
11
|
+
/// Mixin helper set padding.
|
12
|
+
/// @param {Length} $value - value you want set
|
13
|
+
/// @param {String} $side [null] - set you side
|
14
|
+
/// @example scss - Usage
|
15
|
+
/// .foo {
|
16
|
+
/// @include padding_set(16px 10px );
|
17
|
+
/// }
|
18
|
+
/// @example css - Result
|
19
|
+
/// .foo {
|
20
|
+
/// padding: 16px 10px;
|
21
|
+
/// }
|
22
|
+
|
23
|
+
@mixin padding-set($value, $side: null) {
|
24
|
+
@if $side {
|
25
|
+
padding: $value;
|
26
|
+
}
|
27
|
+
@else{
|
28
|
+
padding-#{$side}: $value;
|
29
|
+
}
|
30
|
+
}
|