@varlet/cli 2.15.1 → 2.16.0-alpha.1693852004525

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.
Files changed (60) hide show
  1. package/lib/node/config/varlet.config.js +2 -1
  2. package/lib/node/config/varlet.default.config.js +264 -7
  3. package/package.json +8 -7
  4. package/site/mobile/App.vue +25 -22
  5. package/site/mobile/{components/AppHome.vue → AppHome.vue} +6 -6
  6. package/site/mobile/main.ts +6 -21
  7. package/site/pc/App.vue +0 -5
  8. package/site/pc/Layout.vue +24 -28
  9. package/site/pc/components/AppHeader.vue +123 -122
  10. package/site/pc/components/AppMobile.vue +9 -2
  11. package/site/pc/components/AppSidebar.vue +18 -17
  12. package/site/{components → pc/components}/code-example/CodeExample.vue +8 -15
  13. package/site/pc/main.ts +6 -23
  14. package/site/pc/pages/index/index.vue +316 -47
  15. package/site/types.ts +6 -0
  16. package/template/generators/base/package.json +1 -0
  17. package/site/components/button/Button.vue +0 -106
  18. package/site/components/button/button.less +0 -183
  19. package/site/components/button/index.ts +0 -10
  20. package/site/components/button/props.ts +0 -78
  21. package/site/components/cell/Cell.vue +0 -54
  22. package/site/components/cell/cell.less +0 -78
  23. package/site/components/cell/index.ts +0 -10
  24. package/site/components/cell/props.ts +0 -27
  25. package/site/components/context/index.ts +0 -21
  26. package/site/components/context/lock.ts +0 -92
  27. package/site/components/context/zIndex.ts +0 -20
  28. package/site/components/icon/Icon.vue +0 -75
  29. package/site/components/icon/icon.less +0 -38
  30. package/site/components/icon/index.ts +0 -10
  31. package/site/components/icon/props.ts +0 -24
  32. package/site/components/loading/Loading.vue +0 -84
  33. package/site/components/loading/index.ts +0 -10
  34. package/site/components/loading/loading.less +0 -505
  35. package/site/components/loading/props.ts +0 -42
  36. package/site/components/popup/Popup.tsx +0 -102
  37. package/site/components/popup/index.ts +0 -10
  38. package/site/components/popup/popup.less +0 -125
  39. package/site/components/popup/props.ts +0 -63
  40. package/site/components/ripple/index.ts +0 -188
  41. package/site/components/ripple/ripple.less +0 -20
  42. package/site/components/snackbar/Snackbar.vue +0 -41
  43. package/site/components/snackbar/core.vue +0 -132
  44. package/site/components/snackbar/index.tsx +0 -270
  45. package/site/components/snackbar/props.ts +0 -97
  46. package/site/components/snackbar/snackbar.less +0 -135
  47. package/site/components/styles/common.less +0 -64
  48. package/site/components/styles/elevation.less +0 -126
  49. package/site/components/styles/var.less +0 -27
  50. package/site/components/utils/components.ts +0 -114
  51. package/site/components/utils/elements.ts +0 -104
  52. package/site/mobile/components/app-bar/AppBar.vue +0 -65
  53. package/site/mobile/components/app-bar/appBar.less +0 -57
  54. package/site/mobile/components/app-bar/index.ts +0 -10
  55. package/site/mobile/components/app-bar/props.ts +0 -25
  56. package/site/pc/components/AnimationBox.vue +0 -62
  57. package/site/pc/components/LogoAnimation.vue +0 -119
  58. package/site/pc/pages/index/index.less +0 -204
  59. /package/site/{components → pc/components}/code-example/codeExample.less +0 -0
  60. /package/site/{components → pc/components}/code-example/index.ts +0 -0
