@elliemae/ds-basic 3.20.4 → 3.21.0-next.10
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/README.md +13 -1
- package/dist/css/dimsum.css +3 -2
- package/dist/css/dimsum.min.css +1 -1
- package/dist/css/dimsum.min.css.map +1 -1
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/_elements/_elements.scss +65 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/_generic/_general-functions.scss +210 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/_generic/_generic-dir.scss +2 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/_generic/_normalize.scss +353 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/border.scss +21 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/color.scss +77 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/depth.scss +71 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/fonts/font-base.scss +100 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/_grid-var-styles.scss +55 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/functions/_contain.scss +31 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/functions/_purge.scss +38 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/functions/_remove.scss +31 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/functions/_replace.scss +38 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/functions/_to-list.scss +27 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/grid.scss +13 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/helpers/_missing-dependencies.scss +25 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/helpers/_true.scss +13 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/util/_color.scss +5 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/util/_direction.scss +28 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/util/_flex.scss +86 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/util/_math.scss +70 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/util/_mixins.scss +291 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/util/_selector.scss +27 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/util/_unit.scss +151 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/util/_util.scss +8 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/util/_value.scss +164 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/xy-grid/_cell.scss +158 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/xy-grid/_classes.scss +460 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/xy-grid/_collapse.scss +71 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/xy-grid/_frame.scss +76 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/xy-grid/_grid.scss +29 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/xy-grid/_gutters.scss +44 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/xy-grid/_layout.scss +33 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/xy-grid/_position.scss +28 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid/xy-grid/_xy-grid.scss +51 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/grid.scss +8 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/iconography.scss +39 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/index.scss +22 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/motion.scss +18 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/spacing.scss +71 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/typography.scss +37 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-functions/_functions-base.scss +7 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-functions/border-functions.scss +13 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-functions/color-functions.scss +171 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-functions/depth-functions.scss +26 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-functions/iconography-functions.scss +14 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-functions/motion-functions.scss +26 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-functions/spacing-functions.scss +351 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-functions/typography-functions.scss +38 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/_mixins-base.scss +12 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/arrow-mixins.scss +65 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/basic-mixins.scss +132 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/color-mixins.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/depth-mixins.scss +6 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/dimsum-mixins.scss +96 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/font-weight.scss +12 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/iconography-mixins.scss +19 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/media-query-mixins.scss +20 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/motion-mixins.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/spacing-mixins.scss +9 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/target-ie.scss +5 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/base/utility-mixins/typography-mixins.scss +73 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/index.scss +72 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/index.scss +49 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/_elements/_elements.scss +65 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/_generic/_general-functions.scss +210 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/_generic/_generic-dir.scss +2 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/_generic/_normalize.scss +353 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/border.scss +21 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/color.scss +77 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/depth.scss +71 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/fonts/font-base.scss +100 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/_grid-var-styles.scss +55 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/functions/_contain.scss +31 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/functions/_purge.scss +38 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/functions/_remove.scss +31 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/functions/_replace.scss +38 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/functions/_to-list.scss +27 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/grid.scss +13 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/helpers/_missing-dependencies.scss +25 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/helpers/_true.scss +13 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/util/_color.scss +5 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/util/_direction.scss +28 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/util/_flex.scss +86 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/util/_math.scss +70 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/util/_mixins.scss +291 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/util/_selector.scss +27 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/util/_unit.scss +151 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/util/_util.scss +8 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/util/_value.scss +164 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/xy-grid/_cell.scss +158 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/xy-grid/_classes.scss +460 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/xy-grid/_collapse.scss +71 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/xy-grid/_frame.scss +76 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/xy-grid/_grid.scss +29 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/xy-grid/_gutters.scss +44 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/xy-grid/_layout.scss +33 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/xy-grid/_position.scss +28 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid/xy-grid/_xy-grid.scss +51 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/grid.scss +8 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/iconography.scss +39 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/index.scss +22 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/motion.scss +18 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/spacing.scss +71 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/typography.scss +37 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-functions/_functions-base.scss +7 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-functions/border-functions.scss +13 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-functions/color-functions.scss +171 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-functions/depth-functions.scss +26 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-functions/iconography-functions.scss +14 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-functions/motion-functions.scss +26 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-functions/spacing-functions.scss +351 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-functions/typography-functions.scss +38 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/_mixins-base.scss +12 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/arrow-mixins.scss +65 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/basic-mixins.scss +132 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/color-mixins.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/depth-mixins.scss +6 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/dimsum-mixins.scss +96 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/font-weight.scss +12 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/iconography-mixins.scss +19 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/media-query-mixins.scss +20 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/motion-mixins.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/spacing-mixins.scss +9 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/target-ie.scss +5 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/base/utility-mixins/typography-mixins.scss +73 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/components/index.scss +30 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/dimsum-base.scss +9 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/dimsum.scss +10 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/dist-index.scss +72 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/themes/theme-default.scss +101 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-basic/styles/themes/theme-demo.scss +96 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-button-group/DSButtonGroup.scss +74 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-button-v1/DSButton.scss +483 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-card/DSCard.scss +36 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-card-array/DSCardArray.scss +49 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-circular-progress-indicator/DSCircularProgressIndicator.scss +80 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-codeeditor/DSCodeEditor.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-codeeditor/components/DSCodeEditorImpl.scss +69 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/Checkbox/DSCheckbox.scss +94 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/Checkbox/elements/CheckMark.scss +222 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/DSComboBox.scss +2 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v1/DSComboBox.scss +267 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v2/DSComboBox.scss +22 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v2/styles/container.scss +10 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v2/styles/customOptions.scss +39 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v2/styles/dropdownIndicator.scss +15 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v2/styles/indicatorSeparator.scss +8 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v2/styles/menu.scss +26 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v2/styles/optionMultiple.scss +16 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v2/styles/placeholder.scss +12 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v2/styles/valueContainer.scss +24 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/ComboBox/v2/styles/wrapper.scss +43 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/Input/DSInput.scss +280 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/Input/InputAddonWrapper.scss +127 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/Menu/Menu.scss +75 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/Menu/MenuCombobox.scss +20 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/Menu/MenuItems/MenuItem.scss +150 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/Menu/MenuItems/SearchableGroup.scss +14 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-common/SearchBox/DSSearchBox.scss +38 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-datagrids/DataGrids.scss +992 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-datagrids/plugins/grouping-grid/GroupingPlugin.scss +14 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/DSDatePicker.scss +22 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/components/DSDatePickerImpl.scss +246 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/components/DatePickerDay/DatePickerDay.scss +35 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/components/DatePickerHeader/DatePickerHeader.scss +9 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/components/DatePickerNavigation/DatePickerNavigation.scss +26 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/components/DatePickerPicker/DatePickerPicker.scss +13 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/components/DatePickerRange/DatePickerRange.scss +18 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/components/DatePickerRangeHeader/DatePickerRangeHeader.scss +24 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/components/DatePickerSingleDate/DatePickerSingleDate.scss +15 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.scss +21 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-picker/components/helpers/clean.scss +46 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-range-picker/DSDateRangePicker.scss +4 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-range-picker/components/DSDateRangePickerImpl.scss +296 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-range-picker/components/DatePickerLabel/DatePickerLabel.scss +31 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-range-picker/components/DatePickerRangeHeader/DatePickerRangeHeader.scss +10 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-range-selector/DSDateRangeSelector.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-range-selector/components/DateRangeSelectorImpl.scss +0 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-picker/DSDateTimePicker.scss +20 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-picker/components/DateTimePickerImpl.scss +43 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/DSDateTimeRecurrenceSelector.scss +20 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/DateTimeRecurrenceSelectorImpl.scss +31 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/DayOfMonthPicker/DayOfMonthPicker.scss +10 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/DayOfYearPicker/DayOfYearPicker.scss +10 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/DaysOfWeekPicker/DaysOfWeekPicker.scss +131 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/EndDate/EndDate.scss +32 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/FieldWrapper/FieldWrapper.scss +33 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/Forms/Forms.scss +42 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/LabelWrapper/LabelWrapper.scss +4 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/RepeatPickerInput/RepeatPickerInput.scss +11 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/StartDateTime/StartDateTime.scss +46 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/TimeZonePicker/TimeZonePicker.scss +18 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-date-time-recurrence-picker/components/ValidationMessage/ValidationMessage.scss +4 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-dropdownmenu/DSDropdownMenu.scss +131 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-filterbar/DSFilterBar.scss +24 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/CheckboxGroup/DSCheckboxGroup.scss +46 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/DateInput/DSDateInput.scss +52 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/ExpandableInput/DSExpandableInput.scss +88 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/FloatingLabelInput/DSFloatingLabelInput.scss +253 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/FormItem/DSFormItemLayout.scss +130 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/FormItem/Error/DSError.scss +5 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/FormItem/Label/DSLabel.scss +23 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/Input/DSInput.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/Input/InputAddonWrapper.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/InputGroup/DSInputGroup.scss +70 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/InputMask/DSInputMask.scss +133 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/InputProtected/DSInputProtected.scss +0 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/LargeInputText/DSLargeInputText.scss +133 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/Radio/DSRadio.scss +248 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/RadioGroup/DSRadioGroup.scss +44 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/RequiredMark/RequiredMark.scss +19 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/TimeInput/DSTimeInput.scss +73 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-form/Toggle/DSToggle.scss +332 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-group-box/DSGroupBox.scss +11 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-group-box/styles/group.scss +59 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-group-box/styles/label.scss +28 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-group-box/styles/tree.scss +55 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-group-box/styles/wrapper.scss +17 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-imagelibrarymodal/DSImageLibraryModal.scss +88 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-indeterminate-progress-indicator/DSIndeterminateProgressIndicator.scss +237 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-label-value/DSLabelValue.scss +132 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-loading-indicator/DSLoadingIndicator.scss +11 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-menu/Menu.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-menu/MenuCombobox.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-menu/MenuItems/MenuItem.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-menu/MenuItems/SearchableGroup.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-modal/DSModal.scss +2 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-modal/v1/DSModal.scss +179 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-modal/v1/ModalFeedBack/ModalFeedBack.scss +42 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-modal/v2/DSModal.scss +291 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-modal-slide/DSModalSlide.scss +170 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-number-range-field/DSNumberRangeField.scss +2 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-number-range-field/impl/NumberRangeFieldImpl.scss +19 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-overlay/DSOverlay.scss +27 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-page-header/DSPageHeader.scss +1 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-page-header/v1/DSPageHeader.scss +120 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-page-number/DSPageNumber.scss +56 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-pills/DSPills.scss +293 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-popover/DSPopover.scss +64 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-portal/DSPortal.scss +10 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-progress-indicator/DSProgressIndicator.scss +100 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-query-builder/DSQueryBuilder.scss +20 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-query-builder/components/AndOrController/AndOrController.scss +173 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-query-builder/components/ConditionController/ConditionController.scss +60 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-query-builder/components/DisplayOutput/DisplayOutput.scss +26 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-query-builder/components/DragContainerController/DragContainerController.scss +24 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-query-builder/components/DragControllerRow/DragControllerRow.scss +13 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-query-builder/components/FieldControllerRow/FieldControllerRow.scss +88 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-query-builder/components/Nestable/Nestable.scss +134 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-query-builder/components/QueryBuilderItem/QueryBuilderItem.scss +108 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-query-builder/components/QueryBuilderRow/QueryBuilderRow.scss +91 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-ribbon/DSRibbon.scss +4 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-search-field/DSSearchField.scss +2 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-search-field/impl/DSSeachFieldImpl.scss +44 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-separator/DSSeparator.scss +134 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-shuttle/DSShuttle.scss +352 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-spinner/DSSpinner.scss +103 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-text-wrapper/DSTextWrapper.scss +51 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-time-picker/DSTimePicker.scss +217 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-toolbar/DSToolbar.scss +68 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-tooltip/v1/DSTooltip.scss +92 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-treeview/Tree.scss +260 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-truncated-tooltip-text/DSTruncatedTooltipText.scss +15 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-uploader/DSUploader.scss +126 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-wizard/DSWizard.scss +118 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-wysiwygeditor/DSWYSIWYGEditor.scss +2 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-wysiwygeditor/components/DSWYSIWYGEditorImpl.scss +1308 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-wysiwygeditor/components/InsertFieldModal.scss +62 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-zipcode-search/DSZipCodeSearch.scss +8 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/components/packages/ds-zoom/DSZoom.scss +26 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/dimsum-base.scss +9 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/dimsum.scss +10 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/dist-index.scss +72 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/themes/theme-default.scss +101 -0
- package/dist/styles/components/packages/ds-basic/static-build/styles/themes/theme-demo.scss +96 -0
- package/dist/styles/components/packages/ds-card/DSCard.scss +20 -24
- package/dist/styles/components/packages/ds-treeview/Tree.scss +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// Removes all false and null values from `$list`.
|
|
2
|
+
///
|
|
3
|
+
/// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-purge
|
|
4
|
+
///
|
|
5
|
+
/// @requires sl-is-true
|
|
6
|
+
/// @requires sl-to-list
|
|
7
|
+
///
|
|
8
|
+
/// @param {List} $list - list to purge
|
|
9
|
+
///
|
|
10
|
+
/// @example
|
|
11
|
+
/// sl-purge(null a false b)
|
|
12
|
+
/// // a b
|
|
13
|
+
///
|
|
14
|
+
/// @return {List}
|
|
15
|
+
///
|
|
16
|
+
|
|
17
|
+
@function sl-purge($list) {
|
|
18
|
+
$_: sl-missing-dependencies('sl-is-true', 'sl-to-list');
|
|
19
|
+
|
|
20
|
+
$result: ();
|
|
21
|
+
|
|
22
|
+
@each $item in $list {
|
|
23
|
+
@if sl-is-true($item) {
|
|
24
|
+
$result: append($result, $item, list-separator($list));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@return sl-to-list($result);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
///
|
|
32
|
+
/// @requires sl-purge
|
|
33
|
+
/// @alias sl-purge
|
|
34
|
+
///
|
|
35
|
+
|
|
36
|
+
@function sl-clean($list) {
|
|
37
|
+
@return sl-purge($list);
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Removes value(s) `$value` from `$list`.
|
|
3
|
+
///
|
|
4
|
+
/// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-remove
|
|
5
|
+
///
|
|
6
|
+
/// @requires sl-replace
|
|
7
|
+
///
|
|
8
|
+
/// @param {List} $list - list to update
|
|
9
|
+
/// @param {*} $value - value to remove
|
|
10
|
+
///
|
|
11
|
+
/// @example
|
|
12
|
+
/// sl-remove(a b c, a)
|
|
13
|
+
/// // b c
|
|
14
|
+
///
|
|
15
|
+
/// @return {List}
|
|
16
|
+
///
|
|
17
|
+
|
|
18
|
+
@function sl-remove($list, $value) {
|
|
19
|
+
$_: sl-missing-dependencies('sl-replace');
|
|
20
|
+
|
|
21
|
+
@return sl-replace($list, $value, null);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
///
|
|
25
|
+
/// @requires sl-remove
|
|
26
|
+
/// @alias sl-remove
|
|
27
|
+
///
|
|
28
|
+
|
|
29
|
+
@function sl-without($list, $value) {
|
|
30
|
+
@return sl-remove($list, $value);
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// Replaces `$old` by `$new` in `$list`.
|
|
2
|
+
///
|
|
3
|
+
/// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-replace
|
|
4
|
+
|
|
5
|
+
/// @requires sl-is-true
|
|
6
|
+
/// @requires sl-purge
|
|
7
|
+
/// @requires sl-to-list
|
|
8
|
+
|
|
9
|
+
/// @param {List} $list - list to update
|
|
10
|
+
/// @param {*} $old - value to replace
|
|
11
|
+
/// @param {*} $value - new value for $old
|
|
12
|
+
|
|
13
|
+
/// @example
|
|
14
|
+
/// sl-replace(a b c, b, z)
|
|
15
|
+
/// // a z c
|
|
16
|
+
/// @example
|
|
17
|
+
/// sl-replace(a b c, y, z)
|
|
18
|
+
/// // a b c
|
|
19
|
+
|
|
20
|
+
/// @return {List}
|
|
21
|
+
|
|
22
|
+
@function sl-replace($list, $old, $value) {
|
|
23
|
+
$running: true;
|
|
24
|
+
|
|
25
|
+
@while $running {
|
|
26
|
+
$index: index($list, $old);
|
|
27
|
+
|
|
28
|
+
@if not $index {
|
|
29
|
+
$running: false;
|
|
30
|
+
} @else {
|
|
31
|
+
$list: set-nth($list, $index, $value);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
$list: if(sl-is-true($value), $list, sl-purge($list));
|
|
36
|
+
|
|
37
|
+
@return sl-to-list($list);
|
|
38
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Casts `$value` into a list.
|
|
3
|
+
///
|
|
4
|
+
/// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-to-list
|
|
5
|
+
///
|
|
6
|
+
/// @param {*} $value - value to cast to list
|
|
7
|
+
/// @param {String} $separator [space] - separator to use
|
|
8
|
+
///
|
|
9
|
+
/// @example
|
|
10
|
+
/// sl-to-list(a b c, comma)
|
|
11
|
+
/// // a, b, c
|
|
12
|
+
///
|
|
13
|
+
/// @return {List}
|
|
14
|
+
///
|
|
15
|
+
|
|
16
|
+
@function sl-to-list($value, $separator: list-separator($value)) {
|
|
17
|
+
@return join((), $value, $separator);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
///
|
|
21
|
+
/// @requires sl-to-list
|
|
22
|
+
/// @alias sl-to-list
|
|
23
|
+
///
|
|
24
|
+
|
|
25
|
+
@function sl-listify($value) {
|
|
26
|
+
@return sl-to-list($value);
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import './helpers/missing-dependencies';
|
|
2
|
+
@import './helpers/true';
|
|
3
|
+
@import './functions/contain';
|
|
4
|
+
@import './functions/purge';
|
|
5
|
+
@import './functions/remove';
|
|
6
|
+
@import './functions/replace';
|
|
7
|
+
@import './functions/to-list';
|
|
8
|
+
|
|
9
|
+
// variables and styles
|
|
10
|
+
@import '_grid-var-styles';
|
|
11
|
+
|
|
12
|
+
// Components
|
|
13
|
+
@import 'xy-grid/xy-grid';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Checks whether `$functions` exist in global scope.
|
|
3
|
+
///
|
|
4
|
+
/// @access private
|
|
5
|
+
///
|
|
6
|
+
/// @param {ArgList} $functions - list of functions to check for
|
|
7
|
+
///
|
|
8
|
+
/// @return {Bool} Whether or not there are missing dependencies
|
|
9
|
+
///
|
|
10
|
+
|
|
11
|
+
@function sl-missing-dependencies($functions...) {
|
|
12
|
+
$missing-dependencies: ();
|
|
13
|
+
|
|
14
|
+
@each $function in $functions {
|
|
15
|
+
@if not function-exists($function) {
|
|
16
|
+
$missing-dependencies: append($missing-dependencies, $function, comma);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@if length($missing-dependencies) > 0 {
|
|
21
|
+
@error 'Unmet dependencies! The following functions are required: #{$missing-dependencies}.';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@return length($missing-dependencies) > 0;
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Returns truthiness of `$value`.
|
|
3
|
+
///
|
|
4
|
+
/// @access private
|
|
5
|
+
///
|
|
6
|
+
/// @param {*} $value - value to check
|
|
7
|
+
///
|
|
8
|
+
/// @return {Bool}
|
|
9
|
+
///
|
|
10
|
+
|
|
11
|
+
@function sl-is-true($value) {
|
|
12
|
+
@return if($value == null, false, $value and $value != null and $value != '' and $value != ());
|
|
13
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Foundation for Sites by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// @group functions
|
|
7
|
+
////
|
|
8
|
+
|
|
9
|
+
/// Returns the opposite direction of $dir
|
|
10
|
+
///
|
|
11
|
+
/// @param {Keyword} $dir - Used direction between "top", "right", "bottom" and "left".
|
|
12
|
+
/// @return {Keyword} Opposite direction of $dir
|
|
13
|
+
@function direction-opposite($dir) {
|
|
14
|
+
$dirs: (top, right, bottom, left);
|
|
15
|
+
$place: index($dirs, $dir);
|
|
16
|
+
|
|
17
|
+
@if $place == null {
|
|
18
|
+
@error 'direction-opposite: Invalid $dir parameter, expected a value from "#{$dirs}", found "#{$dir}".';
|
|
19
|
+
@return null;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Calcul the opposite place in a circle, with a starting index of 1
|
|
23
|
+
$length: length($dirs);
|
|
24
|
+
$demi: $length / 2;
|
|
25
|
+
$opposite-place: (($place + $demi - 1) % $length) + 1;
|
|
26
|
+
|
|
27
|
+
@return nth($dirs, $opposite-place);
|
|
28
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@function -zf-flex-justify($text-direction) {
|
|
2
|
+
$-zf-flex-justify: (
|
|
3
|
+
'left': if($text-direction == rtl, flex-end, flex-start),
|
|
4
|
+
'right': if($text-direction == rtl, flex-start, flex-end),
|
|
5
|
+
'center': center,
|
|
6
|
+
'justify': space-between,
|
|
7
|
+
'spaced': space-around,
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
@return $-zf-flex-justify;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
$-zf-flex-align: (
|
|
14
|
+
'top': flex-start,
|
|
15
|
+
'bottom': flex-end,
|
|
16
|
+
'middle': center,
|
|
17
|
+
'stretch': stretch,
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
$-zf-flex-direction: (
|
|
21
|
+
'row': row,
|
|
22
|
+
'row-reverse': row-reverse,
|
|
23
|
+
'column': column,
|
|
24
|
+
'column-reverse': column-reverse,
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
/// Enables flexbox by adding `display: flex` to the element.
|
|
28
|
+
@mixin flex {
|
|
29
|
+
display: flex;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/// Horizontally or vertically aligns the items within a flex container.
|
|
33
|
+
///
|
|
34
|
+
/// @param {Keyword} $x [null] - Horizontal alignment to use. Can be `left`, `right`, `center`, `justify`, or `spaced`. Or, set it to `null` (the default) to not set horizontal alignment.
|
|
35
|
+
/// @param {Keyword} $y [null] - Vertical alignment to use. Can be `top`, `bottom`, `middle`, or `stretch`. Or, set it to `null` (the default) to not set vertical alignment.
|
|
36
|
+
@mixin flex-align($x: null, $y: null) {
|
|
37
|
+
@if $x {
|
|
38
|
+
@if map-has-key($-zf-flex-justify, $x) {
|
|
39
|
+
$x: map-get($-zf-flex-justify, $x);
|
|
40
|
+
} @else {
|
|
41
|
+
@warn 'flex-grid-row-align(): #{$x} is not a valid value for horizontal alignment. Use left, right, center, justify, or spaced.';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@if $y {
|
|
46
|
+
@if map-has-key($-zf-flex-align, $y) {
|
|
47
|
+
$y: map-get($-zf-flex-align, $y);
|
|
48
|
+
} @else {
|
|
49
|
+
@warn 'flex-grid-row-align(): #{$y} is not a valid value for vertical alignment. Use top, bottom, middle, or stretch.';
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
justify-content: $x;
|
|
54
|
+
align-items: $y;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/// Vertically align a single column within a flex row. Apply this mixin to a flex column.
|
|
58
|
+
///
|
|
59
|
+
/// @param {Keyword} $y [null] - Vertical alignment to use. Can be `top`, `bottom`, `middle`, or `stretch`. Or, set it to `null` (the default) to not set vertical alignment.
|
|
60
|
+
@mixin flex-align-self($y: null) {
|
|
61
|
+
@if $y {
|
|
62
|
+
@if map-has-key($-zf-flex-align, $y) {
|
|
63
|
+
$y: map-get($-zf-flex-align, $y);
|
|
64
|
+
} @else {
|
|
65
|
+
@warn 'flex-grid-column-align(): #{$y} is not a valid value for alignment. Use top, bottom, middle, or stretch.';
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
align-self: $y;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/// Changes the source order of a flex child. Children with lower numbers appear first in the layout.
|
|
73
|
+
/// @param {Number} $order [0] - Order number to apply.
|
|
74
|
+
@mixin flex-order($order: 0) {
|
|
75
|
+
order: $order;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/// Change flex-direction
|
|
79
|
+
/// @param {Keyword} $direction [row] - Flex direction to use. Can be
|
|
80
|
+
/// - row (default): same as text direction
|
|
81
|
+
/// - row-reverse: opposite to text direction
|
|
82
|
+
/// - column: same as row but top to bottom
|
|
83
|
+
/// - column-reverse: same as row-reverse top to bottom
|
|
84
|
+
@mixin flex-direction($direction: row) {
|
|
85
|
+
flex-direction: $direction;
|
|
86
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// Foundation for Sites by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// @group functions
|
|
7
|
+
////
|
|
8
|
+
|
|
9
|
+
/// Finds the greatest common divisor of two integers.
|
|
10
|
+
///
|
|
11
|
+
/// @param {Number} $a - First number to compare.
|
|
12
|
+
/// @param {Number} $b - Second number to compare.
|
|
13
|
+
///
|
|
14
|
+
/// @returns {Number} The greatest common divisor.
|
|
15
|
+
@function gcd($a, $b) {
|
|
16
|
+
// From: http://rosettacode.org/wiki/Greatest_common_divisor#JavaScript
|
|
17
|
+
@if ($b != 0) {
|
|
18
|
+
@return gcd($b, $a % $b);
|
|
19
|
+
} @else {
|
|
20
|
+
@return abs($a);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/// Handles decimal exponents by trying to convert them into a fraction and then use a nth-root-algorithm for parts of the calculation
|
|
25
|
+
///
|
|
26
|
+
/// @param {Number} $base - The base number.
|
|
27
|
+
/// @param {Number} $exponent - The exponent.
|
|
28
|
+
///
|
|
29
|
+
/// @returns {Number} The product of the exponentiation.
|
|
30
|
+
@function pow($base, $exponent, $prec: 16) {
|
|
31
|
+
@if (floor($exponent) != $exponent) {
|
|
32
|
+
$prec2: pow(10, $prec);
|
|
33
|
+
$exponent: round($exponent * $prec2);
|
|
34
|
+
$denominator: gcd($exponent, $prec2);
|
|
35
|
+
@return nth-root(pow($base, $exponent / $denominator), $prec2 / $denominator, $prec);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
$value: $base;
|
|
39
|
+
@if $exponent > 1 {
|
|
40
|
+
@for $i from 2 through $exponent {
|
|
41
|
+
$value: $value * $base;
|
|
42
|
+
}
|
|
43
|
+
} @else if $exponent < 1 {
|
|
44
|
+
@for $i from 0 through -$exponent {
|
|
45
|
+
$value: $value / $base;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@return $value;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@function nth-root($num, $n: 2, $prec: 12) {
|
|
53
|
+
// From: http://rosettacode.org/wiki/Nth_root#JavaScript
|
|
54
|
+
$x: 1;
|
|
55
|
+
|
|
56
|
+
@for $i from 0 through $prec {
|
|
57
|
+
$x: 1 / $n * (($n - 1) * $x + ($num / pow($x, $n - 1)));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@return $x;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/// Calculates the height as a percentage of the width for a given ratio.
|
|
64
|
+
/// @param {List} $ratio - Ratio to use to calculate the height, formatted as `x by y`.
|
|
65
|
+
/// @return {Number} A percentage value for the height relative to the width of a responsive container.
|
|
66
|
+
@function ratio-to-percentage($ratio) {
|
|
67
|
+
$w: nth($ratio, 1);
|
|
68
|
+
$h: nth($ratio, 3);
|
|
69
|
+
@return $h / $w * 100%;
|
|
70
|
+
}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
// Foundation for Sites by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// @group functions
|
|
7
|
+
////
|
|
8
|
+
|
|
9
|
+
/// Creates an inner box-shadow for only one side
|
|
10
|
+
///
|
|
11
|
+
/// @param {Keyword} $side - Side the shadow is supposed to appear. Can be `top`, `left`, `right` or `bottom`.
|
|
12
|
+
/// @param {Number} $size - Width for the target side.
|
|
13
|
+
/// @param {Color} $color - Color of the shadow.
|
|
14
|
+
@mixin inner-side-shadow($side: bottom, $size: 20px, $color: rgba($black, 0.25)) {
|
|
15
|
+
$helper: round($size * 0.65);
|
|
16
|
+
|
|
17
|
+
@if ($side == top) {
|
|
18
|
+
box-shadow: inset 0 $helper $size (-1) * $helper $color;
|
|
19
|
+
} @else if ($side == left) {
|
|
20
|
+
box-shadow: inset $helper 0 $size (-1) * $helper $color;
|
|
21
|
+
} @else if ($side == right) {
|
|
22
|
+
box-shadow: inset (-1) * $helper 0 $size (-1) * $helper $color;
|
|
23
|
+
} @else if ($side == bottom) {
|
|
24
|
+
box-shadow: inset 0 (-1) * $helper $size (-1) * $helper $color;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/// Creates a CSS triangle, which can be used for dropdown arrows, dropdown pips, and more. Use this mixin inside a `&::before` or `&::after` selector, to attach the triangle to an existing element.
|
|
29
|
+
///
|
|
30
|
+
/// @param {Number} $triangle-size - Width of the triangle.
|
|
31
|
+
/// @param {Color} $triangle-color - Color of the triangle.
|
|
32
|
+
/// @param {Keyword} $triangle-direction - Direction the triangle points. Can be `up`, `right`, `down`, or `left`.
|
|
33
|
+
@mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) {
|
|
34
|
+
display: block;
|
|
35
|
+
width: 0;
|
|
36
|
+
height: 0;
|
|
37
|
+
|
|
38
|
+
border: inset $triangle-size;
|
|
39
|
+
|
|
40
|
+
content: '';
|
|
41
|
+
|
|
42
|
+
@if ($triangle-direction == down) {
|
|
43
|
+
border-bottom-width: 0;
|
|
44
|
+
border-top-style: solid;
|
|
45
|
+
border-color: $triangle-color transparent transparent;
|
|
46
|
+
}
|
|
47
|
+
@if ($triangle-direction == up) {
|
|
48
|
+
border-top-width: 0;
|
|
49
|
+
border-bottom-style: solid;
|
|
50
|
+
border-color: transparent transparent $triangle-color;
|
|
51
|
+
}
|
|
52
|
+
@if ($triangle-direction == right) {
|
|
53
|
+
border-right-width: 0;
|
|
54
|
+
border-left-style: solid;
|
|
55
|
+
border-color: transparent transparent transparent $triangle-color;
|
|
56
|
+
}
|
|
57
|
+
@if ($triangle-direction == left) {
|
|
58
|
+
border-left-width: 0;
|
|
59
|
+
border-right-style: solid;
|
|
60
|
+
border-color: transparent $triangle-color transparent transparent;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/// Creates a menu icon with a set width, height, number of bars, and colors. The mixin uses the height of the icon and the weight of the bars to determine spacing. <div class="docs-example-burger"></div>
|
|
65
|
+
///
|
|
66
|
+
/// @param {Color} $color [$black] - Color to use for the icon.
|
|
67
|
+
/// @param {Color} $color-hover [$dark-gray] - Color to use when the icon is hovered over.
|
|
68
|
+
/// @param {Number} $width [20px] - Width of the icon.
|
|
69
|
+
/// @param {Number} $height [16px] - Height of the icon.
|
|
70
|
+
/// @param {Number} $weight [2px] - Height of individual bars in the icon.
|
|
71
|
+
/// @param {Number} $bars [3] - Number of bars in the icon.
|
|
72
|
+
@mixin hamburger($color: $black, $color-hover: $dark-gray, $width: 20px, $height: 16px, $weight: 2px, $bars: 3) {
|
|
73
|
+
// box-shadow CSS output
|
|
74
|
+
$shadow: ();
|
|
75
|
+
$hover-shadow: ();
|
|
76
|
+
|
|
77
|
+
// Spacing between bars is calculated based on the total height of the icon and the weight of each bar
|
|
78
|
+
$spacing: ($height - ($weight * $bars)) / ($bars - 1);
|
|
79
|
+
|
|
80
|
+
@if unit($spacing) == 'px' {
|
|
81
|
+
$spacing: floor($spacing);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@for $i from 2 through $bars {
|
|
85
|
+
$offset: ($weight + $spacing) * ($i - 1);
|
|
86
|
+
$shadow: append($shadow, 0 $offset 0 $color, comma);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Icon container
|
|
90
|
+
position: relative;
|
|
91
|
+
display: inline-block;
|
|
92
|
+
vertical-align: middle;
|
|
93
|
+
width: $width;
|
|
94
|
+
height: $height;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
|
|
97
|
+
// Icon bars
|
|
98
|
+
&::after {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 0;
|
|
101
|
+
left: 0;
|
|
102
|
+
|
|
103
|
+
display: block;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: $weight;
|
|
106
|
+
|
|
107
|
+
background: $color;
|
|
108
|
+
box-shadow: $shadow;
|
|
109
|
+
|
|
110
|
+
content: '';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Hover state
|
|
114
|
+
@if $color-hover {
|
|
115
|
+
// Generate CSS
|
|
116
|
+
@for $i from 2 through $bars {
|
|
117
|
+
$offset: ($weight + $spacing) * ($i - 1);
|
|
118
|
+
$hover-shadow: append($hover-shadow, 0 $offset 0 $color-hover, comma);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:hover::after {
|
|
122
|
+
background: $color-hover;
|
|
123
|
+
box-shadow: $hover-shadow;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/// Adds a downward-facing triangle as a background image to an element. The image is formatted as an SVG, making it easy to change the color. Because Internet Explorer doesn't support encoded SVGs as background images, a PNG fallback is also included.
|
|
129
|
+
/// There are two PNG fallbacks: a black triangle and a white triangle. The one used depends on the lightness of the input color.
|
|
130
|
+
///
|
|
131
|
+
/// @param {Color} $color [$black] - Color to use for the triangle.
|
|
132
|
+
@mixin background-triangle($color: $black) {
|
|
133
|
+
$rgb: 'rgb%28#{round(red($color))}, #{round(green($color))}, #{round(blue($color))}%29';
|
|
134
|
+
|
|
135
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: #{$rgb}'></polygon></svg>");
|
|
136
|
+
|
|
137
|
+
@media screen and (min-width: 0\0) {
|
|
138
|
+
@if lightness($color) < 60% {
|
|
139
|
+
// White triangle
|
|
140
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAYAAACbU/80AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIpJREFUeNrEkckNgDAMBBfRkEt0ObRBBdsGXUDgmQfK4XhH2m8czQAAy27R3tsw4Qfe2x8uOO6oYLb6GlOor3GF+swURAOmUJ+RwtEJs9WvTGEYxBXqI1MQAZhCfUQKRzDMVj+TwrAIV6jvSUEkYAr1LSkcyTBb/V+KYfX7xAeusq3sLDtGH3kEGACPWIflNZfhRQAAAABJRU5ErkJggg==');
|
|
141
|
+
} @else {
|
|
142
|
+
// Black triangle
|
|
143
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAYAAACbU/80AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMBJREFUeNrEllsOhCAMRVszC9IlzU7KCmVHTJsoMWYMUtpyv9BgbuXQB5ZSdgBYYY4ycgBivk8KYFsQMfMiTTBP4o3nUzCKzOabLJbLy2/g31evGkAginR4/ZegKH5qX3bJCscA3t0x3kgO5tQFyhhFf50xRqFLbyMUNJQzgyjGS/wgCpvKqkRBpuWrE4V9d+1E4dPUXqIg107SQOE/2DRQxMwTDygIInVDET9T3lCoj/6j/VCmGjZOl2lKpZ8AAwDQP7zIimDGFQAAAABJRU5ErkJggg==');
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/// Applies the micro clearfix hack popularized by Nicolas Gallagher. Include this mixin on a container if its children are all floated, to give the container a proper height.
|
|
149
|
+
/// The clearfix is augmented with specific styles to prevent borders in flexbox environments
|
|
150
|
+
/// @link http://nicolasgallagher.com/micro-clearfix-hack/ Micro Clearfix Hack
|
|
151
|
+
/// @link http://danisadesigner.com/blog/flexbox-clear-fix-pseudo-elements/ Flexbox fix
|
|
152
|
+
@mixin clearfix {
|
|
153
|
+
&::before,
|
|
154
|
+
&::after {
|
|
155
|
+
display: table;
|
|
156
|
+
content: ' ';
|
|
157
|
+
|
|
158
|
+
@if $global-flexbox {
|
|
159
|
+
flex-basis: 0;
|
|
160
|
+
order: 1;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&::after {
|
|
165
|
+
clear: both;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/// Adds CSS for a "quantity query" selector that automatically sizes elements based on how many there are inside a container.
|
|
170
|
+
/// @link http://alistapart.com/article/quantity-queries-for-css Quantity Queries for CSS
|
|
171
|
+
///
|
|
172
|
+
/// @param {Number} $max - Maximum number of items to detect. The higher this number is, the more CSS that's required to cover each number of items.
|
|
173
|
+
/// @param {Keyword} $elem [li] - Tag to use for sibling selectors.
|
|
174
|
+
@mixin auto-width($max, $elem: li) {
|
|
175
|
+
@for $i from 2 through $max {
|
|
176
|
+
&:nth-last-child(#{$i}):first-child,
|
|
177
|
+
&:nth-last-child(#{$i}):first-child ~ #{$elem} {
|
|
178
|
+
width: percentage(1 / $i);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/// Removes the focus ring around an element when a mouse input is detected.
|
|
184
|
+
@mixin disable-mouse-outline {
|
|
185
|
+
[data-whatinput='mouse'] & {
|
|
186
|
+
outline: 0;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/// Makes an element visually hidden, but still accessible to keyboards and assistive devices.
|
|
191
|
+
/// @link http://snook.ca/archives/html_and_css/hiding-content-for-accessibility Hiding Content for Accessibility
|
|
192
|
+
/// @link http://hugogiraudel.com/2016/10/13/css-hide-and-seek/
|
|
193
|
+
@mixin element-invisible {
|
|
194
|
+
position: absolute !important;
|
|
195
|
+
width: 1px;
|
|
196
|
+
height: 1px;
|
|
197
|
+
padding: 0;
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
clip: rect(0, 0, 0, 0);
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
clip-path: inset(50%);
|
|
202
|
+
border: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/// Reverses the CSS output created by the `element-invisible()` mixin.
|
|
206
|
+
@mixin element-invisible-off {
|
|
207
|
+
position: static !important;
|
|
208
|
+
width: auto;
|
|
209
|
+
height: auto;
|
|
210
|
+
overflow: visible;
|
|
211
|
+
clip: auto;
|
|
212
|
+
white-space: normal;
|
|
213
|
+
clip-path: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/// Vertically centers the element inside of its first non-static parent,
|
|
217
|
+
/// @link http://www.sitepoint.com/centering-with-sass/ Centering With Sass
|
|
218
|
+
@mixin vertical-center {
|
|
219
|
+
position: absolute;
|
|
220
|
+
top: 50%;
|
|
221
|
+
transform: translateY(-50%);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/// Horizontally centers the element inside of its first non-static parent,
|
|
225
|
+
/// @link http://www.sitepoint.com/centering-with-sass/ Centering With Sass
|
|
226
|
+
@mixin horizontal-center {
|
|
227
|
+
position: absolute;
|
|
228
|
+
left: 50%;
|
|
229
|
+
transform: translateX(-50%);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/// Absolutely centers the element inside of its first non-static parent,
|
|
233
|
+
/// @link http://www.sitepoint.com/centering-with-sass/ Centering With Sass
|
|
234
|
+
@mixin absolute-center {
|
|
235
|
+
position: absolute;
|
|
236
|
+
top: 50%;
|
|
237
|
+
left: 50%;
|
|
238
|
+
transform: translate(-50%, -50%);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/// Iterates through breakpoints defined in `$breakpoint-classes` and prints the CSS inside the mixin at each breakpoint's media query. Use this with the grid, or any other component that has responsive classes.
|
|
242
|
+
///
|
|
243
|
+
/// @param {Boolean} $small [true] - If `false`, the mixin will skip the `small` breakpoint. Use this with components that don't prefix classes with `small-`, only `medium-` and up.
|
|
244
|
+
/// @param {Boolean} $auto-insert-breakpoints [true] - If `false`, the mixin will iterate over breakpoints without doing the media query itself. Useful for more complex media query generation as in the margin grid.
|
|
245
|
+
@mixin -zf-each-breakpoint($small: true, $auto-insert-breakpoints: true) {
|
|
246
|
+
$list: $breakpoint-classes;
|
|
247
|
+
|
|
248
|
+
@if not $small {
|
|
249
|
+
$list: sl-remove($list, $-zf-zero-breakpoint);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
@each $name in $list {
|
|
253
|
+
$-zf-size: $name !global;
|
|
254
|
+
|
|
255
|
+
@if $auto-insert-breakpoints {
|
|
256
|
+
@include breakpoint($name) {
|
|
257
|
+
@content;
|
|
258
|
+
}
|
|
259
|
+
} @else {
|
|
260
|
+
@content;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/// Generate the `@content` passed to the mixin with a value `$-zf-bp-value` related to a breakpoint, depending on the `$name` parameter:
|
|
266
|
+
/// - For a single value, `$-zf-bp-value` is this value.
|
|
267
|
+
/// - For a breakpoint name, `$-zf-bp-value` is the corresponding breakpoint value in `$map`.
|
|
268
|
+
/// - For "auto", `$-zf-bp-value` is the corresponding breakpoint value in `$map` and is passed to `@content`, which is made responsive for each breakpoint of `$map`.
|
|
269
|
+
/// @param {Number|Array|Keyword} $name [auto] - Single value, breakpoint name, or list of breakpoint names to use. "auto" by default.
|
|
270
|
+
/// @param {Number|Map} $map - Map of breakpoints and values or single value to use.
|
|
271
|
+
@mixin -zf-breakpoint-value($name: auto, $map: null) {
|
|
272
|
+
@if $name == auto and type-of($map) == 'map' {
|
|
273
|
+
// "auto"
|
|
274
|
+
@each $k, $v in $map {
|
|
275
|
+
@include breakpoint($k) {
|
|
276
|
+
@include -zf-breakpoint-value($v, $map) {
|
|
277
|
+
@content;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
} @else {
|
|
282
|
+
// breakpoint name
|
|
283
|
+
@if type-of($name) == 'string' {
|
|
284
|
+
$name: -zf-get-bp-val($map, $name);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// breakpoint value
|
|
288
|
+
$-zf-bp-value: $name !global;
|
|
289
|
+
@content;
|
|
290
|
+
}
|
|
291
|
+
}
|