@propelinc/citrus-ui 0.6.0 → 1.0.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/README.md +54 -60
- package/dist/colors/colors.d.ts +31 -0
- package/dist/colors/theme.d.ts +2 -11
- package/dist/colors/util-classes.d.ts +11 -0
- package/dist/components/CAccordion.vue.d.ts +21 -0
- package/dist/components/CAccordionItem.vue.d.ts +41 -0
- package/dist/components/CAppBar.vue.d.ts +156 -0
- package/dist/components/CBadge.vue.d.ts +52 -0
- package/dist/components/CBottomSheet.vue.d.ts +226 -0
- package/dist/components/CButton/CButton.vue.d.ts +231 -0
- package/dist/components/CButton/types.d.ts +5 -0
- package/dist/components/CButtonStack.vue.d.ts +24 -0
- package/dist/components/CCard.vue.d.ts +107 -0
- package/dist/components/CCardFooter.vue.d.ts +26 -0
- package/dist/components/CCardHeader.vue.d.ts +3 -0
- package/dist/components/CCardSection.vue.d.ts +17 -0
- package/dist/components/CCheckbox.vue.d.ts +145 -0
- package/dist/components/CCol.vue.d.ts +21 -0
- package/dist/components/CDivider.vue.d.ts +17 -0
- package/dist/components/CDobField.vue.d.ts +2109 -0
- package/dist/components/CDobSelect.vue.d.ts +398 -0
- package/dist/components/CEmailField.vue.d.ts +699 -0
- package/dist/components/CExpandTransition.vue.d.ts +19 -0
- package/dist/components/CFadeTransition.vue.d.ts +3 -0
- package/dist/components/CFileInput.vue.d.ts +98 -0
- package/dist/components/CFixedPageFooter.vue.d.ts +106 -0
- package/dist/components/CForm.vue.d.ts +29 -0
- package/dist/components/CFormFieldCounter.vue.d.ts +42 -0
- package/dist/components/CIconButton.vue.d.ts +390 -0
- package/dist/components/CLabel.vue.d.ts +32 -0
- package/dist/components/CListItem.vue.d.ts +208 -0
- package/dist/components/CListItemContent.vue.d.ts +27 -0
- package/dist/components/CListItemIcon.vue.d.ts +54 -0
- package/dist/components/CLoader.vue.d.ts +73 -0
- package/dist/components/CLogo.vue.d.ts +19 -0
- package/dist/components/CMaskedTextField.vue.d.ts +2012 -0
- package/dist/components/CMenu.vue.d.ts +6 -0
- package/dist/components/CMenuItem.vue.d.ts +170 -0
- package/dist/components/CMenuLabel.vue.d.ts +3 -0
- package/dist/components/CModal.vue.d.ts +206 -0
- package/dist/components/CModalLoading.vue.d.ts +230 -0
- package/dist/components/CNotification.vue.d.ts +589 -0
- package/dist/components/CPhoneField.vue.d.ts +2088 -0
- package/dist/components/CPill.vue.d.ts +42 -0
- package/dist/components/CPillGroup.vue.d.ts +70 -0
- package/dist/components/CPopup.vue.d.ts +21 -0
- package/dist/components/CProgressLinear.vue.d.ts +61 -0
- package/dist/components/CProgressRing.vue.d.ts +103 -0
- package/dist/components/CRadio.vue.d.ts +73 -0
- package/dist/components/CRadioGroup.vue.d.ts +123 -0
- package/dist/components/CRebrand.vue.d.ts +28 -0
- package/dist/components/CRow.vue.d.ts +67 -0
- package/dist/components/CSafeArea.vue.d.ts +18 -0
- package/dist/components/CSectionHeader.vue.d.ts +28 -0
- package/dist/components/CSelect.vue.d.ts +293 -0
- package/dist/components/CSkeleton.vue.d.ts +3 -0
- package/dist/components/CSkeletonLoaderCard.vue.d.ts +21 -0
- package/dist/components/CSkeletonLoaderCircle.vue.d.ts +5 -0
- package/dist/components/CSkeletonLoaderText.vue.d.ts +44 -0
- package/dist/components/CSlideFadeTransition.vue.d.ts +58 -0
- package/dist/components/CSplitInput.vue.d.ts +2131 -0
- package/dist/components/CSquaredIcon.vue.d.ts +47 -0
- package/dist/components/CSsnField.vue.d.ts +2083 -0
- package/dist/components/CStatusDot.vue.d.ts +27 -0
- package/dist/components/CSwitch.vue.d.ts +54 -0
- package/dist/components/CSwitchListItem.vue.d.ts +392 -0
- package/dist/components/CTextArea.vue.d.ts +240 -0
- package/dist/components/CTextField.vue.d.ts +647 -0
- package/dist/components/CTextLink.vue.d.ts +55 -0
- package/dist/components/CThirdPartyLogo.vue.d.ts +128 -0
- package/dist/components/CTimeago.vue.d.ts +12 -0
- package/dist/components/CToast.vue.d.ts +458 -0
- package/dist/components/CToastsList.vue.d.ts +430 -0
- package/dist/components/CValidationMessage.vue.d.ts +45 -0
- package/dist/components/CZipcodeField.vue.d.ts +2080 -0
- package/dist/components/index.d.ts +66 -25
- package/dist/components/internal/CCloseButton.vue.d.ts +14 -0
- package/dist/composables/accessibility.d.ts +1 -0
- package/dist/composables/animation.d.ts +12 -0
- package/dist/composables/binding.d.ts +19 -0
- package/dist/composables/colors.d.ts +13 -0
- package/dist/composables/elements.d.ts +3 -0
- package/dist/composables/fields.d.ts +9 -0
- package/dist/composables/gestures.d.ts +53 -0
- package/dist/composables/i18n.d.ts +3 -0
- package/dist/composables/id.d.ts +11 -0
- package/dist/composables/input-mask.d.ts +18 -0
- package/dist/composables/router.d.ts +30 -0
- package/dist/composables/slots.d.ts +2 -0
- package/dist/composables/toast.d.ts +21 -0
- package/dist/composables/validations.d.ts +77 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.mjs +11738 -0
- package/dist/index.mjs.map +1 -0
- package/dist/plugin.d.ts +2 -2
- package/dist/services/animation.d.ts +17 -0
- package/dist/services/directives/index.d.ts +2 -0
- package/dist/services/directives/scroll-into-view.d.ts +7 -0
- package/dist/services/directives/tap-animation.d.ts +6 -0
- package/dist/services/id.d.ts +22 -0
- package/dist/services/injections/accordions.d.ts +3 -0
- package/dist/services/injections/animations.d.ts +2 -0
- package/dist/services/injections/buttons.d.ts +4 -0
- package/dist/services/injections/forms.d.ts +6 -0
- package/dist/services/injections/icon-buttons.d.ts +3 -0
- package/dist/services/injections/pills.d.ts +4 -0
- package/dist/services/injections/radio.d.ts +10 -0
- package/dist/styles/main.css +3002 -0
- package/dist/styles/utils.css +2319 -0
- package/dist/theme/icons.d.ts +35 -2
- package/dist/types/CForm.d.ts +12 -0
- package/dist/types/font-awesome.d.ts +5 -0
- package/dist/types.d.ts +12 -0
- package/index.ts +2 -0
- package/package.json +60 -45
- package/src/assets/fonts/grenette-regular.woff2 +0 -0
- package/src/assets/fonts/grenette-semibold.woff2 +0 -0
- package/src/assets/fonts/polymath.woff2 +0 -0
- package/src/assets/logos/propel/icon.svg +15 -0
- package/src/assets/logos/propel/lockup.svg +11 -0
- package/src/colors/colors.ts +173 -0
- package/src/colors/theme.ts +8 -14
- package/src/colors/util-classes.ts +49 -0
- package/src/componentResolver.js +33 -0
- package/src/components/CAccordion.vue +32 -7
- package/src/components/CAccordionItem.vue +109 -36
- package/src/components/CAppBar.vue +237 -0
- package/src/components/CBadge.vue +74 -0
- package/src/components/CBottomSheet.vue +430 -0
- package/src/components/CButton/CButton.vue +347 -0
- package/src/components/CButton/types.ts +5 -0
- package/src/components/CButtonStack.vue +36 -0
- package/src/components/CCard.vue +149 -41
- package/src/components/CCardFooter.vue +11 -27
- package/src/components/CCardHeader.vue +30 -21
- package/src/components/CCardSection.vue +23 -12
- package/src/components/CCheckbox.vue +191 -21
- package/src/components/CCol.vue +55 -0
- package/src/components/CDivider.vue +46 -0
- package/src/components/CDobField.vue +153 -0
- package/src/components/CDobSelect.vue +274 -0
- package/src/components/CEmailField.vue +61 -0
- package/src/components/CExpandTransition.vue +55 -0
- package/src/components/CFadeTransition.vue +23 -0
- package/src/components/CFileInput.vue +186 -0
- package/src/components/CFixedPageFooter.vue +76 -0
- package/src/components/CForm.vue +86 -0
- package/src/components/CFormFieldCounter.vue +40 -0
- package/src/components/CIconButton.vue +175 -59
- package/src/components/CLabel.vue +52 -0
- package/src/components/CListItem.vue +149 -45
- package/src/components/CListItemContent.vue +60 -0
- package/src/components/CListItemIcon.vue +27 -31
- package/src/components/CLoader.vue +156 -0
- package/src/components/CLogo.vue +23 -0
- package/src/components/CMaskedTextField.vue +118 -0
- package/src/components/CMenu.vue +24 -0
- package/src/components/CMenuItem.vue +106 -0
- package/src/components/CMenuLabel.vue +26 -0
- package/src/components/CModal.vue +198 -79
- package/src/components/CModalLoading.vue +27 -9
- package/src/components/CNotification.vue +86 -53
- package/src/components/CPhoneField.vue +69 -0
- package/src/components/CPill.vue +162 -0
- package/src/components/CPillGroup.vue +73 -0
- package/src/components/CPopup.vue +66 -0
- package/src/components/CProgressLinear.vue +52 -0
- package/src/components/CProgressRing.vue +126 -0
- package/src/components/CRadio.vue +138 -0
- package/src/components/CRadioGroup.vue +142 -0
- package/src/components/CRebrand.vue +28 -0
- package/src/components/CRow.vue +62 -0
- package/src/components/CSafeArea.vue +23 -0
- package/src/components/CSectionHeader.vue +50 -0
- package/src/components/CSelect.vue +223 -74
- package/src/components/CSkeleton.vue +65 -0
- package/src/components/CSkeletonLoaderCard.vue +29 -0
- package/src/components/CSkeletonLoaderCircle.vue +18 -14
- package/src/components/CSkeletonLoaderText.vue +127 -17
- package/src/components/CSlideFadeTransition.vue +100 -0
- package/src/components/CSplitInput.vue +111 -0
- package/src/components/CSquaredIcon.vue +83 -0
- package/src/components/CSsnField.vue +86 -0
- package/src/components/CStatusDot.vue +70 -0
- package/src/components/CSwitch.vue +125 -0
- package/src/components/CSwitchListItem.vue +110 -0
- package/src/components/CTextArea.vue +193 -47
- package/src/components/CTextField.vue +450 -93
- package/src/components/CTextLink.vue +48 -38
- package/src/components/CThirdPartyLogo.vue +127 -0
- package/src/components/CTimeago.vue +63 -0
- package/src/components/CToast.vue +259 -0
- package/src/components/CToastsList.vue +32 -0
- package/src/components/CValidationMessage.vue +70 -0
- package/src/components/CZipcodeField.vue +69 -0
- package/src/components/index.ts +66 -25
- package/src/components/internal/CCloseButton.vue +57 -0
- package/src/composables/accessibility.ts +29 -0
- package/src/composables/animation.ts +95 -0
- package/src/composables/binding.ts +34 -0
- package/src/composables/colors.ts +59 -0
- package/src/composables/elements.ts +72 -0
- package/src/composables/fields.ts +19 -0
- package/src/composables/gestures.ts +197 -0
- package/src/composables/i18n.ts +13 -0
- package/src/composables/id.ts +23 -0
- package/src/composables/input-mask.ts +139 -0
- package/src/composables/router.ts +64 -0
- package/src/composables/slots.ts +57 -0
- package/src/composables/toast.ts +64 -0
- package/src/composables/validations.ts +214 -0
- package/src/index.ts +7 -7
- package/src/plugin.ts +13 -6
- package/src/services/animation.ts +101 -0
- package/src/services/directives/index.ts +2 -0
- package/src/services/directives/scroll-into-view.ts +86 -0
- package/src/services/directives/tap-animation.ts +71 -0
- package/src/services/id.ts +31 -0
- package/src/services/injections/accordions.ts +4 -0
- package/src/services/injections/animations.ts +3 -0
- package/src/services/injections/buttons.ts +5 -0
- package/src/services/injections/forms.ts +8 -0
- package/src/services/injections/icon-buttons.ts +4 -0
- package/src/services/injections/pills.ts +7 -0
- package/src/services/injections/radio.ts +12 -0
- package/src/shims-vue.d.ts +6 -3
- package/src/styles/_animation.scss +19 -0
- package/src/styles/_button.scss +61 -0
- package/src/styles/_colors.scss +58 -11
- package/src/styles/_core.scss +248 -87
- package/src/styles/_form-fields.scss +68 -15
- package/src/styles/_grenette.scss +13 -0
- package/src/styles/_polymath.scss +14 -0
- package/src/styles/_reset.scss +105 -0
- package/src/styles/_shoelace.scss +46 -0
- package/src/styles/_typography.scss +40 -10
- package/src/styles/main.scss +6 -3
- package/src/styles/utils/a11y.scss +18 -0
- package/src/styles/utils/typography.scss +13 -0
- package/src/styles/utils.scss +560 -0
- package/src/styles/variables.scss +27 -15
- package/src/theme/icons.ts +16 -5
- package/src/types/CForm.ts +15 -0
- package/src/types/font-awesome.ts +6 -0
- package/src/types.ts +15 -0
- package/.browserslistrc +0 -3
- package/.eslintrc.js +0 -4
- package/.stylelintrc.js +0 -3
- package/babel.config.js +0 -3
- package/dist/citrus-ui.common.js +0 -43434
- package/dist/citrus-ui.common.js.map +0 -1
- package/dist/citrus-ui.css +0 -1
- package/dist/citrus-ui.umd.js +0 -43444
- package/dist/citrus-ui.umd.js.map +0 -1
- package/dist/citrus-ui.umd.min.js +0 -27
- package/dist/citrus-ui.umd.min.js.map +0 -1
- package/dist/demo.html +0 -10
- package/dist/fonts/Blitz-Script.85ed9abe.woff2 +0 -0
- package/dist/fonts/ObjectSans-Bold.5492f3d5.woff2 +0 -0
- package/dist/fonts/ObjectSans-BoldSlanted.29e2a87e.woff2 +0 -0
- package/dist/fonts/ObjectSans-Heavy.d0b2f035.woff2 +0 -0
- package/dist/fonts/ObjectSans-HeavySlanted.45e9c063.woff2 +0 -0
- package/dist/fonts/ObjectSans-Light.f885dec3.woff2 +0 -0
- package/dist/fonts/ObjectSans-LightSlanted.b8eb7c12.woff2 +0 -0
- package/dist/fonts/ObjectSans-Regular.e4ea0b90.woff2 +0 -0
- package/dist/fonts/ObjectSans-Slanted.57a90be9.woff2 +0 -0
- package/dist/fonts/ObjectSans-Thin.86d44227.woff2 +0 -0
- package/dist/fonts/ObjectSans-ThinSlanted.20342160.woff2 +0 -0
- package/jest.config.js +0 -9
- package/plopfile.js +0 -67
- package/project.json +0 -69
- package/src/assets/fonts/Blitz-Script.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-Bold.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-BoldSlanted.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-Heavy.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-HeavySlanted.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-Light.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-LightSlanted.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-Regular.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-Slanted.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-Thin.woff2 +0 -0
- package/src/assets/fonts/ObjectSans-ThinSlanted.woff2 +0 -0
- package/src/components/CAlert.vue +0 -78
- package/src/components/CBanner.vue +0 -47
- package/src/components/CButton.vue +0 -146
- package/src/components/CListItemAction.vue +0 -29
- package/src/components/CSegmentedButton.vue +0 -47
- package/src/components/CSegmentedButtonOption.vue +0 -42
- package/src/components/helpers/FormField.vue +0 -48
- package/src/components/helpers/SelectInput.vue +0 -115
- package/src/shims-scss.d.ts +0 -4
- package/src/shims-vuetify.d.ts +0 -4
- package/src/styles/_blitz.scss +0 -8
- package/src/styles/_object-sans.scss +0 -23
- package/storybook-static/0.799c368cbe88266827ba.manager.bundle.js +0 -1
- package/storybook-static/0.a9f0a9ad.iframe.bundle.js +0 -3
- package/storybook-static/0.a9f0a9ad.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/0.a9f0a9ad.iframe.bundle.js.map +0 -1
- package/storybook-static/1.0438fd8d.iframe.bundle.js +0 -3
- package/storybook-static/1.0438fd8d.iframe.bundle.js.LICENSE.txt +0 -17
- package/storybook-static/1.0438fd8d.iframe.bundle.js.map +0 -1
- package/storybook-static/1.9ebd2fb519f6726108de.manager.bundle.js +0 -1
- package/storybook-static/10.348d8814.iframe.bundle.js +0 -3
- package/storybook-static/10.348d8814.iframe.bundle.js.LICENSE.txt +0 -30
- package/storybook-static/10.348d8814.iframe.bundle.js.map +0 -1
- package/storybook-static/10.a85ea1a67689be8e19ff.manager.bundle.js +0 -1
- package/storybook-static/11.f4e922583ae35da460f3.manager.bundle.js +0 -2
- package/storybook-static/11.f4e922583ae35da460f3.manager.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/12.1415460941f0bdcb8fa8.manager.bundle.js +0 -1
- package/storybook-static/2.75a17459.iframe.bundle.js +0 -3
- package/storybook-static/2.75a17459.iframe.bundle.js.LICENSE.txt +0 -26
- package/storybook-static/2.75a17459.iframe.bundle.js.map +0 -1
- package/storybook-static/5.f459d151315e6780c20f.manager.bundle.js +0 -2
- package/storybook-static/5.f459d151315e6780c20f.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/6.3bd64d820f3745f262ff.manager.bundle.js +0 -1
- package/storybook-static/6.ce8d99b4.iframe.bundle.js +0 -1
- package/storybook-static/7.3d04765dbf3f1dcd706c.manager.bundle.js +0 -1
- package/storybook-static/7.6633a922.iframe.bundle.js +0 -3
- package/storybook-static/7.6633a922.iframe.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/7.6633a922.iframe.bundle.js.map +0 -1
- package/storybook-static/8.b541eadfcb9164835dfc.manager.bundle.js +0 -1
- package/storybook-static/8.fc5e1ebf.iframe.bundle.js +0 -1
- package/storybook-static/9.411ac8e451bbb10926c7.manager.bundle.js +0 -1
- package/storybook-static/9.724ac3ed.iframe.bundle.js +0 -3
- package/storybook-static/9.724ac3ed.iframe.bundle.js.LICENSE.txt +0 -15
- package/storybook-static/9.724ac3ed.iframe.bundle.js.map +0 -1
- package/storybook-static/css/main.95216119.css +0 -1
- package/storybook-static/css/vendors~main.02dc89bf.css +0 -1
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/fonts/Blitz-Script.85ed9abe.woff2 +0 -0
- package/storybook-static/fonts/ObjectSans-Bold.5492f3d5.woff2 +0 -0
- package/storybook-static/fonts/ObjectSans-BoldSlanted.29e2a87e.woff2 +0 -0
- package/storybook-static/fonts/ObjectSans-Heavy.d0b2f035.woff2 +0 -0
- package/storybook-static/fonts/ObjectSans-HeavySlanted.45e9c063.woff2 +0 -0
- package/storybook-static/fonts/ObjectSans-Light.f885dec3.woff2 +0 -0
- package/storybook-static/fonts/ObjectSans-LightSlanted.b8eb7c12.woff2 +0 -0
- package/storybook-static/fonts/ObjectSans-Regular.e4ea0b90.woff2 +0 -0
- package/storybook-static/fonts/ObjectSans-Slanted.57a90be9.woff2 +0 -0
- package/storybook-static/fonts/ObjectSans-Thin.86d44227.woff2 +0 -0
- package/storybook-static/fonts/ObjectSans-ThinSlanted.20342160.woff2 +0 -0
- package/storybook-static/iframe.html +0 -348
- package/storybook-static/index.html +0 -51
- package/storybook-static/main.7b4aec9c4352d4bb535b.manager.bundle.js +0 -1
- package/storybook-static/main.9e8c64c7.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.91a0c7330ab317d35c4a.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.e4da100f.iframe.bundle.js +0 -1
- package/storybook-static/vendors~main.6660eda6.iframe.bundle.js +0 -7
- package/storybook-static/vendors~main.6660eda6.iframe.bundle.js.LICENSE.txt +0 -80
- package/storybook-static/vendors~main.6660eda6.iframe.bundle.js.map +0 -1
- package/storybook-static/vendors~main.f7f16cebbf3aa96a4f89.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.f7f16cebbf3aa96a4f89.manager.bundle.js.LICENSE.txt +0 -110
- package/tsconfig.dist.json +0 -7
- package/tsconfig.json +0 -24
- package/vue.config.js +0 -5
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@import '@propelinc/citrus-ui/src/styles/core';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/**
|
|
5
|
+
* TYPOGRAPHY
|
|
6
|
+
*/
|
|
7
|
+
--sl-font-sans: #{$font-family-polymath};
|
|
8
|
+
--sl-font-weight-semibold: #{$font-weight-semibold};
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* MISC. DEFAULTS
|
|
12
|
+
*/
|
|
13
|
+
--sl-border-radius-medium: #{$border-radius-next};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* BUTTON
|
|
17
|
+
*/
|
|
18
|
+
--sl-button-font-size-small: #{$font-size-medium};
|
|
19
|
+
--sl-button-font-size-medium: #{$font-size-medium};
|
|
20
|
+
--sl-button-font-size-large: #{$font-size-medium};
|
|
21
|
+
|
|
22
|
+
/** INPUTS */
|
|
23
|
+
--sl-input-border-width: 1px;
|
|
24
|
+
--sl-input-height-medium: 48px;
|
|
25
|
+
--sl-input-height-large: 64px;
|
|
26
|
+
--sl-input-focus-ring-color: #{$color-black};
|
|
27
|
+
--sl-input-border-color-focus: #{$color-black};
|
|
28
|
+
--sl-input-border-color: #{$color-gray-200};
|
|
29
|
+
--sl-input-border-color-hover: #{$color-gray-200};
|
|
30
|
+
|
|
31
|
+
// NOTE(ej): Hides the default '*' for required inputs
|
|
32
|
+
--sl-input-required-content: none;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* BOTTOM SHEET + MODAL
|
|
36
|
+
*/
|
|
37
|
+
--sl-panel-background-color: #{$color-white};
|
|
38
|
+
--sl-overlay-background-color: #{rgba($color-black, 0.4)};
|
|
39
|
+
--sl-shadow-x-large: #{0 0 20px 0 rgba($color-black, 0.12)};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sl-toast-stack {
|
|
43
|
+
overflow: visible;
|
|
44
|
+
top: calc(env(safe-area-inset-top) + #{$app-bar-height});
|
|
45
|
+
width: 100%;
|
|
46
|
+
}
|
|
@@ -1,22 +1,38 @@
|
|
|
1
|
-
@import './core
|
|
1
|
+
@import './core';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--font-family-headline: #{$font-family-serif};
|
|
5
|
+
|
|
6
|
+
// Ads have historically had a smaller body size, so we need to a special size
|
|
7
|
+
// to maintain parity for this experiment.
|
|
8
|
+
--font-size-ad: 15px;
|
|
9
|
+
--line-height-ad: 130%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
body {
|
|
13
|
+
font-feature-settings:
|
|
14
|
+
'pnum' on,
|
|
15
|
+
'lnum' on,
|
|
16
|
+
'cv05' on,
|
|
17
|
+
'cv14' on,
|
|
18
|
+
'cv23' on,
|
|
19
|
+
'cv27' on,
|
|
20
|
+
'cv28' on,
|
|
21
|
+
'cv29' on;
|
|
22
|
+
}
|
|
2
23
|
|
|
3
|
-
// NOTE(mohan): The overline and caption classes are generated by Vuetify.
|
|
4
24
|
.balance {
|
|
5
25
|
@include balance;
|
|
6
26
|
}
|
|
7
27
|
|
|
8
|
-
.
|
|
9
|
-
@include
|
|
28
|
+
.x-large-headline {
|
|
29
|
+
@include x-large-headline;
|
|
10
30
|
}
|
|
11
31
|
|
|
12
32
|
.large-headline {
|
|
13
33
|
@include large-headline;
|
|
14
34
|
}
|
|
15
35
|
|
|
16
|
-
.large-headline-script {
|
|
17
|
-
@include large-headline-script;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
36
|
.headline {
|
|
21
37
|
@include headline;
|
|
22
38
|
}
|
|
@@ -33,6 +49,20 @@
|
|
|
33
49
|
@include statement;
|
|
34
50
|
}
|
|
35
51
|
|
|
36
|
-
.
|
|
37
|
-
|
|
52
|
+
// @deprecated use .eyebrow instead
|
|
53
|
+
.overline {
|
|
54
|
+
@include eyebrow;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.eyebrow {
|
|
58
|
+
@include eyebrow;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.caption {
|
|
62
|
+
@include caption;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
b,
|
|
66
|
+
strong {
|
|
67
|
+
font-weight: $font-weight-emphasized;
|
|
38
68
|
}
|
package/src/styles/main.scss
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Only display content to screen readers
|
|
2
|
+
// See: https://a11yproject.com/posts/how-to-hide-content
|
|
3
|
+
@mixin sr-only {
|
|
4
|
+
border: 0;
|
|
5
|
+
clip: rect(0, 0, 0, 0);
|
|
6
|
+
height: 1px;
|
|
7
|
+
margin: -1px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
padding: 0;
|
|
10
|
+
position: absolute;
|
|
11
|
+
width: 1px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Adds shoelace's focus ring implementation to non-shoelace components
|
|
15
|
+
@mixin focus-ring {
|
|
16
|
+
outline: var(--sl-focus-ring);
|
|
17
|
+
outline-offset: var(--sl-focus-ring-offset);
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@mixin text-overflow-ellipsis {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
text-overflow: ellipsis;
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin line-clamp($lines) {
|
|
8
|
+
-webkit-box-orient: vertical;
|
|
9
|
+
display: -webkit-box;
|
|
10
|
+
-webkit-line-clamp: $lines;
|
|
11
|
+
line-clamp: $lines;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
// These are our homegrown utility classes, largely based on Vuetify's with some Tailwind additions
|
|
2
|
+
// Colors are handled separately in src/colors/util-classes.ts.
|
|
3
|
+
|
|
4
|
+
@use 'sass:math';
|
|
5
|
+
@import './colors';
|
|
6
|
+
|
|
7
|
+
// ****************************************************************************
|
|
8
|
+
// DISPLAY
|
|
9
|
+
// ****************************************************************************
|
|
10
|
+
|
|
11
|
+
$display-options: (
|
|
12
|
+
'block': block,
|
|
13
|
+
'flex': flex,
|
|
14
|
+
'grid': grid,
|
|
15
|
+
'inline-flex': inline-flex,
|
|
16
|
+
'inline': inline,
|
|
17
|
+
'none': none,
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
@each $option, $d in $display-options {
|
|
21
|
+
.d-#{$option} {
|
|
22
|
+
display: $d !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// ****************************************************************************
|
|
27
|
+
// POSITION
|
|
28
|
+
// ****************************************************************************
|
|
29
|
+
|
|
30
|
+
$position-options: (
|
|
31
|
+
'absolute': absolute,
|
|
32
|
+
'fixed': fixed,
|
|
33
|
+
'relative': relative,
|
|
34
|
+
'static': static,
|
|
35
|
+
'sticky': sticky,
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
@each $option, $d in $position-options {
|
|
39
|
+
.position-#{$option},
|
|
40
|
+
.#{$option} {
|
|
41
|
+
position: $d;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// NOTE(Camden): This is a limited equivalent to Tailwind position classes that should be replaced
|
|
46
|
+
// with Tailwind when we implement it.
|
|
47
|
+
$position-edges: ('top', 'right', 'bottom', 'left');
|
|
48
|
+
|
|
49
|
+
@each $edge in $position-edges {
|
|
50
|
+
.#{$edge}-0 {
|
|
51
|
+
#{$edge}: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// NOTE(Camden): This is a limited equivalent to Tailwind inset classes that should be replaced
|
|
56
|
+
// with Tailwind when we implement it.
|
|
57
|
+
.inset-0 {
|
|
58
|
+
inset: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// ****************************************************************************
|
|
62
|
+
// COMMON SIZES
|
|
63
|
+
// ****************************************************************************
|
|
64
|
+
|
|
65
|
+
$size-values: (
|
|
66
|
+
'auto': 'auto',
|
|
67
|
+
'full': '100%',
|
|
68
|
+
'0': '0',
|
|
69
|
+
'25': '25%',
|
|
70
|
+
'33': '33.3333%',
|
|
71
|
+
'50': '50%',
|
|
72
|
+
'66': '66.6666%',
|
|
73
|
+
'75': '75%',
|
|
74
|
+
'100': '100%',
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
$dimensions: (
|
|
78
|
+
'w': 'width',
|
|
79
|
+
'h': 'height',
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
@each $key, $property in $dimensions {
|
|
83
|
+
@each $value, $size in $size-values {
|
|
84
|
+
.#{$key}-#{$value} {
|
|
85
|
+
#{$property}: #{$size};
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// ****************************************************************************
|
|
91
|
+
// FLEXBOX
|
|
92
|
+
// ****************************************************************************
|
|
93
|
+
|
|
94
|
+
$flex-directions: (
|
|
95
|
+
'col': column,
|
|
96
|
+
'col-reverse': column-reverse,
|
|
97
|
+
'column': column,
|
|
98
|
+
'column-reverse': column-reverse,
|
|
99
|
+
'row': row,
|
|
100
|
+
'row-reverse': row-reverse,
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
@each $direction, $d in $flex-directions {
|
|
104
|
+
.flex-#{$direction} {
|
|
105
|
+
flex-direction: $d !important;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
$align-options: (
|
|
110
|
+
'baseline': baseline,
|
|
111
|
+
'center': center,
|
|
112
|
+
'end': flex-end,
|
|
113
|
+
'start': flex-start,
|
|
114
|
+
'stretch': stretch,
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
@each $option, $value in $align-options {
|
|
118
|
+
.align-#{$option} {
|
|
119
|
+
align-items: $value !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.align-content-#{$option} {
|
|
123
|
+
align-content: $value !important;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
$justify-options: (
|
|
128
|
+
'around': space-around,
|
|
129
|
+
'between': space-between,
|
|
130
|
+
'center': center,
|
|
131
|
+
'end': flex-end,
|
|
132
|
+
'evenly': space-evenly,
|
|
133
|
+
'space-around': space-around,
|
|
134
|
+
'space-between': space-between,
|
|
135
|
+
'space-evenly': space-evenly,
|
|
136
|
+
'start': flex-start,
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
@each $option, $value in $justify-options {
|
|
140
|
+
.justify-#{$option} {
|
|
141
|
+
justify-content: $value !important;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Shorthand class for flex: 1 1 auto;
|
|
146
|
+
.flex-1 {
|
|
147
|
+
flex: 1 1 auto;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
$flex-grow-directions: grow, shrink;
|
|
151
|
+
|
|
152
|
+
@each $direction in $flex-grow-directions {
|
|
153
|
+
.flex-#{$direction},
|
|
154
|
+
.#{$direction} {
|
|
155
|
+
flex-#{$direction}: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// This is for backwards compatibility
|
|
159
|
+
.flex-#{$direction}-1,
|
|
160
|
+
.#{$direction}-1 {
|
|
161
|
+
flex-#{$direction}: 1;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.flex-#{$direction}-0,
|
|
165
|
+
.#{$direction}-0 {
|
|
166
|
+
flex-#{$direction}: 0;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@each $size, $value in $size-values {
|
|
171
|
+
.basis-#{$size},
|
|
172
|
+
.flex-basis-#{$size} {
|
|
173
|
+
flex-basis: #{$value};
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
$wrap-options: (
|
|
178
|
+
'wrap': wrap,
|
|
179
|
+
'nowrap': nowrap,
|
|
180
|
+
'wrap-reverse': wrap-reverse,
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
@each $option, $value in $wrap-options {
|
|
184
|
+
.flex-#{$option} {
|
|
185
|
+
flex-wrap: $value;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@for $i from 0 through 8 {
|
|
190
|
+
$pixels: #{$i * 4}px;
|
|
191
|
+
|
|
192
|
+
.gap-#{$i} {
|
|
193
|
+
gap: $pixels;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.gap-x-#{$i} {
|
|
197
|
+
column-gap: $pixels;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.gap-y-#{$i} {
|
|
201
|
+
row-gap: $pixels;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// ****************************************************************************
|
|
206
|
+
// GRID
|
|
207
|
+
// ****************************************************************************
|
|
208
|
+
|
|
209
|
+
@for $i from 2 through 12 {
|
|
210
|
+
.grid-cols-#{$i} {
|
|
211
|
+
grid-template-columns: repeat(#{$i}, minmax(0, 1fr));
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.grid-rows-#{$i} {
|
|
215
|
+
grid-template-rows: repeat(#{$i}, minmax(0, 1fr));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// ****************************************************************************
|
|
220
|
+
// MARGIN AND PADDING
|
|
221
|
+
// ****************************************************************************
|
|
222
|
+
|
|
223
|
+
$spacing-directions: (
|
|
224
|
+
'top': 't',
|
|
225
|
+
'right': 'r',
|
|
226
|
+
'bottom': 'b',
|
|
227
|
+
'left': 'l',
|
|
228
|
+
);
|
|
229
|
+
|
|
230
|
+
.ma-auto,
|
|
231
|
+
.m-auto {
|
|
232
|
+
margin: auto !important;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.mx-auto {
|
|
236
|
+
margin-left: auto !important;
|
|
237
|
+
margin-right: auto !important;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.my-auto {
|
|
241
|
+
margin-bottom: auto !important;
|
|
242
|
+
margin-top: auto !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@each $direction, $d in $spacing-directions {
|
|
246
|
+
.m#{$d}-auto {
|
|
247
|
+
margin-#{$direction}: auto !important;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Margins, positive and negative
|
|
252
|
+
@for $i from -12 through 12 {
|
|
253
|
+
// For negative margins, add a `-` as a prefix
|
|
254
|
+
$prefix: if($i < 0, '-', '');
|
|
255
|
+
$pixels: #{$i * 4}px;
|
|
256
|
+
$num: math.abs($i);
|
|
257
|
+
|
|
258
|
+
.#{$prefix}ma-#{$num},
|
|
259
|
+
.#{$prefix}m-#{$num} {
|
|
260
|
+
margin: $pixels !important;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.#{$prefix}mx-#{$num} {
|
|
264
|
+
margin-left: $pixels !important;
|
|
265
|
+
margin-right: $pixels !important;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.#{$prefix}my-#{$num} {
|
|
269
|
+
margin-bottom: $pixels !important;
|
|
270
|
+
margin-top: $pixels !important;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
@each $direction, $d in $spacing-directions {
|
|
274
|
+
.#{$prefix}m#{$d}-#{$num} {
|
|
275
|
+
margin-#{$direction}: $pixels !important;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// Paddings, positive only
|
|
281
|
+
@for $i from 0 through 12 {
|
|
282
|
+
$pixels: #{$i * 4}px;
|
|
283
|
+
|
|
284
|
+
.pa-#{$i},
|
|
285
|
+
.p-#{$i} {
|
|
286
|
+
padding: $pixels !important;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.px-#{$i} {
|
|
290
|
+
padding-left: $pixels !important;
|
|
291
|
+
padding-right: $pixels !important;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.py-#{$i} {
|
|
295
|
+
padding-bottom: $pixels !important;
|
|
296
|
+
padding-top: $pixels !important;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
@each $direction, $d in $spacing-directions {
|
|
300
|
+
.p#{$d}-#{$i} {
|
|
301
|
+
padding-#{$direction}: $pixels !important;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// ****************************************************************************
|
|
307
|
+
// TEXT
|
|
308
|
+
// ****************************************************************************
|
|
309
|
+
|
|
310
|
+
$text-colors: (
|
|
311
|
+
'accent-blue': $color-accent-blue,
|
|
312
|
+
'accent-blue-shade-1': $color-accent-blue-shade-1,
|
|
313
|
+
'accent-blue-shade-2': $color-accent-blue-shade-2,
|
|
314
|
+
'accent-green': $color-accent-green,
|
|
315
|
+
'accent-green-shade-1': $color-accent-green-shade-1,
|
|
316
|
+
'accent-green-shade-2': $color-accent-green-shade-2,
|
|
317
|
+
'accent-orange': $color-accent-orange,
|
|
318
|
+
'accent-orange-shade-1': $color-accent-orange-shade-1,
|
|
319
|
+
'accent-orange-shade-2': $color-accent-orange-shade-2,
|
|
320
|
+
'accent-pink': $color-accent-pink,
|
|
321
|
+
'accent-pink-shade-1': $color-accent-pink-shade-1,
|
|
322
|
+
'accent-pink-shade-2': $color-accent-pink-shade-2,
|
|
323
|
+
'accent-red-shade-1': $color-accent-red-shade-1,
|
|
324
|
+
'accent-red-shade-2': $color-accent-red-shade-2,
|
|
325
|
+
'alert-red': $color-alert-red,
|
|
326
|
+
'background': $color-background,
|
|
327
|
+
'black': $color-black,
|
|
328
|
+
'blue-100': $color-blue-100,
|
|
329
|
+
'blue-200': $color-blue-200,
|
|
330
|
+
'blue-300': $color-blue-300,
|
|
331
|
+
'blue-400': $color-blue-400,
|
|
332
|
+
'blue-500': $color-blue-500,
|
|
333
|
+
'border': $color-border,
|
|
334
|
+
'button-background': $color-button-background,
|
|
335
|
+
'gold-100': $color-gold-100,
|
|
336
|
+
'gold-200': $color-gold-200,
|
|
337
|
+
'gold-300': $color-gold-300,
|
|
338
|
+
'gold-400': $color-gold-400,
|
|
339
|
+
'gold-500': $color-gold-500,
|
|
340
|
+
'gray-100': $color-gray-100,
|
|
341
|
+
'gray-200': $color-gray-200,
|
|
342
|
+
'gray-300': $color-gray-300,
|
|
343
|
+
'gray-400': $color-gray-400,
|
|
344
|
+
'gray-500': $color-gray-500,
|
|
345
|
+
'green-100': $color-green-100,
|
|
346
|
+
'green-200': $color-green-200,
|
|
347
|
+
'green-300': $color-green-300,
|
|
348
|
+
'green-400': $color-green-400,
|
|
349
|
+
'green-500': $color-green-500,
|
|
350
|
+
'orange': $color-orange,
|
|
351
|
+
'orange-tint-1': $color-orange-tint-1,
|
|
352
|
+
'orange-tint-2': $color-orange-tint-2,
|
|
353
|
+
'pink': $color-pink,
|
|
354
|
+
'pink-tint-1': $color-pink-tint-1,
|
|
355
|
+
'pink-tint-2': $color-pink-tint-2,
|
|
356
|
+
'providers-blue': $color-providers-blue,
|
|
357
|
+
'providers-blue-tint-1': $color-providers-blue-tint-1,
|
|
358
|
+
'providers-blue-tint-2': $color-providers-blue-tint-2,
|
|
359
|
+
'providers-green': $color-providers-green,
|
|
360
|
+
'providers-green-tint-1': $color-providers-green-tint-1,
|
|
361
|
+
'providers-green-tint-2': $color-providers-green-tint-2,
|
|
362
|
+
'purple-100': $color-purple-100,
|
|
363
|
+
'purple-200': $color-purple-200,
|
|
364
|
+
'purple-300': $color-purple-300,
|
|
365
|
+
'purple-400': $color-purple-400,
|
|
366
|
+
'purple-500': $color-purple-500,
|
|
367
|
+
'red-100': $color-red-100,
|
|
368
|
+
'red-200': $color-red-200,
|
|
369
|
+
'red-300': $color-red-300,
|
|
370
|
+
'red-400': $color-red-400,
|
|
371
|
+
'red-500': $color-red-500,
|
|
372
|
+
'status-error': $color-status-error,
|
|
373
|
+
'status-success': $color-status-success,
|
|
374
|
+
'status-warning': $color-status-warning,
|
|
375
|
+
'text-disabled': $color-text-disabled,
|
|
376
|
+
'text-placeholder': $color-text-placeholder,
|
|
377
|
+
'text-primary': $color-text-primary,
|
|
378
|
+
'text-secondary': $color-text-secondary,
|
|
379
|
+
'white': $color-white,
|
|
380
|
+
'yellow': $color-yellow,
|
|
381
|
+
'yellow-tint-1': $color-yellow-tint-1,
|
|
382
|
+
'yellow-tint-2': $color-yellow-tint-2,
|
|
383
|
+
);
|
|
384
|
+
|
|
385
|
+
@each $name, $color in $text-colors {
|
|
386
|
+
.text-#{$name} {
|
|
387
|
+
color: $color !important;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
$text-directions: (
|
|
392
|
+
'center': center,
|
|
393
|
+
'left': left,
|
|
394
|
+
'right': right,
|
|
395
|
+
);
|
|
396
|
+
|
|
397
|
+
@each $direction, $d in $text-directions {
|
|
398
|
+
.text-#{$direction} {
|
|
399
|
+
text-align: $d !important;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
$font-families: (
|
|
404
|
+
'grenette': $font-family-grenette,
|
|
405
|
+
'polymath': $font-family-polymath,
|
|
406
|
+
);
|
|
407
|
+
|
|
408
|
+
@each $family, $f in $font-families {
|
|
409
|
+
.font-#{$family} {
|
|
410
|
+
font-family: $f;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
$font-sizes: (
|
|
415
|
+
'xs': $font-size-x-small,
|
|
416
|
+
'sm': $font-size-small,
|
|
417
|
+
'md': $font-size-medium,
|
|
418
|
+
'lg': $font-size-large,
|
|
419
|
+
'xl': $font-size-x-large,
|
|
420
|
+
'2xl': $font-size-2x-large,
|
|
421
|
+
'3xl': $font-size-3x-large,
|
|
422
|
+
);
|
|
423
|
+
|
|
424
|
+
@each $size, $s in $font-sizes {
|
|
425
|
+
.text-#{$size} {
|
|
426
|
+
font-size: $s;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
$font-weights: (
|
|
431
|
+
'light': $font-weight-light,
|
|
432
|
+
'normal': $font-weight-normal,
|
|
433
|
+
'regular': $font-weight-normal,
|
|
434
|
+
'medium': $font-weight-medium,
|
|
435
|
+
'semibold': $font-weight-semibold,
|
|
436
|
+
'bold': $font-weight-bold,
|
|
437
|
+
);
|
|
438
|
+
|
|
439
|
+
@each $weight, $w in $font-weights {
|
|
440
|
+
.font-#{$weight} {
|
|
441
|
+
font-weight: $w !important;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.font-italic {
|
|
446
|
+
font-style: italic !important;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
$text-transforms: (
|
|
450
|
+
'uppercase': uppercase,
|
|
451
|
+
'lowercase': lowercase,
|
|
452
|
+
'capitalize': capitalize,
|
|
453
|
+
);
|
|
454
|
+
|
|
455
|
+
@each $transform, $t in $text-transforms {
|
|
456
|
+
.text-#{$transform} {
|
|
457
|
+
text-transform: $t !important;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.text-decoration-none {
|
|
462
|
+
text-decoration: none !important;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.line-through {
|
|
466
|
+
text-decoration: line-through !important;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.text-truncate {
|
|
470
|
+
overflow: hidden;
|
|
471
|
+
text-overflow: ellipsis;
|
|
472
|
+
white-space: nowrap;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// ****************************************************************************
|
|
476
|
+
// BOX-SHADOW
|
|
477
|
+
// NOTE(slanden): These are the only box-shadow classes that we are using.
|
|
478
|
+
// ****************************************************************************
|
|
479
|
+
|
|
480
|
+
.elevation-0 {
|
|
481
|
+
box-shadow:
|
|
482
|
+
0 0 0 0 rgba(0, 0, 0, 0.2),
|
|
483
|
+
0 0 0 0 rgba(0, 0, 0, 0.14),
|
|
484
|
+
0 0 0 0 rgba(0, 0, 0, 0.12) !important;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.elevation-4 {
|
|
488
|
+
box-shadow:
|
|
489
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.2),
|
|
490
|
+
0 4px 5px 0 rgba(0, 0, 0, 0.14),
|
|
491
|
+
0 1px 10px 0 rgba(0, 0, 0, 0.12) !important;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
// ****************************************************************************
|
|
495
|
+
// MISC
|
|
496
|
+
// ****************************************************************************
|
|
497
|
+
|
|
498
|
+
// NOTE(Camden): Tailwind-equivalent object-fit classes that should be replaced with Tailwind
|
|
499
|
+
// when we implement it.
|
|
500
|
+
.object-cover {
|
|
501
|
+
object-fit: cover;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.object-contain {
|
|
505
|
+
object-fit: contain;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
$overflow-options: (
|
|
509
|
+
'auto': auto,
|
|
510
|
+
'hidden': hidden,
|
|
511
|
+
'scroll': scroll,
|
|
512
|
+
'visible': visible,
|
|
513
|
+
);
|
|
514
|
+
|
|
515
|
+
@each $option, $value in $overflow-options {
|
|
516
|
+
.overflow-#{$option} {
|
|
517
|
+
overflow: $value !important;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.overflow-x-#{$option} {
|
|
521
|
+
overflow-x: $value !important;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.overflow-y-#{$option} {
|
|
525
|
+
overflow-y: $value !important;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.float-left {
|
|
530
|
+
float: left !important;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.float-right {
|
|
534
|
+
float: right !important;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
$rounded-options: (
|
|
538
|
+
// @deprecated use 'none' instead
|
|
539
|
+
'0': 0,
|
|
540
|
+
'circle': 50%,
|
|
541
|
+
'none': 0,
|
|
542
|
+
'pill': 9999px,
|
|
543
|
+
'sm': 2px,
|
|
544
|
+
// We're going to skip this key in our loop
|
|
545
|
+
'md': 4px,
|
|
546
|
+
'lg': 8px,
|
|
547
|
+
'xl': 12px,
|
|
548
|
+
'2xl': 24px,
|
|
549
|
+
// @deprecated use '2xl' instead
|
|
550
|
+
'xxl': 24px
|
|
551
|
+
);
|
|
552
|
+
|
|
553
|
+
@each $key, $value in $rounded-options {
|
|
554
|
+
// If it's `md` don't add the suffix
|
|
555
|
+
$suffix: if($key == 'md', '', '-#{$key}');
|
|
556
|
+
|
|
557
|
+
.rounded#{$suffix} {
|
|
558
|
+
border-radius: $value;
|
|
559
|
+
}
|
|
560
|
+
}
|