superdesk-ui-framework 3.0.0-beta.0 → 3.0.1-beta.1
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/app/img/spinner.svg +3 -0
- package/app/img/themes/theme-base.svg +1 -0
- package/app/img/themes/theme-contrast.svg +45 -0
- package/app/img/themes/theme-dark.svg +1 -0
- package/app/img/themes/theme-light.svg +1 -0
- package/app/index.js +1 -1
- package/app/scripts/modals.js +22 -9
- package/app/styles/_accessibility.scss +311 -4
- package/app/styles/_alerts.scss +57 -19
- package/app/styles/_avatar.scss +25 -1
- package/app/styles/_badge.scss +2 -2
- package/app/styles/_big-icon-font.scss +1 -1
- package/app/styles/_boxed-list.scss +38 -18
- package/app/styles/_buttons.scss +431 -332
- package/app/styles/_carousel.scss +17 -11
- package/app/styles/_design-tokens.scss +2 -0
- package/app/styles/_helpers.scss +186 -30
- package/app/styles/_icon-font.scss +1 -1
- package/app/styles/_labels.scss +12 -6
- package/app/styles/_loaders.scss +13 -0
- package/app/styles/_master-desk.scss +5 -5
- package/app/styles/_mixins.scss +13 -3
- package/app/styles/_modals.scss +4 -28
- package/app/styles/_normalize.scss +1 -0
- package/app/styles/_panel-info.scss +19 -14
- package/app/styles/_sd-tag-input.scss +104 -3
- package/app/styles/_simple-list.scss +39 -17
- package/app/styles/_spinner.scss +46 -0
- package/app/styles/_tabs.scss +6 -8
- package/app/styles/_tag-labels.scss +11 -2
- package/app/styles/_thumb-carousel.scss +11 -10
- package/app/styles/_toggle-box.scss +46 -12
- package/app/styles/_toggle-button.scss +42 -0
- package/app/styles/_tooltips.scss +3 -3
- package/app/styles/_variables.scss +0 -1
- package/app/styles/app.scss +9 -2
- package/app/styles/components/_card-item.scss +33 -21
- package/app/styles/components/_list-item.scss +9 -4
- package/app/styles/components/_sd-dropzone.scss +78 -0
- package/app/styles/components/_sd-grid-item.scss +2 -2
- package/app/styles/components/_sd-searchbar.scss +5 -98
- package/app/styles/components/_subnav.scss +83 -61
- package/app/styles/components/_theme-selector.scss +189 -0
- package/app/styles/design-tokens/_design-tokens-general.scss +77 -0
- package/app/styles/{variables → design-tokens}/_new-colors.scss +34 -20
- package/app/styles/dropdowns/_basic-dropdown.scss +30 -3
- package/app/styles/editor/_editor-buttons.scss +54 -0
- package/app/styles/{_editor-themes.scss → editor/_editor-themes.scss} +0 -0
- package/app/styles/form-elements/_checkbox.scss +85 -58
- package/app/styles/form-elements/_forms-general.scss +90 -14
- package/app/styles/form-elements/_inputs.scss +22 -3
- package/app/styles/form-elements/_select-grid.scss +79 -0
- package/app/styles/grids/_basic-grid.scss +52 -26
- package/app/styles/grids/_grid-layout.scss +35 -21
- package/app/styles/grids/_layout-grid.scss +4 -4
- package/app/styles/grids/_sd-kanban-list.scss +2 -2
- package/app/styles/interface-elements/_side-panel.scss +87 -58
- package/app/styles/layout/_basic-layout.scss +1 -4
- package/app/styles/layout/_container.scss +32 -0
- package/app/styles/layout/_editor.scss +306 -0
- package/app/styles/menus/_sd-left-navigation.scss +14 -2
- package/app/styles/menus/_sd-sidebar-menu.scss +102 -9
- package/app/styles/pr-superdesk-theme.scss +3 -0
- package/app/styles/primereact/_pr-datepicker.scss +58 -7
- package/app/styles/primereact/_pr-dropdown.scss +157 -8
- package/app/styles/primereact/_pr-general.scss +4 -0
- package/app/styles/primereact/_pr-skeleton.scss +35 -0
- package/app/styles/variables/_colors.scss +2 -452
- package/app/styles/variables/_dimensions.scss +85 -1
- package/app/styles/variables/_form-elements.scss +0 -2
- package/app-typescript/components/Alert.tsx +16 -1
- package/app-typescript/components/Avatar.tsx +21 -0
- package/app-typescript/components/Button.tsx +7 -1
- package/app-typescript/components/ButtonGroup.tsx +5 -4
- package/app-typescript/components/Carousel.tsx +1 -1
- package/app-typescript/components/CheckButtonGroup.tsx +19 -5
- package/app-typescript/components/CheckGroup.tsx +2 -1
- package/app-typescript/components/Checkbox.tsx +7 -3
- package/app-typescript/components/CheckboxButton.tsx +9 -2
- package/app-typescript/components/DatePicker.tsx +6 -2
- package/app-typescript/components/DropZone.tsx +89 -0
- package/app-typescript/components/Dropdown.tsx +9 -1
- package/app-typescript/components/Editor/EditorButton.tsx +34 -0
- package/app-typescript/components/Form/FormGroup.tsx +33 -0
- package/app-typescript/components/Form/FormItem.tsx +20 -0
- package/app-typescript/components/Form/FormLabel.tsx +22 -0
- package/app-typescript/components/Form/FormRow.tsx +40 -0
- package/app-typescript/components/Form/FormText.tsx +15 -0
- package/app-typescript/components/Form/index.tsx +5 -0
- package/app-typescript/components/IconButton.tsx +26 -12
- package/app-typescript/components/IconPicker.tsx +277 -0
- package/app-typescript/components/Input.tsx +41 -8
- package/app-typescript/components/Layouts/AuthorinInnerSideBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrame.tsx +72 -0
- package/app-typescript/components/Layouts/AuthoringFrameContainer.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameLeftBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameMain.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameNavBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameOverlay.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameSidePanel.tsx +22 -0
- package/app-typescript/components/Layouts/AuthoringFrameSidePanelOverlay.tsx +22 -0
- package/app-typescript/components/Layouts/AuthoringInnerBody.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +38 -0
- package/app-typescript/components/Layouts/AuthoringMain.tsx +46 -0
- package/app-typescript/components/Layouts/AuthoringMainContainer.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringMainContent.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringMainToolBar.tsx +15 -0
- package/app-typescript/components/Layouts/Container.tsx +30 -0
- package/app-typescript/components/Layouts/HeaderPanel.tsx +15 -0
- package/app-typescript/components/Layouts/LayoutContainer.tsx +18 -0
- package/app-typescript/components/Layouts/LeftPanel.tsx +24 -0
- package/app-typescript/components/Layouts/MainPanel.tsx +22 -0
- package/app-typescript/components/Layouts/PageLayout.tsx +51 -0
- package/app-typescript/components/Layouts/Panel.tsx +207 -0
- package/app-typescript/components/Layouts/RightPanel.tsx +16 -0
- package/app-typescript/components/Layouts/index.tsx +25 -0
- package/app-typescript/components/LeftMenu.tsx +123 -49
- package/app-typescript/components/ListItemLoader.tsx +30 -0
- package/app-typescript/components/Lists/BoxedList.tsx +133 -0
- package/app-typescript/components/Lists/SimpleList.tsx +54 -0
- package/app-typescript/components/Lists/index.tsx +2 -0
- package/app-typescript/components/Modal.tsx +1 -1
- package/app-typescript/components/MultiSelect.tsx +69 -0
- package/app-typescript/components/Navigation/QuickNavBar.tsx +114 -0
- package/app-typescript/components/Navigation/SideBarMenu.tsx +68 -0
- package/app-typescript/components/Navigation/SideBarTabs.tsx +77 -0
- package/app-typescript/components/Navigation/index.tsx +3 -0
- package/app-typescript/components/RadioButtonGroup.tsx +113 -0
- package/app-typescript/components/RadioGroup.tsx +69 -0
- package/app-typescript/components/Select.tsx +12 -4
- package/app-typescript/components/SelectGrid.tsx +233 -0
- package/app-typescript/components/Skeleton.tsx +48 -0
- package/app-typescript/components/SlidingToolbar.tsx +8 -2
- package/app-typescript/components/Spinner.tsx +32 -0
- package/app-typescript/components/SubNav.tsx +25 -4
- package/app-typescript/components/Switch.tsx +34 -12
- package/app-typescript/components/Tag.tsx +31 -7
- package/app-typescript/components/Text/Heading.tsx +67 -0
- package/app-typescript/components/Text/Text.tsx +36 -0
- package/app-typescript/components/ThemeSelector.tsx +113 -0
- package/app-typescript/components/Togglebox.tsx +8 -6
- package/app-typescript/components/TreeSelect.tsx +330 -0
- package/app-typescript/index.ts +19 -3
- package/dist/avatar-2.jpg +0 -0
- package/dist/avatar-3.jpg +0 -0
- package/dist/avatar-4.jpg +0 -0
- package/dist/avatar-5.jpg +0 -0
- package/dist/avatar-6.jpg +0 -0
- package/dist/components/basic-grid.html +1 -1
- package/dist/components/checkbox.html +1 -1
- package/dist/components/modals.html +1 -0
- package/dist/examples.bundle.css +99 -1225
- package/dist/examples.bundle.js +24704 -15626
- package/dist/playgrounds/boxed-list.html +1 -1
- package/dist/playgrounds/cards.html +9 -4
- package/dist/playgrounds/editor-3-test.html +15 -0
- package/dist/playgrounds/form-layout.html +9 -7
- package/dist/playgrounds/master-desk.html +1 -3
- package/dist/playgrounds/react-playgrounds/EditorTest.tsx +454 -0
- package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +4 -4
- package/dist/playgrounds/react-playgrounds/Index.tsx +4 -1
- package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +161 -0
- package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +622 -0
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +10 -10
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +232 -23
- package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +8 -79
- package/dist/react/Alerts.tsx +91 -18
- package/dist/react/Avatar.tsx +314 -127
- package/dist/react/BoxedList.tsx +362 -0
- package/dist/react/ButtonGroups.tsx +66 -65
- package/dist/react/Buttons.tsx +65 -113
- package/dist/react/Carousel.tsx +2 -3
- package/dist/react/Checkboxs.tsx +66 -25
- package/dist/react/Container.tsx +143 -0
- package/dist/react/DropZone.tsx +103 -0
- package/dist/react/Heading.tsx +106 -0
- package/dist/react/IconButtons.tsx +51 -21
- package/dist/react/IconFont.tsx +7 -6
- package/dist/react/IconPicker.tsx +65 -0
- package/dist/react/Index.tsx +100 -19
- package/dist/react/Inputs.tsx +9 -3
- package/dist/react/LeftNavigations.tsx +161 -9
- package/dist/react/ListItems.tsx +34 -0
- package/dist/react/Modal.tsx +7 -7
- package/dist/react/MultiSelect.tsx +193 -0
- package/dist/react/NavButtons.tsx +4 -4
- package/dist/react/Panel.tsx +366 -0
- package/dist/react/QuickNavigationBar.tsx +142 -0
- package/dist/react/RadioGroup.tsx +351 -0
- package/dist/react/SelectGrid.tsx +121 -0
- package/dist/react/Selects.tsx +2 -0
- package/dist/react/SimpleList.tsx +148 -0
- package/dist/react/SubNav.tsx +65 -18
- package/dist/react/Tags.tsx +57 -5
- package/dist/react/Text.tsx +134 -0
- package/dist/react/TreeSelect.tsx +178 -0
- package/dist/react.html +4 -0
- package/dist/superdesk-ui.bundle.css +26706 -20044
- package/dist/superdesk-ui.bundle.js +8456 -3426
- package/dist/vendor.bundle.js +13677 -13655
- package/examples/css/docs-page.css +98 -27
- package/examples/img/avatar-2.jpg +0 -0
- package/examples/img/avatar-3.jpg +0 -0
- package/examples/img/avatar-4.jpg +0 -0
- package/examples/img/avatar-5.jpg +0 -0
- package/examples/img/avatar-6.jpg +0 -0
- package/examples/index.js +16 -0
- package/examples/pages/components/basic-grid.html +1 -1
- package/examples/pages/components/checkbox.html +1 -1
- package/examples/pages/components/modals.html +1 -0
- package/examples/pages/playgrounds/boxed-list.html +1 -1
- package/examples/pages/playgrounds/cards.html +9 -4
- package/examples/pages/playgrounds/editor-3-test.html +15 -0
- package/examples/pages/playgrounds/form-layout.html +9 -7
- package/examples/pages/playgrounds/master-desk.html +1 -3
- package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +454 -0
- package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +4 -4
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +4 -1
- package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +161 -0
- package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +622 -0
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +10 -10
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +232 -23
- package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +8 -79
- package/examples/pages/react/Alerts.tsx +91 -18
- package/examples/pages/react/Avatar.tsx +314 -127
- package/examples/pages/react/BoxedList.tsx +362 -0
- package/examples/pages/react/ButtonGroups.tsx +66 -65
- package/examples/pages/react/Buttons.tsx +65 -113
- package/examples/pages/react/Carousel.tsx +2 -3
- package/examples/pages/react/Checkboxs.tsx +66 -25
- package/examples/pages/react/Container.tsx +143 -0
- package/examples/pages/react/DropZone.tsx +103 -0
- package/examples/pages/react/Heading.tsx +106 -0
- package/examples/pages/react/IconButtons.tsx +51 -21
- package/examples/pages/react/IconFont.tsx +7 -6
- package/examples/pages/react/IconPicker.tsx +65 -0
- package/examples/pages/react/Index.tsx +100 -19
- package/examples/pages/react/Inputs.tsx +9 -3
- package/examples/pages/react/LeftNavigations.tsx +161 -9
- package/examples/pages/react/ListItems.tsx +34 -0
- package/examples/pages/react/Modal.tsx +7 -7
- package/examples/pages/react/MultiSelect.tsx +193 -0
- package/examples/pages/react/NavButtons.tsx +4 -4
- package/examples/pages/react/Panel.tsx +366 -0
- package/examples/pages/react/QuickNavigationBar.tsx +142 -0
- package/examples/pages/react/RadioGroup.tsx +351 -0
- package/examples/pages/react/SelectGrid.tsx +121 -0
- package/examples/pages/react/Selects.tsx +2 -0
- package/examples/pages/react/SimpleList.tsx +148 -0
- package/examples/pages/react/SubNav.tsx +65 -18
- package/examples/pages/react/Tags.tsx +57 -5
- package/examples/pages/react/Text.tsx +134 -0
- package/examples/pages/react/TreeSelect.tsx +178 -0
- package/examples/pages/react.html +4 -0
- package/package.json +9 -5
- package/react/components/Alert.d.ts +3 -0
- package/react/components/Alert.js +9 -1
- package/react/components/Avatar.d.ts +9 -0
- package/react/components/Avatar.js +19 -1
- package/react/components/Button.d.ts +2 -0
- package/react/components/Button.js +4 -2
- package/react/components/ButtonGroup.d.ts +3 -2
- package/react/components/ButtonGroup.js +2 -2
- package/react/components/Carousel.js +1 -1
- package/react/components/CheckButtonGroup.d.ts +3 -1
- package/react/components/CheckButtonGroup.js +8 -2
- package/react/components/CheckGroup.d.ts +1 -0
- package/react/components/CheckGroup.js +1 -1
- package/react/components/Checkbox.d.ts +2 -1
- package/react/components/Checkbox.js +2 -2
- package/react/components/CheckboxButton.d.ts +1 -0
- package/react/components/CheckboxButton.js +2 -2
- package/react/components/DatePicker.js +7 -2
- package/react/components/DropZone.d.ts +25 -0
- package/react/components/DropZone.js +93 -0
- package/react/components/Dropdown.d.ts +1 -0
- package/react/components/Dropdown.js +3 -3
- package/react/components/Form/FormGroup.d.ts +13 -0
- package/react/components/Form/FormGroup.js +61 -0
- package/react/components/Form/FormItem.d.ts +9 -0
- package/react/components/Form/FormItem.js +54 -0
- package/react/components/Form/FormLabel.d.ts +10 -0
- package/react/components/Form/FormLabel.js +54 -0
- package/react/components/Form/FormRow.d.ts +17 -0
- package/react/components/Form/FormRow.js +62 -0
- package/react/components/Form/FormText.d.ts +8 -0
- package/react/components/Form/FormText.js +47 -0
- package/react/components/Form/index.d.ts +5 -0
- package/react/components/Form/index.js +12 -0
- package/react/components/IconButton.d.ts +9 -2
- package/react/components/IconButton.js +13 -5
- package/react/components/IconPicker.d.ts +24 -0
- package/react/components/IconPicker.js +283 -0
- package/react/components/Input.d.ts +20 -3
- package/react/components/Input.js +12 -3
- package/react/components/Layouts/AuthorinInnerSideBar.d.ts +8 -0
- package/react/components/Layouts/AuthorinInnerSideBar.js +47 -0
- package/react/components/Layouts/AuthoringFrame.d.ts +18 -0
- package/react/components/Layouts/AuthoringFrame.js +56 -0
- package/react/components/Layouts/AuthoringFrameContainer.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameContainer.js +47 -0
- package/react/components/Layouts/AuthoringFrameLeftBar.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameLeftBar.js +47 -0
- package/react/components/Layouts/AuthoringFrameMain.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameMain.js +47 -0
- package/react/components/Layouts/AuthoringFrameNavBar.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameNavBar.js +47 -0
- package/react/components/Layouts/AuthoringFrameOverlay.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameOverlay.js +47 -0
- package/react/components/Layouts/AuthoringFrameRightBar.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameRightBar.js +47 -0
- package/react/components/Layouts/AuthoringFrameSidePanel.d.ts +10 -0
- package/react/components/Layouts/AuthoringFrameSidePanel.js +56 -0
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.d.ts +9 -0
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.js +56 -0
- package/react/components/Layouts/AuthoringInnerBody.d.ts +8 -0
- package/react/components/Layouts/AuthoringInnerBody.js +47 -0
- package/react/components/Layouts/AuthoringInnerHeader.d.ts +13 -0
- package/react/components/{RadioButton.js → Layouts/AuthoringInnerHeader.js} +20 -22
- package/react/components/Layouts/AuthoringMain.d.ts +12 -0
- package/react/components/Layouts/AuthoringMain.js +53 -0
- package/react/components/Layouts/AuthoringMainContainer.d.ts +8 -0
- package/react/components/Layouts/AuthoringMainContainer.js +47 -0
- package/react/components/Layouts/AuthoringMainContent.d.ts +8 -0
- package/react/components/Layouts/AuthoringMainContent.js +47 -0
- package/react/components/Layouts/AuthoringMainToolBar.d.ts +8 -0
- package/react/components/Layouts/AuthoringMainToolBar.js +47 -0
- package/react/components/Layouts/Container.d.ts +14 -0
- package/react/components/Layouts/Container.js +60 -0
- package/react/components/Layouts/HeaderPanel.d.ts +8 -0
- package/react/components/Layouts/HeaderPanel.js +47 -0
- package/react/components/Layouts/LayoutContainer.d.ts +8 -0
- package/react/components/Layouts/LayoutContainer.js +47 -0
- package/react/components/Layouts/LeftPanel.d.ts +9 -0
- package/react/components/Layouts/LeftPanel.js +54 -0
- package/react/components/Layouts/MainPanel.d.ts +10 -0
- package/react/components/Layouts/MainPanel.js +50 -0
- package/react/components/Layouts/PageLayout.d.ts +16 -0
- package/react/components/Layouts/PageLayout.js +64 -0
- package/react/components/Layouts/Panel.d.ts +65 -0
- package/react/components/Layouts/Panel.js +166 -0
- package/react/components/Layouts/RightPanel.d.ts +9 -0
- package/react/components/Layouts/RightPanel.js +47 -0
- package/react/components/Layouts/index.d.ts +24 -0
- package/react/components/Layouts/index.js +55 -0
- package/react/components/LeftMenu.d.ts +8 -3
- package/react/components/LeftMenu.js +55 -16
- package/react/components/ListItemLoader.d.ts +4 -0
- package/react/components/ListItemLoader.js +62 -0
- package/react/components/Lists/BoxedList.d.ts +36 -0
- package/react/components/Lists/BoxedList.js +137 -0
- package/react/components/Lists/SimpleList.d.ts +21 -0
- package/react/components/Lists/SimpleList.js +78 -0
- package/react/components/Lists/index.d.ts +2 -0
- package/react/components/Lists/index.js +9 -0
- package/react/components/Modal.js +1 -1
- package/react/components/Navigation/QuickNavBar.d.ts +24 -0
- package/react/components/Navigation/QuickNavBar.js +113 -0
- package/react/components/Navigation/SideBarMenu.d.ts +21 -0
- package/react/components/Navigation/SideBarMenu.js +77 -0
- package/react/components/Navigation/SideBarTabs.d.ts +22 -0
- package/react/components/Navigation/SideBarTabs.js +82 -0
- package/react/components/Navigation/index.d.ts +3 -0
- package/react/components/Navigation/index.js +8 -0
- package/react/components/RadioButtonGroup.d.ts +29 -0
- package/react/components/RadioButtonGroup.js +89 -0
- package/react/components/{Radio.d.ts → RadioGroup.d.ts} +7 -3
- package/react/components/{Radio.js → RadioGroup.js} +15 -11
- package/react/components/Select.d.ts +3 -1
- package/react/components/Select.js +5 -3
- package/react/components/SelectGrid.d.ts +45 -0
- package/react/components/SelectGrid.js +179 -0
- package/react/components/Skeleton.d.ts +30 -0
- package/react/components/Skeleton.js +55 -0
- package/react/components/SlidingToolbar.d.ts +1 -1
- package/react/components/SlidingToolbar.js +11 -1
- package/react/components/Spinner.d.ts +11 -0
- package/react/components/Spinner.js +69 -0
- package/react/components/SubNav.d.ts +8 -1
- package/react/components/SubNav.js +22 -4
- package/react/components/Switch.d.ts +4 -1
- package/react/components/Switch.js +19 -7
- package/react/components/TabCustom.d.ts +0 -1
- package/react/components/Tag.d.ts +3 -2
- package/react/components/Tag.js +16 -5
- package/react/components/TagInput.d.ts +0 -1
- package/react/components/Text/Heading.d.ts +15 -0
- package/react/components/Text/Heading.js +77 -0
- package/react/components/Text/Text.d.ts +15 -0
- package/react/components/Text/Text.js +65 -0
- package/react/components/{RadioButton.d.ts → ThemeSelector.d.ts} +4 -3
- package/react/components/ThemeSelector.js +112 -0
- package/react/components/Togglebox.d.ts +1 -0
- package/react/components/Togglebox.js +9 -2
- package/react/index.d.ts +17 -3
- package/react/index.js +40 -4
- package/app/styles/variables/_design-tokens-general.scss +0 -136
- package/app-typescript/components/Radio.tsx +0 -57
- package/app-typescript/components/RadioButton.tsx +0 -57
- package/dist/react/Radios.tsx +0 -391
- package/examples/pages/react/Radios.tsx +0 -391
@@ -2,17 +2,16 @@
|
|
2
2
|
// ---------------------------------------------
|
3
3
|
|
4
4
|
//color variables
|
5
|
-
$card-item-header-bg-normal:
|
6
|
-
$card-item-header-bg-inactive:
|
5
|
+
$card-item-header-bg-normal: hsl(200, 18%, 46%);
|
6
|
+
$card-item-header-bg-inactive: hsl(0, 0%, 69%);
|
7
7
|
$card-item-header-bg-active: $sd-blueMedium;
|
8
|
-
$card-item-header-bg-light:
|
8
|
+
$card-item-header-bg-light: var(--sd-colour-panel-bg--300);
|
9
9
|
$card-item-header-bg-gradient-1: linear-gradient(180deg, rgba(96,184,194,1) 2%, rgba(30,176,108,1) 90%);
|
10
10
|
$card-item-header-bg-secondary: $subnav-background-blue-grey-darker;
|
11
11
|
$card-item-top-border-height: 0.4rem;
|
12
12
|
$card-item-rounded-radius: $border-radius__base--large;
|
13
13
|
$card-item-default-radius: $border-radius__base--medium;
|
14
14
|
|
15
|
-
|
16
15
|
//shadows
|
17
16
|
$card-item-shadow: 0 1px 4px rgba(0,0,0,.1), 0 1px 5px rgba(0,0,0,.16);
|
18
17
|
$card-item-shadow-hover: 0 1px 6px rgba(0,0,0,.16), 0 2px 12px rgba(0,0,0,.36);
|
@@ -105,22 +104,36 @@ $card-item-shadow-hover-light: 0 1px 6px rgba(0,0,0,.1), 0 2px 12px rgba(31, 17,
|
|
105
104
|
&--empty {
|
106
105
|
height:8px;
|
107
106
|
}
|
107
|
+
&--light,
|
108
|
+
&--white {
|
109
|
+
|
110
|
+
background-color: var(--sd-item__main-Bg);
|
111
|
+
color: $sd-text;
|
112
|
+
box-shadow: 0 1px 0 var(--sd-colour-line--light);
|
113
|
+
&::before {
|
114
|
+
background-color: hsla(214, 13%, 50%, 0.5);
|
115
|
+
}
|
116
|
+
}
|
108
117
|
&--light {
|
109
118
|
background-color: $card-item-header-bg-light;
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
color: $sd-text;
|
114
|
-
box-shadow: 0 1px 0 rgba(136, 136, 136, 0.25);
|
119
|
+
.sd-card__thumbnail {
|
120
|
+
background-color: var(--sd-item__thumb-Bg--light);
|
121
|
+
}
|
115
122
|
}
|
116
123
|
&--gradient-1 {
|
117
124
|
background: $card-item-header-bg-gradient-1;
|
125
|
+
.sd-card__thumbnail {
|
126
|
+
background-color: transparent;
|
127
|
+
}
|
118
128
|
}
|
119
129
|
&--blank {
|
120
130
|
background-color: transparent;
|
121
131
|
&::before {
|
122
132
|
background-color: transparent;
|
123
133
|
}
|
134
|
+
.sd-card__thumbnail {
|
135
|
+
background-color: transparent;
|
136
|
+
}
|
124
137
|
}
|
125
138
|
&--with-thumb {
|
126
139
|
position: relative;
|
@@ -210,16 +223,17 @@ $card-item-shadow-hover-light: 0 1px 6px rgba(0,0,0,.1), 0 2px 12px rgba(31, 17,
|
|
210
223
|
}
|
211
224
|
}
|
212
225
|
.sd-card__thumbnail {
|
213
|
-
|
226
|
+
margin-top: 0.4rem;
|
214
227
|
line-height: 0;
|
228
|
+
background-color: var(--sd-item__thumb-Bg);
|
215
229
|
& + .sd-card__heading {
|
216
|
-
background-color:
|
230
|
+
background-color: var(--sd-item__main-Bg);
|
217
231
|
font-weight: 500;
|
218
232
|
text-align: center;
|
219
233
|
color: $sd-text;
|
220
234
|
padding: 1rem 1.6rem;
|
221
235
|
width: 100%;
|
222
|
-
box-shadow: 0 1px 0
|
236
|
+
box-shadow: 0 1px 0 var(--sd-colour-line--light);
|
223
237
|
}
|
224
238
|
}
|
225
239
|
.sd-card__content {
|
@@ -250,7 +264,7 @@ $card-item-shadow-hover-light: 0 1px 6px rgba(0,0,0,.1), 0 2px 12px rgba(31, 17,
|
|
250
264
|
.value-label {
|
251
265
|
float: right;
|
252
266
|
font-size: 13px;
|
253
|
-
color:
|
267
|
+
color: var(--color-text);
|
254
268
|
font-weight: 400;
|
255
269
|
text-transform: none;
|
256
270
|
letter-spacing: 0em;
|
@@ -299,7 +313,7 @@ $card-item-shadow-hover-light: 0 1px 6px rgba(0,0,0,.1), 0 2px 12px rgba(31, 17,
|
|
299
313
|
|
300
314
|
li, .sd-card__content-list-item {
|
301
315
|
padding: 16px;
|
302
|
-
border-bottom: 1px solid
|
316
|
+
border-bottom: 1px solid var(--sd-colour-line--light);
|
303
317
|
&--inline {
|
304
318
|
display: flex;
|
305
319
|
h4 { flex: 1 1; }
|
@@ -316,7 +330,7 @@ $card-item-shadow-hover-light: 0 1px 6px rgba(0,0,0,.1), 0 2px 12px rgba(31, 17,
|
|
316
330
|
}
|
317
331
|
&--border-bottom {
|
318
332
|
&:last-child {
|
319
|
-
border-bottom: 1px solid
|
333
|
+
border-bottom: 1px solid var(--sd-colour-line--light);
|
320
334
|
}
|
321
335
|
}
|
322
336
|
&--small {
|
@@ -332,7 +346,7 @@ $card-item-shadow-hover-light: 0 1px 6px rgba(0,0,0,.1), 0 2px 12px rgba(31, 17,
|
|
332
346
|
.creation-time {
|
333
347
|
display: block;
|
334
348
|
font-size: 12px;
|
335
|
-
color:
|
349
|
+
color: var(--color-text-light);
|
336
350
|
i {
|
337
351
|
display: inline-block;
|
338
352
|
opacity: 0.5;
|
@@ -391,12 +405,10 @@ $card-item-shadow-hover-light: 0 1px 6px rgba(0,0,0,.1), 0 2px 12px rgba(31, 17,
|
|
391
405
|
align-items: center;
|
392
406
|
@include sd-padding('1-5', 'x');
|
393
407
|
min-height: $sd-base-increment * 6;
|
394
|
-
background-color:
|
408
|
+
background-color: var(--sd-item__main-Bg);
|
395
409
|
border-radius: 0 0 $card-item-default-radius $card-item-default-radius;
|
396
|
-
box-shadow: 0 -1px 0 0
|
397
|
-
|
398
|
-
background-color: $white;
|
399
|
-
}
|
410
|
+
box-shadow: 0 -1px 0 0 var(--sd-colour-line--light);
|
411
|
+
gap: $sd-base-increment;
|
400
412
|
&--right-align {
|
401
413
|
justify-content: flex-end;
|
402
414
|
}
|
@@ -322,7 +322,7 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
322
322
|
// Text specific styles
|
323
323
|
.sd-list-item {
|
324
324
|
time {
|
325
|
-
color:
|
325
|
+
color: var(--color-text-lighter);
|
326
326
|
font-size: 1.2rem;
|
327
327
|
letter-spacing: 0.025em;
|
328
328
|
flex-shrink: 0;
|
@@ -513,6 +513,11 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
513
513
|
border-top: 1px solid var(--sd-colour-line--x-light);
|
514
514
|
}
|
515
515
|
}
|
516
|
+
.sd-list-item-nested {
|
517
|
+
+ .sd-list-item {
|
518
|
+
border-top: 1px solid var(--sd-colour-line--x-light);
|
519
|
+
}
|
520
|
+
}
|
516
521
|
&--space-between-items {
|
517
522
|
.sd-list-item {
|
518
523
|
+ .sd-list-item {
|
@@ -540,15 +545,15 @@ $sd-ListItem-column-border: var(--sd-colour-line--x-light);
|
|
540
545
|
|
541
546
|
.sd-list-header {
|
542
547
|
display: flex;
|
543
|
-
height:
|
544
|
-
margin-bottom:
|
548
|
+
height: 2.4rem;
|
549
|
+
margin-bottom: $sd-base-increment;
|
545
550
|
align-items: center;
|
546
551
|
.sd-list-header__name {
|
547
552
|
font-size: 1.1rem;
|
548
553
|
letter-spacing: .08em;
|
549
554
|
font-weight: 500;
|
550
555
|
text-transform: uppercase;
|
551
|
-
color:
|
556
|
+
color: var(--color-text-light);
|
552
557
|
a {
|
553
558
|
color: $sd-colour-interactive;
|
554
559
|
text-decoration: none;
|
@@ -0,0 +1,78 @@
|
|
1
|
+
.sd-dropzone__drop-target {
|
2
|
+
position: relative;
|
3
|
+
padding: 0;
|
4
|
+
display: flex;
|
5
|
+
flex-direction: column;
|
6
|
+
align-items: center;
|
7
|
+
justify-content: center;
|
8
|
+
border-radius: var(--b-radius--medium);
|
9
|
+
min-height: 72px;
|
10
|
+
width: 100%;
|
11
|
+
padding: 16px;
|
12
|
+
gap: $sd-base-increment * 2;
|
13
|
+
transition: all 0.2s ease;
|
14
|
+
background-color: var(--sd-colour-bg-translucent--10);
|
15
|
+
&--height-l {
|
16
|
+
min-height: var(--width__container--xx-small);
|
17
|
+
}
|
18
|
+
&:hover, &.sd-dropzone__drop-target--ondragover {
|
19
|
+
background-color: var(--sd-colour-interactive--alpha-10);
|
20
|
+
.sd-dropzone__target-border {
|
21
|
+
inset: 6px;
|
22
|
+
border-color: var(--sd-colour-interactive);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
&:active {
|
26
|
+
.sd-dropzone__target-border {
|
27
|
+
border-color: var(--sd-colour-interactive);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.sd-dropzone__target-border {
|
33
|
+
position: absolute;
|
34
|
+
inset: 2px;
|
35
|
+
border: 2px dashed var(--sd-colour-line--medium);
|
36
|
+
border-radius: var(--b-radius--medium);
|
37
|
+
transition: all 0.3s ease;
|
38
|
+
}
|
39
|
+
.sd-dropzone__icon {
|
40
|
+
width: 64px;
|
41
|
+
height: 64px;
|
42
|
+
display: flex;
|
43
|
+
align-items: center;
|
44
|
+
justify-content: center;
|
45
|
+
background-color: hsla(0, 0%, 100%, 0.5);
|
46
|
+
border-radius: var(--b-radius--full);
|
47
|
+
[class^="big-icon--"],
|
48
|
+
[class*=" big-icon--"] {
|
49
|
+
width: 40px;
|
50
|
+
height: 40px;
|
51
|
+
font-size: 40px;
|
52
|
+
line-height: 40px;
|
53
|
+
opacity: 0.5;
|
54
|
+
}
|
55
|
+
|
56
|
+
}
|
57
|
+
.sd-dropzone__action {
|
58
|
+
margin: 0 auto;
|
59
|
+
}
|
60
|
+
.sd-dropzone__heading {
|
61
|
+
opacity: 0.9;
|
62
|
+
text-align: center;
|
63
|
+
max-width: 400px;
|
64
|
+
margin: 0 auto;
|
65
|
+
font-size: 1.8rem;
|
66
|
+
}
|
67
|
+
.sd-dropzone__description {
|
68
|
+
opacity: 0.7;
|
69
|
+
text-align: center;
|
70
|
+
max-width: 320px;
|
71
|
+
margin: 0 auto;
|
72
|
+
font-size: 1.4rem;
|
73
|
+
}
|
74
|
+
.sd-dropzone__input {
|
75
|
+
width: 100%;
|
76
|
+
height: 100%;
|
77
|
+
opacity: 0;
|
78
|
+
}
|
@@ -4,8 +4,8 @@
|
|
4
4
|
//border-radius
|
5
5
|
$sd-grid-item-border-radius: $border-radius__base--medium;
|
6
6
|
//shadows
|
7
|
-
$sd-grid-item-shadow: 0 1px 4px
|
8
|
-
$sd-grid-item-shadow-hover: 0 1px 6px
|
7
|
+
$sd-grid-item-shadow: 0 0 0 1px var(--sd-shadow-outline), 0 1px 4px hsla(0, 0%, 0%, 0.1), 0 1px 5px hsla(0, 0%, 0%, 0.16);
|
8
|
+
$sd-grid-item-shadow-hover: 0 0 0 1px var(--sd-shadow-outline), 0 1px 6px hsla(0, 0%, 0%, 0.16), 0 2px 8px hsla(0, 0%, 0%, 0.26);
|
9
9
|
$sd-grid-item-shadow-selected: var(--sd-shadow__item--selected);
|
10
10
|
$sd-grid-item-shadow-activated: 0 0 0 2px var(--sd-colour-interactive--alpha-50);
|
11
11
|
|
@@ -35,14 +35,15 @@
|
|
35
35
|
&--boxed {
|
36
36
|
height: 4rem;
|
37
37
|
border-radius: $border-radius__base--medium;
|
38
|
-
border: 1px solid
|
38
|
+
border: 1px solid var(--color-border-line--medium);
|
39
39
|
background-color: var(--sd-colour-bg__searchbar);
|
40
40
|
box-shadow: inset 0 2px 4px rgba(0,0,0,0.14);
|
41
41
|
transition: box-shadow 0.2s ease-out;
|
42
42
|
&:hover {
|
43
43
|
border-color: rgba(123,123,123,0.6);
|
44
44
|
}
|
45
|
-
&.sd-searchbar--focused
|
45
|
+
&.sd-searchbar--focused,
|
46
|
+
&:focus-within {
|
46
47
|
transition: box-shadow 0.2s ease-out;
|
47
48
|
border-color: var(--sd-colour-interactive--alpha-70);
|
48
49
|
box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-50), inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
@@ -197,105 +198,11 @@
|
|
197
198
|
}
|
198
199
|
}
|
199
200
|
|
200
|
-
// .flat-searchbar {
|
201
|
-
// flex-grow: 0;
|
202
|
-
// .search-handler {
|
203
|
-
// min-width: 48px;
|
204
|
-
// height: $nav-height;
|
205
|
-
// padding: 10px 10px 10px 14px;
|
206
|
-
// background: none;
|
207
|
-
// display: flex;
|
208
|
-
// border-right: 1px solid var(--sd-colour-line--light);
|
209
|
-
// white-space: nowrap;
|
210
|
-
// transition: all 0.3s ease;
|
211
|
-
// input {
|
212
|
-
// height: 28px;
|
213
|
-
// line-height: 100%;
|
214
|
-
// font-size: 14px;
|
215
|
-
// border: 0 !important;
|
216
|
-
// width: 0;
|
217
|
-
// padding: 0;
|
218
|
-
// color: $sd-text;
|
219
|
-
// background-color: transparent;
|
220
|
-
// transition: all 0.3s ease;
|
221
|
-
// &:focus {
|
222
|
-
// box-shadow: none;
|
223
|
-
// }
|
224
|
-
// &::placeholder {
|
225
|
-
// color: $sd-text-light;
|
226
|
-
// font-weight: 300;
|
227
|
-
// letter-spacing: 0.03rem;
|
228
|
-
// }
|
229
|
-
// }
|
230
|
-
// .trigger-icon {
|
231
|
-
// @include user-select(none);
|
232
|
-
// width: 28px;
|
233
|
-
// height: 28px;
|
234
|
-
// display: inline-block;
|
235
|
-
// opacity: 0.5;
|
236
|
-
// &:hover {
|
237
|
-
// cursor: pointer;
|
238
|
-
// opacity: 0.8;
|
239
|
-
// }
|
240
|
-
// i {
|
241
|
-
// padding: 7px 3px 4px 6px;
|
242
|
-
// }
|
243
|
-
// }
|
244
|
-
// &--left-border {
|
245
|
-
// border-right: 0 !important;
|
246
|
-
// border-left: 1px solid var(--sd-colour-line--light);
|
247
|
-
// }
|
248
|
-
|
249
|
-
// }
|
250
|
-
// .separator-handler {
|
251
|
-
// margin: 9px 0 0 5px;
|
252
|
-
// border-right: 2px dotted var(--sd-colour-line--medium);
|
253
|
-
// height: 30px;
|
254
|
-
// float: left;
|
255
|
-
// }
|
256
|
-
|
257
|
-
// .search-close {
|
258
|
-
// border: 0;
|
259
|
-
// background: none;
|
260
|
-
// display: none;
|
261
|
-
// opacity: 0;
|
262
|
-
// &.visible {
|
263
|
-
// opacity: 0.4;
|
264
|
-
// &:hover {
|
265
|
-
// opacity: 1;
|
266
|
-
// }
|
267
|
-
// }
|
268
|
-
// }
|
269
|
-
|
270
|
-
// &.extended {
|
271
|
-
// flex-grow: 1;
|
272
|
-
// background-color: var(--sd-colour-bg__searchbar);
|
273
|
-
// .search-handler {
|
274
|
-
// input {
|
275
|
-
// width: auto;
|
276
|
-
// padding: 0 6px;
|
277
|
-
// flex-grow: 1;
|
278
|
-
// }
|
279
|
-
// border-right: 1px solid var(--sd-colour-line--light);
|
280
|
-
// }
|
281
|
-
// .separator-handler {
|
282
|
-
// margin-left: 14px;
|
283
|
-
// }
|
284
|
-
// .search-close {
|
285
|
-
// display: inline-block;
|
286
|
-
// }
|
287
|
-
// &:focus-within {
|
288
|
-
// box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-50), inset 0 0 0 6px var(--sd-colour-interactive--alpha-20);
|
289
|
-
// }
|
290
|
-
// }
|
291
|
-
// }
|
292
|
-
|
293
201
|
[data-theme="dark-ui"] {
|
294
202
|
.sd-searchbar--boxed {
|
295
|
-
background-color:
|
203
|
+
background-color: hsla(0, 0%, 0%, 0.2);
|
296
204
|
&.sd-searchbar--focused {
|
297
|
-
background-color:
|
298
|
-
//box-shadow: inset 0 0 0 1px rgba(61,143,177,0.2), inset 0 0 0 4px rgba(61,143,177,0.16);
|
205
|
+
background-color: hsla(0, 0%, 0%, 0.25) !important;
|
299
206
|
}
|
300
207
|
|
301
208
|
}
|
@@ -52,7 +52,7 @@
|
|
52
52
|
flex-grow: 1;
|
53
53
|
}
|
54
54
|
.subnav__page-title {
|
55
|
-
padding:
|
55
|
+
padding: 0 1.6rem;
|
56
56
|
color: inherit;
|
57
57
|
font-size: 1.8rem;
|
58
58
|
line-height: 2.8rem;
|
@@ -67,6 +67,23 @@
|
|
67
67
|
flex-grow: 1;
|
68
68
|
}
|
69
69
|
|
70
|
+
.subnav__divider {
|
71
|
+
display: inline-flex;
|
72
|
+
height: 100%;
|
73
|
+
&--small {
|
74
|
+
width: $sd-base-increment * 1.5;
|
75
|
+
}
|
76
|
+
&--medium {
|
77
|
+
width: $sd-base-increment * 2;
|
78
|
+
}
|
79
|
+
&--large {
|
80
|
+
width: $sd-base-increment * 3;
|
81
|
+
}
|
82
|
+
&--x-large {
|
83
|
+
width: $sd-base-increment * 4;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
70
87
|
|
71
88
|
.subnav {
|
72
89
|
&.subnav--level2 {
|
@@ -76,6 +93,9 @@
|
|
76
93
|
z-index: 2;
|
77
94
|
box-shadow: none;
|
78
95
|
}
|
96
|
+
.sd-nav-tabs {
|
97
|
+
box-shadow: none;
|
98
|
+
}
|
79
99
|
}
|
80
100
|
|
81
101
|
.subnav__sliding-toolbar {
|
@@ -97,53 +117,53 @@ $navbutton-bg-color-darker-hover: var(--color-navbutton-bg-100-hover);
|
|
97
117
|
$navbutton-focus-box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-70), 0 0 0 2px $sd-colour--focus-shadow;
|
98
118
|
|
99
119
|
@mixin navbutton-base {
|
100
|
-
|
101
|
-
|
102
|
-
|
120
|
+
position: relative;
|
121
|
+
height: $subnav-height;
|
122
|
+
width: 4.8rem;
|
103
123
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
background: $navbutton-bg-color;
|
110
|
-
color: inherit;
|
111
|
-
text-align: center;
|
124
|
+
display: inline-flex;
|
125
|
+
flex-direction: row;
|
126
|
+
align-items: center;
|
127
|
+
justify-content: center;
|
112
128
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
border-inline-width: 1px 0;
|
117
|
-
cursor: pointer;
|
118
|
-
transition: $navbutton-transition;
|
129
|
+
background: $navbutton-bg-color;
|
130
|
+
color: inherit;
|
131
|
+
text-align: center;
|
119
132
|
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
133
|
+
text-decoration: none;
|
134
|
+
border: 0;
|
135
|
+
border: 0px solid $navbutton-border-color;
|
136
|
+
border-inline-width: 1px 0;
|
137
|
+
cursor: pointer;
|
138
|
+
transition: $navbutton-transition;
|
139
|
+
|
140
|
+
i {
|
141
|
+
opacity: 0.75;
|
142
|
+
vertical-align: baseline !important;
|
143
|
+
transition: opacity 0.2s ease-out;
|
144
|
+
}
|
145
|
+
[class^="big-icon--"], [class*=" big-icon--"],
|
146
|
+
[class^="icon-"], [class*=" icon-"] {
|
147
|
+
color: currentColor;
|
148
|
+
}
|
149
|
+
&:hover {
|
150
|
+
background: $navbutton-bg-color-hover;
|
151
|
+
> i {
|
152
|
+
opacity: 1;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
&:active {
|
156
|
+
background: $navbutton-bg-color-active;
|
157
|
+
> i {
|
158
|
+
opacity: 1;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
&:focus-visible {
|
162
|
+
box-shadow: $navbutton-focus-box-shadow;
|
163
|
+
> i {
|
164
|
+
opacity: 1;
|
165
|
+
}
|
166
|
+
}
|
147
167
|
}
|
148
168
|
|
149
169
|
.sd-navbtn {
|
@@ -261,17 +281,20 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-
|
|
261
281
|
|
262
282
|
.navbtn {
|
263
283
|
position: relative;
|
264
|
-
display: inline-
|
284
|
+
display: inline-flex;
|
285
|
+
flex-direction: row;
|
286
|
+
align-items: center;
|
287
|
+
justify-content: center;
|
265
288
|
height: $subnav-height;
|
266
289
|
width: 4.8rem;
|
267
|
-
padding: 0
|
290
|
+
padding: 0;
|
268
291
|
background: transparent;
|
269
292
|
color: $sd-text;
|
270
293
|
text-align: center;
|
271
|
-
line-height: 5.6rem;
|
272
294
|
text-decoration: none;
|
273
|
-
border:
|
274
|
-
border-
|
295
|
+
border: 0px solid transparent;
|
296
|
+
border-color: $navbutton-border-color;
|
297
|
+
border-inline-width: 1px 0;
|
275
298
|
cursor:pointer;
|
276
299
|
background: transparent;
|
277
300
|
transition: background-color 0.2s ease-out, color 0.1s ease-out;
|
@@ -282,16 +305,16 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-
|
|
282
305
|
}
|
283
306
|
[class^="big-icon--"],
|
284
307
|
[class*=" big-icon--"] {
|
285
|
-
|
286
|
-
|
287
|
-
|
308
|
+
line-height: 1;
|
309
|
+
color: $sd-text;
|
310
|
+
display: block;
|
288
311
|
}
|
289
312
|
.big-icon--send-to {
|
290
|
-
|
313
|
+
margin-left: 0.3rem;
|
291
314
|
}
|
292
315
|
[class^="icon-"],
|
293
316
|
[class*=" icon-"] {
|
294
|
-
|
317
|
+
color: $sd-text;
|
295
318
|
}
|
296
319
|
&:hover {
|
297
320
|
background: var(--color-navbutton-bg-hover);
|
@@ -300,12 +323,11 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-
|
|
300
323
|
}
|
301
324
|
}
|
302
325
|
&.navbtn--left {
|
303
|
-
|
304
|
-
border-right: 1px solid var(--sd-colour-line--x-light);
|
326
|
+
border-inline-width: 0 1px;
|
305
327
|
}
|
306
328
|
&.navbtn--blue {
|
307
329
|
background: $sd-colour-interactive;
|
308
|
-
border-
|
330
|
+
border-color: var(--sd-colour-interactive--lighten-10);
|
309
331
|
color: $white;
|
310
332
|
&.disabled {
|
311
333
|
background: var(--sd-colour-interactive--lighten-30);
|
@@ -315,11 +337,11 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-
|
|
315
337
|
width: auto;
|
316
338
|
line-height: $subnav-height;
|
317
339
|
padding: 0 20px;
|
318
|
-
border-
|
340
|
+
border-inline-width: 0 1px;
|
319
341
|
font-size: 1.5rem;
|
320
342
|
}
|
321
343
|
&.navbtn--border-r {
|
322
|
-
border-
|
344
|
+
border-inline-end: 1px !important;
|
323
345
|
}
|
324
346
|
&.navbtn--highlighted {
|
325
347
|
background-color: $purple !important;
|
@@ -536,7 +558,7 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-
|
|
536
558
|
.dropdown__caret {
|
537
559
|
position: absolute;
|
538
560
|
top: 50%;
|
539
|
-
|
561
|
+
inset-inline-end: 1rem;
|
540
562
|
}
|
541
563
|
}
|
542
564
|
.navbtn {
|