stargazer-ui 1.5.11 → 1.5.13
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/.babelrc.json +10 -0
- package/.eslintrc.cjs +18 -0
- package/.gitattributes +2 -0
- package/LICENSE +21 -0
- package/dev/index.html +12 -0
- package/dev/index.jsx +46 -0
- package/dev/index.scss +74 -0
- package/dev/pages/ButtonPage.jsx +44 -0
- package/dev/pages/CardPage.jsx +81 -0
- package/dev/pages/DropdownPage.jsx +32 -0
- package/dev/pages/FormPage.jsx +155 -0
- package/dev/pages/ListPage.jsx +52 -0
- package/dev/pages/ModalPage.jsx +38 -0
- package/dev/pages/OverlayPage.jsx +39 -0
- package/dev/pages/components.jsx +19 -0
- package/dev/stargazerui.css +3762 -0
- package/dev/stargazerui.css.map +1 -0
- package/dev/test.jsx +87 -0
- package/package.json +79 -1
- package/rollup.config.js +140 -0
- package/scripts/writePackageJsons.js +42 -0
- package/src/Bar/Bar.tsx +0 -0
- package/src/Bar/Bar.type.ts +9 -0
- package/src/Bar/index.ts +0 -0
- package/src/Button/Button.tsx +20 -0
- package/src/Button/Button.types.ts +8 -0
- package/src/Button/index.ts +3 -0
- package/src/ButtonGroup/ButtonGroup.tsx +14 -0
- package/src/ButtonGroup/ButtonGroup.types.ts +8 -0
- package/src/ButtonGroup/index.ts +3 -0
- package/src/Card/Card.tsx +70 -0
- package/src/Card/Card.types.ts +33 -0
- package/src/Card/index.ts +3 -0
- package/src/CloseButton/CloseButton.tsx +14 -0
- package/src/CloseButton/CloseButton.types.ts +6 -0
- package/src/CloseButton/index.ts +3 -0
- package/src/Dropdown/Dropdown.tsx +440 -0
- package/src/Dropdown/Dropdown.types.ts +60 -0
- package/src/Dropdown/DropdownOld.tsx +409 -0
- package/src/Dropdown/index.ts +4 -0
- package/src/FileUploadButton/FileUploadButton.tsx +27 -0
- package/src/FileUploadButton/FileUploadButton.types.ts +9 -0
- package/src/FileUploadButton/index.ts +3 -0
- package/src/FloatingLabel/FloatingLabel.tsx +22 -0
- package/src/FloatingLabel/FloatingLabel.types.ts +11 -0
- package/src/FloatingLabel/index.ts +3 -0
- package/src/Form/Form.tsx +398 -0
- package/src/Form/Form.types.ts +169 -0
- package/src/Form/FormSelect.tsx +527 -0
- package/src/Form/index.ts +4 -0
- package/src/InputGroup/InputGroup.tsx +46 -0
- package/src/InputGroup/InputGroup.types.ts +22 -0
- package/src/InputGroup/index.ts +4 -0
- package/src/List/List.tsx +112 -0
- package/src/List/List.types.ts +34 -0
- package/src/List/index.ts +4 -0
- package/src/Modal/Modal.tsx +229 -0
- package/src/Modal/Modal.types.ts +49 -0
- package/src/Modal/index.ts +4 -0
- package/src/Nav/Nav.tsx +43 -0
- package/src/Nav/Nav.types.ts +21 -0
- package/src/Nav/index.ts +4 -0
- package/src/NavBar/Navbar.tsx +57 -0
- package/src/NavBar/Navbar.types.ts +24 -0
- package/src/NavBar/index.ts +4 -0
- package/src/NavDropdown/NavDropdown.tsx +93 -0
- package/src/NavDropdown/NavDropdown.types.ts +6 -0
- package/src/NavDropdown/index.ts +3 -0
- package/src/Overlay/Overlay.tsx +309 -0
- package/src/Overlay/Overlay.types.ts +24 -0
- package/{Overlay/index.d.ts → src/Overlay/index.ts} +3 -3
- package/src/Popout/Popout.tsx +155 -0
- package/src/Popout/Popout.types.ts +42 -0
- package/src/Popout/index.ts +3 -0
- package/src/Spinner/Spinner.tsx +15 -0
- package/src/Spinner/Spinner.types.ts +7 -0
- package/src/Spinner/index.ts +3 -0
- package/src/Table/Table.tsx +16 -0
- package/src/Table/Table.types.ts +9 -0
- package/src/Table/index.ts +3 -0
- package/src/Tabs/Tabs.tsx +233 -0
- package/src/Tabs/Tabs.types.ts +52 -0
- package/src/Tabs/index.ts +3 -0
- package/src/ToggleButton/ToggleButton.tsx +21 -0
- package/src/ToggleButton/ToggleButton.types.ts +8 -0
- package/src/ToggleButton/index.ts +3 -0
- package/src/assets/tooltip-pointer.svg +3 -0
- package/src/assets/warning.svg +39 -0
- package/{hooks/index.d.ts → src/hooks/index.ts} +7 -6
- package/src/hooks/useClassname.ts +5 -0
- package/src/hooks/useDraggable.ts +186 -0
- package/src/hooks/useKeepElementFocused.ts +37 -0
- package/src/hooks/useQueryParams.ts +12 -0
- package/src/hooks/useScreenSize.ts +24 -0
- package/src/index.ts +21 -0
- package/src/styles/_Card.scss +166 -0
- package/src/styles/_CloseButton.scss +51 -0
- package/src/styles/_CustomButton.scss +134 -0
- package/src/styles/_Dropdown.scss +127 -0
- package/src/styles/_FloatingLabel.scss +56 -0
- package/src/styles/_Forms.scss +7 -0
- package/src/styles/_Grid.scss +178 -0
- package/src/styles/_InputGroup.scss +71 -0
- package/src/styles/_List.scss +62 -0
- package/src/styles/_Modal.scss +234 -0
- package/src/styles/_ModalOld.scss +242 -0
- package/src/styles/_Nav.scss +36 -0
- package/src/styles/_NavBar.scss +116 -0
- package/src/styles/_NavDropdown.scss +33 -0
- package/src/styles/_OffCanvas.scss +260 -0
- package/src/styles/_OverLay.scss +64 -0
- package/src/styles/_Popout.scss +75 -0
- package/src/styles/_Spinner.scss +19 -0
- package/src/styles/_Table.scss +34 -0
- package/src/styles/_Tabs.scss +129 -0
- package/src/styles/_colors.scss +510 -0
- package/src/styles/_components.scss +40 -0
- package/src/styles/_functions.scss +134 -0
- package/src/styles/_mixins.scss +26 -0
- package/src/styles/_reset.scss +237 -0
- package/src/styles/_utilities.scss +2480 -0
- package/src/styles/_variables.scss +164 -0
- package/src/styles/forms/_FormCheck.scss +270 -0
- package/src/styles/forms/_FormControl.scss +135 -0
- package/src/styles/forms/_FormGroup.scss +26 -0
- package/src/styles/forms/_FormLabel.scss +3 -0
- package/src/styles/forms/_FormSelect.scss +196 -0
- package/src/styles/forms/_FormSlider.scss +116 -0
- package/src/styles/forms/_FormText.scss +6 -0
- package/{utils/BaseTypes.d.ts → src/utils/BaseTypes.ts} +32 -25
- package/src/utils/ContrastingColor.ts +25 -0
- package/src/utils/CreateSyntheticEvent.ts +30 -0
- package/src/utils/FileImportExport.js +50 -0
- package/src/utils/IsInputKey.ts +18 -0
- package/src/utils/MergeClassnames.ts +5 -0
- package/src/utils/MergeRefs.ts +12 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig-build.json +4 -0
- package/tsconfig.json +79 -0
- package/tsconfig.node.json +10 -0
- package/types/BaseTypes.d.ts +19 -0
- package/{Button → types/components/Button}/Button.types.d.ts +2 -1
- package/types/components/Button/index.d.ts +1 -0
- package/{Card → types/components/Card}/Card.types.d.ts +1 -3
- package/types/components/Card/index.d.ts +1 -0
- package/{CloseButton → types/components/CloseButton}/CloseButton.types.d.ts +1 -1
- package/types/components/CloseButton/index.d.ts +1 -0
- package/{Dropdown/DropdownOld.d.ts → types/components/Dropdown/Dropdown.d.ts} +3 -61
- package/{Dropdown → types/components/Dropdown}/Dropdown.types.d.ts +11 -10
- package/types/components/Dropdown/index.d.ts +1 -0
- package/{FloatingLabel → types/components/FloatingLabel}/FloatingLabel.types.d.ts +1 -1
- package/types/components/FloatingLabel/index.d.ts +1 -0
- package/types/components/Form/Form.d.ts +17 -0
- package/types/components/Form/Form.types.d.ts +50 -0
- package/types/components/Form/index.d.ts +1 -0
- package/types/components/InputGroup/InputGroup.d.ts +6 -0
- package/types/components/InputGroup/InputGroup.types.d.ts +10 -0
- package/types/components/InputGroup/index.d.ts +1 -0
- package/{Modal → types/components/Modal}/Modal.d.ts +1 -1
- package/{Modal → types/components/Modal}/Modal.types.d.ts +2 -3
- package/types/components/Modal/index.d.ts +1 -0
- package/{Nav → types/components/Nav}/Nav.types.d.ts +1 -1
- package/types/components/Nav/index.d.ts +1 -0
- package/{NavBar → types/components/NavBar}/Navbar.d.ts +2 -1
- package/{NavBar → types/components/NavBar}/Navbar.types.d.ts +1 -2
- package/types/components/NavBar/index.d.ts +1 -0
- package/types/components/NavDropdown/NavDropdown.d.ts +35 -0
- package/types/components/NavDropdown/index.d.ts +1 -0
- package/{Popout → types/components/Popout}/Popout.types.d.ts +1 -1
- package/types/components/Popout/index.d.ts +1 -0
- package/types/components/Spinner/index.d.ts +1 -0
- package/{Table → types/components/Table}/Table.types.d.ts +1 -1
- package/types/components/Table/index.d.ts +1 -0
- package/{Tabs → types/components/Tabs}/Tabs.types.d.ts +1 -12
- package/types/components/Tabs/index.d.ts +1 -0
- package/types/components/ToggleButton/ToggleButton.d.ts +9 -0
- package/types/components/ToggleButton/ToggleButton.types.d.ts +0 -0
- package/types/components/ToggleButton/index.d.ts +1 -0
- package/types/components/index.d.ts +16 -0
- package/types/index.d.ts +1 -0
- package/vite.config.js +57 -0
- package/vite.config.js.timestamp-1708777378490-e94428ceb2bf9.mjs +42 -0
- package/Bar/Bar.type.d.ts +0 -6
- package/Bar/index.js +0 -2
- package/Bar/index.js.map +0 -1
- package/Bar/package.json +0 -1
- package/Button/Button.js +0 -15
- package/Button/Button.js.map +0 -1
- package/Button/index.d.ts +0 -3
- package/Button/index.js +0 -7
- package/Button/index.js.map +0 -1
- package/Button/package.json +0 -1
- package/ButtonGroup/ButtonGroup.d.ts +0 -4
- package/ButtonGroup/ButtonGroup.js +0 -11
- package/ButtonGroup/ButtonGroup.js.map +0 -1
- package/ButtonGroup/ButtonGroup.types.d.ts +0 -7
- package/ButtonGroup/index.d.ts +0 -3
- package/ButtonGroup/index.js +0 -7
- package/ButtonGroup/index.js.map +0 -1
- package/ButtonGroup/package.json +0 -1
- package/Card/Card.js +0 -42
- package/Card/Card.js.map +0 -1
- package/Card/index.d.ts +0 -3
- package/Card/index.js +0 -7
- package/Card/index.js.map +0 -1
- package/Card/package.json +0 -1
- package/CloseButton/CloseButton.js +0 -11
- package/CloseButton/CloseButton.js.map +0 -1
- package/CloseButton/index.d.ts +0 -3
- package/CloseButton/index.js +0 -7
- package/CloseButton/index.js.map +0 -1
- package/CloseButton/package.json +0 -1
- package/Dropdown/Dropdown.d.ts +0 -129
- package/Dropdown/Dropdown.js +0 -378
- package/Dropdown/Dropdown.js.map +0 -1
- package/Dropdown/index.d.ts +0 -4
- package/Dropdown/index.js +0 -8
- package/Dropdown/index.js.map +0 -1
- package/Dropdown/package.json +0 -1
- package/FileUploadButton/FileUploadButton.d.ts +0 -4
- package/FileUploadButton/FileUploadButton.js +0 -20
- package/FileUploadButton/FileUploadButton.js.map +0 -1
- package/FileUploadButton/FileUploadButton.types.d.ts +0 -7
- package/FileUploadButton/index.d.ts +0 -3
- package/FileUploadButton/index.js +0 -7
- package/FileUploadButton/index.js.map +0 -1
- package/FileUploadButton/package.json +0 -1
- package/FloatingLabel/FloatingLabel.js +0 -15
- package/FloatingLabel/FloatingLabel.js.map +0 -1
- package/FloatingLabel/index.d.ts +0 -3
- package/FloatingLabel/index.js +0 -7
- package/FloatingLabel/index.js.map +0 -1
- package/FloatingLabel/package.json +0 -1
- package/Form/Form.d.ts +0 -38
- package/Form/Form.js +0 -227
- package/Form/Form.js.map +0 -1
- package/Form/Form.types.d.ts +0 -159
- package/Form/FormSelect.d.ts +0 -15
- package/Form/FormSelect.js +0 -436
- package/Form/FormSelect.js.map +0 -1
- package/Form/index.d.ts +0 -4
- package/Form/index.js +0 -8
- package/Form/index.js.map +0 -1
- package/Form/package.json +0 -1
- package/InputGroup/InputGroup.d.ts +0 -7
- package/InputGroup/InputGroup.js +0 -31
- package/InputGroup/InputGroup.js.map +0 -1
- package/InputGroup/InputGroup.types.d.ts +0 -17
- package/InputGroup/index.d.ts +0 -4
- package/InputGroup/index.js +0 -7
- package/InputGroup/index.js.map +0 -1
- package/InputGroup/package.json +0 -1
- package/List/List.d.ts +0 -14
- package/List/List.js +0 -77
- package/List/List.js.map +0 -1
- package/List/List.types.d.ts +0 -28
- package/List/index.d.ts +0 -3
- package/List/index.js +0 -7
- package/List/index.js.map +0 -1
- package/List/package.json +0 -1
- package/Modal/Modal.js +0 -157
- package/Modal/Modal.js.map +0 -1
- package/Modal/index.d.ts +0 -3
- package/Modal/index.js +0 -7
- package/Modal/index.js.map +0 -1
- package/Modal/package.json +0 -1
- package/Nav/Nav.js +0 -29
- package/Nav/Nav.js.map +0 -1
- package/Nav/index.d.ts +0 -4
- package/Nav/index.js +0 -7
- package/Nav/index.js.map +0 -1
- package/Nav/package.json +0 -1
- package/NavBar/Navbar.js +0 -36
- package/NavBar/Navbar.js.map +0 -1
- package/NavBar/index.d.ts +0 -4
- package/NavBar/index.js +0 -8
- package/NavBar/index.js.map +0 -1
- package/NavBar/package.json +0 -1
- package/NavDropdown/NavDropdown.d.ts +0 -93
- package/NavDropdown/NavDropdown.js +0 -75
- package/NavDropdown/NavDropdown.js.map +0 -1
- package/NavDropdown/index.d.ts +0 -3
- package/NavDropdown/index.js +0 -7
- package/NavDropdown/index.js.map +0 -1
- package/NavDropdown/package.json +0 -1
- package/Overlay/Overlay.d.ts +0 -4
- package/Overlay/Overlay.js +0 -242
- package/Overlay/Overlay.js.map +0 -1
- package/Overlay/Overlay.types.d.ts +0 -22
- package/Overlay/index.js +0 -7
- package/Overlay/index.js.map +0 -1
- package/Overlay/package.json +0 -1
- package/Popout/Popout.js +0 -111
- package/Popout/Popout.js.map +0 -1
- package/Popout/index.d.ts +0 -3
- package/Popout/index.js +0 -7
- package/Popout/index.js.map +0 -1
- package/Popout/package.json +0 -1
- package/Spinner/Spinner.js +0 -11
- package/Spinner/Spinner.js.map +0 -1
- package/Spinner/index.d.ts +0 -3
- package/Spinner/index.js +0 -7
- package/Spinner/index.js.map +0 -1
- package/Spinner/package.json +0 -1
- package/Table/Table.js +0 -12
- package/Table/Table.js.map +0 -1
- package/Table/index.d.ts +0 -3
- package/Table/index.js +0 -7
- package/Table/index.js.map +0 -1
- package/Table/package.json +0 -1
- package/Tabs/Tabs.js +0 -162
- package/Tabs/Tabs.js.map +0 -1
- package/Tabs/index.d.ts +0 -3
- package/Tabs/index.js +0 -7
- package/Tabs/index.js.map +0 -1
- package/Tabs/package.json +0 -1
- package/ToggleButton/ToggleButton.d.ts +0 -4
- package/ToggleButton/ToggleButton.js +0 -18
- package/ToggleButton/ToggleButton.js.map +0 -1
- package/ToggleButton/ToggleButton.types.d.ts +0 -7
- package/ToggleButton/index.d.ts +0 -3
- package/ToggleButton/index.js +0 -7
- package/ToggleButton/index.js.map +0 -1
- package/ToggleButton/package.json +0 -1
- package/hooks/index.js +0 -7
- package/hooks/index.js.map +0 -1
- package/hooks/package.json +0 -1
- package/hooks/useClassname.d.ts +0 -2
- package/hooks/useClassname.js +0 -7
- package/hooks/useClassname.js.map +0 -1
- package/hooks/useDraggable.d.ts +0 -23
- package/hooks/useDraggable.js +0 -147
- package/hooks/useDraggable.js.map +0 -1
- package/hooks/useKeepElementFocused.d.ts +0 -2
- package/hooks/useKeepElementFocused.js +0 -37
- package/hooks/useKeepElementFocused.js.map +0 -1
- package/hooks/useQueryParams.d.ts +0 -2
- package/hooks/useQueryParams.js +0 -13
- package/hooks/useQueryParams.js.map +0 -1
- package/hooks/useScreenSize.d.ts +0 -5
- package/hooks/useScreenSize.js +0 -21
- package/hooks/useScreenSize.js.map +0 -1
- package/index.d.ts +0 -18
- package/index.js +0 -19
- package/index.js.map +0 -1
- package/styles/stargazerui.css +0 -6552
- package/styles/stargazerui.css.map +0 -1
- package/utils/ContrastingColor.d.ts +0 -1
- package/utils/CreateSyntheticEvent.d.ts +0 -3
- package/utils/CreateSyntheticEvent.js +0 -33
- package/utils/CreateSyntheticEvent.js.map +0 -1
- package/utils/IsInputKey.d.ts +0 -7
- package/utils/IsInputKey.js +0 -20
- package/utils/IsInputKey.js.map +0 -1
- package/utils/MergeClassnames.d.ts +0 -2
- package/utils/MergeClassnames.js +0 -7
- package/utils/MergeClassnames.js.map +0 -1
- package/utils/MergeRefs.d.ts +0 -2
- package/utils/MergeRefs.js +0 -16
- package/utils/MergeRefs.js.map +0 -1
- /package/{Button → types/components/Button}/Button.d.ts +0 -0
- /package/{Card → types/components/Card}/Card.d.ts +0 -0
- /package/{CloseButton → types/components/CloseButton}/CloseButton.d.ts +0 -0
- /package/{FloatingLabel → types/components/FloatingLabel}/FloatingLabel.d.ts +0 -0
- /package/{Nav → types/components/Nav}/Nav.d.ts +0 -0
- /package/{NavDropdown → types/components/NavDropdown}/NavDropdown.types.d.ts +0 -0
- /package/{Popout → types/components/Popout}/Popout.d.ts +0 -0
- /package/{Spinner → types/components/Spinner}/Spinner.d.ts +0 -0
- /package/{Spinner → types/components/Spinner}/Spinner.types.d.ts +0 -0
- /package/{Table → types/components/Table}/Table.d.ts +0 -0
- /package/{Tabs → types/components/Tabs}/Tabs.d.ts +0 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "mixins";
|
|
3
|
+
|
|
4
|
+
$sg-modal-margin: 0.5rem;
|
|
5
|
+
$sg-modal-background-color: #2e3236;
|
|
6
|
+
$sg-modal-text-color: white;
|
|
7
|
+
$sg-modal-radius: 0.5rem;
|
|
8
|
+
$sg-modal-transition: transform .3s ease-out;
|
|
9
|
+
/*
|
|
10
|
+
.sg-modal-open {
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sg-modal-backdrop {
|
|
15
|
+
position: fixed;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
z-index: $zindex-modal-backdrop;
|
|
19
|
+
width: 100vw;
|
|
20
|
+
height: 100vh;
|
|
21
|
+
background-color: black;
|
|
22
|
+
|
|
23
|
+
// Fade for backdrop
|
|
24
|
+
&.fadeIn {
|
|
25
|
+
animation-name: fadeInBackdrop;
|
|
26
|
+
animation-duration: .3s;
|
|
27
|
+
animation-timing-function: ease-out;
|
|
28
|
+
animation-fill-mode: forwards;
|
|
29
|
+
}
|
|
30
|
+
&.fadeOut {
|
|
31
|
+
animation-name: fadeOutBackdrop;
|
|
32
|
+
animation-duration: .3s;
|
|
33
|
+
animation-timing-function: ease-out;
|
|
34
|
+
animation-fill-mode: forwards;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
@keyframes fadeInBackdrop {
|
|
38
|
+
0% {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
100% {
|
|
42
|
+
opacity: 0.5;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
@keyframes fadeOutBackdrop {
|
|
46
|
+
0% {
|
|
47
|
+
opacity: 0.5;
|
|
48
|
+
}
|
|
49
|
+
100% {
|
|
50
|
+
opacity: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sg-modal { //scroll ocntainer
|
|
55
|
+
position: fixed;
|
|
56
|
+
top: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
z-index: $zindex-modal;
|
|
59
|
+
display: block;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
overflow-x: hidden;
|
|
63
|
+
overflow-y: auto;
|
|
64
|
+
// Prevent Chrome on Windows from adding a focus outline. For details, see
|
|
65
|
+
// https://github.com/twbs/bootstrap/pull/10951.
|
|
66
|
+
outline: 0;
|
|
67
|
+
// We deliberately don't use `-webkit-overflow-scrolling: touch;` due to a
|
|
68
|
+
// gnarly iOS Safari bug: https://bugs.webkit.org/show_bug.cgi?id=158342
|
|
69
|
+
// See also https://github.com/twbs/bootstrap/issues/17695
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.sg-modal-dialog { //shell to position modal with bottom-padding
|
|
73
|
+
z-index: calc($zindex-modal + 1);
|
|
74
|
+
position: relative;
|
|
75
|
+
width: auto;
|
|
76
|
+
margin: calc(4 * $sg-modal-margin);
|
|
77
|
+
// allow clicks to pass through for custom click handling to close modal
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
|
|
80
|
+
// slide down animation
|
|
81
|
+
.sg-modal.fadeIn & {
|
|
82
|
+
animation-name: fadeIn;
|
|
83
|
+
animation-duration: .3s;
|
|
84
|
+
animation-timing-function: ease-out;
|
|
85
|
+
animation-fill-mode: forwards;
|
|
86
|
+
//transition: $sg-modal-transition;
|
|
87
|
+
//transform: translate(0, -50px);
|
|
88
|
+
}
|
|
89
|
+
.sg-modal.fadeOut & {
|
|
90
|
+
animation-name: fadeOut;
|
|
91
|
+
animation-duration: .3s;
|
|
92
|
+
animation-timing-function: ease-out;
|
|
93
|
+
animation-fill-mode: forwards;
|
|
94
|
+
//transition: $sg-modal-transition;
|
|
95
|
+
//transform: translate(0, -50px);
|
|
96
|
+
}
|
|
97
|
+
@keyframes fadeIn {
|
|
98
|
+
0% {
|
|
99
|
+
opacity: 0;
|
|
100
|
+
top: -50px;
|
|
101
|
+
}
|
|
102
|
+
100% {
|
|
103
|
+
opacity: 1;
|
|
104
|
+
top: 0px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes fadeOut {
|
|
109
|
+
0% {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
top: 0px;
|
|
112
|
+
}
|
|
113
|
+
100% {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
top: -50px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// make modal flash onBlur if static backdrop
|
|
120
|
+
.sg-modal.sg-modal-static & {
|
|
121
|
+
transition: $sg-modal-transition;
|
|
122
|
+
transform: scale(1.02);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.sg-modal-dialog-scrollable {
|
|
127
|
+
height: calc(100% - $sg-modal-margin * 2);
|
|
128
|
+
|
|
129
|
+
.sg-modal-content {
|
|
130
|
+
max-height: 100%;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.sg-modal-body {
|
|
135
|
+
overflow-y: auto;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
.sg-modal-dialog-centered {
|
|
139
|
+
display: flex;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
align-items: center;
|
|
142
|
+
height: 100dvh;
|
|
143
|
+
max-width: 100dvw;
|
|
144
|
+
margin:0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.sg-modal-content {
|
|
148
|
+
position: relative;
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
width: 100%; // Ensure `.modal-content` extends the full width of the parent `.modal-dialog`
|
|
152
|
+
// counteract the pointer-events: none; in the .modal-dialog
|
|
153
|
+
color: $sg-modal-text-color;
|
|
154
|
+
pointer-events: auto;
|
|
155
|
+
background-color: $sg-modal-background-color;
|
|
156
|
+
background-clip: padding-box;
|
|
157
|
+
border: 1px solid $sg-modal-text-color;
|
|
158
|
+
border-radius: $sg-modal-radius;
|
|
159
|
+
// Remove focus outline from opened modal
|
|
160
|
+
outline: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.sg-modal-header {
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-shrink: 0;
|
|
166
|
+
align-items: center;
|
|
167
|
+
justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
|
|
168
|
+
padding: 0.75rem;
|
|
169
|
+
border-bottom: 1px solid $sg-modal-text-color;
|
|
170
|
+
@include border-top-radius($sg-modal-radius);
|
|
171
|
+
|
|
172
|
+
.sg-button-close {
|
|
173
|
+
padding: 0.5rem 0.5rem;
|
|
174
|
+
margin: calc(-.5 * $sg-modal-margin) calc(-.5 * $sg-modal-margin) calc(-.5 * $sg-modal-margin) auto;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.sg-modal-title {
|
|
178
|
+
margin-bottom: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.sg-modal-body {
|
|
182
|
+
position: relative;
|
|
183
|
+
flex: 1 1 auto;
|
|
184
|
+
padding: 1rem;
|
|
185
|
+
background-color: color.mix(white,$sg-modal-background-color, 10%);
|
|
186
|
+
}
|
|
187
|
+
.sg-modal-footer {
|
|
188
|
+
display: flex;
|
|
189
|
+
flex-shrink: 0;
|
|
190
|
+
flex-wrap: wrap;
|
|
191
|
+
align-items: center;
|
|
192
|
+
justify-content: flex-end;
|
|
193
|
+
padding: 0.75rem;
|
|
194
|
+
background-color: $sg-modal-background-color;
|
|
195
|
+
border-top: 1px solid $sg-modal-text-color;
|
|
196
|
+
@include border-bottom-radius($sg-modal-radius);
|
|
197
|
+
|
|
198
|
+
gap: 0.5rem;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
$modal-lg: 800px !default;
|
|
202
|
+
$modal-xl: 1140px !default;
|
|
203
|
+
|
|
204
|
+
$container-max-widths: ( sm: 540px, md: 720px, lg: 960px, xl: 1140px, xxl: 1320px ) !default;
|
|
205
|
+
$grid-breakpoints: (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px ) !default;
|
|
206
|
+
|
|
207
|
+
@each $breakpoint, $value in $grid-breakpoints {
|
|
208
|
+
@if $breakpoint == "xs" {
|
|
209
|
+
@media (max-width: 575px) {
|
|
210
|
+
.sg-modal-dialog {
|
|
211
|
+
margin: 0.5rem;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
@if $breakpoint == "sm" {
|
|
216
|
+
@media (min-width: 576px) {
|
|
217
|
+
.sg-modal-dialog {
|
|
218
|
+
max-width: 500px;
|
|
219
|
+
margin-right: auto;
|
|
220
|
+
margin-left: auto;
|
|
221
|
+
}
|
|
222
|
+
.sg-modal-sm {
|
|
223
|
+
max-width: 300px
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
@else if $breakpoint == "lg" {
|
|
228
|
+
@media (min-width: 992px) {
|
|
229
|
+
.modal-lg, .modal-xl {
|
|
230
|
+
max-width: 800px;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
@else if $breakpoint == "xl" {
|
|
235
|
+
@media (min-width: 1200px) {
|
|
236
|
+
.modal-xl {
|
|
237
|
+
max-width: 1140px;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
*/
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.sg-nav {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
padding-left: 0;
|
|
5
|
+
margin-bottom: 0;
|
|
6
|
+
list-style: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sg-nav-link {
|
|
10
|
+
padding: 0.25rem 0.5rem;
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 0.5rem;
|
|
15
|
+
margin-block: auto;
|
|
16
|
+
color: var(--sg-navbar-link-color);
|
|
17
|
+
font-size: 0.85rem;
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
color: var(--sg-navbar-hover-color);
|
|
21
|
+
}
|
|
22
|
+
// Disabled state lightens text
|
|
23
|
+
&.disabled {
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
cursor: default;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
[data-navdropdown="true"] .sg-nav-link {
|
|
29
|
+
color: var(--sg-navbar-hover-color);
|
|
30
|
+
font-size: 0.85rem;
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sg-nav-item {
|
|
35
|
+
margin-block: auto;
|
|
36
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
.sg-navbar {
|
|
2
|
+
// scss-docs-start sg-navbar-css-vars
|
|
3
|
+
--sg-navbar-bg: #{$sg-nav-color};
|
|
4
|
+
--sg-navbar-text-color: #{$sg-link-hover-color};
|
|
5
|
+
--sg-navbar-link-color: #{$sg-link-color};
|
|
6
|
+
--sg-navbar-hover-color: #{$sg-link-hover-color};
|
|
7
|
+
--sg-navbar-disabled-color: #{$sg-link-disable-color};
|
|
8
|
+
--sg-navbar-active-color: #{$sg-link-hover-color};
|
|
9
|
+
|
|
10
|
+
--sg-navbar-zindex: $zindex-navbar;
|
|
11
|
+
// scss-docs-end sg-navbar-css-vars
|
|
12
|
+
background-color: var(--sg-navbar-bg);
|
|
13
|
+
background: linear-gradient(71deg,
|
|
14
|
+
var(--sg-navbar-bg),
|
|
15
|
+
color-mix(in srgb, var(--sg-navbar-bg), var(--sg-navbar-hover-color) 5%),
|
|
16
|
+
var(--sg-navbar-bg),
|
|
17
|
+
color-mix(in srgb, var(--sg-navbar-bg), var(--sg-navbar-hover-color) 5%),
|
|
18
|
+
var(--sg-navbar-bg)
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
width: 100%;
|
|
22
|
+
min-height: fit-content;
|
|
23
|
+
z-index: $zindex-navbar;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
border: 2px outset color-mix(in srgb, white 5%, var(--sg-navbar-bg));
|
|
26
|
+
border-bottom: 2px solid var(--sg-navbar-link-color);
|
|
27
|
+
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-wrap: wrap; // allow us to do the line break for collapsing content
|
|
30
|
+
align-items: center;
|
|
31
|
+
padding: 0.5rem 0rem;
|
|
32
|
+
|
|
33
|
+
position: sticky;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
|
|
37
|
+
// Because flex properties aren't inherited
|
|
38
|
+
%container-flex-properties {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-wrap: inherit;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
> .sg-container,
|
|
46
|
+
> .sg-container-fluid {
|
|
47
|
+
@extend %container-flex-properties;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@each $breakpoint, $container-max-width in $container-max-widths {
|
|
51
|
+
> .container-#{$breakpoint} {
|
|
52
|
+
@extend %container-flex-properties;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.sg-navbar-brand {
|
|
58
|
+
padding-top: 0.25rem;
|
|
59
|
+
padding-bottom: 0.25rem;
|
|
60
|
+
margin-inline: 1rem;
|
|
61
|
+
margin-block: auto;
|
|
62
|
+
color: var(--sg-navbar-link-color);
|
|
63
|
+
text-decoration: none;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
|
|
66
|
+
&:hover,
|
|
67
|
+
&:focus {
|
|
68
|
+
color: var(--sg-navbar-hover-color);
|
|
69
|
+
text-decoration: none;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sg-navbar-nav {
|
|
74
|
+
// scss-docs-start sg-navbar-nav-css-vars
|
|
75
|
+
--nav-link-padding-x: 0;
|
|
76
|
+
--nav-link-padding-y: 0.5rem;
|
|
77
|
+
--nav-link-color: $sg-link-color;
|
|
78
|
+
--nav-link-hover-color: $sg-link-hover-color;
|
|
79
|
+
--nav-link-disabled-color: $sg-link-disable-color;
|
|
80
|
+
// scss-docs-end sg-navbar-nav-css-vars
|
|
81
|
+
margin: 0;
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: row; // cannot use `inherit` to get the `.sg-navbar`s value
|
|
84
|
+
flex-wrap: wrap;
|
|
85
|
+
padding-left: 0;
|
|
86
|
+
margin-bottom: 0;
|
|
87
|
+
list-style: none;
|
|
88
|
+
|
|
89
|
+
.show > .nav-link,
|
|
90
|
+
.nav-link.active {
|
|
91
|
+
color: var(--sg-navbar-active-color);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.dropdown-menu {
|
|
95
|
+
position: static;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.sg-navbar-text {
|
|
100
|
+
padding-top: 0.5rem;
|
|
101
|
+
padding-bottom: 0.5rem;
|
|
102
|
+
color: var(--sg-navbar-active-color);
|
|
103
|
+
|
|
104
|
+
a,
|
|
105
|
+
a:hover,
|
|
106
|
+
a:focus {
|
|
107
|
+
color: var(--sg-navbar-active-color);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.nav-item {
|
|
112
|
+
a {
|
|
113
|
+
color: white;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.sg-nav-dropdown-toggle {
|
|
2
|
+
background-color: transparent;//#4c5055;
|
|
3
|
+
display: block;
|
|
4
|
+
padding: 0.5em 1em;
|
|
5
|
+
color: var(--sg-navbar-link-color);
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
border-radius: 0;
|
|
8
|
+
border: none;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
font-family: inherit;
|
|
11
|
+
//transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
background-color: transparent;//color.mix(black, #4c5055, 15%);
|
|
15
|
+
color: var(--sg-navbar-hover-color);
|
|
16
|
+
}
|
|
17
|
+
&:active {
|
|
18
|
+
background-color: transparent;//color.mix(black, #4c5055, 20%);
|
|
19
|
+
}
|
|
20
|
+
&:focus-visible, &:focus {
|
|
21
|
+
color: var(--sg-navbar-hover-color);
|
|
22
|
+
}
|
|
23
|
+
&[aria-expanded="true"] {
|
|
24
|
+
color:var(--sg-navbar-hover-color);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Disabled state lightens text
|
|
28
|
+
&.disabled {
|
|
29
|
+
color: rgba(0, 0, 0, 0.24);
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
cursor: default;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "mixins";
|
|
3
|
+
|
|
4
|
+
$sg-offCanvas-margin: 0.5em;
|
|
5
|
+
$sg-offCanvas-background-color: #2e3236;
|
|
6
|
+
$sg-offCanvas-text-color: white;
|
|
7
|
+
$sg-offCanvas-radius: 0.5em;
|
|
8
|
+
$sg-offCanvas-transition: transform .3s ease-out;
|
|
9
|
+
|
|
10
|
+
.sg-offCanvas-open {
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sg-offCanvas-backdrop {
|
|
15
|
+
position: fixed;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
z-index: $zindex-modal-backdrop;
|
|
19
|
+
width: 100vw;
|
|
20
|
+
height: 100vh;
|
|
21
|
+
background-color: black;
|
|
22
|
+
|
|
23
|
+
// Fade for backdrop
|
|
24
|
+
&.fadeIn {
|
|
25
|
+
animation-name: fadeInBackdrop;
|
|
26
|
+
animation-duration: .3s;
|
|
27
|
+
animation-timing-function: ease-out;
|
|
28
|
+
animation-fill-mode: forwards;
|
|
29
|
+
}
|
|
30
|
+
&.fadeOut {
|
|
31
|
+
animation-name: fadeOutBackdrop;
|
|
32
|
+
animation-duration: .3s;
|
|
33
|
+
animation-timing-function: ease-out;
|
|
34
|
+
animation-fill-mode: forwards;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
@keyframes fadeInBackdrop {
|
|
38
|
+
0% {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
100% {
|
|
42
|
+
opacity: 0.5;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
@keyframes fadeOutBackdrop {
|
|
46
|
+
0% {
|
|
47
|
+
opacity: 0.5;
|
|
48
|
+
}
|
|
49
|
+
100% {
|
|
50
|
+
opacity: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sg-offCanvas { //scroll ocntainer
|
|
55
|
+
position: fixed;
|
|
56
|
+
top: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
z-index: $zindex-modal;
|
|
59
|
+
display: block;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
overflow-x: hidden;
|
|
63
|
+
overflow-y: auto;
|
|
64
|
+
// Prevent Chrome on Windows from adding a focus outline. For details, see
|
|
65
|
+
// https://github.com/twbs/bootstrap/pull/10951.
|
|
66
|
+
outline: 0;
|
|
67
|
+
// We deliberately don't use `-webkit-overflow-scrolling: touch;` due to a
|
|
68
|
+
// gnarly iOS Safari bug: https://bugs.webkit.org/show_bug.cgi?id=158342
|
|
69
|
+
// See also https://github.com/twbs/bootstrap/issues/17695
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.sg-offCanvas-dialog { //shell to position offCanvas with bottom-padding
|
|
73
|
+
z-index: calc($zindex-modal + 1);
|
|
74
|
+
position: relative;
|
|
75
|
+
width: auto;
|
|
76
|
+
max-height: 100vh;
|
|
77
|
+
// allow clicks to pass through for custom click handling to close offCanvas
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
|
|
80
|
+
// slide down animation
|
|
81
|
+
.sg-offCanvas.fadeIn & {
|
|
82
|
+
animation-name: fadeIn;
|
|
83
|
+
animation-duration: .6s;
|
|
84
|
+
animation-timing-function: ease-out;
|
|
85
|
+
animation-fill-mode: forwards;
|
|
86
|
+
//transition: $sg-offCanvas-transition;
|
|
87
|
+
//transform: translate(0, -50px);
|
|
88
|
+
}
|
|
89
|
+
.sg-offCanvas.fadeOut & {
|
|
90
|
+
animation-name: fadeOut;
|
|
91
|
+
animation-duration: .3s;
|
|
92
|
+
animation-timing-function: ease-out;
|
|
93
|
+
animation-fill-mode: forwards;
|
|
94
|
+
//transition: $sg-offCanvas-transition;
|
|
95
|
+
//transform: translate(0, -50px);
|
|
96
|
+
}
|
|
97
|
+
@keyframes fadeIn {
|
|
98
|
+
0% {
|
|
99
|
+
opacity: 0;
|
|
100
|
+
}
|
|
101
|
+
100% {
|
|
102
|
+
opacity: 1;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@keyframes fadeOut {
|
|
107
|
+
0% {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
}
|
|
110
|
+
100% {
|
|
111
|
+
opacity: 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// make offCanvas flash onBlur if static backdrop
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.sg-offCanvas-content {
|
|
119
|
+
--sg-offcanvas-size: 478px;
|
|
120
|
+
position: fixed;
|
|
121
|
+
bottom: 0;
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
max-width: 100%; // Ensure `.offCanvas-content` extends the full width of the parent `.offCanvas-dialog`
|
|
125
|
+
max-height: 100%;
|
|
126
|
+
// counteract the pointer-events: none; in the .offCanvas-dialog
|
|
127
|
+
color: $sg-offCanvas-text-color;
|
|
128
|
+
pointer-events: auto;
|
|
129
|
+
background-color: $sg-offCanvas-background-color;
|
|
130
|
+
background-clip: padding-box;
|
|
131
|
+
// Remove focus outline from opened offCanvas
|
|
132
|
+
outline: 0;
|
|
133
|
+
//visibility: hidden;
|
|
134
|
+
transition: transform 0.3s ease-in-out;
|
|
135
|
+
|
|
136
|
+
&.sg-offcanvas-start {
|
|
137
|
+
top: 0;
|
|
138
|
+
left: 0;
|
|
139
|
+
width: var(--sg-offcanvas-size);
|
|
140
|
+
border-right: 1px solid $sg-offCanvas-background-color;
|
|
141
|
+
transform: translateX(-100%);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.sg-offcanvas-end {
|
|
145
|
+
top: 0;
|
|
146
|
+
right: 0;
|
|
147
|
+
width: var(--sg-offcanvas-size);
|
|
148
|
+
border-left: 1px solid $sg-offCanvas-background-color;
|
|
149
|
+
transform: translateX(100%);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.sg-offcanvas-top {
|
|
153
|
+
top: 0;
|
|
154
|
+
right: 0;
|
|
155
|
+
left: 0;
|
|
156
|
+
height: var(--sg-offcanvas-size);
|
|
157
|
+
max-height: 100%;
|
|
158
|
+
border-bottom: 1px solid $sg-offCanvas-background-color;
|
|
159
|
+
transform: translateY(-100%);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.sg-offcanvas-bottom {
|
|
163
|
+
right: 0;
|
|
164
|
+
left: 0;
|
|
165
|
+
height: var(--sg-offcanvas-size);
|
|
166
|
+
max-height: 100%;
|
|
167
|
+
border-top: 1px solid $sg-offCanvas-background-color;
|
|
168
|
+
transform: translateY(100%);
|
|
169
|
+
}
|
|
170
|
+
&.sg-slide-in {
|
|
171
|
+
transform: none;
|
|
172
|
+
}
|
|
173
|
+
&.sg-offCanvas-static {
|
|
174
|
+
transition: $sg-offCanvas-transition;
|
|
175
|
+
transform: scaleX(1.02);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
.sg-offCanvas-header {
|
|
180
|
+
display: flex;
|
|
181
|
+
flex-shrink: 0;
|
|
182
|
+
align-items: center;
|
|
183
|
+
justify-content: space-between; // Put offCanvas header elements (title and dismiss) on opposite ends
|
|
184
|
+
padding: 1em;
|
|
185
|
+
//border-bottom: 1px solid $sg-offCanvas-text-color;
|
|
186
|
+
.sg-button-close {
|
|
187
|
+
padding: 0.5em 0.5em;
|
|
188
|
+
margin: calc(-.5 * $sg-offCanvas-margin) calc(-.5 * $sg-offCanvas-margin) calc(-.5 * $sg-offCanvas-margin) auto;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
.sg-offCanvas-title {
|
|
192
|
+
margin-bottom: 0;
|
|
193
|
+
}
|
|
194
|
+
.sg-offCanvas-body {
|
|
195
|
+
position: relative;
|
|
196
|
+
flex: 1 1 auto;
|
|
197
|
+
padding: 1em;
|
|
198
|
+
background-color: color.mix(white,$sg-offCanvas-background-color, 10%);
|
|
199
|
+
overflow: auto;
|
|
200
|
+
}
|
|
201
|
+
/*
|
|
202
|
+
&.sg-offCanvas-footer {
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-shrink: 0;
|
|
205
|
+
flex-wrap: wrap;
|
|
206
|
+
align-items: center;
|
|
207
|
+
justify-content: flex-end;
|
|
208
|
+
padding: 0.75em;
|
|
209
|
+
background-color: $sg-offCanvas-background-color;
|
|
210
|
+
border-top: 1px solid $sg-offCanvas-text-color;
|
|
211
|
+
@include border-bottom-radius($sg-offCanvas-radius);
|
|
212
|
+
|
|
213
|
+
gap: 0.5em;
|
|
214
|
+
}
|
|
215
|
+
*/
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/*
|
|
219
|
+
$offCanvas-lg: 800px !default;
|
|
220
|
+
$offCanvas-xl: 1140px !default;
|
|
221
|
+
|
|
222
|
+
$container-max-widths: ( sm: 540px, md: 720px, lg: 960px, xl: 1140px, xxl: 1320px ) !default;
|
|
223
|
+
$grid-breakpoints: (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px ) !default;
|
|
224
|
+
|
|
225
|
+
@each $breakpoint, $value in $grid-breakpoints {
|
|
226
|
+
@if $breakpoint == "xs" {
|
|
227
|
+
@media (max-width: 575px) {
|
|
228
|
+
.sg-offCanvas-dialog {
|
|
229
|
+
margin: 0.5em;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
@if $breakpoint == "sm" {
|
|
234
|
+
@media (min-width: 576px) {
|
|
235
|
+
.sg-offCanvas-dialog {
|
|
236
|
+
max-width: 500px;
|
|
237
|
+
margin-right: auto;
|
|
238
|
+
margin-left: auto;
|
|
239
|
+
}
|
|
240
|
+
.sg-offCanvas-sm {
|
|
241
|
+
max-width: 300px
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
@else if $breakpoint == "lg" {
|
|
246
|
+
@media (min-width: 992px) {
|
|
247
|
+
.offCanvas-lg, .offCanvas-xl {
|
|
248
|
+
max-width: 800px;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
@else if $breakpoint == "xl" {
|
|
253
|
+
@media (min-width: 1200px) {
|
|
254
|
+
.offCanvas-xl {
|
|
255
|
+
max-width: 1140px;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
*/
|