-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_objects.responsive-wrapper.scss
82 lines (58 loc) · 2 KB
/
_objects.responsive-wrapper.scss
1
2
3
4
5
6
7
8
9
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
/* ==========================================================================
#WRAPPERS
---
NOTICE: Adapted from https://github.com/inuitcss/inuitcss/blob/develop/objects/_objects.wrapper.scss
========================================================================== */
/**
* Page-level constraining and wrapping elements.
*/
$inuit-wrapper-width: 900px !default;
$inuit-wrapper-width-tiny: 400px !default;
$inuit-wrapper-width-small: 600px !default;
$inuit-wrapper-width-large: 1200px !default;
$inuit-wrapper-width-huge: 1800px !default;
$inuit-wrapper-breakpoint: medium !default;
/* stylelint-disable */
@if (type-of($inuit-wrapper-width) != number) {
@error "`#{$inuit-wrapper-width}` needs to be a number."
}
@if (type-of($inuit-wrapper-width-tiny) != number) {
@error "`#{$inuit-wrapper-width-tiny}` needs to be a number."
}
@if (type-of($inuit-wrapper-width-small) != number) {
@error "`#{$inuit-wrapper-width-small}` needs to be a number."
}
@if (type-of($inuit-wrapper-width-large) != number) {
@error "`#{$inuit-wrapper-width-large}` needs to be a number."
}
@if (type-of($inuit-wrapper-width-huge) != number) {
@error "`#{$inuit-wrapper-width-huge}` needs to be a number."
}
/* stylelint-enable */
/* Default classes.
========================================================================== */
.o-wrapper {
padding-right: $inuit-global-spacing-unit;
padding-left: $inuit-global-spacing-unit;
margin-right: auto;
margin-left: auto;
max-width: $inuit-wrapper-width;
@include mq($inuit-wrapper-breakpoint) {
padding-right: $inuit-global-spacing-unit-large;
padding-left: $inuit-global-spacing-unit-large;
}
}
/* Size variants.
========================================================================== */
.o-wrapper--tiny {
max-width: $inuit-wrapper-width-tiny;
}
.o-wrapper--small {
max-width: $inuit-wrapper-width-small;
}
.o-wrapper--large {
max-width: $inuit-wrapper-width-large;
}
.o-wrapper--huge {
max-width: $inuit-wrapper-width-huge;
}