@transferwise/components 46.130.3 → 46.131.0
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/build/main.css +27004 -7
- package/build/styles/css/accordion.css +255 -0
- package/build/styles/css/alerts.css +751 -0
- package/build/styles/css/background.css +20 -0
- package/build/styles/css/badge.css +90 -0
- package/build/styles/css/border-radius.css +3 -0
- package/build/styles/css/breadcrumbs.css +20 -0
- package/build/styles/css/button-groups.css +495 -0
- package/build/styles/css/buttons.css +1390 -0
- package/build/styles/css/chevron.css +35 -0
- package/build/styles/css/circles.css +248 -0
- package/build/styles/css/close.css +47 -0
- package/build/styles/css/column-layout.css +164 -0
- package/build/styles/css/currency-flags.css +46 -0
- package/build/styles/css/decision.css +136 -0
- package/build/styles/css/dropdowns.css +472 -0
- package/build/styles/css/droppable.css +221 -0
- package/build/styles/css/flex.css +598 -0
- package/build/styles/css/footer.css +129 -0
- package/build/styles/css/grid.css +2369 -0
- package/build/styles/css/input-groups.css +2740 -0
- package/build/styles/css/link-callout.css +20 -0
- package/build/styles/css/list-group.css +350 -0
- package/build/styles/css/loaders.css +76 -0
- package/build/styles/css/media.css +74 -0
- package/build/styles/css/modals.css +185 -0
- package/build/styles/css/navbar.css +2406 -0
- package/build/styles/css/navs.css +296 -0
- package/build/styles/css/neptune-social-media.css +144 -0
- package/build/styles/css/neptune.css +25724 -0
- package/build/styles/css/panels.css +528 -0
- package/build/styles/css/popovers.css +661 -0
- package/build/styles/css/process.css +483 -0
- package/build/styles/css/progress-bars.css +64 -0
- package/build/styles/css/ring.css +55 -0
- package/build/styles/css/select.css +99 -0
- package/build/styles/css/sequences.css +855 -0
- package/build/styles/css/table.css +446 -0
- package/build/styles/css/tick.css +32 -0
- package/build/styles/css/tooltip.css +160 -0
- package/build/styles/css/utilities.css +145 -0
- package/build/styles/css/wells.css +74 -0
- package/build/styles/fonts/TW-Averta-Bold.woff +0 -0
- package/build/styles/fonts/TW-Averta-Bold.woff2 +0 -0
- package/build/styles/fonts/TW-Averta-Regular.woff +0 -0
- package/build/styles/fonts/TW-Averta-Regular.woff2 +0 -0
- package/build/styles/fonts/TW-Averta-Semibold.woff +0 -0
- package/build/styles/fonts/TW-Averta-Semibold.woff2 +0 -0
- package/build/styles/fonts/TransferWise-IconFont.svg +81 -0
- package/build/styles/fonts/TransferWise-IconFont.woff +0 -0
- package/build/styles/fonts/WiseSans-Heavy.woff2 +0 -0
- package/build/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/img/bg-dark.svg +31 -0
- package/build/styles/img/bg-light.svg +26 -0
- package/build/styles/less/legacy-variables.css +0 -0
- package/build/styles/less/legacy-variables.less +1299 -0
- package/build/styles/less/neptune-tokens.css +0 -0
- package/build/styles/less/neptune-tokens.less +275 -0
- package/build/styles/less/zindex.css +0 -0
- package/build/styles/less/zindex.less +17 -0
- package/build/styles/main.css +27004 -7
- package/build/styles/props/custom-media.css +11 -0
- package/build/styles/props/legacy-custom-props.css +69 -0
- package/build/styles/props/neptune-tokens.css +152 -0
- package/build/styles/styles/less/accordion.css +255 -0
- package/build/styles/styles/less/alerts.css +751 -0
- package/build/styles/styles/less/background.css +20 -0
- package/build/styles/styles/less/badge.css +90 -0
- package/build/styles/styles/less/border-radius.css +3 -0
- package/build/styles/styles/less/breadcrumbs.css +20 -0
- package/build/styles/styles/less/button-groups.css +495 -0
- package/build/styles/styles/less/buttons.css +1390 -0
- package/build/styles/styles/less/chevron.css +35 -0
- package/build/styles/styles/less/circles.css +248 -0
- package/build/styles/styles/less/close.css +47 -0
- package/build/styles/styles/less/column-layout.css +164 -0
- package/build/styles/styles/less/core/viewport-themes.css +59 -0
- package/build/styles/styles/less/currency-flags.css +46 -0
- package/build/styles/styles/less/decision.css +136 -0
- package/build/styles/styles/less/dropdowns.css +472 -0
- package/build/styles/styles/less/droppable.css +221 -0
- package/build/styles/styles/less/flex.css +598 -0
- package/build/styles/styles/less/footer.css +129 -0
- package/build/styles/styles/less/forms/bootstrap-forms.css +2277 -0
- package/build/styles/styles/less/forms/checkbox-radio.css +367 -0
- package/build/styles/styles/less/grid.css +2369 -0
- package/build/styles/styles/less/input-groups.css +2740 -0
- package/build/styles/styles/less/link-callout.css +20 -0
- package/build/styles/styles/less/list-group.css +350 -0
- package/build/styles/styles/less/loaders.css +76 -0
- package/build/styles/styles/less/media.css +74 -0
- package/build/styles/styles/less/modals.css +185 -0
- package/build/styles/styles/less/navbar.css +2406 -0
- package/build/styles/styles/less/navs.css +296 -0
- package/build/styles/styles/less/neptune-social-media.css +144 -0
- package/build/styles/styles/less/neptune.css +25724 -0
- package/build/styles/styles/less/panels.css +528 -0
- package/build/styles/styles/less/popovers.css +661 -0
- package/build/styles/styles/less/process.css +483 -0
- package/build/styles/styles/less/progress-bars.css +64 -0
- package/build/styles/styles/less/ring.css +55 -0
- package/build/styles/styles/less/select.css +99 -0
- package/build/styles/styles/less/sequences.css +855 -0
- package/build/styles/styles/less/table.css +446 -0
- package/build/styles/styles/less/tick.css +32 -0
- package/build/styles/styles/less/tooltip.css +160 -0
- package/build/styles/styles/less/utilities.css +145 -0
- package/build/styles/styles/less/wells.css +74 -0
- package/build/styles/styles/props/custom-media.css +11 -0
- package/build/styles/styles/props/legacy-custom-props.css +69 -0
- package/build/styles/styles/props/neptune-tokens.css +11 -0
- package/build/styles/styles/variables/legacy-variables.css +0 -0
- package/build/styles/styles/variables/neptune-tokens.css +0 -0
- package/build/styles/styles/variables/zindex.css +0 -0
- package/package.json +9 -5
- package/src/{DisabledComponents.story.tsx → DisabledComponents.test.story.tsx} +1 -1
- package/src/accordion/Accordion.less +3 -3
- package/src/actionButton/ActionButton.less +1 -1
- package/src/actionButton/ActionButton.story.tsx +11 -7
- package/src/actionButton/ActionButton.test.story.tsx +49 -0
- package/src/avatar/Avatar.less +3 -3
- package/src/avatarLayout/AvatarLayout.story.tsx +1 -105
- package/src/avatarLayout/AvatarLayout.test.story.tsx +117 -0
- package/src/avatarView/AvatarView.story.tsx +1 -104
- package/src/avatarView/AvatarView.test.story.tsx +114 -0
- package/src/badge/Badge.less +1 -1
- package/src/button/LegacyButton.less +1 -1
- package/src/button/LegacyButton.story.tsx +1 -26
- package/src/button/LegacyButton.test.story.tsx +37 -0
- package/src/button/_stories/Button.story.tsx +17 -41
- package/src/button/_stories/Button.test.story.tsx +30 -0
- package/src/card/Card.less +3 -3
- package/src/checkbox/Checkbox.story.tsx +1 -6
- package/src/checkbox/Checkbox.test.story.tsx +33 -0
- package/src/checkboxButton/CheckboxButton.less +2 -2
- package/src/chips/Chip.less +3 -3
- package/src/circularButton/CircularButton.story.tsx +0 -6
- package/src/circularButton/CircularButton.test.story.tsx +62 -1
- package/src/common/Option/Option.less +2 -2
- package/src/common/bottomSheet/BottomSheet.less +1 -1
- package/src/common/bottomSheet/BottomSheet.story.tsx +0 -55
- package/src/common/bottomSheet/BottomSheet.test.story.tsx +118 -2
- package/src/common/closeButton/CloseButton.less +1 -1
- package/src/common/panel/Panel.less +1 -1
- package/src/criticalBanner/CriticalCommsBanner.test.story.tsx +1 -1
- package/src/dateLookup/DateLookup.less +1 -1
- package/src/dateLookup/DateLookup.story.tsx +0 -18
- package/src/dateLookup/DateLookup.test.story.tsx +51 -1
- package/src/dateLookup/dateTrigger/DateTrigger.less +2 -2
- package/src/decision/Decision.less +1 -1
- package/src/definitionList/DefinitionList.less +1 -1
- package/src/dimmer/Dimmer.less +2 -2
- package/src/divider/Divider.story.tsx +0 -1
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.autofocus.docs.mdx +1 -1
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +0 -9
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.test.story.tsx +23 -0
- package/src/field/Field.story.tsx +1 -34
- package/src/field/Field.test.story.tsx +56 -0
- package/src/flowNavigation/FlowNavigation.less +1 -1
- package/src/flowNavigation/animatedLabel/AnimatedLabel.less +2 -2
- package/src/header/Header.test.story.tsx +1 -1
- package/src/info/Info.less +1 -1
- package/src/info/Info.story.tsx +1 -34
- package/src/info/Info.test.story.tsx +53 -0
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +0 -12
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.test.story.tsx +33 -0
- package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.less +1 -1
- package/src/inputs/SelectInput/Options/SelectInputOptions.less +1 -1
- package/src/inputs/SelectInput/SelectInput.less +1 -1
- package/src/inputs/_common.less +1 -1
- package/src/legacylistItem/LegacyListItem.test.story.tsx +1 -1
- package/src/link/Link.less +2 -2
- package/src/listItem/ListItem.less +1 -1
- package/src/listItem/_stories/Breakpoints/ListItem.noMedia.test.story.tsx +1 -1
- package/src/listItem/_stories/Breakpoints/ListItem.sideMedia.test.story.tsx +1 -1
- package/src/listItem/_stories/Breakpoints/ListItem.stackedMedia.test.story.tsx +1 -1
- package/src/listItem/_stories/ListItem.focus.test.story.tsx +1 -1
- package/src/listItem/_stories/ListItem.layout.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.brightGreen.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.dark.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.forestGreen.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.medium.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.neutral.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.personal.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.rtl.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.small.test.story.tsx +1 -1
- package/src/logo/Logo.story.tsx +0 -6
- package/src/logo/Logo.test.story.tsx +20 -0
- package/src/main.css +27004 -7
- package/src/main.less +2 -0
- package/src/modal/Modal.story.tsx +0 -26
- package/src/modal/Modal.test.story.tsx +125 -0
- package/src/moneyInput/MoneyInput.less +2 -2
- package/src/moneyInput/MoneyInput.test.story.tsx +1 -1
- package/src/navigationOption/NavigationOption.less +3 -3
- package/src/navigationOptionsList/NavigationOptionsList.less +1 -1
- package/src/overlayHeader/OverlayHeader.less +1 -1
- package/src/phoneNumberInput/PhoneNumberInput.less +1 -1
- package/src/popover/Popover.less +1 -1
- package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +0 -43
- package/src/prompt/ActionPrompt/ActionPrompt.test.story.tsx +45 -1
- package/src/radioGroup/RadioGroup.test.story.tsx +1 -1
- package/src/select/Select.less +5 -5
- package/src/slidingPanel/SlidingPanel.less +2 -2
- package/src/snackbar/Snackbar.less +3 -3
- package/src/stepper/Stepper.less +3 -3
- package/src/stepper/Stepper.test.story.tsx +1 -1
- package/src/styles/fonts/TW-Averta-Bold.woff +0 -0
- package/src/styles/fonts/TW-Averta-Bold.woff2 +0 -0
- package/src/styles/fonts/TW-Averta-Regular.woff +0 -0
- package/src/styles/fonts/TW-Averta-Regular.woff2 +0 -0
- package/src/styles/fonts/TW-Averta-Semibold.woff +0 -0
- package/src/styles/fonts/TW-Averta-Semibold.woff2 +0 -0
- package/src/styles/fonts/TransferWise-IconFont.svg +81 -0
- package/src/styles/fonts/TransferWise-IconFont.woff +0 -0
- package/src/styles/fonts/WiseSans-Heavy.woff2 +0 -0
- package/src/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/img/bg-dark.svg +31 -0
- package/src/styles/img/bg-light.svg +26 -0
- package/src/styles/less/accordion.css +255 -0
- package/src/styles/less/accordion.less +15 -0
- package/src/styles/less/addons/_background-utilities.less +82 -0
- package/src/styles/less/addons/_border.less +3 -0
- package/src/styles/less/addons/_display-utilities.less +159 -0
- package/src/styles/less/addons/_spacing-utilities.less +73 -0
- package/src/styles/less/addons/_utilities.less +147 -0
- package/src/styles/less/alerts.css +751 -0
- package/src/styles/less/alerts.less +252 -0
- package/src/styles/less/background.css +20 -0
- package/src/styles/less/background.less +24 -0
- package/src/styles/less/badge.css +90 -0
- package/src/styles/less/badge.less +85 -0
- package/src/styles/less/border-radius.css +3 -0
- package/src/styles/less/border-radius.less +3 -0
- package/src/styles/less/breadcrumbs.css +20 -0
- package/src/styles/less/breadcrumbs.less +27 -0
- package/src/styles/less/button-groups.css +495 -0
- package/src/styles/less/button-groups.less +424 -0
- package/src/styles/less/buttons.css +1390 -0
- package/src/styles/less/buttons.less +738 -0
- package/src/styles/less/chevron.css +35 -0
- package/src/styles/less/chevron.less +39 -0
- package/src/styles/less/circles.css +248 -0
- package/src/styles/less/circles.less +233 -0
- package/src/styles/less/close.css +47 -0
- package/src/styles/less/close.less +48 -0
- package/src/styles/less/column-layout.css +164 -0
- package/src/styles/less/column-layout.less +167 -0
- package/src/styles/less/components/_component-animations.less +43 -0
- package/src/styles/less/core/_fonts.less +97 -0
- package/src/styles/less/core/_scaffolding.less +380 -0
- package/src/styles/less/core/_typography-utilities.less +255 -0
- package/src/styles/less/core/_typography.less +575 -0
- package/src/styles/less/core/viewport-themes.css +59 -0
- package/src/styles/less/core/viewport-themes.less +65 -0
- package/src/styles/less/currency-flags.css +46 -0
- package/src/styles/less/currency-flags.less +42 -0
- package/src/styles/less/decision.css +136 -0
- package/src/styles/less/decision.less +98 -0
- package/src/styles/less/dropdowns.css +472 -0
- package/src/styles/less/dropdowns.less +365 -0
- package/src/styles/less/droppable.css +221 -0
- package/src/styles/less/droppable.less +213 -0
- package/src/styles/less/flex.css +598 -0
- package/src/styles/less/flex.less +113 -0
- package/src/styles/less/footer.css +129 -0
- package/src/styles/less/footer.less +113 -0
- package/src/styles/less/forms/bootstrap-forms.css +2277 -0
- package/src/styles/less/forms/bootstrap-forms.less +1218 -0
- package/src/styles/less/forms/checkbox-radio.css +367 -0
- package/src/styles/less/forms/checkbox-radio.less +330 -0
- package/src/styles/less/grid.css +2369 -0
- package/src/styles/less/grid.less +187 -0
- package/src/styles/less/input-groups.css +2740 -0
- package/src/styles/less/input-groups.less +298 -0
- package/src/styles/less/link-callout.css +20 -0
- package/src/styles/less/link-callout.less +17 -0
- package/src/styles/less/list-group.css +350 -0
- package/src/styles/less/list-group.less +260 -0
- package/src/styles/less/loaders.css +76 -0
- package/src/styles/less/loaders.less +91 -0
- package/src/styles/less/media.css +74 -0
- package/src/styles/less/media.less +68 -0
- package/src/styles/less/mixins/_alerts.less +39 -0
- package/src/styles/less/mixins/_arrows.less +52 -0
- package/src/styles/less/mixins/_border-radius.less +11 -0
- package/src/styles/less/mixins/_buttons.less +82 -0
- package/src/styles/less/mixins/_center-block.less +7 -0
- package/src/styles/less/mixins/_clearfix.less +23 -0
- package/src/styles/less/mixins/_flex.less +105 -0
- package/src/styles/less/mixins/_forms.less +130 -0
- package/src/styles/less/mixins/_grid-framework.less +104 -0
- package/src/styles/less/mixins/_grid.less +158 -0
- package/src/styles/less/mixins/_hide-text.less +20 -0
- package/src/styles/less/mixins/_links.less +7 -0
- package/src/styles/less/mixins/_list-group.less +23 -0
- package/src/styles/less/mixins/_logical-properties-IE-friendly.less +381 -0
- package/src/styles/less/mixins/_logical-properties-modern-browsers.less +226 -0
- package/src/styles/less/mixins/_logical-properties.less +5 -0
- package/src/styles/less/mixins/_nav-divider.less +10 -0
- package/src/styles/less/mixins/_nav-vertical-align.less +10 -0
- package/src/styles/less/mixins/_panels.less +23 -0
- package/src/styles/less/mixins/_physical-properties.less +110 -0
- package/src/styles/less/mixins/_reset-text.less +22 -0
- package/src/styles/less/mixins/_sequence.less +203 -0
- package/src/styles/less/mixins/_spacing.less +122 -0
- package/src/styles/less/mixins/_tab-focus.less +5 -0
- package/src/styles/less/mixins/_table-row.less +47 -0
- package/src/styles/less/mixins/_text-emphasis.less +39 -0
- package/src/styles/less/mixins/_text-overflow.less +8 -0
- package/src/styles/less/mixins/_theming.less +7 -0
- package/src/styles/less/modals.css +185 -0
- package/src/styles/less/modals.less +239 -0
- package/src/styles/less/navbar.css +2406 -0
- package/src/styles/less/navbar.less +1442 -0
- package/src/styles/less/navs.css +296 -0
- package/src/styles/less/navs.less +339 -0
- package/src/styles/less/neptune-social-media.css +144 -0
- package/src/styles/less/neptune-social-media.less +84 -0
- package/src/styles/less/neptune.bundle.less +63 -0
- package/src/styles/less/neptune.css +25724 -0
- package/src/styles/less/panels.css +528 -0
- package/src/styles/less/panels.less +410 -0
- package/src/styles/less/popovers.css +661 -0
- package/src/styles/less/popovers.less +379 -0
- package/src/styles/less/process.css +483 -0
- package/src/styles/less/process.less +426 -0
- package/src/styles/less/progress-bars.css +64 -0
- package/src/styles/less/progress-bars.less +55 -0
- package/src/styles/less/ring.css +55 -0
- package/src/styles/less/ring.less +51 -0
- package/src/styles/less/select.css +99 -0
- package/src/styles/less/select.less +88 -0
- package/src/styles/less/sequences.css +855 -0
- package/src/styles/less/sequences.less +511 -0
- package/src/styles/less/table.css +446 -0
- package/src/styles/less/table.less +385 -0
- package/src/styles/less/tick.css +32 -0
- package/src/styles/less/tick.less +37 -0
- package/src/styles/less/tooltip.css +160 -0
- package/src/styles/less/tooltip.less +130 -0
- package/src/styles/less/utilities.css +145 -0
- package/src/styles/less/utilities.less +153 -0
- package/src/styles/less/wells.css +74 -0
- package/src/styles/less/wells.less +37 -0
- package/src/styles/props/custom-media.css +11 -0
- package/src/styles/props/legacy-custom-props.css +69 -0
- package/src/styles/props/neptune-tokens.css +11 -0
- package/src/styles/variables/legacy-variables.css +0 -0
- package/src/styles/variables/legacy-variables.less +1299 -0
- package/src/styles/variables/neptune-tokens.css +0 -0
- package/src/styles/variables/neptune-tokens.less +12 -0
- package/src/styles/variables/zindex.css +0 -0
- package/src/styles/variables/zindex.less +17 -0
- package/src/summary/Summary.less +1 -1
- package/src/summary/Summary.test.story.tsx +1 -1
- package/src/switch/Switch.less +4 -4
- package/src/table/Table.less +1 -1
- package/src/tabs/Tabs.less +4 -4
- package/src/tile/Tile.less +1 -1
- package/src/tooltip/Tooltip.less +1 -1
- package/src/tooltip/Tooltip.story.tsx +0 -21
- package/src/tooltip/Tooltip.test.story.tsx +42 -0
- package/src/typeahead/Typeahead.less +2 -2
- package/src/typeahead/Typeahead.story.tsx +0 -52
- package/src/typeahead/Typeahead.test.story.tsx +73 -0
- package/src/typeahead/typeaheadOption/TypeaheadOption.less +1 -1
- package/src/upload/Upload.less +1 -1
- package/src/uploadInput/UploadInput.less +2 -2
- package/src/uploadInput/uploadItem/UploadItem.less +1 -1
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
// Mixin to support Logical properties/values for IE
|
|
2
|
+
|
|
3
|
+
// CSS property: float: Flow-relative values inline-start
|
|
4
|
+
// and inline-end: https://caniuse.com/mdn-css_properties_float_flow_relative_values
|
|
5
|
+
|
|
6
|
+
.float(@direction) {
|
|
7
|
+
& when (@direction = left) {
|
|
8
|
+
[dir="rtl"] & {
|
|
9
|
+
float: right;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
float: @direction;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
& when (@direction = right) {
|
|
16
|
+
[dir="rtl"] & {
|
|
17
|
+
float: left;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
float: @direction;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// CSS property: clear: Flow-relative values inline-start
|
|
25
|
+
// and inline-end: https://caniuse.com/mdn-css_properties_clear_flow_relative_values
|
|
26
|
+
|
|
27
|
+
.clear(@direction) {
|
|
28
|
+
& when (@direction = left) {
|
|
29
|
+
[dir="rtl"] & {
|
|
30
|
+
clear: right;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
clear: @direction;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
& when (@direction = right) {
|
|
37
|
+
[dir="rtl"] & {
|
|
38
|
+
clear: left;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
clear: @direction;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// CSS property: text-align: Flow-relative values start
|
|
46
|
+
// and end: https://caniuse.com/mdn-css_properties_text-align_flow_relative_values_start_and_end
|
|
47
|
+
|
|
48
|
+
.text-align(@direction) {
|
|
49
|
+
& when (@direction = left) {
|
|
50
|
+
[dir="rtl"] & {
|
|
51
|
+
text-align: right;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
text-align: left;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& when (@direction = right) {
|
|
58
|
+
[dir="rtl"] & {
|
|
59
|
+
text-align: left;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
text-align: right;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// CSS Logical Properties: https://caniuse.com/css-logical-props
|
|
67
|
+
|
|
68
|
+
.padding(@direction, @currentDirectionPaddingValue, @oppositeDirectionPaddingValue: initial) {
|
|
69
|
+
& when (@direction = left) {
|
|
70
|
+
[dir="rtl"] & {
|
|
71
|
+
padding-right: @currentDirectionPaddingValue;
|
|
72
|
+
padding-@{direction}: @oppositeDirectionPaddingValue;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
padding-@{direction}: @currentDirectionPaddingValue;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
& when (@direction = right) {
|
|
79
|
+
[dir="rtl"] & {
|
|
80
|
+
padding-left: @currentDirectionPaddingValue;
|
|
81
|
+
padding-@{direction}: @oppositeDirectionPaddingValue;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
padding-@{direction}: @currentDirectionPaddingValue;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.padding-for-spacing(@direction, @value) {
|
|
89
|
+
& when (@direction = left) {
|
|
90
|
+
[dir="rtl"] & {
|
|
91
|
+
padding-right: @value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
html:not([dir="rtl"]) & {
|
|
95
|
+
padding-@{direction}: @value;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
& when (@direction = right) {
|
|
100
|
+
[dir="rtl"] & {
|
|
101
|
+
padding-left: @value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
html:not([dir="rtl"]) & {
|
|
105
|
+
padding-@{direction}: @value;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Use only if the right and left values are different or you have to step up specificity of the padding.
|
|
111
|
+
// Use for single value shorthand
|
|
112
|
+
// 'padding: var(--foo);' -> '.padding-shorthand(var(--foo))'
|
|
113
|
+
// Use for multiple value shorthand
|
|
114
|
+
// 'padding: var(--foo1) var(--foo2) var(--foo3) var(--foo4);' ->
|
|
115
|
+
// '.padding-shorthand(var(--foo1), var(--foo2), var(--foo3), var(--foo4))'
|
|
116
|
+
|
|
117
|
+
.padding-shorthand(@value1, @value2: ~'', @value3: ~'', @value4: ~'') {
|
|
118
|
+
[dir="rtl"] & {
|
|
119
|
+
padding: @value1 @value4 @value3 @value2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
padding: @value1 @value2 @value3 @value4;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// CSS Logical Properties: https://caniuse.com/css-logical-props
|
|
126
|
+
|
|
127
|
+
.margin(@direction, @currentDirectionMarginValue, @oppositeDirectionMarginValue: initial) {
|
|
128
|
+
& when (@direction = left) {
|
|
129
|
+
[dir="rtl"] & {
|
|
130
|
+
margin-right: @currentDirectionMarginValue;
|
|
131
|
+
margin-@{direction}: @oppositeDirectionMarginValue;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
margin-@{direction}: @currentDirectionMarginValue;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
& when (@direction = right) {
|
|
138
|
+
[dir="rtl"] & {
|
|
139
|
+
margin-left: @currentDirectionMarginValue;
|
|
140
|
+
margin-@{direction}: @oppositeDirectionMarginValue;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
margin-@{direction}: @currentDirectionMarginValue;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.margin-for-spacing(@direction, @value) {
|
|
148
|
+
& when (@direction = left) {
|
|
149
|
+
[dir="rtl"] & {
|
|
150
|
+
margin-right: @value;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
html:not([dir="rtl"]) & {
|
|
154
|
+
margin-@{direction}: @value;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
& when (@direction = right) {
|
|
159
|
+
[dir="rtl"] & {
|
|
160
|
+
margin-left: @value;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
html:not([dir="rtl"]) & {
|
|
164
|
+
margin-@{direction}: @value;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// Use only if the right and left values are different or you have to step up specificity of the margin.
|
|
170
|
+
// Use for single value shorthand 'margin: var(--foo);' -> '.margin-shorthand(var(--foo))'
|
|
171
|
+
// Use for multiple value shorthand
|
|
172
|
+
// 'margin: var(--foo1) var(--foo2) var(--foo3) var(--foo4);' ->
|
|
173
|
+
// '.margin-shorthand(var(--foo1), var(--foo2), var(--foo3), var(--foo4))'
|
|
174
|
+
|
|
175
|
+
.margin-shorthand(@value1, @value2: ~'', @value3: ~'', @value4: ~'') {
|
|
176
|
+
[dir="rtl"] & {
|
|
177
|
+
margin: @value1 @value4 @value3 @value2;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
margin: @value1 @value2 @value3 @value4;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// CSS property: inset-inline (positions): https://caniuse.com/mdn-css_properties_inset-inline
|
|
184
|
+
|
|
185
|
+
.left(@currentDirectionPositionValue, @oppositeDirectionPositionValue: initial) {
|
|
186
|
+
[dir="rtl"] & {
|
|
187
|
+
right: @currentDirectionPositionValue;
|
|
188
|
+
left: @oppositeDirectionPositionValue;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
left: @currentDirectionPositionValue;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.right(@currentDirectionPositionValue, @oppositeDirectionPositionValue: initial) {
|
|
195
|
+
[dir="rtl"] & {
|
|
196
|
+
left: @currentDirectionPositionValue;
|
|
197
|
+
right: @oppositeDirectionPositionValue;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
right: @currentDirectionPositionValue;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// CSS property: border-inline-start https://caniuse.com/mdn-css_properties_border-inline-start
|
|
204
|
+
|
|
205
|
+
.border(@direction, @size, @style: ~'', @color: ~'') {
|
|
206
|
+
& when (@direction = left) {
|
|
207
|
+
[dir="rtl"] & {
|
|
208
|
+
border-right: @size @style @color;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
html:not([dir="rtl"]) & {
|
|
212
|
+
border-@{direction}: @size @style @color;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
& when (@direction = right) {
|
|
216
|
+
[dir="rtl"] & {
|
|
217
|
+
border-left: @size @style @color;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
html:not([dir="rtl"]) & {
|
|
221
|
+
border-@{direction}: @size @style @color;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.border-width(@direction, @size) {
|
|
227
|
+
& when (@direction = left) {
|
|
228
|
+
[dir="rtl"] & {
|
|
229
|
+
border-right-width: @size;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
html:not([dir="rtl"]) & {
|
|
233
|
+
border-@{direction}-width: @size;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
& when (@direction = right) {
|
|
238
|
+
[dir="rtl"] & {
|
|
239
|
+
border-left-width: @size;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
html:not([dir="rtl"]) & {
|
|
243
|
+
border-@{direction}-width: @size;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// CSS property: border-start-start-radius: https://caniuse.com/mdn-css_properties_border-start-start-radius
|
|
249
|
+
|
|
250
|
+
// | top-left | top-right |
|
|
251
|
+
// | bottom-left | bottom-right |
|
|
252
|
+
|
|
253
|
+
.border-radius(@direction, @radius) {
|
|
254
|
+
& when (@direction = left) {
|
|
255
|
+
[dir="rtl"] & {
|
|
256
|
+
border-bottom-right-radius: @radius;
|
|
257
|
+
border-top-right-radius: @radius;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
html:not([dir="rtl"]) & {
|
|
261
|
+
border-bottom-@{direction}-radius: @radius;
|
|
262
|
+
border-top-@{direction}-radius: @radius;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
& when (@direction = right) {
|
|
267
|
+
[dir="rtl"] & {
|
|
268
|
+
border-bottom-left-radius: @radius;
|
|
269
|
+
border-top-left-radius: @radius;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
html:not([dir="rtl"]) & {
|
|
273
|
+
border-bottom-@{direction}-radius: @radius;
|
|
274
|
+
border-top-@{direction}-radius: @radius;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.border-top-dir-radius(@direction, @radius) {
|
|
280
|
+
& when (@direction = left) {
|
|
281
|
+
[dir="rtl"] & {
|
|
282
|
+
border-top-right-radius: @radius;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
html:not([dir="rtl"]) & {
|
|
286
|
+
border-top-@{direction}-radius: @radius;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
& when (@direction = right) {
|
|
291
|
+
[dir="rtl"] & {
|
|
292
|
+
border-top-left-radius: @radius;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
html:not([dir="rtl"]) & {
|
|
296
|
+
border-top-@{direction}-radius: @radius;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.border-bottom-dir-radius(@direction, @radius) {
|
|
302
|
+
& when (@direction = left) {
|
|
303
|
+
[dir="rtl"] & {
|
|
304
|
+
border-bottom-right-radius: @radius;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
html:not([dir="rtl"]) & {
|
|
308
|
+
border-bottom-@{direction}-radius: @radius;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
& when (@direction = right) {
|
|
313
|
+
[dir="rtl"] & {
|
|
314
|
+
border-bottom-left-radius: @radius;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
html:not([dir="rtl"]) & {
|
|
318
|
+
border-bottom-@{direction}-radius: @radius;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// Background position
|
|
324
|
+
|
|
325
|
+
.background-position(@direction, @vertical-direction: ~'') {
|
|
326
|
+
& when (@direction = left) {
|
|
327
|
+
[dir="rtl"] & {
|
|
328
|
+
background-position: right @vertical-direction;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
background-position: left @vertical-direction;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
& when (@direction = right) {
|
|
335
|
+
[dir="rtl"] & {
|
|
336
|
+
background-position: left @vertical-direction;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
background-position: right @vertical-direction;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// Horizontal linear gradient
|
|
344
|
+
|
|
345
|
+
.background-linear-gradient(@direction, @color1, @color2) {
|
|
346
|
+
& when (@direction = left) {
|
|
347
|
+
[dir="rtl"] & {
|
|
348
|
+
background: linear-gradient(to right, @color1, @color2);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
background: linear-gradient(to left, @color1, @color2);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
& when (@direction = right) {
|
|
355
|
+
[dir="rtl"] & {
|
|
356
|
+
background: linear-gradient(to left, @color1, @color2);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
background: linear-gradient(to right, @color1, @color2);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// Horizontal translations
|
|
364
|
+
|
|
365
|
+
.translateX(@value, @transform2: ~'', @transform3: ~'') {
|
|
366
|
+
[dir="rtl"] & {
|
|
367
|
+
transform: translateX(@value * -1) @transform2 @transform3;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
transform: translateX(@value) @transform2 @transform3;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// Rotations
|
|
374
|
+
|
|
375
|
+
.rotate(@deg) {
|
|
376
|
+
[dir="rtl"] & {
|
|
377
|
+
transform: rotate(@deg * -1);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
transform: rotate(@deg);
|
|
381
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
|
|
2
|
+
// Mixin to support Logical properties/values for modern browsers
|
|
3
|
+
|
|
4
|
+
// Custom property for the cases which doesn't exist a logical value. (Translations, linear-gradients)
|
|
5
|
+
:root {
|
|
6
|
+
--left: left;
|
|
7
|
+
--right: right;
|
|
8
|
+
|
|
9
|
+
&[dir="rtl"] {
|
|
10
|
+
--left: right;
|
|
11
|
+
--right: left;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// CSS property: float: Flow-relative values inline-start and inline-end: https://caniuse.com/mdn-css_properties_float_flow_relative_values
|
|
16
|
+
// Still needs support in Chrome / Safari / Edge
|
|
17
|
+
|
|
18
|
+
.float(@direction) {
|
|
19
|
+
& when (@direction = left) {
|
|
20
|
+
[dir="rtl"] & {
|
|
21
|
+
float: right;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
float: @direction;
|
|
25
|
+
float: inline-start;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
& when (@direction = right) {
|
|
29
|
+
[dir="rtl"] & {
|
|
30
|
+
float: left;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
float: @direction;
|
|
34
|
+
float: inline-end;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// CSS property: clear: Flow-relative values inline-start and inline-end: https://caniuse.com/mdn-css_properties_clear_flow_relative_values
|
|
39
|
+
|
|
40
|
+
.clear(@direction) {
|
|
41
|
+
& when (@direction = left) {
|
|
42
|
+
[dir="rtl"] & {
|
|
43
|
+
clear: right;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
clear: @direction;
|
|
47
|
+
clear: inline-start;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
& when (@direction = right) {
|
|
51
|
+
[dir="rtl"] & {
|
|
52
|
+
clear: left;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
clear: @direction;
|
|
56
|
+
clear: inline-end;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// CSS property: text-align: Flow-relative values start and end: https://caniuse.com/mdn-css_properties_text-align_flow_relative_values_start_and_end
|
|
61
|
+
|
|
62
|
+
.text-align(@direction) {
|
|
63
|
+
& when (@direction = left) {
|
|
64
|
+
text-align: start;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
& when (@direction = right) {
|
|
68
|
+
text-align: end;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// CSS Logical Properties: https://caniuse.com/css-logical-props
|
|
73
|
+
|
|
74
|
+
.padding(@direction, @value) {
|
|
75
|
+
& when (@direction = left) {
|
|
76
|
+
padding-inline-start: @value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
& when (@direction = right) {
|
|
80
|
+
padding-inline-end: @value;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Use only if the right and left values are different or you have to step up specificity of the padding.
|
|
85
|
+
// Use for single value shorthand 'padding: var(--foo);' -> '.padding-shorthand(var(--foo))'
|
|
86
|
+
// Use for multiple value shorthand 'padding: var(--foo1) var(--foo2) var(--foo3) var(--foo4);' -> '.padding-shorthand(var(--foo1), var(--foo2), var(--foo3), var(--foo4))'
|
|
87
|
+
|
|
88
|
+
.padding-shorthand(@value1, @value2: ~'', @value3: ~'', @value4: ~'') {
|
|
89
|
+
[dir="rtl"] & {
|
|
90
|
+
padding: @value1 @value4 @value3 @value2;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
html:not([dir="rtl"]) & {
|
|
94
|
+
padding: @value1 @value2 @value3 @value4;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// CSS Logical Properties: https://caniuse.com/css-logical-props
|
|
99
|
+
|
|
100
|
+
.margin(@direction, @value) {
|
|
101
|
+
& when (@direction = left) {
|
|
102
|
+
margin-inline-start: @value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
& when (@direction = right) {
|
|
106
|
+
padding-inline-end: @value;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Use only if the right and left values are different or you have to step up specificity of the margin.
|
|
111
|
+
// Use for single value shorthand 'margin: var(--foo);' -> '.margin-shorthand(var(--foo))'
|
|
112
|
+
// Use for multiple value shorthand 'margin: var(--foo1) var(--foo2) var(--foo3) var(--foo4);' -> '.margin-shorthand(var(--foo1), var(--foo2), var(--foo3), var(--foo4))'
|
|
113
|
+
|
|
114
|
+
.margin-shorthand(@value1, @value2: ~'', @value3: ~'', @value4: ~'') {
|
|
115
|
+
[dir="rtl"] & {
|
|
116
|
+
margin: @value1 @value4 @value3 @value2;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
html:not([dir="rtl"]) & {
|
|
120
|
+
margin: @value1 @value2 @value3 @value4;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// CSS property: inset-inline (positions): https://caniuse.com/mdn-css_properties_inset-inline
|
|
125
|
+
|
|
126
|
+
.left(@value) {
|
|
127
|
+
inset-inline-start: @value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.right(@value) {
|
|
131
|
+
inset-inline-end: @value;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// CSS property: border-inline-start https://caniuse.com/mdn-css_properties_border-inline-start
|
|
135
|
+
|
|
136
|
+
.border(@direction, @size, @style: ~'', @color: ~'') {
|
|
137
|
+
& when (@direction = left) {
|
|
138
|
+
border-inline-start: @size @style @color;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
& when (@direction = right) {
|
|
142
|
+
border-inline-end: @size @style @color;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.border-width(@direction, @size) {
|
|
147
|
+
& when (@direction = left) {
|
|
148
|
+
border-inline-start-width: @size;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
& when (@direction = right) {
|
|
152
|
+
border-inline-end-width: @size;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// CSS property: border-start-start-radius: https://caniuse.com/mdn-css_properties_border-start-start-radius
|
|
157
|
+
// Still needs support in Safari
|
|
158
|
+
|
|
159
|
+
// | start-start | start-end |
|
|
160
|
+
// | end-start | end-end |
|
|
161
|
+
|
|
162
|
+
.border-radius(@direction, @radius) {
|
|
163
|
+
& when (@direction = left) {
|
|
164
|
+
border-start-start-radius: @radius;
|
|
165
|
+
border-end-start-radius: @radius;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
& when (@direction = right) {
|
|
169
|
+
border-start-end-radius: @radius;
|
|
170
|
+
border-end-end-radius: @radius;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.border-top-dir-radius(@direction, @radius) {
|
|
175
|
+
& when (@direction = left) {
|
|
176
|
+
border-start-start-radius: @radius;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
& when (@direction = right) {
|
|
180
|
+
border-start-end-radius: @radius;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.border-bottom-dir-radius(@direction, @radius) {
|
|
185
|
+
& when (@direction = left) {
|
|
186
|
+
border-end-start-radius: @radius;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
& when (@direction = right) {
|
|
190
|
+
border-end-end-radius: @radius;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// Background position
|
|
195
|
+
|
|
196
|
+
.background-position(@direction, @vertical-direction: ~'') {
|
|
197
|
+
& when (@direction = left) {
|
|
198
|
+
background-position: var(--left) @vertical-direction;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
& when (@direction = right) {
|
|
202
|
+
background-position: var(--right) @vertical-direction;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// Horizontal linear gradient
|
|
207
|
+
|
|
208
|
+
.background-linear-gradient(@direction, @color1, @color2) {
|
|
209
|
+
& when (@direction = left) {
|
|
210
|
+
background: linear-gradient(to var(--left), @color1, @color2);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
& when (@direction = right) {
|
|
214
|
+
background: linear-gradient(to var(--right), @color1, @color2);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Horizontal translations
|
|
219
|
+
|
|
220
|
+
.translateX(@value, @transform2: ~'', @transform3: ~'') {
|
|
221
|
+
[dir="rtl"] & {
|
|
222
|
+
transform: translateX(@value * -1) @transform2 @transform3;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
transform: translateX(@value) @transform2 @transform3;
|
|
226
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Navbar vertical align
|
|
2
|
+
//
|
|
3
|
+
// Vertically center elements in the navbar.
|
|
4
|
+
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);`
|
|
5
|
+
// to calculate the appropriate top margin.
|
|
6
|
+
|
|
7
|
+
.navbar-vertical-align(@element-height) {
|
|
8
|
+
margin-top: (((@navbar-height - @element-height) / 2) + 1px);
|
|
9
|
+
margin-bottom: (((@navbar-height - @element-height) / 2) - 1px);
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {
|
|
2
|
+
border-color: @border !important;
|
|
3
|
+
|
|
4
|
+
& > .panel-heading {
|
|
5
|
+
color: @heading-text-color;
|
|
6
|
+
border-color: @heading-border;
|
|
7
|
+
|
|
8
|
+
+ .panel-collapse > .panel-body {
|
|
9
|
+
border-top-color: @border;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.badge {
|
|
13
|
+
color: @heading-bg-color;
|
|
14
|
+
background-color: @heading-text-color;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
& > .panel-footer {
|
|
19
|
+
+ .panel-collapse > .panel-body {
|
|
20
|
+
border-bottom-color: @border;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|