@lightspeed/design-system-css 1.1.1 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/index.css +383 -240
- package/dist/index.css.map +1 -1
- package/dist/vend-styles.css +383 -240
- package/package.json +1 -34
- package/src/images-ui/images-ui-ns.scss +1 -1
- package/src/vend-stylelint/use-colour-function.js +25 -22
- package/src/vend-styles/components/BarChart/BarChart.scss +9 -9
- package/src/vend-styles/components/CodeInput/CodeInput.scss +0 -1
- package/src/vend-styles/components/DatePicker/DatePicker.scss +3 -11
- package/src/vend-styles/components/DatePicker/_DatePicker-ns.scss +1 -1
- package/src/vend-styles/components/LineChart/LineChart.scss +5 -4
- package/src/vend-styles/components/Modal/Modal.scss +25 -12
- package/src/vend-styles/components/Modal/_Modal-ns.scss +7 -2
- package/src/vend-styles/components/PromotionModal/PromotionModal.scss +1 -1
- package/src/vend-styles/components/TableList/TableList.scss +5 -1
- package/src/vend-styles/components/UpsellPrimary/UpsellPrimary.scss +1 -6
- package/src/vend.ui/_deprecated/v38.0.0/styles/vd-flex/vd-flex.scss +15 -7
- package/src/vend.ui/behaviours/vd-align/vd-align.scss +9 -3
- package/src/vend.ui/components/vd-autocomplete-filter/vd-autocomplete-filter.scss +4 -3
- package/src/vend.ui/components/vd-avatar/vd-avatar.scss +7 -7
- package/src/vend.ui/components/vd-avatar-multi/vd-avatar-multi.scss +1 -1
- package/src/vend.ui/components/vd-badges/vd-badges.scss +1 -1
- package/src/vend.ui/components/vd-badges/vd-id-badge/vd-id-badge.scss +7 -3
- package/src/vend.ui/components/vd-banner/vd-banner-ns.scss +5 -1
- package/src/vend.ui/components/vd-banner/vd-banner.scss +8 -4
- package/src/vend.ui/components/vd-bg/vd-bg.scss +1 -1
- package/src/vend.ui/components/vd-btn/_vd-btn-mixins.scss +15 -15
- package/src/vend.ui/components/vd-btn/vd-btn-panel.scss +4 -3
- package/src/vend.ui/components/vd-btn/vd-btn.scss +11 -9
- package/src/vend.ui/components/vd-carousel/vd-carousel.scss +3 -2
- package/src/vend.ui/components/vd-checkbox/vd-checkbox.scss +33 -12
- package/src/vend.ui/components/vd-datepicker/vd-datepicker-ns.scss +2 -2
- package/src/vend.ui/components/vd-datepicker/vd-datepicker.scss +16 -6
- package/src/vend.ui/components/vd-dialog/vd-dialog-ns.scss +3 -1
- package/src/vend.ui/components/vd-dialog/vd-dialog.scss +13 -13
- package/src/vend.ui/components/vd-dialog-close/vd-dialog-close.scss +2 -2
- package/src/vend.ui/components/vd-dialog-drawer/vd-dialog-drawer.scss +1 -1
- package/src/vend.ui/components/vd-dott/vd-dott.scss +5 -4
- package/src/vend.ui/components/vd-dropdown/vd-dropdown.scss +1 -1
- package/src/vend.ui/components/vd-flag/vd-flag.scss +1 -2
- package/src/vend.ui/components/vd-flex/vd-flex.scss +39 -13
- package/src/vend.ui/components/vd-hero/vd-hero-ns.scss +2 -2
- package/src/vend.ui/components/vd-in-page-help/vd-in-page-help.scss +0 -2
- package/src/vend.ui/components/vd-input/vd-input-ns.scss +19 -12
- package/src/vend.ui/components/vd-input/vd-input.scss +12 -4
- package/src/vend.ui/components/vd-link/vd-link.scss +12 -4
- package/src/vend.ui/components/vd-loader/vd-loader.scss +1 -1
- package/src/vend.ui/components/vd-lozenge-group/vd-lozenge-group.scss +22 -7
- package/src/vend.ui/components/vd-multiselect-popover/vd-multiselect-popover.scss +1 -1
- package/src/vend.ui/components/vd-nav-divider/vd-nav-divider.scss +14 -0
- package/src/vend.ui/components/vd-next-stepper/vd-next-stepper.scss +1 -1
- package/src/vend.ui/components/vd-overlay/vd-overlay-ns.scss +1 -1
- package/src/vend.ui/components/vd-p/vd-p.scss +3 -1
- package/src/vend.ui/components/vd-popover/vd-popover.scss +3 -1
- package/src/vend.ui/components/vd-popover-list/vd-popover-list-ns.scss +3 -1
- package/src/vend.ui/components/vd-popover-list/vd-popover-list.scss +1 -2
- package/src/vend.ui/components/vd-promo/vd-promo-ns.scss +1 -1
- package/src/vend.ui/components/vd-promo/vd-promo.scss +0 -1
- package/src/vend.ui/components/vd-radio/vd-radio.scss +30 -10
- package/src/vend.ui/components/vd-section/vd-section.scss +26 -11
- package/src/vend.ui/components/vd-segcontrol/vd-segcontrol.scss +3 -1
- package/src/vend.ui/components/vd-select/vd-select-group.scss +11 -5
- package/src/vend.ui/components/vd-select/vd-select-inline.scss +2 -1
- package/src/vend.ui/components/vd-select/vd-select.scss +2 -2
- package/src/vend.ui/components/vd-settings/vd-settings.scss +1 -1
- package/src/vend.ui/components/vd-sidebar/tmp-overrides.scss +95 -0
- package/src/vend.ui/components/vd-sidebar/vd-sidebar-ns.scss +23 -0
- package/src/vend.ui/components/vd-sidebar/vd-sidebar.scss +113 -0
- package/src/vend.ui/components/vd-sidebar-drawer/vd-sidebar-drawer-ns.scss +4 -4
- package/src/vend.ui/components/vd-sidebar-drawer/vd-sidebar-drawer.scss +5 -2
- package/src/vend.ui/components/vd-sidebar-tabs/vd-sidebar-tabs-ns.scss +12 -3
- package/src/vend.ui/components/vd-sidebar-tabs/vd-sidebar-tabs.scss +42 -27
- package/src/vend.ui/components/vd-suggestion/vd-suggestion-list-ns.scss +2 -2
- package/src/vend.ui/components/vd-table/vd-table.scss +102 -33
- package/src/vend.ui/components/vd-tabs/vd-tabs.scss +1 -2
- package/src/vend.ui/components/vd-text/vd-text.scss +13 -5
- package/src/vend.ui/components/vd-toast-notification/vd-toast-notification.scss +2 -1
- package/src/vend.ui/components/vd-topbar/vd-topbar.scss +2 -2
- package/src/vend.ui/components/vd-visibility/vd-visibility.scss +9 -3
- package/src/vend.ui/styles/global/_base-mixins.scss +1 -2
- package/src/vend.ui/styles/global/_grid.scss +5 -5
- package/src/vend.ui/styles/global/_layout.scss +2 -2
- package/src/vend.ui/styles/global/_non-styles.scss +1 -0
- package/src/vend.ui/styles/global/_normalise.scss +8 -1
- package/src/vend.ui/styles/global/_z-index.scss +0 -8
- package/src/vend.ui/styles/global/colour/_base.scss +8 -13
- package/src/vend.ui/styles/global/colour/_colour-functions.scss +2 -10
- package/src/vend.ui/styles/global/colour/_colour.scss +3 -3
- package/src/vend.ui/styles/global/effects/_effects-ns.scss +4 -4
- package/src/vend.ui/styles/global/effects/_effects.scss +51 -6
- package/src/vend.ui/styles/global/spacing/_spacing-functions.scss +2 -2
- package/src/vend.ui/styles/global/spacing/_spacing-helpers.scss +2 -6
- package/src/vend.ui/styles/global/text/_base.scss +1 -1
- package/src/vend.ui/styles/global/text/_text-definitions.scss +13 -13
- package/src/vend.ui/styles/global/text/_text-mixins.scss +15 -23
- package/src/vend.ui/styles/global/text/_text.scss +2 -2
- package/src/vend.ui/styles/global/utils/_functions.scss +2 -2
- package/src/vend.ui/styles/global/viewport/_viewport-data.scss +30 -30
- package/src/vend.ui/styles/global/viewport/_viewport-identifier.scss +1 -1
- package/src/vend.ui/styles/global/viewport/_viewport-media-mixins.scss +16 -16
- package/src/vend.ui/styles/global/viewport/_viewport-ranges.scss +9 -9
- package/src/vend.ui/styles/navi/_nv-topnav-title.scss +1 -1
- package/src/vend.ui/styles/navi/_nv-topnav.scss +5 -4
- package/src/vend.ui/styles/navi/dialogs/_nv-notifications-dialog.scss +2 -2
- package/src/vend.ui/styles/navi/navi.scss +8 -9
- package/src/vend.ui/styles/navi/non-styles/_mixins.scss +6 -4
- package/src/vend.ui/styles/navi/non-styles/_variables.scss +0 -11
- package/src/vend.ui/styles/vend-ui.scss +2 -0
- package/CHANGELOG.md +0 -180
- package/src/vend.ui/styles/navi/_nv-sidenav.scss +0 -143
@@ -9,6 +9,7 @@
|
|
9
9
|
.nv-topnav {
|
10
10
|
position: relative;
|
11
11
|
width: 100%;
|
12
|
+
z-index: 1;
|
12
13
|
|
13
14
|
@media print {
|
14
15
|
display: none;
|
@@ -19,7 +20,7 @@
|
|
19
20
|
justify-content: center;
|
20
21
|
flex: 1;
|
21
22
|
|
22
|
-
@include vd-viewport-media-max
|
23
|
+
@include vd-viewport-media-max($vd-breakpoint-xsmall) {
|
23
24
|
flex: initial;
|
24
25
|
}
|
25
26
|
}
|
@@ -28,7 +29,7 @@
|
|
28
29
|
min-width: 0;
|
29
30
|
flex: 1;
|
30
31
|
|
31
|
-
@include vd-viewport-media-max
|
32
|
+
@include vd-viewport-media-max($vd-breakpoint-xsmall) {
|
32
33
|
&.nv-topnav-header--mobile {
|
33
34
|
flex: initial;
|
34
35
|
}
|
@@ -75,7 +76,7 @@
|
|
75
76
|
margin-left: auto;
|
76
77
|
flex: 1;
|
77
78
|
|
78
|
-
@include vd-viewport-media-max
|
79
|
+
@include vd-viewport-media-max($vd-breakpoint-xsmall) {
|
79
80
|
flex: initial;
|
80
81
|
}
|
81
82
|
}
|
@@ -92,7 +93,7 @@
|
|
92
93
|
|
93
94
|
// ========= Responsive Breakpoint Styles ========= //
|
94
95
|
|
95
|
-
@include vd-viewport-media-max
|
96
|
+
@include vd-viewport-media-max($vd-breakpoint-large) {
|
96
97
|
.nv-topnav-header {
|
97
98
|
display: none;
|
98
99
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
list-style: none;
|
8
8
|
padding: 0;
|
9
9
|
margin: 0;
|
10
|
-
max-height: calc(100vh - #{$vd-topbar-height})
|
10
|
+
max-height: calc(100vh - #{$vd-topbar-height});
|
11
11
|
}
|
12
12
|
|
13
13
|
.nv-notifications-list-item {
|
@@ -32,7 +32,7 @@
|
|
32
32
|
word-wrap: break-word;
|
33
33
|
|
34
34
|
&:before {
|
35
|
-
content:'';
|
35
|
+
content: '';
|
36
36
|
width: 8px;
|
37
37
|
height: 8px;
|
38
38
|
box-sizing: content-box;
|
@@ -1,12 +1,11 @@
|
|
1
1
|
// Modules
|
2
|
-
@import
|
3
|
-
@import
|
4
|
-
@import
|
5
|
-
@import
|
6
|
-
@import
|
7
|
-
@import "nv-user-sale-data";
|
2
|
+
@import 'nv-topnav';
|
3
|
+
@import 'nv-topnav-title';
|
4
|
+
@import 'nv-account-banner';
|
5
|
+
@import 'nv-notifications-item';
|
6
|
+
@import 'nv-user-sale-data';
|
8
7
|
|
9
8
|
// Dialogs
|
10
|
-
@import
|
11
|
-
@import
|
12
|
-
@import
|
9
|
+
@import 'dialogs/nv-dialog-drawer';
|
10
|
+
@import 'dialogs/nv-notifications-dialog';
|
11
|
+
@import 'dialogs/nv-user-dialog';
|
@@ -2,15 +2,17 @@
|
|
2
2
|
// Generates a striped background with the stripes slanted at 60 deg and alternating between the given color and a
|
3
3
|
// darkened equivalent. Stripes are 15px wide.
|
4
4
|
//
|
5
|
-
@mixin nv-striped-background
|
6
|
-
background: repeating-linear-gradient(
|
5
|
+
@mixin nv-striped-background($color) {
|
6
|
+
background: repeating-linear-gradient(
|
7
|
+
-60deg,
|
7
8
|
darken($color, 3),
|
8
9
|
darken($color, 3) 15px,
|
9
10
|
$color 15px,
|
10
|
-
$color 30px
|
11
|
+
$color 30px
|
12
|
+
);
|
11
13
|
}
|
12
14
|
|
13
|
-
@mixin nv-topnav-status-icon
|
15
|
+
@mixin nv-topnav-status-icon($_vd-icon-color: vd-colour(do)) {
|
14
16
|
&::after {
|
15
17
|
content: '';
|
16
18
|
transform: scale(0);
|
@@ -4,17 +4,6 @@ $nv-header-font-size: 15px;
|
|
4
4
|
$nv-header-logo-font-size: 42px;
|
5
5
|
$nv-header-logo-font-size--mobile: 24px;
|
6
6
|
|
7
|
-
// Side Navigation
|
8
|
-
|
9
|
-
$nv-sidenav-base-z-index: $vd-z-index-navigation-base;
|
10
|
-
$nv-sidenav-modal-z-index: $vd-modals-z-index + 1;
|
11
|
-
$nv-sidenav-modal-close-base-offset: 10px;
|
12
|
-
$nv-sidenav-modal-close-right-offset: -($vd-dialog-close-width + $nv-sidenav-modal-close-base-offset);
|
13
|
-
|
14
|
-
$nv-sidenav-content-box-shadow-offset-x: 1px;
|
15
|
-
$nv-sidenav-tabs-mobile-width: 85px;
|
16
|
-
$nv-sidenav-drawer-mobile-width: 145px;
|
17
|
-
|
18
7
|
// Notifications Side Drawer
|
19
8
|
|
20
9
|
$nv-notifications-list-spacing: 20px;
|
@@ -58,6 +58,7 @@
|
|
58
58
|
@import '../components/vd-loader/vd-loader';
|
59
59
|
@import '../components/vd-main-content/vd-main-content';
|
60
60
|
@import '../components/vd-modals-container/vd-modals-container';
|
61
|
+
@import '../components/vd-nav-divider/vd-nav-divider';
|
61
62
|
@import '../components/vd-nav-item/vd-nav-item';
|
62
63
|
@import '../components/vd-overlay/vd-overlay';
|
63
64
|
@import '../components/vd-p/vd-p';
|
@@ -74,6 +75,7 @@
|
|
74
75
|
@import '../components/vd-sidebar/vd-sidebar';
|
75
76
|
@import '../components/vd-sidebar-drawer/vd-sidebar-drawer';
|
76
77
|
@import '../components/vd-sidebar-tabs/vd-sidebar-tabs';
|
78
|
+
@import '../components/vd-sidebar/tmp-overrides'; // @REMOVEME: When flag `sidebar_new` is fully rolled out
|
77
79
|
@import '../components/vd-splash/vd-splash';
|
78
80
|
@import '../components/vd-status-icon/vd-status-icon';
|
79
81
|
@import '../components/vd-suggestion/vd-suggestion-list';
|
package/CHANGELOG.md
DELETED
@@ -1,180 +0,0 @@
|
|
1
|
-
# @lightspeed/design-system-css
|
2
|
-
|
3
|
-
## 1.1.1
|
4
|
-
|
5
|
-
### Patch Changes
|
6
|
-
|
7
|
-
- [#4592](https://github.com/vend/monocle/pull/4592) [`697caaf9d`](https://github.com/vend/monocle/commit/697caaf9dea2ee9e11322e04a7ceb6de0dbd1f82) Thanks [@edsrzf](https://github.com/edsrzf)! - Use align-items: flex-start instead of start to avoid an autoprefixer warning.
|
8
|
-
|
9
|
-
## 1.1.0
|
10
|
-
|
11
|
-
### Minor Changes
|
12
|
-
|
13
|
-
- [#4381](https://github.com/vend/monocle/pull/4381) [`291ce4a3d`](https://github.com/vend/monocle/commit/291ce4a3db11882b4e19e10a9865b896643d890b) Thanks [@stephen-boswell](https://github.com/stephen-boswell)! - Adds classes to hide the nav container in single-spa enviroment
|
14
|
-
|
15
|
-
## 1.0.3
|
16
|
-
|
17
|
-
### Patch Changes
|
18
|
-
|
19
|
-
- [#4344](https://github.com/vend/monocle/pull/4344) [`908e57aea`](https://github.com/vend/monocle/commit/908e57aea8abb71d3b4bb26bcae152f87cf2b874) Thanks [@WaiHaiDere](https://github.com/WaiHaiDere)! - Update checkbox styling to match design (Margin + label)
|
20
|
-
|
21
|
-
## 1.0.2
|
22
|
-
|
23
|
-
### Patch Changes
|
24
|
-
|
25
|
-
- Updated dependencies [[`13743872b`](https://github.com/vend/monocle/commit/13743872b0eb04bae4143efd20e24d11ba5cd925)]:
|
26
|
-
- @lightspeed/design-system-tokens@1.0.0
|
27
|
-
|
28
|
-
## 1.0.1
|
29
|
-
|
30
|
-
### Patch Changes
|
31
|
-
|
32
|
-
- [#4275](https://github.com/vend/monocle/pull/4275) [`2eb35a37f`](https://github.com/vend/monocle/commit/2eb35a37fb01bbb451bda857666ae5538969fac5) Thanks [@rothlis](https://github.com/rothlis)! - Fix Inputs height to 44px
|
33
|
-
|
34
|
-
**Why?**
|
35
|
-
|
36
|
-
Specs define buttons and inputs having a height of 44px. However, before this release, inputs (e.g. TextInput, Dropdown) where having a height of 46px.
|
37
|
-
|
38
|
-
## 1.0.0
|
39
|
-
|
40
|
-
### Major Changes
|
41
|
-
|
42
|
-
- [#4264](https://github.com/vend/monocle/pull/4264) [`50352c606`](https://github.com/vend/monocle/commit/50352c6063a4de1e493d6a95c8058cdbbcb29c66) Thanks [@rothlis](https://github.com/rothlis)! - Ability to manually set the dark or light theme.
|
43
|
-
|
44
|
-
- By default, no dark theme is enabled
|
45
|
-
- If your UI supports the dark theme, then either:
|
46
|
-
- Set the SASS variable `$vd-theme-use-dark-mode: true;` before importing the SASS styles
|
47
|
-
- Set the CSS class `vd-theme--use-dark-mode` to the `<body>`
|
48
|
-
- The dark theme will be automatically applied based on the OS preference
|
49
|
-
- If you have a theme swicher, you can add `vd-theme--light` or `vd-theme--dark` to the `<body>`
|
50
|
-
- This will override the OS preference
|
51
|
-
|
52
|
-
## 0.6.3
|
53
|
-
|
54
|
-
### Patch Changes
|
55
|
-
|
56
|
-
- [#4252](https://github.com/vend/monocle/pull/4252) [`b720075e4`](https://github.com/vend/monocle/commit/b720075e419fc9d5671bb448bd987c33119fcd1a) Thanks [@staugaard](https://github.com/staugaard)! - Slightly improved styling of popovers
|
57
|
-
|
58
|
-
## 0.6.2
|
59
|
-
|
60
|
-
### Patch Changes
|
61
|
-
|
62
|
-
- [#4249](https://github.com/vend/monocle/pull/4249) [`3dd1fa50b`](https://github.com/vend/monocle/commit/3dd1fa50bd328ac2b33f00fb66aa53e955a47f78) Thanks [@aarr0n](https://github.com/aarr0n)! - Fix animation for Dott.
|
63
|
-
|
64
|
-
## 0.6.1
|
65
|
-
|
66
|
-
### Patch Changes
|
67
|
-
|
68
|
-
- [#4237](https://github.com/vend/monocle/pull/4237) [`a90d5a43e`](https://github.com/vend/monocle/commit/a90d5a43eea46eb9ddeca8410638ad1730fd9803) Thanks [@aarr0n](https://github.com/aarr0n)! - Navigation: Update the selector which highlights a sidebar drawer item as "active".
|
69
|
-
|
70
|
-
## 0.6.0
|
71
|
-
|
72
|
-
### Minor Changes
|
73
|
-
|
74
|
-
- [#4229](https://github.com/vend/monocle/pull/4229) [`7f70bec24`](https://github.com/vend/monocle/commit/7f70bec24f7cae5938279e0ab567e62196152f5c) Thanks [@haydenwoodhead](https://github.com/haydenwoodhead)! - # Dropdown: add divider and search header margin
|
75
|
-
|
76
|
-
## What
|
77
|
-
|
78
|
-
- Adds a divider suggestion type to the Dropdown.
|
79
|
-
- Adds 4px of padding to the label that displays the search header inside of a Dropdown.
|
80
|
-
|
81
|
-
## Why
|
82
|
-
|
83
|
-
IAM is creating a new page and needs a specific design for the dropdown component. That includes a divider. See the [figma](https://www.figma.com/file/n2CJXP9CDaLyUoiz23iEPj/08-Setup?node-id=1065%3A248430).
|
84
|
-
|
85
|
-
It also appears that this search header label should have some margin. See [this slack discussion](https://lightspeedhq.slack.com/archives/C02K5U88KUH/p1646880176830629).
|
86
|
-
|
87
|
-
## How
|
88
|
-
|
89
|
-
Use the new divider like so:
|
90
|
-
|
91
|
-
```
|
92
|
-
const items = [
|
93
|
-
{ id: 'item7', label: 'item7', name: 'item7' },
|
94
|
-
{
|
95
|
-
id: 'dividerItem',
|
96
|
-
label: 'divider',
|
97
|
-
name: 'Divider',
|
98
|
-
itemType: SuggestionType.Divider,
|
99
|
-
},
|
100
|
-
{ id: 'item8', label: 'item8', name: 'item8' },
|
101
|
-
{ id: 'item9', label: 'item9', name: 'item9' },
|
102
|
-
]
|
103
|
-
|
104
|
-
...
|
105
|
-
|
106
|
-
<Dropdown items={items}>
|
107
|
-
```
|
108
|
-
|
109
|
-
## 0.5.0
|
110
|
-
|
111
|
-
### Minor Changes
|
112
|
-
|
113
|
-
- [#4200](https://github.com/vend/monocle/pull/4200) [`73d8d0eda`](https://github.com/vend/monocle/commit/73d8d0eda329cd27e99d93275b1ba6324db39a1f) Thanks [@rothlis](https://github.com/rothlis)! - Theme tokens have been extracted to `@lightspeed/design-system-tokens`
|
114
|
-
|
115
|
-
**Deprecated**: This package does not export anymore the theme tokens. Please use `@lightspeed/design-system-tokens` going forward.
|
116
|
-
|
117
|
-
### Patch Changes
|
118
|
-
|
119
|
-
- Updated dependencies [[`73d8d0eda`](https://github.com/vend/monocle/commit/73d8d0eda329cd27e99d93275b1ba6324db39a1f)]:
|
120
|
-
- @lightspeed/design-system-tokens@0.1.0
|
121
|
-
|
122
|
-
## 0.4.0
|
123
|
-
|
124
|
-
### Minor Changes
|
125
|
-
|
126
|
-
- 24ea79113: Update styling for Vend to Lightspeed brand replacement
|
127
|
-
|
128
|
-
## 0.3.0
|
129
|
-
|
130
|
-
### Minor Changes
|
131
|
-
|
132
|
-
- 622131d30: Updates `ToastNotification` by adding a check icon to all success toasts and small style changes (padding and bolded font)
|
133
|
-
|
134
|
-
## 0.2.0
|
135
|
-
|
136
|
-
### Minor Changes
|
137
|
-
|
138
|
-
- 495da32fa: Remove Vend's naming from the package's API
|
139
|
-
|
140
|
-
## New API
|
141
|
-
|
142
|
-
Import CSS styles
|
143
|
-
|
144
|
-
```tsx
|
145
|
-
import '@lightspeed/design-system-css'
|
146
|
-
```
|
147
|
-
|
148
|
-
Import SCSS non-styles (variables, mixins, functions)
|
149
|
-
|
150
|
-
```scss
|
151
|
-
@import '@lightspeed/design-system-css/src/common';
|
152
|
-
```
|
153
|
-
|
154
|
-
## Deprecated API
|
155
|
-
|
156
|
-
> Those APIs are deprecated but still available for retro-compatibility.
|
157
|
-
|
158
|
-
Import CSS styles
|
159
|
-
|
160
|
-
```tsx
|
161
|
-
import '@lightspeed/design-system-css/dist/vend-styles.css'
|
162
|
-
```
|
163
|
-
|
164
|
-
Import SCSS non-styles (variables, mixins, functions)
|
165
|
-
|
166
|
-
```scss
|
167
|
-
@import '@lightspeed/design-system-css/src/vend.ui/styles/global/non-styles';
|
168
|
-
```
|
169
|
-
|
170
|
-
## 0.1.0
|
171
|
-
|
172
|
-
### Minor Changes
|
173
|
-
|
174
|
-
- 094a8faf7: Initial release of `@lightspeed/design-sytem-css`.
|
175
|
-
|
176
|
-
See https://github.com/vend/monocle/pull/3616 for context.
|
177
|
-
|
178
|
-
### Patch Changes
|
179
|
-
|
180
|
-
- dc309dc98: Remove dependency on @vend packages
|
@@ -1,143 +0,0 @@
|
|
1
|
-
@mixin nv-sidenav-faux-column-bg($tabs-width, $drawer-width) {
|
2
|
-
background: linear-gradient(
|
3
|
-
to right,
|
4
|
-
$vd-sidebar-tabs-background-color 0,
|
5
|
-
$vd-sidebar-tabs-background-color $tabs-width,
|
6
|
-
$vd-sidebar-drawer-background-color $tabs-width,
|
7
|
-
$vd-sidebar-drawer-background-color $drawer-width
|
8
|
-
);
|
9
|
-
}
|
10
|
-
|
11
|
-
// The sidebar contents can be hidden, if so we shouldn't show the sidebar
|
12
|
-
.vd-sidebar:empty {
|
13
|
-
display: none;
|
14
|
-
}
|
15
|
-
|
16
|
-
.nv-sidenav {
|
17
|
-
transform: translateX(0);
|
18
|
-
transition: transform 0.2s ease-in-out;
|
19
|
-
display: block;
|
20
|
-
height: calc(100% - #{$vd-topbar-height});
|
21
|
-
z-index: $nv-sidenav-base-z-index;
|
22
|
-
|
23
|
-
.nv-sidenav-modal-close {
|
24
|
-
display: none;
|
25
|
-
top: $nv-sidenav-modal-close-base-offset;
|
26
|
-
right: $nv-sidenav-modal-close-right-offset;
|
27
|
-
}
|
28
|
-
|
29
|
-
.vd-sidebar-tabs {
|
30
|
-
box-shadow: none;
|
31
|
-
height: auto;
|
32
|
-
}
|
33
|
-
|
34
|
-
.vd-sidebar-drawer {
|
35
|
-
border-right: none;
|
36
|
-
height: auto;
|
37
|
-
}
|
38
|
-
|
39
|
-
@media print {
|
40
|
-
display: none;
|
41
|
-
}
|
42
|
-
|
43
|
-
@supports (height: min-content) {
|
44
|
-
.vd-sidebar-tabs,
|
45
|
-
.vd-sidebar-drawer {
|
46
|
-
height: min-content;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
// Required so banner does not appear over the top of the sidenav when its toggled
|
51
|
-
// on smaller devices
|
52
|
-
@include vd-viewport-media-max($vd-breakpoint-large) {
|
53
|
-
z-index: $vd-z-index-popover-base + 2;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
|
57
|
-
.nv-sidenav-content {
|
58
|
-
@include nv-sidenav-faux-column-bg(
|
59
|
-
$vd-sidebar-tabs-desktop-width,
|
60
|
-
$vd-sidebar-drawer-desktop-width
|
61
|
-
);
|
62
|
-
width: auto;
|
63
|
-
overflow-y: auto;
|
64
|
-
overflow-x: hidden;
|
65
|
-
height: 100%;
|
66
|
-
display: flex;
|
67
|
-
box-shadow: $nv-sidenav-content-box-shadow-offset-x 0 0 0 vd-colour(framing);
|
68
|
-
}
|
69
|
-
|
70
|
-
.nv-sidenav--pad-drawer {
|
71
|
-
padding-right: $vd-sidebar-drawer-desktop-width;
|
72
|
-
}
|
73
|
-
|
74
|
-
// ========= Body Class Sidenav Modal State ========= //
|
75
|
-
|
76
|
-
.nv-display-sidenav-modal {
|
77
|
-
.nv-sidenav {
|
78
|
-
z-index: $nv-sidenav-modal-z-index;
|
79
|
-
|
80
|
-
.nv-sidenav-modal-close {
|
81
|
-
display: flex;
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
|
-
|
86
|
-
// ========= Responsive Breakpoint Styles ========= //
|
87
|
-
|
88
|
-
@include vd-viewport-media-max($vd-breakpoint-large) {
|
89
|
-
.nv-sidenav {
|
90
|
-
position: absolute;
|
91
|
-
left: 0;
|
92
|
-
height: 100%;
|
93
|
-
transform: translateX(
|
94
|
-
calc(-100% - #{$nv-sidenav-content-box-shadow-offset-x})
|
95
|
-
);
|
96
|
-
|
97
|
-
.nv-sidenav-content {
|
98
|
-
@include nv-sidenav-faux-column-bg(
|
99
|
-
$nv-sidenav-tabs-mobile-width,
|
100
|
-
$nv-sidenav-drawer-mobile-width
|
101
|
-
);
|
102
|
-
}
|
103
|
-
|
104
|
-
.vd-sidebar-tabs {
|
105
|
-
width: $nv-sidenav-tabs-mobile-width;
|
106
|
-
}
|
107
|
-
|
108
|
-
.vd-sidebar-drawer {
|
109
|
-
width: $nv-sidenav-drawer-mobile-width;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
113
|
-
.nv-display-sidenav-modal {
|
114
|
-
.nv-sidenav {
|
115
|
-
transform: translateX(0);
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
.nv-sidenav--pad-drawer {
|
120
|
-
padding-right: 0;
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
@include vd-viewport-media-min($vd-breakpoint-xlarge-min) {
|
125
|
-
// The following styles are required to allow the sidenav modal overlay page content when no drawer is displayed
|
126
|
-
// This only applies to the nav at large desktop size
|
127
|
-
.nv-sidenav--no-drawer {
|
128
|
-
width: $vd-sidebar-tabs-desktop-width;
|
129
|
-
}
|
130
|
-
|
131
|
-
.nv-display-sidenav-modal {
|
132
|
-
.nv-sidenav--no-drawer {
|
133
|
-
.nv-sidenav-content {
|
134
|
-
position: absolute;
|
135
|
-
}
|
136
|
-
|
137
|
-
.nv-sidenav-modal-close {
|
138
|
-
right: $nv-sidenav-modal-close-right-offset -
|
139
|
-
$vd-sidebar-drawer-desktop-width;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
}
|
143
|
-
}
|