-
Notifications
You must be signed in to change notification settings - Fork 0
/
_auk-o-flex.scss
113 lines (85 loc) · 2.16 KB
/
_auk-o-flex.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
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
/* ==========================================================================
Object: Flex
---
Object to make a container use flexbox
========================================================================== */
/* Variables
========================================================================== */
$auk-o-flex-gutter-width: 0.8rem !default;
/* Utility classes
========================================================================== */
.auk-o-flex {
display: flex !important;
}
.auk-o-flex--inline {
display: inline-flex !important;
}
.auk-o-flex--vertical {
flex-direction: column !important;
}
.auk-o-flex--vertical-center {
align-items: center !important;
}
.auk-o-flex--horizontal-center {
justify-content: center !important;
}
.auk-o-flex--center {
justify-content: center !important;
align-items: center !important;
}
.auk-o-flex--justify-between {
justify-content: space-between !important;
}
.auk-o-flex--justify-around {
justify-content: space-around !important;
}
.auk-o-flex--justify-end {
justify-content: flex-end !important;
}
.auk-o-flex--align-start {
align-items: flex-start !important;
}
.auk-o-flex--align-end {
align-items: flex-end !important;
}
.auk-o-flex--align-baseline {
align-items: baseline !important;
}
.auk-o-flex--wrap {
flex-wrap: wrap !important;
}
.auk-o-flex--no-wrap {
flex-wrap: nowrap !important;
white-space: nowrap !important;
}
.auk-o-flex--align-self-start {
align-self: flex-start !important;
}
.auk-o-flex--spaced > *:not(:last-child) {
margin-right: $auk-o-flex-gutter-width !important;
}
.auk-o-flex--spaced-wide > *:not(:last-child) {
margin-right: $auk-o-flex-gutter-width * 2 !important;
}
/* Gap classes
========================================================================== */
.auk-o-flex-gap--small {
gap: .5rem;
}
.auk-o-flex-gap--medium {
gap: 1rem;
}
.auk-o-flex-gap--large {
gap: 1.5rem;
}
/* Flexible items
========================================================================== */
.auk-o-flex__item {
flex: 1 !important;
}
.auk-o-flex__item--shrink {
flex: 0 1 0 !important;
}
.auk-o-flex__item--fix {
flex: 0 0 auto !important;
}