@stihl-design-system/components 1.0.0-RC.10 → 1.0.0-RC.12
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 +0 -9
- package/{accordion.B3UkxlAZ.js → accordion.Rvtiu8Y4.js} +3 -3
- package/accordion.d.ts +1 -0
- package/arialiveregions.Cyycgs8g.js +27 -0
- package/arialiveregions.d.ts +1 -0
- package/assets/Accordion.i4k5SMQM.css +1 -0
- package/assets/CheckboxGroup.BH1Br1dg.css +1 -0
- package/assets/Chip.DSdLuzoi.css +1 -0
- package/assets/CustomReactSelect.vHt8qNKC.css +1 -0
- package/assets/Dialog.BgzebVk4.css +1 -0
- package/assets/Drawer.Bauwxrk7.css +1 -0
- package/assets/Fieldset.DOdTbb7C.css +1 -0
- package/assets/Icon.DxRSBRSL.css +1 -0
- package/assets/InputPassword.CG7Ugu73.css +1 -0
- package/assets/InputSearch.CseChMc-.css +1 -0
- package/assets/InputStepper.C0eAYr7P.css +1 -0
- package/assets/Notification.DbRapUJo.css +1 -0
- package/assets/RadioGroup.BfMo157q.css +1 -0
- package/assets/Select.D4EXgIbz.css +1 -0
- package/assets/Textarea.KJGPTYMz.css +1 -0
- package/assets/Toast.CuafTAf7.css +1 -0
- package/assets/arialiveregions.DhsijBaL.css +1 -0
- package/assets/asterisk.BfVAUBO7.css +1 -0
- package/assets/button.DF4RBeC2.css +1 -0
- package/assets/buttonround.19uK_-oO.css +1 -0
- package/assets/checkbox.ByOoFouu.css +1 -0
- package/assets/chipgroup.BzfZLbkv.css +1 -0
- package/assets/flag.B-RLcMcf.css +1 -0
- package/assets/floatingactionbutton.E9HekT6S.css +1 -0
- package/assets/heading.u4f8Mz94.css +1 -0
- package/assets/input.BAkFKPW3.css +1 -0
- package/assets/link.DDJj0D1U.css +1 -0
- package/assets/linkstandalone.DIazcjIv.css +1 -0
- package/assets/logo.CnW8alZU.css +1 -0
- package/assets/optioncheckbox.BZaWtRD7.css +1 -0
- package/assets/radio.X-RTl_jo.css +1 -0
- package/assets/skiptocontent.PTL3256m.css +1 -0
- package/assets/spinner.2iWJWKyA.css +1 -0
- package/assets/switch.gw6aa3kx.css +1 -0
- package/assets/systemfeedback.BPz5YlPC.css +1 -0
- package/assets/text.DjTG_qNb.css +1 -0
- package/assets/title.rosWPEG3.css +1 -0
- package/asterisk.DpzETKdT.js +8 -0
- package/asterisk.d.ts +1 -0
- package/button.M4nXjcUn.js +135 -0
- package/button.d.ts +1 -0
- package/buttonround.E56F_805.js +118 -0
- package/buttonround.d.ts +1 -0
- package/checkbox.Cb2_ey6U.js +111 -0
- package/checkbox.d.ts +1 -0
- package/checkboxgroup.DBDmB-zR.js +8 -0
- package/checkboxgroup.d.ts +1 -0
- package/chip.C_1tGqvZ.js +10 -0
- package/chip.d.ts +2 -0
- package/chipgroup.BvTj1ziW.js +174 -0
- package/chipgroup.d.ts +2 -0
- package/chunks/Accordion.CB6jB3s_.js +125 -0
- package/chunks/{AriaLiveRegions.utils.D2ni4Yrf.js → AriaLiveRegions.utils.BGSZafnS.js} +2 -2
- package/chunks/CheckboxGroup.S6i5EOc4.js +92 -0
- package/chunks/Chip.CMlPUyOJ.js +142 -0
- package/chunks/{CustomReactSelect.ChAtL6fu.js → CustomReactSelect.Cg_XW3YK.js} +1056 -1049
- package/chunks/Dialog.CudsqNag.js +148 -0
- package/chunks/Drawer.ueG2Bzr9.js +154 -0
- package/chunks/Fieldset.Cjmkgxxk.js +99 -0
- package/chunks/{Icon.C2o2seDb.js → Icon.BCmt_XBG.js} +45 -45
- package/chunks/InputPassword.CNLbBFjx.js +143 -0
- package/chunks/InputSearch.CHA6mkX_.js +192 -0
- package/chunks/InputStepper.xmWGU9pU.js +294 -0
- package/chunks/Notification.o6pagKQy.js +93 -0
- package/chunks/RadioGroup.Crj7NoOs.js +137 -0
- package/chunks/Select.E6gLFYLk.js +194 -0
- package/chunks/Textarea.DUBSOpNL.js +198 -0
- package/chunks/Toast.DyEi2GEP.js +89 -0
- package/chunks/translate.isa3FHb8.js +11 -0
- package/{combobox.JL1Dsn3E.js → combobox.DUzv8jzM.js} +1 -1
- package/combobox.d.ts +1 -0
- package/components/Accordion/Accordion.d.ts +0 -1
- package/components/Accordion/Accordion.utils.d.ts +0 -1
- package/components/Button/Button.d.ts +0 -1
- package/components/ButtonRound/ButtonRound.d.ts +0 -1
- package/components/Checkbox/Checkbox.d.ts +0 -1
- package/components/CheckboxGroup/CheckboxGroup.d.ts +6 -7
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +0 -1
- package/components/ChipGroup/Chip.d.ts +12 -0
- package/components/ChipGroup/ChipGroup.d.ts +42 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +60 -0
- package/components/ChipGroup/ChipGroup.utils.test.d.ts +1 -0
- package/components/Combobox/Combobox.d.ts +1 -2
- package/components/Combobox/Combobox.utils.d.ts +6 -1
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.d.ts +2 -3
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -0
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.test.d.ts +1 -0
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/OptionCheckbox.d.ts +0 -1
- package/components/Dialog/Dialog.d.ts +0 -1
- package/components/Dialog/Dialog.utils.d.ts +0 -1
- package/components/Drawer/Drawer.d.ts +0 -1
- package/components/Drawer/Drawer.utils.d.ts +0 -1
- package/components/Fieldset/Fieldset.d.ts +0 -1
- package/components/Fieldset/Fieldset.utils.d.ts +7 -1
- package/components/Flag/Flag.d.ts +23 -0
- package/components/Flag/Flag.test.d.ts +1 -0
- package/components/Flag/Flag.utils.d.ts +2 -0
- package/components/FloatingActionButton/FloatingActionButton.d.ts +0 -1
- package/components/Heading/Heading.d.ts +0 -1
- package/components/Icon/Icon.d.ts +0 -1
- package/components/Icon/Icon.utils.d.ts +0 -1
- package/components/Input/Input.d.ts +0 -1
- package/components/Input/Input.utils.d.ts +0 -1
- package/components/InputPassword/InputPassword.d.ts +0 -1
- package/components/InputPassword/InputPassword.utils.d.ts +0 -1
- package/components/InputSearch/InputSearch.d.ts +0 -1
- package/components/InputSearch/InputSearch.utils.d.ts +0 -1
- package/components/InputStepper/InputStepper.d.ts +0 -1
- package/components/InputStepper/InputStepper.utils.d.ts +0 -1
- package/components/Link/Link.d.ts +0 -1
- package/components/LinkStandalone/LinkStandalone.d.ts +0 -1
- package/components/Logo/Logo.d.ts +1 -2
- package/components/Logo/Logo.utils.d.ts +0 -1
- package/components/Notification/Notification.d.ts +0 -1
- package/components/Notification/Notification.utils.d.ts +0 -1
- package/components/Radio/Radio.d.ts +1 -2
- package/components/RadioGroup/RadioGroup.d.ts +7 -8
- package/components/RadioGroup/RadioGroup.utils.d.ts +2 -3
- package/components/Select/Select.d.ts +0 -1
- package/components/Select/Select.utils.d.ts +0 -1
- package/components/SkipToContent/SkipToContent.d.ts +0 -1
- package/components/Spinner/Spinner.d.ts +0 -1
- package/components/Switch/Switch.d.ts +0 -1
- package/components/SystemFeedback/SystemFeedback.d.ts +0 -1
- package/components/Text/Text.d.ts +0 -1
- package/components/Textarea/Textarea.d.ts +0 -1
- package/components/Textarea/Textarea.utils.d.ts +0 -1
- package/components/Title/Title.d.ts +0 -1
- package/components/Toast/Toast.d.ts +0 -1
- package/components/Toast/Toast.utils.d.ts +0 -1
- package/components/Toast/ToastManager.d.ts +0 -1
- package/customreactselect.CXmBRqQ9.js +13 -0
- package/customreactselect.d.ts +2 -1
- package/{dialog.D3bJ0rsW.js → dialog.DYlBUsOD.js} +2 -2
- package/dialog.d.ts +1 -0
- package/{drawer.CNPF1-Kc.js → drawer.CvhbP1ra.js} +2 -2
- package/drawer.d.ts +1 -0
- package/fieldset.CtUGEdLv.js +11 -0
- package/fieldset.d.ts +1 -0
- package/flag.BKpsdB_-.js +43 -0
- package/flag.d.ts +2 -0
- package/floatingactionbutton.D5L0B7zI.js +87 -0
- package/floatingactionbutton.d.ts +1 -0
- package/heading.IPIYc5vW.js +50 -0
- package/heading.d.ts +1 -0
- package/{icon.BoMgOmC1.js → icon.Ck0BpI34.js} +1 -1
- package/icon.d.ts +1 -0
- package/index.d.ts +4 -0
- package/index.es.js +134 -114
- package/input.BEnCFNM-.js +239 -0
- package/input.d.ts +1 -0
- package/{inputpassword.nsYu6YeB.js → inputpassword.B-D_jB9w.js} +4 -4
- package/inputpassword.d.ts +1 -0
- package/{inputsearch.ZGIrDrcv.js → inputsearch.CaSpklR1.js} +4 -4
- package/inputsearch.d.ts +1 -0
- package/{inputstepper.BvY36hA1.js → inputstepper.C7KD1-0S.js} +4 -4
- package/inputstepper.d.ts +1 -0
- package/link.DREJAoPG.js +116 -0
- package/link.d.ts +1 -0
- package/linkstandalone.BBoEniZ_.js +79 -0
- package/linkstandalone.d.ts +1 -0
- package/logo.Hul8qCFo.js +65 -0
- package/logo.d.ts +1 -0
- package/{notification.BAS13UQ6.js → notification.JWhrkEcE.js} +3 -3
- package/notification.d.ts +1 -0
- package/optioncheckbox.BRUTnQnJ.js +43 -0
- package/optioncheckbox.d.ts +2 -1
- package/package.json +47 -40
- package/partials/index.js +407 -407
- package/partials/lib/partials.d.ts +0 -1
- package/radio.DEILy_lV.js +114 -0
- package/radio.d.ts +1 -0
- package/radiogroup.DeU-HdlP.js +10 -0
- package/radiogroup.d.ts +1 -0
- package/{select.C4OZMB-V.js → select.BYraFJzz.js} +4 -4
- package/select.d.ts +1 -0
- package/skiptocontent.BxvpIB7H.js +45 -0
- package/skiptocontent.d.ts +1 -0
- package/spinner.Bq97Og-6.js +58 -0
- package/spinner.d.ts +1 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff +0 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff2 +0 -0
- package/styles/fonts/font-face.min.css +1 -1
- package/styles/scss/ds/index.scss +19 -0
- package/styles/scss/ds/lib/animation.scss +21 -0
- package/styles/scss/ds/lib/breakpoints.scss +15 -0
- package/styles/scss/ds/lib/container-query.scss +54 -0
- package/styles/scss/ds/lib/ds-internal/_a11y.scss +15 -0
- package/styles/scss/{lib → ds/lib/ds-internal}/_focus.scss +13 -15
- package/styles/scss/ds/lib/ds-internal/_heading.scss +37 -0
- package/styles/scss/ds/lib/ds-internal/_helpers.scss +32 -0
- package/styles/scss/ds/lib/ds-internal/_high-contrast.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_hover.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_index.scss +9 -0
- package/styles/scss/ds/lib/ds-internal/_link.scss +62 -0
- package/styles/scss/ds/lib/ds-internal/_spacing-dynamic.scss +53 -0
- package/styles/scss/ds/lib/ds-internal/_text.scss +30 -0
- package/styles/scss/ds/lib/grid-extended.scss +11 -0
- package/styles/scss/ds/lib/grid-full.scss +6 -0
- package/styles/scss/ds/lib/grid-main.scss +119 -0
- package/styles/scss/ds/lib/grid-narrow.scss +14 -0
- package/styles/scss/ds/lib/grid-sidebar-sidebar.scss +52 -0
- package/styles/scss/{lib/_grid-sidebar.scss → ds/lib/grid-sidebar.scss} +23 -32
- package/styles/scss/{lib/_grid.scss → ds/lib/grid.scss} +15 -17
- package/styles/scss/ds/lib/heading.scss +75 -0
- package/styles/scss/ds/lib/link.scss +74 -0
- package/styles/scss/ds/lib/media-query.scss +32 -0
- package/styles/scss/{lib/_shadow.scss → ds/lib/shadow.scss} +2 -2
- package/styles/scss/ds/lib/spacing-dynamic.scss +7 -0
- package/styles/scss/ds/lib/spacing.scss +20 -0
- package/styles/scss/ds/lib/text.scss +83 -0
- package/styles/scss/ds/lib/theme.scss +162 -0
- package/styles/scss/ds/lib/transition.scss +36 -0
- package/switch.DI8YYa5G.js +65 -0
- package/switch.d.ts +1 -0
- package/{systemfeedback.ZzRUAVYX.js → systemfeedback.C3Pfxxpp.js} +6 -6
- package/systemfeedback.d.ts +1 -0
- package/text.DThvTwm8.js +57 -0
- package/text.d.ts +1 -0
- package/{textarea.CtQtGqn5.js → textarea.CBvH0ljM.js} +3 -3
- package/textarea.d.ts +1 -0
- package/title.DqzdB2Gq.js +36 -0
- package/title.d.ts +1 -0
- package/toast.d.ts +1 -0
- package/{toast.DVd9dLs2.js → toast.n1QUINSA.js} +3 -3
- package/{toastmanager.Dh0gzFkM.js → toastmanager.B7EZ4JSI.js} +2 -2
- package/toastmanager.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/translate.d.ts +11 -0
- package/utils/translate.test.d.ts +1 -0
- package/utils/useBreakpoint.d.ts +0 -1
- package/utils/useIsomorphicLayoutEffect.d.ts +0 -1
- package/utils/vitest.setup.d.ts +0 -1
- package/arialiveregions.BK4T7Vhk.js +0 -27
- package/assets/Accordion.lFv7Q_RG.css +0 -1
- package/assets/CustomReactSelect.CMkn-EGK.css +0 -1
- package/assets/Dialog.fiQvxJg_.css +0 -1
- package/assets/Drawer.BqBgbSuP.css +0 -1
- package/assets/Fieldset.qHYeUFZt.css +0 -1
- package/assets/Icon.Duy_0R8w.css +0 -1
- package/assets/InputPassword.Cf394z47.css +0 -1
- package/assets/InputSearch.eCRQoxjN.css +0 -1
- package/assets/InputStepper.B80KulYE.css +0 -1
- package/assets/Notification.DK6agBGS.css +0 -1
- package/assets/RadioGroup.Bz3_xkZU.css +0 -1
- package/assets/Select.BptsMxz4.css +0 -1
- package/assets/Textarea.CIIVh03G.css +0 -1
- package/assets/Toast.Dsvs1zdM.css +0 -1
- package/assets/arialiveregions.GsGx2USO.css +0 -1
- package/assets/asterisk.DlJ4YtSZ.css +0 -1
- package/assets/button.B1O7Yw3Q.css +0 -1
- package/assets/buttonround.DlH_ipDo.css +0 -1
- package/assets/checkbox.K4CVYK9g.css +0 -1
- package/assets/floatingactionbutton.DRYentYC.css +0 -1
- package/assets/heading.6bER-Eac.css +0 -1
- package/assets/input.C0MrSbQu.css +0 -1
- package/assets/link.vtTST2ki.css +0 -1
- package/assets/linkstandalone.BtAcziZ7.css +0 -1
- package/assets/logo.pETQEsvZ.css +0 -1
- package/assets/optioncheckbox.BJJAph5_.css +0 -1
- package/assets/radio.9kpIO3HC.css +0 -1
- package/assets/skiptocontent.CHcqLS7S.css +0 -1
- package/assets/spinner.D_Nnf1ZG.css +0 -1
- package/assets/switch.2DQF2zH-.css +0 -1
- package/assets/systemfeedback.Sq0bAIyf.css +0 -1
- package/assets/text.Dhb_l50R.css +0 -1
- package/assets/title.f74Bosn-.css +0 -1
- package/asterisk.DDn-yX4P.js +0 -8
- package/button.DH0h6uPs.js +0 -135
- package/buttonround.0mw4zzlU.js +0 -118
- package/checkbox.DETR3e3X.js +0 -112
- package/checkboxgroup.CZqrlF-x.js +0 -9
- package/chunks/Accordion.pI3JyHJL.js +0 -125
- package/chunks/CheckboxGroup.4J_gZ_XJ.js +0 -87
- package/chunks/Dialog.Z5ESJQMi.js +0 -148
- package/chunks/Drawer.BdowMqE0.js +0 -154
- package/chunks/Fieldset.COGbZwry.js +0 -99
- package/chunks/InputPassword.Dgo95-PU.js +0 -140
- package/chunks/InputSearch.BFof0pBn.js +0 -189
- package/chunks/InputStepper.4IqLa5tX.js +0 -291
- package/chunks/Notification.BhwbaXqk.js +0 -93
- package/chunks/RadioGroup.C5jbCJM4.js +0 -132
- package/chunks/RadioGroup.module.BBZwHDjW.js +0 -11
- package/chunks/Select.fXeQJXtz.js +0 -191
- package/chunks/Textarea.Bewrp0Za.js +0 -195
- package/chunks/Toast.DA_CQ9J-.js +0 -89
- package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +0 -16
- package/customreactselect.Dg8Kgq3e.js +0 -13
- package/fieldset.CTshPWYX.js +0 -11
- package/floatingactionbutton.CCIj9Fjr.js +0 -87
- package/heading.CAkraI2D.js +0 -50
- package/input.CTgeAYdu.js +0 -236
- package/link.DAZNwQ0a.js +0 -116
- package/linkstandalone.C9X3er7g.js +0 -80
- package/logo.CEO6OV7u.js +0 -65
- package/optioncheckbox.DZWwtx6f.js +0 -43
- package/radio.CWGJtmKl.js +0 -115
- package/radiogroup.BhffFqN3.js +0 -11
- package/skiptocontent.C4yQfWr2.js +0 -46
- package/spinner.D-xrotcu.js +0 -58
- package/styles/scss/_index.scss +0 -23
- package/styles/scss/lib/_a11y.scss +0 -15
- package/styles/scss/lib/_animation.scss +0 -21
- package/styles/scss/lib/_breakpoints.scss +0 -16
- package/styles/scss/lib/_container-query.scss +0 -58
- package/styles/scss/lib/_grid-extended.scss +0 -11
- package/styles/scss/lib/_grid-full.scss +0 -6
- package/styles/scss/lib/_grid-main.scss +0 -117
- package/styles/scss/lib/_grid-narrow.scss +0 -16
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +0 -50
- package/styles/scss/lib/_heading.scss +0 -107
- package/styles/scss/lib/_helpers.scss +0 -15
- package/styles/scss/lib/_high-contrast.scss +0 -24
- package/styles/scss/lib/_hover.scss +0 -10
- package/styles/scss/lib/_link.scss +0 -126
- package/styles/scss/lib/_media-query.scss +0 -32
- package/styles/scss/lib/_spacing.scss +0 -32
- package/styles/scss/lib/_text.scss +0 -110
- package/styles/scss/lib/_theme.scss +0 -162
- package/styles/scss/lib/_transition.scss +0 -45
- package/switch.CmpNUC7s.js +0 -65
- package/text.rgDKQBrU.js +0 -57
- package/title.LY1ylQsb.js +0 -36
- package/utils/render-in-iframe.d.ts +0 -15
- /package/components/{CustomReactSelect/CustomReactSelect.utils.test.d.ts → ChipGroup/ChipGroup.test.d.ts} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use '../spacing.scss' as *;
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
$spacing-dynamic-values: (
|
|
5
|
+
'xs': (
|
|
6
|
+
'base': $spacing-16,
|
|
7
|
+
's': $spacing-16,
|
|
8
|
+
'm': $spacing-24,
|
|
9
|
+
'l': $spacing-24,
|
|
10
|
+
'xl': $spacing-32,
|
|
11
|
+
'xxl': $spacing-32,
|
|
12
|
+
),
|
|
13
|
+
's': (
|
|
14
|
+
'base': $spacing-24,
|
|
15
|
+
's': $spacing-24,
|
|
16
|
+
'm': $spacing-32,
|
|
17
|
+
'l': $spacing-32,
|
|
18
|
+
'xl': $spacing-40,
|
|
19
|
+
'xxl': $spacing-40,
|
|
20
|
+
),
|
|
21
|
+
'm': (
|
|
22
|
+
'base': $spacing-32,
|
|
23
|
+
's': $spacing-32,
|
|
24
|
+
'm': $spacing-40,
|
|
25
|
+
'l': $spacing-40,
|
|
26
|
+
'xl': $spacing-48,
|
|
27
|
+
'xxl': $spacing-48,
|
|
28
|
+
),
|
|
29
|
+
'l': (
|
|
30
|
+
'base': $spacing-40,
|
|
31
|
+
's': $spacing-40,
|
|
32
|
+
'm': $spacing-48,
|
|
33
|
+
'l': $spacing-48,
|
|
34
|
+
'xl': $spacing-56,
|
|
35
|
+
'xxl': $spacing-56,
|
|
36
|
+
),
|
|
37
|
+
'xl': (
|
|
38
|
+
'base': $spacing-56,
|
|
39
|
+
's': $spacing-56,
|
|
40
|
+
'm': $spacing-64,
|
|
41
|
+
'l': $spacing-64,
|
|
42
|
+
'xl': $spacing-80,
|
|
43
|
+
'xxl': $spacing-80,
|
|
44
|
+
),
|
|
45
|
+
'xxl': (
|
|
46
|
+
'base': $spacing-80,
|
|
47
|
+
's': $spacing-80,
|
|
48
|
+
'm': $spacing-96,
|
|
49
|
+
'l': $spacing-96,
|
|
50
|
+
'xl': $spacing-128,
|
|
51
|
+
'xxl': $spacing-128,
|
|
52
|
+
),
|
|
53
|
+
);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use 'sass:string';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
@mixin base-text($fontFamily, $fontSize, $lineHeight) {
|
|
5
|
+
font-family: #{string.unquote(
|
|
6
|
+
$fontFamily +
|
|
7
|
+
', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif'
|
|
8
|
+
)};
|
|
9
|
+
font-style: normal;
|
|
10
|
+
font-variant: normal;
|
|
11
|
+
hyphens: manual;
|
|
12
|
+
overflow-wrap: break-word;
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
font-size: $fontSize;
|
|
15
|
+
line-height: $lineHeight;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@mixin base-text-regular($fontFamily, $fontSize, $lineHeight) {
|
|
20
|
+
@include base-text($fontFamily, $fontSize, $lineHeight);
|
|
21
|
+
|
|
22
|
+
font-size-adjust: 0.414;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@mixin base-text-bold($fontFamily, $fontSize, $lineHeight) {
|
|
27
|
+
@include base-text($fontFamily, $fontSize, $lineHeight);
|
|
28
|
+
|
|
29
|
+
font-size-adjust: 0.426;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
$grid-extended-column-start: extended-start;
|
|
2
|
+
$grid-extended-column-end: extended-end;
|
|
3
|
+
|
|
4
|
+
@mixin grid-extended-column {
|
|
5
|
+
grid-column: $grid-extended-column-start / $grid-extended-column-end;
|
|
6
|
+
|
|
7
|
+
@media (min-width: 1668px) {
|
|
8
|
+
margin-inline-start: -32px;
|
|
9
|
+
margin-inline-end: -32px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@use 'media-query' as *;
|
|
2
|
+
|
|
3
|
+
$grid-main-column-start: main-start;
|
|
4
|
+
$grid-main-column-end: main-end;
|
|
5
|
+
$grid-sidebar-main-column-start: $grid-main-column-start;
|
|
6
|
+
$grid-sidebar-main-column-end: $grid-main-column-end;
|
|
7
|
+
|
|
8
|
+
@mixin grid-main-column {
|
|
9
|
+
grid-column: $grid-main-column-start / $grid-main-column-end;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin grid-sidebar-main-column {
|
|
13
|
+
@include grid-main-column;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@mixin grid-span-first-half {
|
|
18
|
+
grid-column: $grid-main-column-start / $grid-span-one-half;
|
|
19
|
+
}
|
|
20
|
+
@mixin grid-span-second-half {
|
|
21
|
+
grid-column: $grid-span-one-half / $grid-main-column-end;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin grid-sidebar-span-first-half {
|
|
25
|
+
@include grid-span-first-half;
|
|
26
|
+
}
|
|
27
|
+
@mixin grid-sidebar-span-second-half {
|
|
28
|
+
@include grid-span-second-half;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@mixin grid-span-first-third {
|
|
33
|
+
grid-column: $grid-main-column-start / $grid-main-column-end;
|
|
34
|
+
@include media-query-min('m') {
|
|
35
|
+
grid-column: $grid-main-column-start / $grid-span-one-third;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
@mixin grid-span-one-third {
|
|
39
|
+
grid-column: $grid-main-column-start / $grid-main-column-end;
|
|
40
|
+
@include media-query-min('m') {
|
|
41
|
+
grid-column: $grid-span-one-third;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin grid-sidebar-span-first-third {
|
|
46
|
+
@include grid-span-first-third;
|
|
47
|
+
}
|
|
48
|
+
@mixin grid-sidebar-span-one-third {
|
|
49
|
+
@include grid-span-one-third;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@mixin grid-span-first-two-thirds {
|
|
54
|
+
grid-column: $grid-main-column-start / $grid-main-column-end;
|
|
55
|
+
@include media-query-min('m') {
|
|
56
|
+
grid-column: $grid-main-column-start / $grid-span-two-thirds;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
@mixin grid-span-two-thirds {
|
|
60
|
+
grid-column: $grid-main-column-start / $grid-main-column-end;
|
|
61
|
+
@include media-query-min('m') {
|
|
62
|
+
grid-column: $grid-span-two-thirds / $grid-main-column-end;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@mixin grid-sidebar-span-first-two-thirds {
|
|
67
|
+
@include grid-span-first-two-thirds;
|
|
68
|
+
}
|
|
69
|
+
@mixin grid-sidebar-span-two-thirds {
|
|
70
|
+
@include grid-span-two-thirds;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
@mixin grid-span-first-quarter {
|
|
75
|
+
grid-column: $grid-main-column-start / $grid-span-one-quarter;
|
|
76
|
+
}
|
|
77
|
+
@mixin grid-span-one-quarter {
|
|
78
|
+
grid-column: $grid-span-one-quarter;
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
&:nth-of-type(odd) {
|
|
83
|
+
grid-column: $grid-main-column-start / $grid-span-one-quarter;
|
|
84
|
+
}
|
|
85
|
+
@include media-query-min('l') {
|
|
86
|
+
&:nth-of-type(odd) {
|
|
87
|
+
grid-column: $grid-span-one-quarter;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@mixin grid-sidebar-span-first-quarter {
|
|
93
|
+
@include grid-span-first-quarter;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@mixin grid-sidebar-span-one-quarter {
|
|
97
|
+
grid-column: $grid-span-one-quarter;
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
&:nth-of-type(odd) {
|
|
102
|
+
grid-column: $grid-main-column-start / $grid-span-one-quarter;
|
|
103
|
+
}
|
|
104
|
+
@include media-query-min('xl') {
|
|
105
|
+
&:nth-of-type(odd) {
|
|
106
|
+
grid-column: $grid-span-one-quarter;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
$grid-span-one-half: var(--ds-grid-span-one-half);
|
|
112
|
+
$grid-span-one-third: var(--ds-grid-span-one-third);
|
|
113
|
+
$grid-span-two-thirds: var(--ds-grid-span-two-thirds);
|
|
114
|
+
$grid-span-one-quarter: var(--ds-grid-span-one-quarter);
|
|
115
|
+
|
|
116
|
+
$grid-sidebar-span-one-half: $grid-span-one-half;
|
|
117
|
+
$grid-sidebar-span-one-third: $grid-span-one-third;
|
|
118
|
+
$grid-sidebar-span-two-thirds: $grid-span-two-thirds;
|
|
119
|
+
$grid-sidebar-span-one-quarter: $grid-span-one-quarter;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
$grid-narrow-max-width: 948px;
|
|
3
|
+
$grid-narrow-left-column-start: narrow-left-start;
|
|
4
|
+
$grid-narrow-left-column-end: narrow-left-end;
|
|
5
|
+
$grid-narrow-center-column-start: narrow-center-start;
|
|
6
|
+
$grid-narrow-center-column-end: narrow-center-end;
|
|
7
|
+
|
|
8
|
+
@mixin grid-narrow-left-column {
|
|
9
|
+
grid-column: $grid-narrow-left-column-start / $grid-narrow-left-column-end;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin grid-narrow-center-column {
|
|
13
|
+
grid-column: $grid-narrow-center-column-start / $grid-narrow-center-column-end;
|
|
14
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@use 'media-query' as *;
|
|
2
|
+
|
|
3
|
+
$grid-sidebar-sidebar-1-column-start: sidebar-1-start;
|
|
4
|
+
$grid-sidebar-sidebar-1-column-end: sidebar-1-end;
|
|
5
|
+
$grid-sidebar-sidebar-2-column-start: sidebar-2-start;
|
|
6
|
+
$grid-sidebar-sidebar-2-column-end: sidebar-2-end;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@mixin grid-sidebar-sidebar-1($is-open: false) {
|
|
10
|
+
display: none;
|
|
11
|
+
@include media-query-min('l') {
|
|
12
|
+
display: unset;
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
grid-row: span 300;
|
|
18
|
+
grid-column: $grid-sidebar-sidebar-1-column-start /
|
|
19
|
+
$grid-sidebar-sidebar-1-column-end;
|
|
20
|
+
margin-block-end: 0;
|
|
21
|
+
@if ($is-open == true) {
|
|
22
|
+
width: 264px;
|
|
23
|
+
max-width: 264px;
|
|
24
|
+
} @else {
|
|
25
|
+
width: 64px;
|
|
26
|
+
max-width: 64px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin grid-sidebar-sidebar-2($is-open: false) {
|
|
32
|
+
display: none;
|
|
33
|
+
@include media-query-min('l') {
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
grid-row: span 300;
|
|
39
|
+
margin-block-end: 0;
|
|
40
|
+
@if ($is-open == true) {
|
|
41
|
+
grid-column: $grid-sidebar-sidebar-2-column-start /
|
|
42
|
+
$grid-sidebar-sidebar-2-column-end;
|
|
43
|
+
display: unset;
|
|
44
|
+
width: 320px;
|
|
45
|
+
max-width: 320px;
|
|
46
|
+
margin-inline-start: -24px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@media (min-width: 1535px) {
|
|
50
|
+
margin-inline-start: -32px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'grid-sidebar-sidebar' as *;
|
|
2
|
+
@use 'media-query' as *;
|
|
2
3
|
|
|
3
|
-
@mixin
|
|
4
|
+
@mixin grid-sidebar($is-sidebar-1-open: false, $is-sidebar-2-open: false) {
|
|
4
5
|
@if $is-sidebar-1-open == false and $is-sidebar-2-open == true {
|
|
5
|
-
@error "[STIHL Design System] - [ds
|
|
6
|
+
@error "[STIHL Design System] - [ds.grid-sidebar()]: Sidebar 1 cannot be visually closed when sidebar 2 is open";
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
display: grid;
|
|
@@ -21,28 +22,28 @@
|
|
|
21
22
|
|
|
22
23
|
@if $is-sidebar-1-open == false {
|
|
23
24
|
& > :first-child {
|
|
24
|
-
@include
|
|
25
|
+
@include grid-sidebar-sidebar-1(false);
|
|
25
26
|
}
|
|
26
27
|
& > :nth-child(2) {
|
|
27
|
-
@include
|
|
28
|
+
@include grid-sidebar-sidebar-2(false);
|
|
28
29
|
}
|
|
29
30
|
} @else if $is-sidebar-1-open == true and $is-sidebar-2-open == false {
|
|
30
31
|
& > :first-child {
|
|
31
|
-
@include
|
|
32
|
+
@include grid-sidebar-sidebar-1(true);
|
|
32
33
|
}
|
|
33
34
|
& > :nth-child(2) {
|
|
34
|
-
@include
|
|
35
|
+
@include grid-sidebar-sidebar-2(false);
|
|
35
36
|
}
|
|
36
37
|
} @else if $is-sidebar-1-open == true and $is-sidebar-2-open == true {
|
|
37
38
|
& > :first-child {
|
|
38
|
-
@include
|
|
39
|
+
@include grid-sidebar-sidebar-1(true);
|
|
39
40
|
}
|
|
40
41
|
& > :nth-child(2) {
|
|
41
|
-
@include
|
|
42
|
+
@include grid-sidebar-sidebar-2(true);
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
@include
|
|
46
|
+
@include media-query-min('m') {
|
|
46
47
|
--ds-grid-sidebar-gap: 24px;
|
|
47
48
|
gap: var(--ds-grid-sidebar-gap);
|
|
48
49
|
grid-template-columns:
|
|
@@ -56,12 +57,12 @@
|
|
|
56
57
|
--ds-grid-span-one-quarter: span 3;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
@include
|
|
60
|
+
@include media-query-min('l') {
|
|
60
61
|
--ds-grid-sidebar-gap: 0px;
|
|
61
62
|
gap: var(--ds-grid-sidebar-gap);
|
|
62
63
|
column-gap: 24px;
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
|
|
65
|
+
|
|
65
66
|
margin-block-end: -24px;
|
|
66
67
|
|
|
67
68
|
@if $is-sidebar-1-open == false {
|
|
@@ -89,29 +90,24 @@
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
--ds-internal-grid-safe-zone-left: 2px;
|
|
92
|
-
|
|
93
|
-
* The safe zone + gap equal to what is called "margin" in the designs.
|
|
94
|
-
* The "margin" on the right differs ONLY in Figma, based on the status of the sidebar 1 and 2.
|
|
95
|
-
* HOWEVER, in code, the margins are always the same!
|
|
96
|
-
* 26 + 24 = 50
|
|
97
|
-
*/
|
|
93
|
+
|
|
98
94
|
--ds-internal-grid-safe-zone-right: 26px;
|
|
99
95
|
|
|
100
96
|
--ds-grid-span-one-half: span 3;
|
|
101
97
|
--ds-grid-span-one-third: span 2;
|
|
102
98
|
--ds-grid-span-two-thirds: span 4;
|
|
103
99
|
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
|
|
101
|
+
|
|
106
102
|
& > * {
|
|
107
103
|
margin-block-end: 24px;
|
|
108
104
|
}
|
|
109
105
|
}
|
|
110
106
|
|
|
111
|
-
@include
|
|
107
|
+
@include media-query-min('xl') {
|
|
112
108
|
column-gap: 32px;
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
|
|
110
|
+
|
|
115
111
|
margin-block-end: -32px;
|
|
116
112
|
|
|
117
113
|
@if $is-sidebar-1-open == false {
|
|
@@ -139,20 +135,15 @@
|
|
|
139
135
|
}
|
|
140
136
|
|
|
141
137
|
--ds-internal-grid-safe-zone-left: 0px;
|
|
142
|
-
|
|
143
|
-
* The safe zone + gap equal to what is called "margin" in the designs.
|
|
144
|
-
* The "margin" on the right differs ONLY in Figma, based on the status of the sidebar 1 and 2.
|
|
145
|
-
* HOWEVER, in code, the margins are always the same!
|
|
146
|
-
* 32 + 32 = 64
|
|
147
|
-
*/
|
|
138
|
+
|
|
148
139
|
--ds-internal-grid-safe-zone-right: 32px;
|
|
149
140
|
|
|
150
141
|
--ds-grid-span-one-half: span 6;
|
|
151
142
|
--ds-grid-span-one-third: span 4;
|
|
152
143
|
--ds-grid-span-two-thirds: span 8;
|
|
153
144
|
|
|
154
|
-
|
|
155
|
-
|
|
145
|
+
|
|
146
|
+
|
|
156
147
|
& > * {
|
|
157
148
|
margin-block-end: 32px;
|
|
158
149
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'media-query' as *;
|
|
2
|
+
|
|
3
|
+
@mixin grid {
|
|
2
4
|
display: grid;
|
|
3
|
-
--ds-grid-gap:
|
|
5
|
+
--ds-grid-gap: var(--ds-spacing-dynamic-xs);
|
|
4
6
|
gap: var(--ds-grid-gap);
|
|
5
7
|
min-width: 320px;
|
|
6
8
|
grid-template-columns:
|
|
@@ -10,16 +12,14 @@
|
|
|
10
12
|
--ds-internal-grid-safe-zone
|
|
11
13
|
)
|
|
12
14
|
[extended-end full-end];
|
|
13
|
-
|
|
15
|
+
|
|
14
16
|
--ds-internal-grid-safe-zone: 0;
|
|
15
17
|
--ds-grid-span-one-half: span 4;
|
|
16
18
|
--ds-grid-span-one-third: span 4;
|
|
17
19
|
--ds-grid-span-two-thirds: span 4;
|
|
18
20
|
--ds-grid-span-one-quarter: span 2;
|
|
19
21
|
|
|
20
|
-
@include
|
|
21
|
-
--ds-grid-gap: 24px;
|
|
22
|
-
gap: var(--ds-grid-gap);
|
|
22
|
+
@include media-query-min('m') {
|
|
23
23
|
grid-template-columns:
|
|
24
24
|
[full-start extended-start] var(--ds-internal-grid-safe-zone)
|
|
25
25
|
[main-start narrow-left-start narrow-center-start] repeat(
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--ds-internal-grid-safe-zone
|
|
31
31
|
)
|
|
32
32
|
[extended-end full-end];
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
--ds-internal-grid-safe-zone: 9px;
|
|
35
35
|
--ds-grid-span-one-half: span 3;
|
|
36
36
|
--ds-grid-span-one-third: span 2;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
--ds-grid-span-one-quarter: span 3;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
@include
|
|
41
|
+
@include media-query-min('l') {
|
|
42
42
|
grid-template-columns:
|
|
43
43
|
[full-start extended-start] var(--ds-internal-grid-safe-zone)
|
|
44
44
|
[main-start narrow-left-start] repeat(2, minmax(0, 1fr))
|
|
@@ -47,16 +47,14 @@
|
|
|
47
47
|
[narrow-center-end] repeat(2, minmax(0, 1fr))
|
|
48
48
|
[main-end] var(--ds-internal-grid-safe-zone)
|
|
49
49
|
[extended-end full-end];
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
--ds-internal-grid-safe-zone: 26px;
|
|
52
52
|
--ds-grid-span-one-half: span 6;
|
|
53
53
|
--ds-grid-span-one-third: span 4;
|
|
54
54
|
--ds-grid-span-two-thirds: span 8;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
@include
|
|
58
|
-
--ds-grid-gap: 32px;
|
|
59
|
-
gap: var(--ds-grid-gap);
|
|
57
|
+
@include media-query-min('xl') {
|
|
60
58
|
grid-template-columns:
|
|
61
59
|
[full-start extended-start] var(--ds-internal-grid-safe-zone)
|
|
62
60
|
[main-start narrow-left-start] repeat(3, minmax(0, 1fr))
|
|
@@ -65,14 +63,14 @@
|
|
|
65
63
|
[narrow-center-end] repeat(3, minmax(0, 1fr))
|
|
66
64
|
[main-end] var(--ds-internal-grid-safe-zone)
|
|
67
65
|
[extended-end full-end];
|
|
68
|
-
|
|
66
|
+
|
|
69
67
|
--ds-internal-grid-safe-zone: 32px;
|
|
70
68
|
}
|
|
71
69
|
|
|
72
|
-
@include
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
@include media-query-min('xxl') {
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
76
74
|
grid-template-columns:
|
|
77
75
|
[full-start] auto
|
|
78
76
|
[extended-start] var(--ds-internal-grid-safe-zone)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@use 'media-query' as *;
|
|
2
|
+
@use './ds-internal/_heading' as *;
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@mixin heading-x-large {
|
|
7
|
+
@include base-heading-bold(
|
|
8
|
+
'STIHL Contraface Digital Text Bold',
|
|
9
|
+
1.625rem,
|
|
10
|
+
1.2
|
|
11
|
+
);
|
|
12
|
+
@include responsive-heading('l', 1.875rem, 1.25);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin heading-x-large-uppercase {
|
|
16
|
+
@include base-heading-display-title(
|
|
17
|
+
'STIHL Contraface Digital Display Title',
|
|
18
|
+
1.625rem,
|
|
19
|
+
1.2
|
|
20
|
+
);
|
|
21
|
+
text-transform: uppercase;
|
|
22
|
+
@include responsive-heading('l', 1.875rem, 1.25);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@mixin heading-large {
|
|
27
|
+
@include base-heading-bold(
|
|
28
|
+
'STIHL Contraface Digital Text Bold',
|
|
29
|
+
1.375rem,
|
|
30
|
+
1.25
|
|
31
|
+
);
|
|
32
|
+
@include responsive-heading('l', 1.625rem, 1.2);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin heading-large-uppercase {
|
|
36
|
+
@include base-heading-display-title(
|
|
37
|
+
'STIHL Contraface Digital Display Title',
|
|
38
|
+
1.375rem,
|
|
39
|
+
1.25
|
|
40
|
+
);
|
|
41
|
+
text-transform: uppercase;
|
|
42
|
+
@include responsive-heading('l', 1.625rem, 1.2);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@mixin heading-medium {
|
|
47
|
+
@include base-heading-bold(
|
|
48
|
+
'STIHL Contraface Digital Text Bold',
|
|
49
|
+
1.25rem,
|
|
50
|
+
1.2
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@mixin heading-medium-uppercase {
|
|
55
|
+
@include base-heading-display-title(
|
|
56
|
+
'STIHL Contraface Digital Display Title',
|
|
57
|
+
1.25rem,
|
|
58
|
+
1.2
|
|
59
|
+
);
|
|
60
|
+
text-transform: uppercase;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
@mixin heading-small {
|
|
65
|
+
@include base-heading-bold('STIHL Contraface Digital Text Bold', 1rem, 1.5);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@mixin heading-small-uppercase {
|
|
69
|
+
@include base-heading-display-title(
|
|
70
|
+
'STIHL Contraface Digital Display Title',
|
|
71
|
+
1rem,
|
|
72
|
+
1.5
|
|
73
|
+
);
|
|
74
|
+
text-transform: uppercase;
|
|
75
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@use 'spacing' as *;
|
|
2
|
+
@use 'theme' as *;
|
|
3
|
+
@use 'transition' as *;
|
|
4
|
+
@use './ds-internal/_link' as *;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@mixin link($variant: 'neutral', $theme: 'light') {
|
|
12
|
+
display: inline;
|
|
13
|
+
padding-inline-end: $spacing-2;
|
|
14
|
+
padding-inline-start: $spacing-2;
|
|
15
|
+
padding-block-start: 0;
|
|
16
|
+
padding-block-end: 0;
|
|
17
|
+
line-height: inherit;
|
|
18
|
+
font-size: inherit;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@include link-underline;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
:where(&)[href^="http://"]::after,
|
|
29
|
+
:where(&)[href^="https://"]::after,
|
|
30
|
+
:where(&)[href^='#']::after {
|
|
31
|
+
display: inline-block;
|
|
32
|
+
margin-inline-start: 0.375em;
|
|
33
|
+
width: 0.75em;
|
|
34
|
+
height: 0.75em;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@if ($variant == 'neutral' and $theme == 'light') {
|
|
39
|
+
@include link-variant(
|
|
40
|
+
$theme-light-content-color-interaction-neutral,
|
|
41
|
+
$theme-light-background-color-transparent-hover,
|
|
42
|
+
$theme-light-content-color-interaction-neutral
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@if ($variant == 'highlight' and $theme == 'light') {
|
|
47
|
+
@include link-variant(
|
|
48
|
+
$theme-light-content-color-interaction-accent,
|
|
49
|
+
$theme-light-background-color-transparent-hover,
|
|
50
|
+
$theme-light-content-color-interaction-accent-hover
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@if ($variant == 'neutral' and $theme == 'dark') {
|
|
55
|
+
@include link-variant(
|
|
56
|
+
$theme-dark-content-color-interaction-neutral,
|
|
57
|
+
$theme-dark-background-color-transparent-hover,
|
|
58
|
+
$theme-dark-content-color-interaction-neutral,
|
|
59
|
+
$theme: 'dark'
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@if ($variant == 'highlight' and $theme == 'dark') {
|
|
64
|
+
@include link-variant(
|
|
65
|
+
$theme-dark-content-color-interaction-accent,
|
|
66
|
+
$theme-dark-background-color-transparent-hover,
|
|
67
|
+
$theme-dark-content-color-interaction-accent,
|
|
68
|
+
$theme: 'dark'
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@include transition((background-color, border-color, color));
|
|
74
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'breakpoints' as *;
|
|
3
|
+
|
|
4
|
+
@mixin media-query-min($min: null) {
|
|
5
|
+
@if map.has-key($breakpoints, $min) {
|
|
6
|
+
@media (min-width: #{map.get($breakpoints, $min)}px) {
|
|
7
|
+
@content;
|
|
8
|
+
}
|
|
9
|
+
} @else {
|
|
10
|
+
@error "[STIHL Design System] - [ds.media-query-min()]: Passed '#{$min}' breakpoint is not available in ds.media-query-min() mixin.";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin media-query-max($max: null) {
|
|
15
|
+
@if map.has-key($breakpoints, $max) {
|
|
16
|
+
@media (max-width: #{map.get($breakpoints, $max) - 1}px) {
|
|
17
|
+
@content;
|
|
18
|
+
}
|
|
19
|
+
} @else {
|
|
20
|
+
@error "[STIHL Design System] - [ds.media-query-max()]: Passed '#{$max}' breakpoint is not available in ds.media-query-max() mixin.";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin media-query-min-max($min: null, $max: null) {
|
|
25
|
+
@if map.has-key($breakpoints, $min) and map.has-key($breakpoints, $max) {
|
|
26
|
+
@media (min-width: #{map.get($breakpoints, $min)}px) and (max-width: #{map.get($breakpoints, $max) - 1}px) {
|
|
27
|
+
@content;
|
|
28
|
+
}
|
|
29
|
+
} @else {
|
|
30
|
+
@error "[STIHL Design System] - [ds.media-query-min-max()]: Passed '#{$min}' and/or '#{$max}' breakpoint is not available in ds.media-query-min-max() mixin.";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@mixin
|
|
1
|
+
@mixin shadow-m {
|
|
2
2
|
box-shadow:
|
|
3
3
|
0px 2px 12px 0px rgba(0, 0, 0, 0.08),
|
|
4
4
|
0px 1px 2px 0px rgba(0, 0, 0, 0.16);
|
|
5
5
|
}
|
|
6
|
-
@mixin
|
|
6
|
+
@mixin shadow-l {
|
|
7
7
|
box-shadow:
|
|
8
8
|
0px 8px 48px 0px rgba(0, 0, 0, 0.1),
|
|
9
9
|
0px 2px 4px 0px rgba(0, 0, 0, 0.04);
|