-
Notifications
You must be signed in to change notification settings - Fork 204
Expand file tree
/
Copy path_objects.block.scss
More file actions
67 lines (47 loc) · 1.44 KB
/
_objects.block.scss
File metadata and controls
67 lines (47 loc) · 1.44 KB
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
/* ==========================================================================
#BLOCK
========================================================================== */
$inuit-block-spacing: $inuit-global-spacing-unit !default;
$inuit-block-tiny-spacing: $inuit-global-spacing-unit-tiny !default;
$inuit-block-small-spacing: $inuit-global-spacing-unit-small !default;
$inuit-block-large-spacing: $inuit-global-spacing-unit-large !default;
$inuit-block-huge-spacing: $inuit-global-spacing-unit-huge !default;
/**
* Stacked image-with-text object. A simple abstraction to cover a very commonly
* occurring design pattern.
*/
.o-block {
display: block;
text-align: center;
}
.o-block__img {
margin-bottom: $inuit-block-spacing;
/* Size variants
====================================================================== */
.o-block--flush > & {
margin-bottom: 0;
}
.o-block--tiny > & {
margin-bottom: $inuit-block-tiny-spacing;
}
.o-block--small > & {
margin-bottom: $inuit-block-small-spacing;
}
.o-block--large > & {
margin-bottom: $inuit-block-large-spacing;
}
.o-block--huge > & {
margin-bottom: $inuit-block-huge-spacing;
}
}
.o-block__body {
display: block;
}
/* Alignment variants
========================================================================== */
.o-block--right {
text-align: right;
}
.o-block--left {
text-align: left;
}