@@ -1,270 +0,0 @@
1
- import VarSnackbarCore from './core.vue'
2
- import VarSnackbar from './Snackbar.vue'
3
- import context from '../context'
4
- import { reactive, TransitionGroup } from 'vue'
5
- import { mountInstance } from '../utils/components'
6
- import { isNumber, isPlainObject, isString, toNumber } from '@varlet/shared'
7
- import type { LoadingType, LoadingSize } from '../loading/props'
8
- import type { App, Component, TeleportProps } from 'vue'
9
-
10
- export type SnackbarType = 'success' | 'warning' | 'info' | 'error' | 'loading'
11
-
12
- export const SNACKBAR_TYPE: Array<SnackbarType> = ['loading', 'success', 'warning', 'info', 'error']
13
-
14
- interface SnackbarHandel {
15
- clear: () => void
16
- }
17
-
18
- interface SnackbarOptions {
19
- type?: SnackbarType
20
- content?: string
21
- position?: 'top' | 'center' | 'bottom'
22
- loadingType?: LoadingType
23
- loadingSize?: LoadingSize
24
- lockScroll?: boolean
25
- contentClass?: string
26
- duration?: number
27
- vertical?: boolean
28
- show?: boolean
29
- forbidClick?: boolean
30
- onOpen?: () => void
31
- onClose?: () => void
32
- onOpened?: () => void
33
- onClosed?: () => void
34
- // internal
35
- teleport?: TeleportProps['to']
36
- }
37
-
38
- interface UniqSnackbarOptions {
39
- id: number
40
- reactiveSnackOptions: SnackbarOptions
41
- _update?: string
42
- animationEnd?: boolean
43
- }
44
-
45
- interface Snackbar {
46
- (options: SnackbarOptions | string): SnackbarHandel
47
-
48
- install(app: App): void
49
-
50
- allowMultiple(bool: boolean): void
51
-
52
- success(options: SnackbarOptions | string): SnackbarHandel
53
-
54
- warning(options: SnackbarOptions | string): SnackbarHandel
55
-
56
- info(options: SnackbarOptions | string): SnackbarHandel
57
-
58
- error(options: SnackbarOptions | string): SnackbarHandel
59
-
60
- loading(options: SnackbarOptions | string): SnackbarHandel
61
-
62
- clear(): void
63
-
64
- Component: Component
65
- }
66
-
67
- let sid = 0
68
- let isMount = false
69
- let unmount: () => void
70
- let isAllowMultiple = false
71
- let uniqSnackbarOptions: Array<UniqSnackbarOptions> = reactive<UniqSnackbarOptions[]>([])
72
-
73
- const defaultOption: Partial<Record<keyof SnackbarOptions, any>> = {
74
- type: undefined,
75
- content: '',
76
- position: 'top',
77
- duration: 3000,
78
- vertical: false,
79
- contentClass: undefined,
80
- loadingType: 'circle',
81
- loadingSize: 'normal',
82
- lockScroll: false,
83
- teleport: 'body',
84
- forbidClick: false,
85
- onOpen: () => {},
86
- onOpened: () => {},
87
- onClose: () => {},
88
- onClosed: () => {},
89
- }
90
-
91
- const transitionGroupProps: any = {
92
- name: 'var-site-snackbar-fade',
93
- tag: 'div',
94
- class: 'var-site-transition-group',
95
- }
96
-
97
- const TransitionGroupHost = {
98
- setup() {
99
- return () => {
100
- const snackbarList = uniqSnackbarOptions.map(({ id, reactiveSnackOptions, _update }: UniqSnackbarOptions) => {
101
- const transitionGroupEl = document.querySelector('.var-site-transition-group')
102
- if (reactiveSnackOptions.forbidClick || reactiveSnackOptions.type === 'loading') {
103
- ;(transitionGroupEl as HTMLElement).classList.add('var-site-pointer-auto')
104
- } else {
105
- ;(transitionGroupEl as HTMLElement).classList.remove('var-site-pointer-auto')
106
- }
107
-
108
- if (isAllowMultiple) reactiveSnackOptions.position = 'top'
109
-
110
- const position = isAllowMultiple ? 'relative' : 'absolute'
111
-
112
- const style = {
113
- position,
114
- ...getTop(reactiveSnackOptions.position),
115
- }
116
-
117
- return (
118
- <VarSnackbarCore
119
- {...reactiveSnackOptions}
120
- key={id}
121
- style={style}
122
- data-id={id}
123
- _update={_update}
124
- v-model={[reactiveSnackOptions.show, 'show']}
125
- />
126
- )
127
- })
128
-
129
- const zindex = context.zIndex
130
-
131
- return (
132
- <TransitionGroup
133
- {...transitionGroupProps}
134
- style={{ zIndex: zindex }}
135
- onAfterEnter={opened}
136
- onAfterLeave={removeUniqOption}
137
- >
138
- {snackbarList}
139
- </TransitionGroup>
140
- )
141
- }
142
- },
143
- }
144
-
145
- const Snackbar: Snackbar = function (options: SnackbarOptions | string | number): SnackbarHandel {
146
- const snackOptions: SnackbarOptions = isString(options) || isNumber(options) ? { content: String(options) } : options
147
- const reactiveSnackOptions: SnackbarOptions = reactive<SnackbarOptions>({
148
- ...defaultOption,
149
- ...snackOptions,
150
- })
151
- reactiveSnackOptions.show = true
152
-
153
- if (!isMount) {
154
- isMount = true
155
- unmount = mountInstance(TransitionGroupHost).unmountInstance
156
- }
157
-
158
- const { length } = uniqSnackbarOptions
159
- const uniqSnackbarOptionItem: UniqSnackbarOptions = {
160
- id: sid++,
161
- reactiveSnackOptions,
162
- }
163
-
164
- if (length === 0 || isAllowMultiple) {
165
- addUniqOption(uniqSnackbarOptionItem)
166
- } else {
167
- const _update = `update-${sid}`
168
- updateUniqOption(reactiveSnackOptions, _update)
169
- }
170
-
171
- return {
172
- clear() {
173
- if (!isAllowMultiple && uniqSnackbarOptions.length) {
174
- uniqSnackbarOptions[0].reactiveSnackOptions.show = false
175
- } else {
176
- reactiveSnackOptions.show = false
177
- }
178
- },
179
- }
180
- } as Snackbar
181
-
182
- SNACKBAR_TYPE.forEach((type) => {
183
- Snackbar[type] = (options: SnackbarOptions | string): SnackbarHandel => {
184
- if (isPlainObject(options)) {
185
- options.type = type
186
- } else {
187
- options = {
188
- content: options,
189
- type,
190
- }
191
- }
192
- return Snackbar(options)
193
- }
194
- })
195
-
196
- Snackbar.install = function (app: App) {
197
- app.component(VarSnackbar.name, VarSnackbar)
198
- }
199
-
200
- Snackbar.allowMultiple = function (bool = false) {
201
- if (bool !== isAllowMultiple) {
202
- uniqSnackbarOptions.forEach((option: UniqSnackbarOptions) => {
203
- option.reactiveSnackOptions.show = false
204
- })
205
-
206
- isAllowMultiple = bool
207
- }
208
- }
209
-
210
- Snackbar.clear = function () {
211
- uniqSnackbarOptions.forEach((option: UniqSnackbarOptions) => {
212
- option.reactiveSnackOptions.show = false
213
- })
214
- }
215
-
216
- Snackbar.Component = VarSnackbar
217
-
218
- function opened(element: HTMLElement): void {
219
- const id = element.getAttribute('data-id')
220
- const option = uniqSnackbarOptions.find((option) => option.id === toNumber(id))
221
- if (option) option.reactiveSnackOptions.onOpened?.()
222
- }
223
-
224
- function removeUniqOption(element: HTMLElement): void {
225
- element.parentElement && element.parentElement.classList.remove('var-site-pointer-auto')
226
- const id = element.getAttribute('data-id')
227
-
228
- const option = uniqSnackbarOptions.find((option) => option.id === toNumber(id))
229
- if (option) {
230
- option.animationEnd = true
231
- option.reactiveSnackOptions.onClosed?.()
232
- }
233
-
234
- const isAllAnimationEnd = uniqSnackbarOptions.every((option) => option.animationEnd)
235
-
236
- if (isAllAnimationEnd) {
237
- unmount?.()
238
- uniqSnackbarOptions = reactive<UniqSnackbarOptions[]>([])
239
- isMount = false
240
- }
241
- }
242
-
243
- function addUniqOption(uniqSnackbarOptionItem: UniqSnackbarOptions) {
244
- uniqSnackbarOptions.push(uniqSnackbarOptionItem)
245
- }
246
-
247
- function updateUniqOption(reactiveSnackOptions: SnackbarOptions, _update: string) {
248
- const [firstOption] = uniqSnackbarOptions
249
-
250
- firstOption.reactiveSnackOptions = {
251
- ...firstOption.reactiveSnackOptions,
252
- ...reactiveSnackOptions,
253
- }
254
-
255
- firstOption._update = _update
256
- }
257
-
258
- function getTop(position = 'top') {
259
- if (position === 'bottom') return { [position]: '5%' }
260
-
261
- return { top: position === 'top' ? '5%' : '45%' }
262
- }
263
-
264
- VarSnackbar.install = function (app: App) {
265
- app.component(VarSnackbar.name, VarSnackbar)
266
- }
267
-
268
- export const _SnackbarComponent = VarSnackbar
269
-
270
- export default Snackbar
@@ -1,97 +0,0 @@
1
- import { pickProps } from '../utils/components'
2
- import { props as loadingProps } from '../loading/props'
3
- import { SNACKBAR_TYPE, SnackbarType } from './index'
4
- import type { PropType, TeleportProps } from 'vue'
5
-
6
- export function positionValidator(position: string): boolean {
7
- const validPositions = ['top', 'center', 'bottom']
8
- return validPositions.includes(position)
9
- }
10
-
11
- export function typeValidator(type: SnackbarType): boolean {
12
- return SNACKBAR_TYPE.includes(type)
13
- }
14
-
15
- export const props = {
16
- type: {
17
- type: String as PropType<SnackbarType>,
18
- validator: typeValidator,
19
- },
20
- // snackbar显示的位置
21
- position: {
22
- type: String,
23
- default: 'top',
24
- validator: positionValidator,
25
- },
26
- // content内容
27
- content: {
28
- type: String,
29
- },
30
- // 为snackbar content添加自定义类名
31
- contentClass: {
32
- type: String,
33
- },
34
- // snackbar 持续时间
35
- duration: {
36
- type: Number,
37
- default: 3000,
38
- },
39
- // 是否将消息条内容堆叠在操作(按钮)之上
40
- vertical: {
41
- type: Boolean,
42
- default: false,
43
- },
44
- loadingType: pickProps(loadingProps, 'type'),
45
- loadingSize: pickProps(loadingProps, 'size'),
46
- loadingRadius: pickProps(loadingProps, 'radius'),
47
- loadingColor: {
48
- ...pickProps(loadingProps, 'color'),
49
- default: 'currentColor',
50
- },
51
- // 是否禁止滚动穿透
52
- lockScroll: {
53
- type: Boolean,
54
- default: false,
55
- },
56
- // 控制组件可见还是隐藏
57
- show: {
58
- type: Boolean,
59
- default: false,
60
- },
61
- // teleport
62
- teleport: {
63
- type: String as PropType<TeleportProps['to']>,
64
- default: 'body',
65
- },
66
- // 是否禁止点击背景
67
- forbidClick: {
68
- type: Boolean,
69
- default: false,
70
- },
71
- // 打开时的回调函数
72
- onOpen: {
73
- type: Function as PropType<() => void>,
74
- default: () => {},
75
- },
76
- // 打开动画结束时的回调
77
- onOpened: {
78
- type: Function as PropType<() => void>,
79
- default: () => {},
80
- },
81
- // 关闭时的回调函数
82
- onClose: {
83
- type: Function as PropType<() => void>,
84
- default: () => {},
85
- },
86
- // 关闭动画结束时的回调
87
- onClosed: {
88
- type: Function as PropType<() => void>,
89
- default: () => {},
90
- },
91
- 'onUpdate:show': {
92
- type: Function as PropType<(show: boolean) => void>,
93
- },
94
- _update: {
95
- type: String,
96
- },
97
- }
@@ -1,135 +0,0 @@
1
- @site-snackbar-width: 256px;
2
- @site-snackbar-color: rgba(255, 255, 255, 0.87);
3
- @site-snackbar-border-radius: 4px;
4
- @site-snackbar-background: #333;
5
- @site-snackbar-font-size: var(--site-font-size-md);
6
- @site-snackbar-margin: 6px 24px;
7
- @site-snackbar-border-color: currentColor;
8
- @site-snackbar-success-background: var(--site-color-success);
9
- @site-snackbar-info-background: var(--site-color-info);
10
- @site-snackbar-error-background: var(--site-color-danger);
11
- @site-snackbar-warning-background: var(--site-color-warning);
12
- @site-snackbar-content-padding: 14px 16px;
13
- @site-snackbar-action-margin: 0 16px 0 0;
14
-
15
- :root {
16
- --site-snackbar-width: @site-snackbar-width;
17
- --site-snackbar-color: @site-snackbar-color;
18
- --site-snackbar-border-radius: @site-snackbar-border-radius;
19
- --site-snackbar-background: @site-snackbar-background;
20
- --site-snackbar-font-size: @site-snackbar-font-size;
21
- --site-snackbar-margin: @site-snackbar-margin;
22
- --site-snackbar-border-color: @site-snackbar-border-color;
23
- --site-snackbar-success-background: @site-snackbar-success-background;
24
- --site-snackbar-info-background: @site-snackbar-info-background;
25
- --site-snackbar-error-background: @site-snackbar-error-background;
26
- --site-snackbar-warning-background: @site-snackbar-warning-background;
27
- --site-snackbar-content-padding: @site-snackbar-content-padding;
28
- --site-snackbar-action-margin: @site-snackbar-action-margin;
29
- }
30
-
31
- .var-site-transition-group {
32
- position: fixed;
33
- left: 0;
34
- right: 0;
35
- top: 0;
36
- bottom: 0;
37
- pointer-events: none;
38
- }
39
-
40
- .var-site-pointer-auto {
41
- pointer-events: auto;
42
- }
43
-
44
- .var-site {
45
- &-snackbar {
46
- display: flex;
47
- justify-content: center;
48
- align-items: baseline;
49
- left: 0;
50
- right: 0;
51
- bottom: 0;
52
- transition: all 0.15s var(--site-cubic-bezier);
53
-
54
- &__wrapper {
55
- width: var(--site-snackbar-width);
56
- display: flex;
57
- border-radius: var(--site-snackbar-border-radius);
58
- color: var(--site-snackbar-color);
59
- background: var(--site-snackbar-background);
60
- font-size: var(--site-snackbar-font-size);
61
- margin: var(--site-snackbar-margin);
62
- align-items: center;
63
- border-color: var(--site-snackbar-border-color);
64
- pointer-events: auto;
65
- transition: 0.3s var(--site-cubic-bezier);
66
-
67
- &-success {
68
- background: var(--site-snackbar-success-background);
69
- }
70
-
71
- &-info {
72
- background: var(--site-snackbar-info-background);
73
- }
74
-
75
- &-warning {
76
- background: var(--site-snackbar-warning-background);
77
- }
78
-
79
- &-error {
80
- background: var(--site-snackbar-error-background);
81
- }
82
- }
83
-
84
- &__content {
85
- flex-grow: 1;
86
- padding: var(--site-snackbar-content-padding);
87
- }
88
-
89
- &__action {
90
- margin: var(--site-snackbar-action-margin);
91
- display: flex;
92
- }
93
-
94
- &__vertical {
95
- flex-direction: column;
96
- align-items: flex-start;
97
-
98
- .var-site-snackbar__action {
99
- align-self: flex-end;
100
- margin-bottom: 8px;
101
- }
102
- }
103
-
104
- &-fade-leave-active {
105
- position: absolute;
106
- }
107
-
108
- &-fade-enter-from,
109
- &-fade-leave-to {
110
- opacity: 0;
111
- transform: translateY(-30px);
112
- }
113
- }
114
-
115
- &-snackbar-transition {
116
- top: 0;
117
- position: fixed;
118
-
119
- .var-site-snackbar__wrapper {
120
- position: absolute;
121
-
122
- &-top {
123
- top: 5%;
124
- }
125
-
126
- &-center {
127
- top: 45%;
128
- }
129
-
130
- &-bottom {
131
- bottom: 5%;
132
- }
133
- }
134
- }
135
- }
@@ -1,64 +0,0 @@
1
- @import './var';
2
-
3
- .var-site {
4
- &--box {
5
- box-sizing: border-box;
6
-
7
- * {
8
- box-sizing: border-box;
9
- }
10
- }
11
-
12
- &--relative {
13
- position: relative;
14
- }
15
-
16
- &--absolute {
17
- position: absolute;
18
- }
19
-
20
- &--hidden {
21
- overflow: hidden;
22
- }
23
-
24
- &--lock {
25
- overflow: hidden;
26
- }
27
-
28
- &--block {
29
- display: block;
30
- }
31
-
32
- &--inline-block {
33
- display: inline-block;
34
- }
35
-
36
- &--flex {
37
- display: flex;
38
- }
39
-
40
- &--inline-flex {
41
- display: inline-flex;
42
- }
43
- }
44
-
45
- :root {
46
- --site-font-size-xs: @site-font-size-xs;
47
- --site-font-size-sm: @site-font-size-sm;
48
- --site-font-size-md: @site-font-size-md;
49
- --site-font-size-lg: @site-font-size-lg;
50
- --site-icon-size-xs: @site-icon-size-xs;
51
- --site-icon-size-sm: @site-icon-size-sm;
52
- --site-icon-size-md: @site-icon-size-md;
53
- --site-icon-size-lg: @site-icon-size-lg;
54
- --site-color-primary: @site-color-primary;
55
- --site-color-info: @site-color-info;
56
- --site-color-success: @site-color-success;
57
- --site-color-warning: @site-color-warning;
58
- --site-color-danger: @site-color-danger;
59
- --site-color-disabled: @site-color-disabled;
60
- --site-cubic-bezier: @site-cubic-bezier;
61
- --site-shadow-key-umbra-opacity: @site-shadow-key-umbra-opacity;
62
- --site-shadow-key-penumbra-opacity: @site-shadow-key-penumbra-opacity;
63
- --site-shadow-key-ambient-opacity: @site-shadow-key-ambient-opacity;
64
- }
@@ -1,126 +0,0 @@
1
- .var-site-elevation {
2
- &--0 {
3
- box-shadow: 0 0 0 0 var(--site-shadow-key-umbra-opacity), 0 0 0 0 var(--site-shadow-key-penumbra-opacity),
4
- 0 0 0 0 var(--site-shadow-key-ambient-opacity);
5
- }
6
-
7
- &--1 {
8
- box-shadow: 0 2px 1px -1px var(--site-shadow-key-umbra-opacity), 0 1px 1px 0 var(--site-shadow-key-penumbra-opacity),
9
- 0 1px 3px 0 var(--site-shadow-key-ambient-opacity);
10
- }
11
-
12
- &--2 {
13
- box-shadow: 0 3px 1px -2px var(--site-shadow-key-umbra-opacity), 0 2px 2px 0 var(--site-shadow-key-penumbra-opacity),
14
- 0 1px 5px 0 var(--site-shadow-key-ambient-opacity);
15
- }
16
-
17
- &--3 {
18
- box-shadow: 0 3px 3px -2px var(--site-shadow-key-umbra-opacity), 0 3px 4px 0 var(--site-shadow-key-penumbra-opacity),
19
- 0 1px 8px 0 var(--site-shadow-key-ambient-opacity);
20
- }
21
-
22
- &--4 {
23
- box-shadow: 0 2px 4px -1px var(--site-shadow-key-umbra-opacity), 0 4px 5px 0 var(--site-shadow-key-penumbra-opacity),
24
- 0 1px 10px 0 var(--site-shadow-key-ambient-opacity);
25
- }
26
-
27
- &--5 {
28
- box-shadow: 0 3px 5px -1px var(--site-shadow-key-umbra-opacity), 0 5px 8px 0 var(--site-shadow-key-penumbra-opacity),
29
- 0 1px 14px 0 var(--site-shadow-key-ambient-opacity);
30
- }
31
-
32
- &--6 {
33
- box-shadow: 0 3px 5px -1px var(--site-shadow-key-umbra-opacity), 0 6px 10px 0 var(--site-shadow-key-penumbra-opacity),
34
- 0 1px 18px 0 var(--site-shadow-key-ambient-opacity);
35
- }
36
-
37
- &--7 {
38
- box-shadow: 0 4px 5px -2px var(--site-shadow-key-umbra-opacity), 0 7px 10px 1px var(--site-shadow-key-penumbra-opacity),
39
- 0 2px 16px 1px var(--site-shadow-key-ambient-opacity);
40
- }
41
-
42
- &--8 {
43
- box-shadow: 0 5px 5px -3px var(--site-shadow-key-umbra-opacity), 0 8px 10px 1px var(--site-shadow-key-penumbra-opacity),
44
- 0 3px 14px 2px var(--site-shadow-key-ambient-opacity);
45
- }
46
-
47
- &--9 {
48
- box-shadow: 0 5px 6px -3px var(--site-shadow-key-umbra-opacity), 0 9px 12px 1px var(--site-shadow-key-penumbra-opacity),
49
- 0 3px 16px 2px var(--site-shadow-key-ambient-opacity);
50
- }
51
-
52
- &--10 {
53
- box-shadow: 0 6px 6px -3px var(--site-shadow-key-umbra-opacity), 0 10px 14px 1px var(--site-shadow-key-penumbra-opacity),
54
- 0 4px 18px 3px var(--site-shadow-key-ambient-opacity);
55
- }
56
-
57
- &--11 {
58
- box-shadow: 0 6px 7px -4px var(--site-shadow-key-umbra-opacity), 0 11px 15px 1px var(--site-shadow-key-penumbra-opacity),
59
- 0 4px 20px 3px var(--site-shadow-key-ambient-opacity);
60
- }
61
-
62
- &--12 {
63
- box-shadow: 0 7px 8px -4px var(--site-shadow-key-umbra-opacity), 0 12px 17px 2px var(--site-shadow-key-penumbra-opacity),
64
- 0 5px 22px 4px var(--site-shadow-key-ambient-opacity);
65
- }
66
-
67
- &--13 {
68
- box-shadow: 0 7px 8px -4px var(--site-shadow-key-umbra-opacity), 0 13px 19px 2px var(--site-shadow-key-penumbra-opacity),
69
- 0 5px 24px 4px var(--site-shadow-key-ambient-opacity);
70
- }
71
-
72
- &--14 {
73
- box-shadow: 0 7px 9px -4px var(--site-shadow-key-umbra-opacity), 0 14px 21px 2px var(--site-shadow-key-penumbra-opacity),
74
- 0 5px 26px 4px var(--site-shadow-key-ambient-opacity);
75
- }
76
-
77
- &--15 {
78
- box-shadow: 0 8px 9px -5px var(--site-shadow-key-umbra-opacity), 0 15px 22px 2px var(--site-shadow-key-penumbra-opacity),
79
- 0 6px 28px 5px var(--site-shadow-key-ambient-opacity);
80
- }
81
-
82
- &--16 {
83
- box-shadow: 0 8px 10px -5px var(--site-shadow-key-umbra-opacity), 0 16px 24px 2px var(--site-shadow-key-penumbra-opacity),
84
- 0 6px 30px 5px var(--site-shadow-key-ambient-opacity);
85
- }
86
-
87
- &--17 {
88
- box-shadow: 0 8px 11px -5px var(--site-shadow-key-umbra-opacity), 0 17px 26px 2px var(--site-shadow-key-penumbra-opacity),
89
- 0 6px 32px 5px var(--site-shadow-key-ambient-opacity);
90
- }
91
-
92
- &--18 {
93
- box-shadow: 0 9px 11px -5px var(--site-shadow-key-umbra-opacity), 0 18px 28px 2px var(--site-shadow-key-penumbra-opacity),
94
- 0 7px 34px 6px var(--site-shadow-key-ambient-opacity);
95
- }
96
-
97
- &--19 {
98
- box-shadow: 0 9px 12px -6px var(--site-shadow-key-umbra-opacity), 0 19px 29px 2px var(--site-shadow-key-penumbra-opacity),
99
- 0 7px 36px 6px var(--site-shadow-key-ambient-opacity);
100
- }
101
-
102
- &--20 {
103
- box-shadow: 0 10px 13px -6px var(--site-shadow-key-umbra-opacity), 0 20px 31px 3px var(--site-shadow-key-penumbra-opacity),
104
- 0 8px 38px 7px var(--site-shadow-key-ambient-opacity);
105
- }
106
-
107
- &--21 {
108
- box-shadow: 0 10px 13px -6px var(--site-shadow-key-umbra-opacity), 0 21px 33px 3px var(--site-shadow-key-penumbra-opacity),
109
- 0 8px 40px 7px var(--site-shadow-key-ambient-opacity);
110
- }
111
-
112
- &--22 {
113
- box-shadow: 0 10px 14px -6px var(--site-shadow-key-umbra-opacity), 0 22px 35px 3px var(--site-shadow-key-penumbra-opacity),
114
- 0 8px 42px 7px var(--site-shadow-key-ambient-opacity);
115
- }
116
-
117
- &--23 {
118
- box-shadow: 0 11px 14px -7px var(--site-shadow-key-umbra-opacity), 0 23px 36px 3px var(--site-shadow-key-penumbra-opacity),
119
- 0 9px 44px 8px var(--site-shadow-key-ambient-opacity);
120
- }
121
-
122
- &--24 {
123
- box-shadow: 0 11px 15px -7px var(--site-shadow-key-umbra-opacity), 0 24px 38px 3px var(--site-shadow-key-penumbra-opacity),
124
- 0 9px 46px 8px var(--site-shadow-key-ambient-opacity);
125
- }
126
- }