hrm_ui_lib 2.0.0-alpha.43 → 2.0.0-alpha.45
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.
- package/assets/styles/helpers/_mixin.scss +326 -464
- package/assets/styles/styles.css +1 -1
- package/components/Alert/Alert.js +6 -6
- package/components/Alert/types.d.ts +1 -2
- package/components/Avatar/Avatar.d.ts +1 -1
- package/components/Avatar/Avatar.js +1 -1
- package/components/Avatar/AvatarGroup.d.ts +1 -1
- package/components/Avatar/AvatarGroup.js +5 -5
- package/components/Avatar/types.d.ts +2 -3
- package/components/Badge/Badge.js +2 -2
- package/components/Badge/types.d.ts +1 -2
- package/components/BadgeV2/BadgeV2.js +1 -1
- package/components/BadgeV2/types.d.ts +2 -2
- package/components/Breadcrumb/Breadcrumb.js +2 -2
- package/components/Breadcrumb/types.d.ts +1 -2
- package/components/Button/Button.js +2 -2
- package/components/Button/types.d.ts +2 -2
- package/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/components/ButtonGroup/ButtonGroup.js +2 -2
- package/components/ButtonGroup/ButtonGroupItem.d.ts +1 -1
- package/components/ButtonGroup/ButtonGroupItem.js +3 -3
- package/components/ButtonGroup/types.d.ts +2 -2
- package/components/Card/Card.d.ts +11 -5
- package/components/Card/CardComponent/Card.d.ts +4 -3
- package/components/Card/CardComponent/Card.js +2 -2
- package/components/Card/CardComponent/CardBody.d.ts +4 -2
- package/components/Card/CardComponent/CardBody.js +2 -2
- package/components/Card/CardComponent/CardFooter.d.ts +4 -2
- package/components/Card/CardComponent/CardFooter.js +1 -1
- package/components/Card/CardComponent/CardHead.d.ts +4 -2
- package/components/Card/CardComponent/CardHead.js +2 -2
- package/components/Card/CardContext.d.ts +2 -2
- package/components/Card/types.d.ts +2 -3
- package/components/CardGroup/CardGroup.d.ts +8 -4
- package/components/CardGroup/CardGroupComponent/CardBody.d.ts +4 -2
- package/components/CardGroup/CardGroupComponent/CardBody.js +2 -2
- package/components/CardGroup/CardGroupComponent/CardGroup.d.ts +4 -3
- package/components/CardGroup/CardGroupComponent/CardGroup.js +2 -2
- package/components/CardGroup/CardGroupComponent/CardHead.d.ts +4 -2
- package/components/CardGroup/CardGroupComponent/CardHead.js +3 -3
- package/components/CardGroup/CardGroupContext.d.ts +2 -2
- package/components/CardGroup/types.d.ts +2 -3
- package/components/Checkbox/Checkbox.js +6 -6
- package/components/Checkbox/types.d.ts +1 -2
- package/components/Chips/Chips.js +2 -2
- package/components/Chips/types.d.ts +2 -2
- package/components/Collapse/Collapse/Collapse.d.ts +2 -2
- package/components/Collapse/Collapse/Collapse.js +5 -5
- package/components/Collapse/Collapse/Title.d.ts +2 -3
- package/components/Collapse/Collapse/Title.js +2 -2
- package/components/Collapse/CollapseGroup/CollapseGroup.d.ts +2 -2
- package/components/Collapse/CollapseGroup/CollapseGroup.js +3 -3
- package/components/Collapse/CollapseItem/CollapseItem.d.ts +2 -2
- package/components/Collapse/CollapseItem/CollapseItem.js +8 -8
- package/components/Collapse/types.d.ts +6 -7
- package/components/Container/Container.d.ts +2 -1
- package/components/Container/Container.js +2 -2
- package/components/Container/types.d.ts +1 -2
- package/components/Copy/Copy.d.ts +1 -1
- package/components/Copy/Copy.js +3 -3
- package/components/Copy/types.d.ts +1 -2
- package/components/Counter/Counter.js +2 -2
- package/components/Counter/types.d.ts +1 -2
- package/components/DatePicker/CustomHeader/CustomHeader.d.ts +1 -2
- package/components/DatePicker/CustomHeader/CustomHeader.js +7 -7
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +4 -4
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +8 -8
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +4 -4
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +5 -5
- package/components/DatePicker/TimePicker/MobileModalContent.d.ts +3 -4
- package/components/DatePicker/TimePicker/MobileModalContent.js +4 -4
- package/components/DatePicker/TimePicker/TimePickerDesktop.js +4 -4
- package/components/DatePicker/TimePicker/TimePickerMobile.js +5 -5
- package/components/DatePicker/types.d.ts +1 -2
- package/components/Divider/Divider.js +2 -2
- package/components/Divider/types.d.ts +1 -2
- package/components/Empty/Empty.js +4 -4
- package/components/Empty/types.d.ts +1 -2
- package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +7 -7
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.d.ts +2 -3
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +1 -1
- package/components/FileUpload/DropzoneFileUpload/FilePreview.d.ts +2 -3
- package/components/FileUpload/DropzoneFileUpload/FilePreview.js +2 -2
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.d.ts +2 -5
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +7 -7
- package/components/FileUpload/FileUpload.js +6 -6
- package/components/FileUpload/UploadItems.js +6 -6
- package/components/FileUpload/types.d.ts +4 -4
- package/components/FormContainer/FormContainer.js +1 -1
- package/components/FormContainer/types.d.ts +1 -2
- package/components/FormField/FormField.js +3 -2
- package/components/FormField/types.d.ts +1 -2
- package/components/Heading/Heading.js +2 -2
- package/components/Heading/types.d.ts +1 -2
- package/components/Image/Image.js +1 -1
- package/components/Image/types.d.ts +1 -2
- package/components/Input/Input.js +9 -9
- package/components/Input/types.d.ts +2 -2
- package/components/Link/Link.js +2 -2
- package/components/Link/types.d.ts +1 -2
- package/components/Menu/Menu.js +3 -3
- package/components/Menu/NestedMenu.d.ts +1 -1
- package/components/Menu/NestedMenu.js +3 -3
- package/components/Menu/types.d.ts +2 -3
- package/components/Modal/Modal.d.ts +1 -6
- package/components/Modal/Modal.js +1 -1
- package/components/Modal/ModalConfirmation.d.ts +1 -1
- package/components/Modal/ModalConfirmation.js +3 -3
- package/components/Modal/ModalContent.d.ts +3 -4
- package/components/Modal/ModalContent.js +5 -5
- package/components/Modal/index.js +1 -1
- package/components/Modal/types.d.ts +2 -3
- package/components/More/More.js +3 -3
- package/components/More/types.d.ts +1 -2
- package/components/Pagination/Pagination.js +2 -2
- package/components/Pagination/types.d.ts +1 -2
- package/components/Popover/PopoverDesktop.js +1 -1
- package/components/Popover/PopoverMobile.js +3 -3
- package/components/Popover/types.d.ts +1 -2
- package/components/Progress/Progress.js +4 -4
- package/components/Progress/types.d.ts +1 -2
- package/components/ProgressStep/ProgressStep.js +2 -2
- package/components/ProgressStep/Step.d.ts +2 -2
- package/components/ProgressStep/Step.js +9 -9
- package/components/ProgressStep/types.d.ts +3 -4
- package/components/Radio/Radio.js +4 -4
- package/components/Radio/RadioGroup.js +4 -4
- package/components/Radio/types.d.ts +2 -3
- package/components/Select/ButtonSelect/ButtonSelect.js +3 -3
- package/components/Select/FilterSelect/FilterDropdown.js +3 -3
- package/components/Select/FilterSelect/FilterGroupDropdown.js +4 -4
- package/components/Select/FilterSelect/FilterSelect.js +4 -4
- package/components/Select/MultiSelect/DesktopWrapper.d.ts +1 -2
- package/components/Select/MultiSelect/DesktopWrapper.js +1 -1
- package/components/Select/MultiSelect/MobileWrapper.d.ts +1 -2
- package/components/Select/MultiSelect/MobileWrapper.js +2 -2
- package/components/Select/MultiSelect/MultiBase/MultiBase.js +5 -5
- package/components/Select/MultiSelect/MultiSelect.js +3 -3
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +7 -7
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +7 -7
- package/components/Select/MultiSelect/OptionsWrapper.d.ts +0 -2
- package/components/Select/MultiSelect/OptionsWrapper.js +1 -1
- package/components/Select/NestedSelect/NestedSelect.js +4 -4
- package/components/Select/ProfileDropdown/index.js +10 -10
- package/components/Select/Select/Select.js +1 -2
- package/components/Select/Select/SelectDesktop/index.js +2 -2
- package/components/Select/Select/SelectMobile/MobileTopContent.d.ts +2 -3
- package/components/Select/Select/SelectMobile/MobileTopContent.js +2 -2
- package/components/Select/Select/SelectMobile/index.js +5 -5
- package/components/Select/SharedComponents/Actions.d.ts +1 -2
- package/components/Select/SharedComponents/Actions.js +3 -3
- package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.d.ts +1 -2
- package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.js +3 -3
- package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +3 -3
- package/components/Select/SharedComponents/ContentTop.d.ts +2 -2
- package/components/Select/SharedComponents/ContentTop.js +3 -3
- package/components/Select/SharedComponents/Footer.js +6 -6
- package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +3 -3
- package/components/Select/SharedComponents/Loading.d.ts +1 -2
- package/components/Select/SharedComponents/Loading.js +2 -2
- package/components/Select/helper.js +0 -0
- package/components/Select/types.d.ts +15 -14
- package/components/SideSheet/Footer/Footer.d.ts +2 -3
- package/components/SideSheet/Footer/Footer.js +5 -5
- package/components/SideSheet/SideSheet.js +8 -8
- package/components/SideSheet/types.d.ts +1 -2
- package/components/Snackbar/Snackbar.js +5 -5
- package/components/Snackbar/types.d.ts +2 -3
- package/components/Status/Status.js +4 -4
- package/components/Status/types.d.ts +2 -2
- package/components/Switcher/Switcher.js +4 -4
- package/components/Switcher/types.d.ts +1 -2
- package/components/Tab/Tab.js +2 -2
- package/components/Tab/TabItem.js +3 -3
- package/components/Tab/types.d.ts +2 -3
- package/components/Table/Header.d.ts +1 -3
- package/components/Table/Header.js +4 -4
- package/components/Table/IndeterminateCheckbox.d.ts +4 -3
- package/components/Table/IndeterminateCheckbox.js +1 -1
- package/components/Table/Row.d.ts +1 -3
- package/components/Table/Row.js +3 -3
- package/components/Table/Table.d.ts +1 -1
- package/components/Table/Table.js +6 -6
- package/components/Table/types.d.ts +1 -2
- package/components/Table/utils.d.ts +1 -2
- package/components/Table/utils.js +2 -2
- package/components/TableV2/AdvancedPagination.d.ts +2 -3
- package/components/TableV2/AdvancedPagination.js +12 -12
- package/components/TableV2/ColumnHeader.d.ts +2 -3
- package/components/TableV2/ColumnHeader.js +6 -6
- package/components/TableV2/ColumnSettings.d.ts +2 -3
- package/components/TableV2/ColumnSettings.js +8 -8
- package/components/TableV2/IndeterminateCheckbox.d.ts +4 -3
- package/components/TableV2/IndeterminateCheckbox.js +2 -2
- package/components/TableV2/Table.d.ts +1 -1
- package/components/TableV2/Table.js +8 -8
- package/components/TableV2/types.d.ts +1 -2
- package/components/Text/Text.js +2 -2
- package/components/Text/types.d.ts +1 -2
- package/components/Textarea/Textarea.js +6 -6
- package/components/Textarea/types.d.ts +1 -2
- package/components/Tooltip/Tooltip.js +1 -1
- package/components/Tooltip/types.d.ts +1 -2
- package/components/UnderConstruction/UnderConstruction.js +6 -6
- package/components/UnderConstruction/types.d.ts +1 -2
- package/helperComponents/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/helperComponents/ErrorMessage/ErrorMessage.js +3 -3
- package/helperComponents/ErrorMessage/types.d.ts +1 -2
- package/helperComponents/Label/Label.js +1 -1
- package/helperComponents/Label/types.d.ts +1 -2
- package/helperComponents/Loader/Loader.js +2 -2
- package/helperComponents/Loader/types.d.ts +1 -2
- package/helperComponents/OptionItem/OptionItem.js +5 -5
- package/helperComponents/OptionItem/types.d.ts +2 -3
- package/hooks/useAnimation.d.ts +12 -0
- package/hooks/useAnimation.js +1 -0
- package/hooks/useEscapeKey.d.ts +5 -0
- package/hooks/useEscapeKey.js +1 -0
- package/package.json +1 -1
- package/type/index.d.ts +0 -1
- package/type/common.d.ts +0 -17
- /package/{type/common.js → components/Select/helper.d.ts} +0 -0
|
@@ -3,302 +3,150 @@
|
|
|
3
3
|
@use "sass:list";
|
|
4
4
|
@use "sass:string";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
$fontFamilyMap: (
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
$fontSizeMap: (
|
|
11
|
-
--font-size-10: 10px,
|
|
12
|
-
--font-size-12: 12px,
|
|
13
|
-
--font-size-14: 14px,
|
|
14
|
-
--font-size-16: 16px,
|
|
15
|
-
--font-size-20: 20px,
|
|
16
|
-
--font-size-24: 24px,
|
|
17
|
-
--font-size-32: 32px,
|
|
18
|
-
--font-size-36: 36px,
|
|
19
|
-
--font-size-40: 40px,
|
|
20
|
-
--font-size-48: 48px,
|
|
21
|
-
--font-size-64: 64px,
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
$fontWeightsMap: (
|
|
25
|
-
--font-weight-400: 400,
|
|
26
|
-
--font-weight-500: 500,
|
|
27
|
-
--font-weight-600: 600,
|
|
28
|
-
--font-weight-700: 700,
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
$spaceMap: (
|
|
32
|
-
--space-4: 4px,
|
|
33
|
-
--space-8: 8px,
|
|
34
|
-
--space-12: 12px,
|
|
35
|
-
--space-16: 16px,
|
|
36
|
-
--space-20: 20px,
|
|
37
|
-
--space-24: 24px,
|
|
38
|
-
--space-32: 32px,
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
$colorMap: (
|
|
43
|
-
brand: (
|
|
44
|
-
base: #72BF44,
|
|
45
|
-
--color-900: #31531C,
|
|
46
|
-
--color-800: #416E26,
|
|
47
|
-
--color-700: #518A2F,
|
|
48
|
-
--color-600: #61A539,
|
|
49
|
-
--color-500: #72BF44,
|
|
50
|
-
--color-400: #80C557,
|
|
51
|
-
--color-300: #8ECC69,
|
|
52
|
-
--color-200: #9CD27C,
|
|
53
|
-
--color-100: #AAD98F,
|
|
54
|
-
--color-50: #B8DFA2,
|
|
55
|
-
--color-40: #CAE7B9,
|
|
56
|
-
--color-30: #DBEFD1,
|
|
57
|
-
--color-20: #EDF7E8,
|
|
58
|
-
),
|
|
59
|
-
green: (
|
|
60
|
-
base: #4DAA5B,
|
|
61
|
-
--color-900: #265B25,
|
|
62
|
-
--color-800: #357939,
|
|
63
|
-
--color-700: #3D8B46,
|
|
64
|
-
--color-600: #469D52,
|
|
65
|
-
--color-500: #4DAA5B,
|
|
66
|
-
--color-400: #5DB773,
|
|
67
|
-
--color-300: #7AC48B,
|
|
68
|
-
--color-200: #9FD4AC,
|
|
69
|
-
--color-100: #C5E5CC,
|
|
70
|
-
--color-50: #E6F4EA,
|
|
71
|
-
),
|
|
72
|
-
blue: (
|
|
73
|
-
base: #3C88F7,
|
|
74
|
-
--color-900: #2443B8,
|
|
75
|
-
--color-800: #2E63D6,
|
|
76
|
-
--color-700: #3475E8,
|
|
77
|
-
--color-600: #3C88F7,
|
|
78
|
-
--color-500: #4396F7,
|
|
79
|
-
--color-400: #54A6F8,
|
|
80
|
-
--color-300: #71B6F9,
|
|
81
|
-
--color-200: #9ACAFA,
|
|
82
|
-
--color-100: #9ACAFA,
|
|
83
|
-
--color-50: #E6F2FE,
|
|
84
|
-
),
|
|
85
|
-
purple: (
|
|
86
|
-
base: #8377D7,
|
|
87
|
-
--color-900: #081FA6,
|
|
88
|
-
--color-800: #0E2AB2,
|
|
89
|
-
--color-700: #2431B9,
|
|
90
|
-
--color-600: #3838C1,
|
|
91
|
-
--color-500: #453DC7,
|
|
92
|
-
--color-400: #6559D0,
|
|
93
|
-
--color-300: #8377D7,
|
|
94
|
-
--color-200: #A89DE2,
|
|
95
|
-
--color-100: #CBC4ED,
|
|
96
|
-
--color-50: #EAE7F7,
|
|
97
|
-
),
|
|
98
|
-
pink: (
|
|
99
|
-
base: #CA024F,
|
|
100
|
-
--color-900: #4A0A20,
|
|
101
|
-
--color-800: #79012F,
|
|
102
|
-
--color-700: #A2023F,
|
|
103
|
-
--color-600: #AD0244,
|
|
104
|
-
--color-500: #CA024F,
|
|
105
|
-
--color-400: #F50260,
|
|
106
|
-
--color-300: #FD2779,
|
|
107
|
-
--color-200: #FE7DAF,
|
|
108
|
-
--color-100: #FEA8C9,
|
|
109
|
-
--color-50: #FFD4E4,
|
|
110
|
-
),
|
|
111
|
-
red: (
|
|
112
|
-
base: #E61B00,
|
|
113
|
-
--color-900: #A41300,
|
|
114
|
-
--color-800: #E61B00,
|
|
115
|
-
--color-700: #FF2103,
|
|
116
|
-
--color-600: #FF391F,
|
|
117
|
-
--color-500: #FF523B,
|
|
118
|
-
--color-400: #FF6B57,
|
|
119
|
-
--color-300: #FF8373,
|
|
120
|
-
--color-200: #FF9C8F,
|
|
121
|
-
--color-100: #FFB5AB,
|
|
122
|
-
--color-50: #FFE2DE,
|
|
123
|
-
),
|
|
124
|
-
yellow: (
|
|
125
|
-
base: #F0B134,
|
|
126
|
-
--color-900: #EB7520,
|
|
127
|
-
--color-800: #ED912A,
|
|
128
|
-
--color-700: #EEA02F,
|
|
129
|
-
--color-600: #F0B134,
|
|
130
|
-
--color-500: #F1BE39,
|
|
131
|
-
--color-400: #F1BE39,
|
|
132
|
-
--color-300: #F4D264,
|
|
133
|
-
--color-200: #F7DE8E,
|
|
134
|
-
--color-100: #FAEBB9,
|
|
135
|
-
--color-50: #FDF7E4,
|
|
136
|
-
),
|
|
137
|
-
grey: (
|
|
138
|
-
base: #222222,
|
|
139
|
-
--color-900: #222222,
|
|
140
|
-
--color-800: #333333,
|
|
141
|
-
--color-700: #555555,
|
|
142
|
-
--color-600: #666666,
|
|
143
|
-
--color-500: #888888,
|
|
144
|
-
--color-400: #AAAAAA,
|
|
145
|
-
--color-300: #BBBBBB,
|
|
146
|
-
--color-200: #BBBBBB,
|
|
147
|
-
--color-100: #DDDDDD,
|
|
148
|
-
--color-50: #ECECEC,
|
|
149
|
-
--color-40: #F4F5F4,
|
|
150
|
-
--color-30: #F7F8F7,
|
|
151
|
-
--color-20: #fafafa,
|
|
152
|
-
),
|
|
153
|
-
white: (
|
|
154
|
-
base: #fcfcfc
|
|
155
|
-
)
|
|
156
|
-
);
|
|
157
|
-
|
|
158
|
-
$tokens: (
|
|
159
|
-
color: $colorMap,
|
|
160
|
-
space: $spaceMap,
|
|
161
|
-
fontSize: $fontSizeMap,
|
|
162
|
-
fontWeight: $fontWeightsMap,
|
|
163
|
-
fontFamily: $fontFamilyMap
|
|
164
|
-
);
|
|
165
|
-
|
|
166
|
-
|
|
167
6
|
//fonts
|
|
168
|
-
|
|
169
|
-
|
|
170
7
|
@mixin font-face($font-name, $file-name, $weight: normal, $style: normal) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
8
|
+
@font-face {
|
|
9
|
+
font-family: string.quote($font-name);
|
|
10
|
+
src: url($file-name + '.ttf') format('truetype');
|
|
11
|
+
font-weight: $weight;
|
|
12
|
+
font-style: $style;
|
|
13
|
+
}
|
|
177
14
|
}
|
|
178
15
|
|
|
179
|
-
|
|
180
16
|
/*******************/
|
|
181
17
|
/********SPACE******/
|
|
182
18
|
/*******************/
|
|
183
19
|
@function getSize($size) {
|
|
184
|
-
|
|
185
|
-
@return map.get($spaceTokens, $size);
|
|
20
|
+
@return var(--size-#{$size});
|
|
186
21
|
}
|
|
187
22
|
|
|
188
23
|
/**padding**/
|
|
189
24
|
@mixin padding($size) {
|
|
190
|
-
|
|
25
|
+
padding: getSize($size);
|
|
191
26
|
}
|
|
27
|
+
|
|
192
28
|
@mixin padding-top($size) {
|
|
193
|
-
|
|
29
|
+
padding-top: getSize($size);
|
|
194
30
|
}
|
|
31
|
+
|
|
195
32
|
@mixin padding-bottom($size) {
|
|
196
|
-
|
|
33
|
+
padding-bottom: getSize($size);
|
|
197
34
|
}
|
|
35
|
+
|
|
198
36
|
@mixin padding-left($size) {
|
|
199
|
-
|
|
37
|
+
padding-left: getSize($size);
|
|
200
38
|
}
|
|
39
|
+
|
|
201
40
|
@mixin padding-right($size) {
|
|
202
|
-
|
|
41
|
+
padding-right: getSize($size);
|
|
203
42
|
}
|
|
43
|
+
|
|
204
44
|
@mixin padding-horizontal($size) {
|
|
205
|
-
|
|
206
|
-
|
|
45
|
+
padding-left: getSize($size);
|
|
46
|
+
padding-right: getSize($size);
|
|
207
47
|
}
|
|
48
|
+
|
|
208
49
|
@mixin padding-vertical($size) {
|
|
209
|
-
|
|
210
|
-
|
|
50
|
+
padding-top: getSize($size);
|
|
51
|
+
padding-bottom: getSize($size);
|
|
211
52
|
}
|
|
53
|
+
|
|
212
54
|
/**margin**/
|
|
213
55
|
@mixin margin($size) {
|
|
214
|
-
|
|
56
|
+
margin: getSize($size);
|
|
215
57
|
}
|
|
58
|
+
|
|
216
59
|
@mixin margin-top($size) {
|
|
217
|
-
|
|
60
|
+
margin-top: getSize($size);
|
|
218
61
|
}
|
|
62
|
+
|
|
219
63
|
@mixin margin-bottom($size) {
|
|
220
|
-
|
|
64
|
+
margin-bottom: getSize($size);
|
|
221
65
|
}
|
|
66
|
+
|
|
222
67
|
@mixin margin-left($size) {
|
|
223
|
-
|
|
68
|
+
margin-left: getSize($size);
|
|
224
69
|
}
|
|
70
|
+
|
|
225
71
|
@mixin margin-right($size) {
|
|
226
|
-
|
|
72
|
+
margin-right: getSize($size);
|
|
227
73
|
}
|
|
74
|
+
|
|
228
75
|
@mixin margin-horizontal($size) {
|
|
229
|
-
|
|
230
|
-
|
|
76
|
+
margin-left: getSize($size);
|
|
77
|
+
margin-right: getSize($size);
|
|
231
78
|
}
|
|
79
|
+
|
|
232
80
|
@mixin margin-vertical($size) {
|
|
233
|
-
|
|
234
|
-
|
|
81
|
+
margin-top: getSize($size);
|
|
82
|
+
margin-bottom: getSize($size);
|
|
235
83
|
}
|
|
236
84
|
|
|
237
85
|
/*******************/
|
|
238
86
|
/********COLOR******/
|
|
239
87
|
/*******************/
|
|
240
|
-
@function getColor($color, $size
|
|
241
|
-
|
|
242
|
-
$selected: map.get($colorTokens, $color);
|
|
243
|
-
@return map.get($selected, $size)
|
|
88
|
+
@function getColor($color, $size) {
|
|
89
|
+
@return var(--#{$color}-#{$size});
|
|
244
90
|
}
|
|
245
91
|
|
|
246
92
|
/**color**/
|
|
247
|
-
@mixin color($color, $size
|
|
248
|
-
|
|
93
|
+
@mixin color($color, $size) {
|
|
94
|
+
color: getColor($color, $size);
|
|
249
95
|
}
|
|
96
|
+
|
|
250
97
|
/**background-color**/
|
|
251
|
-
@mixin background-color($color, $size
|
|
252
|
-
|
|
98
|
+
@mixin background-color($color, $size) {
|
|
99
|
+
background-color: getColor($color, $size);
|
|
253
100
|
}
|
|
254
101
|
|
|
255
|
-
|
|
256
102
|
/*******************/
|
|
257
103
|
/*****Typography****/
|
|
258
104
|
/*******************/
|
|
259
105
|
|
|
260
106
|
/**font-size**/
|
|
261
107
|
@function getFontSize($size) {
|
|
262
|
-
|
|
263
|
-
@return map.get($fontSizeTokens, $size);
|
|
108
|
+
@return var(--font-size-#{$size});
|
|
264
109
|
}
|
|
110
|
+
|
|
265
111
|
@mixin font($size) {
|
|
266
|
-
|
|
112
|
+
font-size: getFontSize($size);
|
|
267
113
|
}
|
|
114
|
+
|
|
268
115
|
/**font-weight**/
|
|
269
116
|
@function getFontWeight($size) {
|
|
270
|
-
|
|
271
|
-
@return map.get($fontWeightTokens, $size);
|
|
117
|
+
@return var(--font-weight-#{$size});
|
|
272
118
|
}
|
|
119
|
+
|
|
273
120
|
@mixin font-weight($size) {
|
|
274
|
-
|
|
121
|
+
font-weight: getFontWeight($size);
|
|
275
122
|
}
|
|
276
123
|
|
|
277
124
|
//animation
|
|
278
125
|
|
|
279
126
|
@mixin keyframes($animation-name) {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
127
|
+
@-webkit-keyframes #{$animation-name} {
|
|
128
|
+
@content;
|
|
129
|
+
}
|
|
130
|
+
@-moz-keyframes #{$animation-name} {
|
|
131
|
+
@content;
|
|
132
|
+
}
|
|
133
|
+
@-ms-keyframes #{$animation-name} {
|
|
134
|
+
@content;
|
|
135
|
+
}
|
|
136
|
+
@-o-keyframes #{$animation-name} {
|
|
137
|
+
@content;
|
|
138
|
+
}
|
|
139
|
+
@keyframes #{$animation-name} {
|
|
140
|
+
@content;
|
|
141
|
+
}
|
|
295
142
|
}
|
|
143
|
+
|
|
296
144
|
@mixin animation($str) {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
145
|
+
-webkit-animation: #{$str};
|
|
146
|
+
-moz-animation: #{$str};
|
|
147
|
+
-ms-animation: #{$str};
|
|
148
|
+
-o-animation: #{$str};
|
|
149
|
+
animation: #{$str};
|
|
302
150
|
}
|
|
303
151
|
|
|
304
152
|
/*animation mixin usage
|
|
@@ -316,14 +164,14 @@ $tokens: (
|
|
|
316
164
|
|
|
317
165
|
//retina images
|
|
318
166
|
@mixin image-2x($image, $width, $height) {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
167
|
+
@media (min--moz-device-pixel-ratio: 1.3),
|
|
168
|
+
(-o-min-device-pixel-ratio: 2.6/2),
|
|
169
|
+
(-webkit-min-device-pixel-ratio: 1.3),
|
|
170
|
+
(min-device-pixel-ratio: 1.3),
|
|
171
|
+
(min-resolution: 1.3dppx) {
|
|
172
|
+
background-image: url($image);
|
|
173
|
+
background-size: $width $height;
|
|
174
|
+
}
|
|
327
175
|
}
|
|
328
176
|
|
|
329
177
|
/*retina images mixin usage
|
|
@@ -337,18 +185,18 @@ div.logo {
|
|
|
337
185
|
|
|
338
186
|
//gradients
|
|
339
187
|
@mixin background-gradient($start-color, $end-color, $orientation) {
|
|
340
|
-
|
|
188
|
+
background: $start-color;
|
|
341
189
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
190
|
+
@if $orientation == 'vertical' {
|
|
191
|
+
background: -webkit-linear-gradient(top, $start-color, $end-color);
|
|
192
|
+
background: linear-gradient(to bottom, $start-color, $end-color);
|
|
193
|
+
} @else if $orientation == 'horizontal' {
|
|
194
|
+
background: -webkit-linear-gradient(left, $start-color, $end-color);
|
|
195
|
+
background: linear-gradient(to right, $start-color, $end-color);
|
|
196
|
+
} @else {
|
|
197
|
+
background: -webkit-radial-gradient(center, ellipse cover, $start-color, $end-color);
|
|
198
|
+
background: radial-gradient(ellipse at center, $start-color, $end-color);
|
|
199
|
+
}
|
|
352
200
|
}
|
|
353
201
|
|
|
354
202
|
/*gradient mixin usage
|
|
@@ -358,49 +206,62 @@ div.logo {
|
|
|
358
206
|
*/
|
|
359
207
|
|
|
360
208
|
//positioning
|
|
361
|
-
@function parseDirections($directions){
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
209
|
+
@function parseDirections($directions) {
|
|
210
|
+
$top: 0;
|
|
211
|
+
$bottom: 0;
|
|
212
|
+
$left: 0;
|
|
213
|
+
$right: 0;
|
|
214
|
+
|
|
215
|
+
@if list.length($directions) > 0 {
|
|
216
|
+
$d1: list.nth($directions, 1);
|
|
217
|
+
$top: $d1;
|
|
218
|
+
$bottom: $d1;
|
|
219
|
+
$left: $d1;
|
|
220
|
+
$right: $d1;
|
|
221
|
+
}
|
|
222
|
+
@if list.length($directions) > 1 {
|
|
223
|
+
$d2: list.nth($directions, 2);
|
|
224
|
+
$left: $d2;
|
|
225
|
+
$right: $d2;
|
|
226
|
+
}
|
|
227
|
+
@if list.length($directions) > 2 {
|
|
228
|
+
$d3: list.nth($directions, 3);
|
|
229
|
+
$bottom: $d3;
|
|
230
|
+
}
|
|
231
|
+
@if list.length($directions) > 3 {
|
|
232
|
+
$d4: list.nth($directions, 4);
|
|
233
|
+
$left: $d4
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@return (
|
|
237
|
+
top: $top,
|
|
238
|
+
bottom: $bottom,
|
|
239
|
+
left: $left,
|
|
240
|
+
right: $right
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@mixin position($positions...) {
|
|
245
|
+
$positions: parseDirections($positions);
|
|
246
|
+
top: map.get($positions, 'top');
|
|
247
|
+
right: map.get($positions, 'right');
|
|
248
|
+
bottom: map.get($positions, 'bottom');
|
|
249
|
+
left: map.get($positions, 'left');
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
@mixin absolute($positions...) {
|
|
253
|
+
position: absolute;
|
|
254
|
+
@include position($positions...);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@mixin fixed($positions...) {
|
|
258
|
+
position: fixed;
|
|
259
|
+
@include position($positions...);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@mixin sticky($positions...) {
|
|
263
|
+
position: sticky;
|
|
264
|
+
@include position($positions...);
|
|
404
265
|
}
|
|
405
266
|
|
|
406
267
|
/*positioning element mixin usage
|
|
@@ -411,27 +272,25 @@ div.logo {
|
|
|
411
272
|
|
|
412
273
|
//centering element
|
|
413
274
|
@mixin center($position) {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
transform: translate(-50%, -50%);
|
|
434
|
-
}
|
|
275
|
+
position: absolute;
|
|
276
|
+
|
|
277
|
+
@if $position == 'vertical' {
|
|
278
|
+
top: 50%;
|
|
279
|
+
-webkit-transform: translateY(-50%);
|
|
280
|
+
-ms-transform: translateY(-50%);
|
|
281
|
+
transform: translateY(-50%);
|
|
282
|
+
} @else if $position == 'horizontal' {
|
|
283
|
+
left: 50%;
|
|
284
|
+
-webkit-transform: translateX(-50%);
|
|
285
|
+
-ms-transform: translateX(-50%);
|
|
286
|
+
transform: translate(-50%);
|
|
287
|
+
} @else if $position == 'both' {
|
|
288
|
+
top: 50%;
|
|
289
|
+
left: 50%;
|
|
290
|
+
-webkit-transform: translate(-50%, -50%);
|
|
291
|
+
-ms-transform: translate(-50%, -50%);
|
|
292
|
+
transform: translate(-50%, -50%);
|
|
293
|
+
}
|
|
435
294
|
}
|
|
436
295
|
|
|
437
296
|
/*centering element mixin usage
|
|
@@ -442,14 +301,16 @@ div.logo {
|
|
|
442
301
|
|
|
443
302
|
//clearfix
|
|
444
303
|
%clearfix {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
304
|
+
*zoom: 1;
|
|
305
|
+
|
|
306
|
+
&:before, &:after {
|
|
307
|
+
content: " ";
|
|
308
|
+
display: table;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
&:after {
|
|
312
|
+
clear: both;
|
|
313
|
+
}
|
|
453
314
|
}
|
|
454
315
|
|
|
455
316
|
/*clearfix mixin usage
|
|
@@ -461,26 +322,27 @@ div.logo {
|
|
|
461
322
|
|
|
462
323
|
//media query
|
|
463
324
|
$breakpoints: (
|
|
464
|
-
"phone":
|
|
465
|
-
"phone-wide":
|
|
466
|
-
"phablet":
|
|
325
|
+
"phone": 400px,
|
|
326
|
+
"phone-wide": 480px,
|
|
327
|
+
"phablet": 576px,
|
|
467
328
|
"tablet-small": 640px,
|
|
468
|
-
"tablet":
|
|
469
|
-
"tablet-wide":
|
|
470
|
-
"desktop":
|
|
329
|
+
"tablet": 768px,
|
|
330
|
+
"tablet-wide": 1024px,
|
|
331
|
+
"desktop": 1248px,
|
|
471
332
|
"desktop-wide": 1440px
|
|
472
333
|
);
|
|
473
334
|
@mixin screen($width, $type: min) {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
335
|
+
@if map.has-key($breakpoints, $width) {
|
|
336
|
+
$width: map.get($breakpoints, $width);
|
|
337
|
+
@if $type == max {
|
|
338
|
+
$width: $width - 1px;
|
|
339
|
+
}
|
|
340
|
+
@media only screen and (#{$type}-width: $width) {
|
|
341
|
+
@content;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
483
344
|
}
|
|
345
|
+
|
|
484
346
|
/*media queries usage
|
|
485
347
|
|
|
486
348
|
.site-header {
|
|
@@ -494,10 +356,10 @@ $breakpoints: (
|
|
|
494
356
|
|
|
495
357
|
//truncation
|
|
496
358
|
@mixin truncate($truncation-boundary) {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
359
|
+
max-width: $truncation-boundary;
|
|
360
|
+
white-space: nowrap;
|
|
361
|
+
overflow: hidden;
|
|
362
|
+
text-overflow: ellipsis;
|
|
501
363
|
}
|
|
502
364
|
|
|
503
365
|
// --------------------------------------------------
|
|
@@ -507,19 +369,19 @@ $breakpoints: (
|
|
|
507
369
|
|
|
508
370
|
// Flexbox display
|
|
509
371
|
@mixin flexbox {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
372
|
+
display: -webkit-box;
|
|
373
|
+
display: -moz-box;
|
|
374
|
+
display: -ms-flexbox;
|
|
375
|
+
display: -webkit-flex;
|
|
376
|
+
display: flex;
|
|
515
377
|
}
|
|
516
378
|
|
|
517
379
|
// Inline flex display
|
|
518
380
|
@mixin inline-flex {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
381
|
+
display: -moz-inline-box;
|
|
382
|
+
display: -webkit-inline-flex;
|
|
383
|
+
display: -ms-inline-flexbox;
|
|
384
|
+
display: inline-flex;
|
|
523
385
|
}
|
|
524
386
|
|
|
525
387
|
// The 'flex' shorthand
|
|
@@ -527,106 +389,106 @@ $breakpoints: (
|
|
|
527
389
|
// <positive-number>, initial, auto, or none
|
|
528
390
|
@mixin flex($fg: 1, $fs: 0, $fb: auto) {
|
|
529
391
|
|
|
530
|
-
|
|
531
|
-
|
|
392
|
+
// Set a variable to be used by box-flex properties
|
|
393
|
+
$fg-boxflex: $fg;
|
|
532
394
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
395
|
+
// Box-Flex only supports a flex-grow value so lets grab the
|
|
396
|
+
// first item in the list and just return that.
|
|
397
|
+
@if meta.type-of($fg) == 'list' {
|
|
398
|
+
$fg-boxflex: list.nth($fg, 1);
|
|
399
|
+
}
|
|
538
400
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
401
|
+
-webkit-box: $fg-boxflex;
|
|
402
|
+
-moz-box: $fg-boxflex;
|
|
403
|
+
-webkit-flex: $fg $fs $fb;
|
|
404
|
+
-ms-flex: $fg $fs $fb;
|
|
405
|
+
flex: $fg $fs $fb;
|
|
544
406
|
}
|
|
545
407
|
|
|
546
408
|
// Flex Flow Direction
|
|
547
409
|
// - applies to: flex containers
|
|
548
410
|
// row (default) | row-reverse | column | column-reverse
|
|
549
411
|
@mixin flex-direction($direction: row) {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
412
|
+
@if $direction == row-reverse {
|
|
413
|
+
-webkit-box-direction: reverse;
|
|
414
|
+
-webkit-box-orient: horizontal;
|
|
415
|
+
-moz-box-direction: reverse;
|
|
416
|
+
-moz-box-orient: horizontal;
|
|
417
|
+
} @else if $direction == column {
|
|
418
|
+
-webkit-box-direction: normal;
|
|
419
|
+
-webkit-box-orient: vertical;
|
|
420
|
+
-moz-box-direction: normal;
|
|
421
|
+
-moz-box-orient: vertical;
|
|
422
|
+
} @else if $direction == column-reverse {
|
|
423
|
+
-webkit-box-direction: reverse;
|
|
424
|
+
-webkit-box-orient: vertical;
|
|
425
|
+
-moz-box-direction: reverse;
|
|
426
|
+
-moz-box-orient: vertical;
|
|
427
|
+
} @else {
|
|
428
|
+
-webkit-box-direction: normal;
|
|
429
|
+
-webkit-box-orient: horizontal;
|
|
430
|
+
-moz-box-direction: normal;
|
|
431
|
+
-moz-box-orient: horizontal;
|
|
432
|
+
}
|
|
433
|
+
-webkit-flex-direction: $direction;
|
|
434
|
+
-ms-flex-direction: $direction;
|
|
435
|
+
flex-direction: $direction;
|
|
574
436
|
}
|
|
575
437
|
|
|
576
438
|
// Flex Line Wrapping
|
|
577
439
|
// - applies to: flex containers
|
|
578
440
|
// nowrap | wrap | wrap-reverse
|
|
579
441
|
@mixin flex-wrap($value: nowrap) {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
442
|
+
// No Webkit/FF Box fallback.
|
|
443
|
+
-webkit-flex-wrap: $value;
|
|
444
|
+
@if $value == nowrap {
|
|
445
|
+
-ms-flex-wrap: nowrap;
|
|
446
|
+
} @else {
|
|
447
|
+
-ms-flex-wrap: $value;
|
|
448
|
+
}
|
|
449
|
+
flex-wrap: $value;
|
|
588
450
|
}
|
|
589
451
|
|
|
590
452
|
// Flex Direction and Wrap
|
|
591
453
|
// - applies to: flex containers
|
|
592
454
|
// <flex-direction> || <flex-wrap>
|
|
593
455
|
@mixin flex-flow($values: (row nowrap)) {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
456
|
+
// No Webkit/FF Box fallback.
|
|
457
|
+
-webkit-flex-flow: $values;
|
|
458
|
+
-ms-flex-flow: $values;
|
|
459
|
+
flex-flow: $values;
|
|
598
460
|
}
|
|
599
461
|
|
|
600
462
|
// Display Order
|
|
601
463
|
// - applies to: flex items
|
|
602
464
|
// <integer>
|
|
603
465
|
@mixin order($int: 0) {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
466
|
+
-webkit-box-ordinal-group: $int + 1;
|
|
467
|
+
-moz-box-ordinal-group: $int + 1;
|
|
468
|
+
-webkit-order: $int;
|
|
469
|
+
-ms-flex-order: $int;
|
|
470
|
+
order: $int;
|
|
609
471
|
}
|
|
610
472
|
|
|
611
473
|
// Flex grow factor
|
|
612
474
|
// - applies to: flex items
|
|
613
475
|
// <number>
|
|
614
476
|
@mixin flex-grow($int: 1) {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
477
|
+
-webkit-box-flex: $int;
|
|
478
|
+
-moz-box-flex: $int;
|
|
479
|
+
-webkit-flex-grow: $int;
|
|
480
|
+
-ms-flex: $int;
|
|
481
|
+
flex-grow: $int;
|
|
620
482
|
}
|
|
621
483
|
|
|
622
484
|
// Flex shrink
|
|
623
485
|
// - applies to: flex item shrink factor
|
|
624
486
|
// <number>
|
|
625
487
|
@mixin flex-shrink($int: 0) {
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
488
|
+
-webkit-flex-shrink: $int;
|
|
489
|
+
-moz-flex-shrink: $int;
|
|
490
|
+
-ms-flex: $int;
|
|
491
|
+
flex-shrink: $int;
|
|
630
492
|
}
|
|
631
493
|
|
|
632
494
|
// Flex basis
|
|
@@ -634,86 +496,86 @@ $breakpoints: (
|
|
|
634
496
|
// - applies to: flex itemsnitial main size of the flex item
|
|
635
497
|
// <width>
|
|
636
498
|
@mixin flex-basis($value: auto) {
|
|
637
|
-
|
|
638
|
-
|
|
499
|
+
-webkit-flex-basis: $value;
|
|
500
|
+
flex-basis: $value;
|
|
639
501
|
}
|
|
640
502
|
|
|
641
503
|
// Axis Alignment
|
|
642
504
|
// - applies to: flex containers
|
|
643
505
|
// flex-start | flex-end | center | space-between | space-around
|
|
644
506
|
@mixin justify-content($value: flex-start) {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
507
|
+
@if $value == flex-start {
|
|
508
|
+
-webkit-box-pack: start;
|
|
509
|
+
-moz-box-pack: start;
|
|
510
|
+
-ms-flex-pack: start;
|
|
511
|
+
} @else if $value == flex-end {
|
|
512
|
+
-webkit-box-pack: end;
|
|
513
|
+
-moz-box-pack: end;
|
|
514
|
+
-ms-flex-pack: end;
|
|
515
|
+
} @else if $value == space-between {
|
|
516
|
+
-webkit-box-pack: justify;
|
|
517
|
+
-moz-box-pack: justify;
|
|
518
|
+
-ms-flex-pack: justify;
|
|
519
|
+
} @else if $value == space-around {
|
|
520
|
+
-ms-flex-pack: distribute;
|
|
521
|
+
} @else {
|
|
522
|
+
-webkit-box-pack: $value;
|
|
523
|
+
-moz-box-pack: $value;
|
|
524
|
+
-ms-flex-pack: $value;
|
|
525
|
+
}
|
|
526
|
+
-webkit-justify-content: $value;
|
|
527
|
+
justify-content: $value;
|
|
666
528
|
}
|
|
667
529
|
|
|
668
530
|
// Packing Flex Lines
|
|
669
531
|
// - applies to: multi-line flex containers
|
|
670
532
|
// flex-start | flex-end | center | space-between | space-around | stretch
|
|
671
533
|
@mixin align-content($value: stretch) {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
534
|
+
// No Webkit Box Fallback.
|
|
535
|
+
-webkit-align-content: $value;
|
|
536
|
+
@if $value == flex-start {
|
|
537
|
+
-ms-flex-line-pack: start;
|
|
538
|
+
} @else if $value == flex-end {
|
|
539
|
+
-ms-flex-line-pack: end;
|
|
540
|
+
} @else {
|
|
541
|
+
-ms-flex-line-pack: $value;
|
|
542
|
+
}
|
|
543
|
+
align-content: $value;
|
|
682
544
|
}
|
|
683
545
|
|
|
684
546
|
// Cross-axis Alignment
|
|
685
547
|
// - applies to: flex containers
|
|
686
548
|
// flex-start | flex-end | center | baseline | stretch
|
|
687
549
|
@mixin align-items($value: stretch) {
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
550
|
+
@if $value == flex-start {
|
|
551
|
+
-webkit-box-align: start;
|
|
552
|
+
-moz-box-align: start;
|
|
553
|
+
-ms-flex-align: start;
|
|
554
|
+
} @else if $value == flex-end {
|
|
555
|
+
-webkit-box-align: end;
|
|
556
|
+
-moz-box-align: end;
|
|
557
|
+
-ms-flex-align: end;
|
|
558
|
+
} @else {
|
|
559
|
+
-webkit-box-align: $value;
|
|
560
|
+
-moz-box-align: $value;
|
|
561
|
+
-ms-flex-align: $value;
|
|
562
|
+
}
|
|
563
|
+
-webkit-align-items: $value;
|
|
564
|
+
align-items: $value;
|
|
703
565
|
}
|
|
704
566
|
|
|
705
567
|
// Cross-axis Alignment
|
|
706
568
|
// - applies to: flex items
|
|
707
569
|
// auto | flex-start | flex-end | center | baseline | stretch
|
|
708
570
|
@mixin align-self($value: auto) {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
571
|
+
// No Webkit Box Fallback.
|
|
572
|
+
-webkit-align-self: $value;
|
|
573
|
+
@if $value == flex-start {
|
|
574
|
+
-ms-flex-item-align: start;
|
|
575
|
+
} @else if $value == flex-end {
|
|
576
|
+
-ms-flex-item-align: end;
|
|
577
|
+
} @else {
|
|
578
|
+
-ms-flex-item-align: $value;
|
|
579
|
+
}
|
|
580
|
+
align-self: $value;
|
|
719
581
|
}
|