@weavy/uikit-react 12.1.0 → 14.0.0
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/changelog.md +60 -0
- package/dist/cjs/index.js +28 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/client/WeavyClient.d.ts +8 -1
- package/dist/cjs/types/components/Attachment.d.ts +2 -1
- package/dist/cjs/types/components/Chat.d.ts +1 -1
- package/dist/cjs/types/components/Messages.d.ts +3 -1
- package/dist/cjs/types/components/PdfViewer.d.ts +3 -1
- package/dist/cjs/types/components/Preview.d.ts +8 -10
- package/dist/cjs/types/contexts/PreviewContext.d.ts +2 -1
- package/dist/cjs/types/contexts/WeavyContext.d.ts +2 -3
- package/dist/cjs/types/hooks/useConversations.d.ts +1 -1
- package/dist/cjs/types/hooks/useMutateMessage.d.ts +1 -1
- package/dist/cjs/types/hooks/useMutateRead.d.ts +1 -0
- package/dist/cjs/types/types/Chat.d.ts +2 -1
- package/dist/cjs/types/types/Message.d.ts +2 -0
- package/dist/cjs/types/types/types.d.ts +63 -9
- package/dist/cjs/types/ui/Spinner.d.ts +10 -0
- package/dist/cjs/types/utils/fileUtilities.d.ts +1 -4
- package/dist/css/weavy-chat.css +1803 -1041
- package/dist/css/weavy-messenger.css +2141 -1360
- package/dist/css/weavy.css +1943 -1162
- package/dist/esm/index.js +28 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/client/WeavyClient.d.ts +8 -1
- package/dist/esm/types/components/Attachment.d.ts +2 -1
- package/dist/esm/types/components/Chat.d.ts +1 -1
- package/dist/esm/types/components/Messages.d.ts +3 -1
- package/dist/esm/types/components/PdfViewer.d.ts +3 -1
- package/dist/esm/types/components/Preview.d.ts +8 -10
- package/dist/esm/types/contexts/PreviewContext.d.ts +2 -1
- package/dist/esm/types/contexts/WeavyContext.d.ts +2 -3
- package/dist/esm/types/hooks/useConversations.d.ts +1 -1
- package/dist/esm/types/hooks/useMutateMessage.d.ts +1 -1
- package/dist/esm/types/hooks/useMutateRead.d.ts +1 -0
- package/dist/esm/types/types/Chat.d.ts +2 -1
- package/dist/esm/types/types/Message.d.ts +2 -0
- package/dist/esm/types/types/types.d.ts +63 -9
- package/dist/esm/types/ui/Spinner.d.ts +10 -0
- package/dist/esm/types/utils/fileUtilities.d.ts +1 -4
- package/dist/index.d.ts +15 -7
- package/package.json +2 -2
- package/rollup.config.js +3 -1
- package/src/client/WeavyClient.ts +105 -29
- package/src/components/Attachment.tsx +8 -7
- package/src/components/Chat.tsx +8 -7
- package/src/components/Conversation.tsx +29 -23
- package/src/components/ConversationBadge.tsx +7 -5
- package/src/components/ConversationForm.tsx +1 -1
- package/src/components/ConversationList.tsx +59 -11
- package/src/components/ConversationListItem.tsx +71 -54
- package/src/components/FileBrowser.tsx +53 -50
- package/src/components/MeetingCard.tsx +35 -13
- package/src/components/Meetings.tsx +1 -1
- package/src/components/Message.tsx +41 -41
- package/src/components/Messages.tsx +62 -61
- package/src/components/Messenger.tsx +7 -2
- package/src/components/NewConversation.tsx +1 -1
- package/src/components/PdfViewer.tsx +93 -88
- package/src/components/Preview.tsx +115 -54
- package/src/components/Reactions.tsx +11 -5
- package/src/components/SearchUsers.tsx +21 -11
- package/src/components/SeenBy.tsx +13 -7
- package/src/components/Typing.tsx +11 -12
- package/src/contexts/PreviewContext.tsx +90 -16
- package/src/contexts/UserContext.tsx +1 -1
- package/src/contexts/WeavyContext.tsx +10 -7
- package/src/hooks/useBadge.ts +2 -6
- package/src/hooks/useChat.ts +3 -14
- package/src/hooks/useConversation.ts +1 -7
- package/src/hooks/useConversations.ts +15 -11
- package/src/hooks/useFileUploader.ts +6 -8
- package/src/hooks/useMembers.ts +1 -7
- package/src/hooks/useMessages.ts +1 -7
- package/src/hooks/useMutateChat.ts +6 -11
- package/src/hooks/useMutateConversation.ts +7 -10
- package/src/hooks/useMutateConversationName.ts +10 -12
- package/src/hooks/useMutateDeleteReaction.ts +3 -8
- package/src/hooks/useMutateExternalBlobs.ts +6 -11
- package/src/hooks/useMutateMeeting.ts +6 -11
- package/src/hooks/useMutateMembers.ts +8 -13
- package/src/hooks/useMutateMessage.ts +9 -18
- package/src/hooks/useMutatePinned.ts +3 -8
- package/src/hooks/useMutateReaction.ts +6 -12
- package/src/hooks/useMutateRead.ts +5 -12
- package/src/hooks/useMutateRemoveMembers.ts +7 -12
- package/src/hooks/useMutateTyping.ts +6 -11
- package/src/hooks/usePresence.ts +2 -3
- package/src/hooks/useReactions.ts +11 -12
- package/src/hooks/useSearchUsers.ts +1 -6
- package/src/hooks/useUser.ts +3 -14
- package/src/scss/theme/_alert.scss +61 -63
- package/src/scss/theme/_appbar.scss +105 -28
- package/src/scss/theme/_avatar.scss +23 -28
- package/src/scss/theme/_badge.scss +26 -18
- package/src/scss/theme/_buttons.scss +107 -52
- package/src/scss/theme/_card.scss +102 -4
- package/src/scss/theme/_checkbox.scss +16 -20
- package/src/scss/theme/_code-vscode-dark.scss +184 -0
- package/src/scss/theme/_code-vscode-light.scss +179 -0
- package/src/scss/theme/_code.scss +9 -114
- package/src/scss/theme/_comment-editor-cm.scss +97 -0
- package/src/scss/theme/_comment-editor.scss +129 -0
- package/src/scss/theme/_comments.scss +66 -0
- package/src/scss/theme/_content.scss +33 -5
- package/src/scss/theme/_conversations.scss +19 -78
- package/src/scss/theme/_dropdown.scss +102 -15
- package/src/scss/theme/_embed.scss +135 -0
- package/src/scss/theme/_facepile.scss +11 -0
- package/src/scss/theme/_filebrowser.scss +1 -1
- package/src/scss/theme/_files.scss +77 -48
- package/src/scss/theme/_grid.scss +8 -0
- package/src/scss/theme/_icons.scss +155 -19
- package/src/scss/theme/_image-grid.scss +7 -10
- package/src/scss/theme/_input.scss +160 -0
- package/src/scss/theme/_item.scss +169 -0
- package/src/scss/theme/_list.scss +57 -0
- package/src/scss/theme/_meeting.scss +11 -0
- package/src/scss/theme/_message-editor-cm.scss +95 -0
- package/src/scss/theme/_message-editor.scss +66 -20
- package/src/scss/theme/_messages.scss +51 -105
- package/src/scss/theme/_meta.scss +12 -0
- package/src/scss/theme/_overlays.scss +31 -76
- package/src/scss/theme/_pager.scss +5 -1
- package/src/scss/theme/_pane.scss +13 -2
- package/src/scss/theme/_panels.scss +34 -25
- package/src/scss/theme/_picker-list.scss +5 -3
- package/src/scss/theme/_placeholder.scss +19 -0
- package/src/scss/theme/_poll.scss +49 -0
- package/src/scss/theme/_post-editor-cm.scss +100 -0
- package/src/scss/theme/_post-editor.scss +127 -0
- package/src/scss/theme/_post.scss +83 -0
- package/src/scss/theme/_preview-code.scss +14 -0
- package/src/scss/theme/_preview-embed.scss +11 -5
- package/src/scss/theme/_preview-image.scss +8 -26
- package/src/scss/theme/_preview-media.scss +1 -0
- package/src/scss/theme/_preview-pdf.scss +10 -15
- package/src/scss/theme/_preview-text.scss +1 -1
- package/src/scss/theme/_preview.scss +59 -76
- package/src/scss/theme/_reactions.scss +48 -17
- package/src/scss/theme/_sheet.scss +59 -0
- package/src/scss/theme/_sidebar.scss +86 -0
- package/src/scss/theme/_spinner.scss +11 -7
- package/src/scss/theme/_tab.scss +72 -0
- package/src/scss/theme/_tables.scss +70 -23
- package/src/scss/theme/_toasts.scss +56 -26
- package/src/scss/theme/_type.scss +41 -0
- package/src/scss/theme/{mixins → base}/_backdrop.scss +0 -0
- package/src/scss/theme/{bootstrap/mixins → base}/_breakpoints.scss +9 -0
- package/src/scss/theme/base/_colors.scss +315 -0
- package/src/scss/theme/base/_md.scss +19 -0
- package/src/scss/theme/base/_palette.scss +130 -0
- package/src/scss/theme/{mixins → base}/_position.scss +5 -5
- package/src/scss/theme/base/_reboot.scss +51 -0
- package/src/scss/theme/base/_scroll.scss +180 -0
- package/src/scss/theme/base/_svg.scss +49 -0
- package/src/scss/theme/base/_text.scss +23 -0
- package/src/scss/theme/base/_vars.scss +203 -0
- package/src/scss/theme/{fonts → base/fonts}/_fontmapping-roboto.scss +0 -0
- package/src/scss/theme/{fonts → base/fonts}/_fontmapping-segoe-ui.scss +0 -0
- package/src/scss/theme/base/fonts/_index.scss +2 -0
- package/src/scss/weavy-chat.scss +11 -4
- package/src/scss/weavy-messenger.scss +38 -21
- package/src/types/Chat.ts +2 -1
- package/src/types/Message.ts +3 -1
- package/src/types/types.ts +72 -10
- package/src/ui/Icon.tsx +1 -1
- package/src/ui/Spinner.tsx +19 -0
- package/src/utils/fileUtilities.ts +11 -125
- package/src/utils/infiniteScroll.js +11 -2
- package/src/utils/postal-parent.js +398 -0
- package/src/utils/promise.js +187 -0
- package/src/utils/scrollbarDetection.js +68 -9
- package/src/utils/utils.js +547 -0
- package/src/scss/theme/_attachments.scss +0 -74
- package/src/scss/theme/_cm-editor.scss +0 -42
- package/src/scss/theme/_colors.scss +0 -520
- package/src/scss/theme/_config.scss +0 -6
- package/src/scss/theme/_inputs.scss +0 -28
- package/src/scss/theme/_nav.scss +0 -52
- package/src/scss/theme/_palette.scss +0 -165
- package/src/scss/theme/_preview-icon.scss +0 -41
- package/src/scss/theme/_reboot.scss +0 -41
- package/src/scss/theme/_root.scss +0 -2
- package/src/scss/theme/_scroll.scss +0 -55
- package/src/scss/theme/_search.scss +0 -68
- package/src/scss/theme/_turbo.scss +0 -17
- package/src/scss/theme/_variables.scss +0 -139
- package/src/scss/theme/bootstrap/_accordion.scss +0 -146
- package/src/scss/theme/bootstrap/_alert.scss +0 -71
- package/src/scss/theme/bootstrap/_badge.scss +0 -38
- package/src/scss/theme/bootstrap/_breadcrumb.scss +0 -40
- package/src/scss/theme/bootstrap/_button-group.scss +0 -142
- package/src/scss/theme/bootstrap/_buttons.scss +0 -186
- package/src/scss/theme/bootstrap/_card.scss +0 -234
- package/src/scss/theme/bootstrap/_carousel.scss +0 -229
- package/src/scss/theme/bootstrap/_close.scss +0 -40
- package/src/scss/theme/bootstrap/_containers.scss +0 -41
- package/src/scss/theme/bootstrap/_dropdown.scss +0 -248
- package/src/scss/theme/bootstrap/_forms.scss +0 -9
- package/src/scss/theme/bootstrap/_functions.scss +0 -302
- package/src/scss/theme/bootstrap/_grid.scss +0 -33
- package/src/scss/theme/bootstrap/_helpers.scss +0 -10
- package/src/scss/theme/bootstrap/_images.scss +0 -42
- package/src/scss/theme/bootstrap/_list-group.scss +0 -191
- package/src/scss/theme/bootstrap/_maps.scss +0 -54
- package/src/scss/theme/bootstrap/_mixins.scss +0 -43
- package/src/scss/theme/bootstrap/_modal.scss +0 -237
- package/src/scss/theme/bootstrap/_nav.scss +0 -172
- package/src/scss/theme/bootstrap/_navbar.scss +0 -276
- package/src/scss/theme/bootstrap/_offcanvas.scss +0 -143
- package/src/scss/theme/bootstrap/_pagination.scss +0 -109
- package/src/scss/theme/bootstrap/_placeholders.scss +0 -51
- package/src/scss/theme/bootstrap/_popover.scss +0 -196
- package/src/scss/theme/bootstrap/_progress.scss +0 -59
- package/src/scss/theme/bootstrap/_reboot.scss +0 -610
- package/src/scss/theme/bootstrap/_root.scss +0 -73
- package/src/scss/theme/bootstrap/_spinners.scss +0 -85
- package/src/scss/theme/bootstrap/_tables.scss +0 -164
- package/src/scss/theme/bootstrap/_toasts.scss +0 -70
- package/src/scss/theme/bootstrap/_tooltip.scss +0 -120
- package/src/scss/theme/bootstrap/_transitions.scss +0 -27
- package/src/scss/theme/bootstrap/_type.scss +0 -106
- package/src/scss/theme/bootstrap/_utilities.scss +0 -647
- package/src/scss/theme/bootstrap/_variables.scss +0 -1633
- package/src/scss/theme/bootstrap/forms/_floating-labels.scss +0 -74
- package/src/scss/theme/bootstrap/forms/_form-check.scss +0 -175
- package/src/scss/theme/bootstrap/forms/_form-control.scss +0 -194
- package/src/scss/theme/bootstrap/forms/_form-range.scss +0 -91
- package/src/scss/theme/bootstrap/forms/_form-select.scss +0 -71
- package/src/scss/theme/bootstrap/forms/_form-text.scss +0 -11
- package/src/scss/theme/bootstrap/forms/_input-group.scss +0 -129
- package/src/scss/theme/bootstrap/forms/_labels.scss +0 -36
- package/src/scss/theme/bootstrap/forms/_validation.scss +0 -12
- package/src/scss/theme/bootstrap/helpers/_clearfix.scss +0 -3
- package/src/scss/theme/bootstrap/helpers/_color-bg.scss +0 -10
- package/src/scss/theme/bootstrap/helpers/_colored-links.scss +0 -12
- package/src/scss/theme/bootstrap/helpers/_position.scss +0 -36
- package/src/scss/theme/bootstrap/helpers/_ratio.scss +0 -26
- package/src/scss/theme/bootstrap/helpers/_stacks.scss +0 -15
- package/src/scss/theme/bootstrap/helpers/_stretched-link.scss +0 -15
- package/src/scss/theme/bootstrap/helpers/_text-truncation.scss +0 -7
- package/src/scss/theme/bootstrap/helpers/_visually-hidden.scss +0 -8
- package/src/scss/theme/bootstrap/helpers/_vr.scss +0 -8
- package/src/scss/theme/bootstrap/mixins/_alert.scss +0 -15
- package/src/scss/theme/bootstrap/mixins/_backdrop.scss +0 -14
- package/src/scss/theme/bootstrap/mixins/_banner.scss +0 -9
- package/src/scss/theme/bootstrap/mixins/_border-radius.scss +0 -78
- package/src/scss/theme/bootstrap/mixins/_box-shadow.scss +0 -18
- package/src/scss/theme/bootstrap/mixins/_buttons.scss +0 -70
- package/src/scss/theme/bootstrap/mixins/_caret.scss +0 -64
- package/src/scss/theme/bootstrap/mixins/_clearfix.scss +0 -9
- package/src/scss/theme/bootstrap/mixins/_color-scheme.scss +0 -7
- package/src/scss/theme/bootstrap/mixins/_container.scss +0 -11
- package/src/scss/theme/bootstrap/mixins/_deprecate.scss +0 -10
- package/src/scss/theme/bootstrap/mixins/_forms.scss +0 -152
- package/src/scss/theme/bootstrap/mixins/_gradients.scss +0 -47
- package/src/scss/theme/bootstrap/mixins/_grid.scss +0 -151
- package/src/scss/theme/bootstrap/mixins/_image.scss +0 -16
- package/src/scss/theme/bootstrap/mixins/_list-group.scss +0 -24
- package/src/scss/theme/bootstrap/mixins/_lists.scss +0 -7
- package/src/scss/theme/bootstrap/mixins/_pagination.scss +0 -10
- package/src/scss/theme/bootstrap/mixins/_reset-text.scss +0 -17
- package/src/scss/theme/bootstrap/mixins/_resize.scss +0 -6
- package/src/scss/theme/bootstrap/mixins/_table-variants.scss +0 -24
- package/src/scss/theme/bootstrap/mixins/_text-truncate.scss +0 -8
- package/src/scss/theme/bootstrap/mixins/_transition.scss +0 -26
- package/src/scss/theme/bootstrap/mixins/_utilities.scss +0 -97
- package/src/scss/theme/bootstrap/mixins/_visually-hidden.scss +0 -29
- package/src/scss/theme/bootstrap/utilities/_api.scss +0 -47
- package/src/scss/theme/bootstrap/vendor/_rfs.scss +0 -354
- package/src/scss/theme/bs/_badge.scss +0 -20
- package/src/scss/theme/bs/_buttons.scss +0 -185
- package/src/scss/theme/bs/_dropdown.scss +0 -86
- package/src/scss/theme/bs/_forms.scss +0 -161
- package/src/scss/theme/bs/_list-group.scss +0 -73
- package/src/scss/theme/bs/_tables.scss +0 -46
- package/src/scss/theme/fonts/_index.scss +0 -2
- package/src/scss/theme/mixins/_palette.scss +0 -165
- package/src/scss/theme/mixins/_scrollbar.scss +0 -110
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "palette";
|
|
4
|
+
|
|
5
|
+
// fixed colors
|
|
6
|
+
$theme: palette.$seed;
|
|
7
|
+
$black: palette.$neutral-0;
|
|
8
|
+
$white: palette.$neutral-100;
|
|
9
|
+
$shadow: $black;
|
|
10
|
+
|
|
11
|
+
// css variables
|
|
12
|
+
:where(:root, :host > *) {
|
|
13
|
+
// fixed colors
|
|
14
|
+
--wy-theme: #{$theme};
|
|
15
|
+
--wy-black: #{$black};
|
|
16
|
+
--wy-white: #{$white};
|
|
17
|
+
--wy-shadow: #{$shadow};
|
|
18
|
+
|
|
19
|
+
// palette
|
|
20
|
+
--wy-primary-99: #{palette.$primary-99};
|
|
21
|
+
--wy-primary-95: #{palette.$primary-95};
|
|
22
|
+
--wy-primary-90: #{palette.$primary-90};
|
|
23
|
+
--wy-primary-80: #{palette.$primary-80};
|
|
24
|
+
--wy-primary-70: #{palette.$primary-70};
|
|
25
|
+
--wy-primary-60: #{palette.$primary-60};
|
|
26
|
+
--wy-primary-50: #{palette.$primary-50};
|
|
27
|
+
--wy-primary-40: #{palette.$primary-40};
|
|
28
|
+
--wy-primary-30: #{palette.$primary-30};
|
|
29
|
+
--wy-primary-20: #{palette.$primary-20};
|
|
30
|
+
--wy-primary-10: #{palette.$primary-10};
|
|
31
|
+
|
|
32
|
+
--wy-secondary-99: #{palette.$secondary-99};
|
|
33
|
+
--wy-secondary-95: #{palette.$secondary-95};
|
|
34
|
+
--wy-secondary-90: #{palette.$secondary-90};
|
|
35
|
+
--wy-secondary-80: #{palette.$secondary-80};
|
|
36
|
+
--wy-secondary-70: #{palette.$secondary-70};
|
|
37
|
+
--wy-secondary-60: #{palette.$secondary-60};
|
|
38
|
+
--wy-secondary-50: #{palette.$secondary-50};
|
|
39
|
+
--wy-secondary-40: #{palette.$secondary-40};
|
|
40
|
+
--wy-secondary-30: #{palette.$secondary-30};
|
|
41
|
+
--wy-secondary-20: #{palette.$secondary-20};
|
|
42
|
+
--wy-secondary-10: #{palette.$secondary-10};
|
|
43
|
+
|
|
44
|
+
--wy-tertiary-99: #{palette.$secondary-99};
|
|
45
|
+
--wy-tertiary-95: #{palette.$secondary-95};
|
|
46
|
+
--wy-tertiary-90: #{palette.$secondary-90};
|
|
47
|
+
--wy-tertiary-80: #{palette.$secondary-80};
|
|
48
|
+
--wy-tertiary-70: #{palette.$secondary-70};
|
|
49
|
+
--wy-tertiary-60: #{palette.$secondary-60};
|
|
50
|
+
--wy-tertiary-50: #{palette.$secondary-50};
|
|
51
|
+
--wy-tertiary-40: #{palette.$secondary-40};
|
|
52
|
+
--wy-tertiary-30: #{palette.$secondary-30};
|
|
53
|
+
--wy-tertiary-20: #{palette.$secondary-20};
|
|
54
|
+
--wy-tertiary-10: #{palette.$secondary-10};
|
|
55
|
+
|
|
56
|
+
--wy-error-99: #{palette.$error-99};
|
|
57
|
+
--wy-error-95: #{palette.$error-95};
|
|
58
|
+
--wy-error-90: #{palette.$error-90};
|
|
59
|
+
--wy-error-80: #{palette.$error-80};
|
|
60
|
+
--wy-error-70: #{palette.$error-70};
|
|
61
|
+
--wy-error-60: #{palette.$error-60};
|
|
62
|
+
--wy-error-50: #{palette.$error-50};
|
|
63
|
+
--wy-error-40: #{palette.$error-40};
|
|
64
|
+
--wy-error-30: #{palette.$error-30};
|
|
65
|
+
--wy-error-20: #{palette.$error-20};
|
|
66
|
+
--wy-error-10: #{palette.$error-10};
|
|
67
|
+
|
|
68
|
+
--wy-neutral-99: #{palette.$neutral-99};
|
|
69
|
+
--wy-neutral-95: #{palette.$neutral-95};
|
|
70
|
+
--wy-neutral-90: #{palette.$neutral-90};
|
|
71
|
+
--wy-neutral-80: #{palette.$neutral-80};
|
|
72
|
+
--wy-neutral-70: #{palette.$neutral-70};
|
|
73
|
+
--wy-neutral-60: #{palette.$neutral-60};
|
|
74
|
+
--wy-neutral-50: #{palette.$neutral-50};
|
|
75
|
+
--wy-neutral-40: #{palette.$neutral-40};
|
|
76
|
+
--wy-neutral-30: #{palette.$neutral-30};
|
|
77
|
+
--wy-neutral-20: #{palette.$neutral-20};
|
|
78
|
+
--wy-neutral-10: #{palette.$neutral-10};
|
|
79
|
+
|
|
80
|
+
--wy-neutral-variant-99: #{palette.$neutral-variant-99};
|
|
81
|
+
--wy-neutral-variant-95: #{palette.$neutral-variant-95};
|
|
82
|
+
--wy-neutral-variant-90: #{palette.$neutral-variant-90};
|
|
83
|
+
--wy-neutral-variant-80: #{palette.$neutral-variant-80};
|
|
84
|
+
--wy-neutral-variant-70: #{palette.$neutral-variant-70};
|
|
85
|
+
--wy-neutral-variant-60: #{palette.$neutral-variant-60};
|
|
86
|
+
--wy-neutral-variant-50: #{palette.$neutral-variant-50};
|
|
87
|
+
--wy-neutral-variant-40: #{palette.$neutral-variant-40};
|
|
88
|
+
--wy-neutral-variant-30: #{palette.$neutral-variant-30};
|
|
89
|
+
--wy-neutral-variant-20: #{palette.$neutral-variant-20};
|
|
90
|
+
--wy-neutral-variant-10: #{palette.$neutral-variant-10};
|
|
91
|
+
|
|
92
|
+
--wy-surface-1-light: #{palette.$surface-1-light}; // --wy-surface + --wy-primary with 5% opacity
|
|
93
|
+
--wy-surface-2-light: #{palette.$surface-2-light}; // --wy-surface + --wy-primary with 8% opacity
|
|
94
|
+
--wy-surface-3-light: #{palette.$surface-3-light}; // --wy-surface + --wy-primary with 11 opacity
|
|
95
|
+
--wy-surface-4-light: #{palette.$surface-4-light}; // --wy-surface + --wy-primary with 12% opacity
|
|
96
|
+
--wy-surface-5-light: #{palette.$surface-5-light}; // --wy-surface + --wy-primary with 14% opacity
|
|
97
|
+
|
|
98
|
+
--wy-surface-1-dark: #{palette.$surface-1-dark}; // --wy-surface + --wy-primary with 5% opacity
|
|
99
|
+
--wy-surface-2-dark: #{palette.$surface-2-dark}; // --wy-surface + --wy-primary with 8% opacity
|
|
100
|
+
--wy-surface-3-dark: #{palette.$surface-3-dark}; // --wy-surface + --wy-primary with 11 opacity
|
|
101
|
+
--wy-surface-4-dark: #{palette.$surface-4-dark}; // --wy-surface + --wy-primary with 12% opacity
|
|
102
|
+
--wy-surface-5-dark: #{palette.$surface-5-dark}; // --wy-surface + --wy-primary with 14% opacity
|
|
103
|
+
|
|
104
|
+
// custom colors
|
|
105
|
+
--wy-blue-light: #{palette.$blue-light};
|
|
106
|
+
--wy-indigo-light: #{palette.$indigo-light};
|
|
107
|
+
--wy-purple-light: #{palette.$purple-light};
|
|
108
|
+
--wy-pink-light: #{palette.$pink-light};
|
|
109
|
+
--wy-red-light: #{palette.$red-light};
|
|
110
|
+
--wy-orange-light: #{palette.$orange-light};
|
|
111
|
+
--wy-yellow-light: #{palette.$yellow-light};
|
|
112
|
+
--wy-green-light: #{palette.$green-light};
|
|
113
|
+
--wy-teal-light: #{palette.$teal-light};
|
|
114
|
+
--wy-cyan-light: #{palette.$cyan-light};
|
|
115
|
+
--wy-gray-light: #{palette.$gray-light};
|
|
116
|
+
|
|
117
|
+
// custom colors
|
|
118
|
+
--wy-blue-dark: #{palette.$blue-dark};
|
|
119
|
+
--wy-indigo-dark: #{palette.$indigo-dark};
|
|
120
|
+
--wy-purple-dark: #{palette.$purple-dark};
|
|
121
|
+
--wy-pink-dark: #{palette.$pink-dark};
|
|
122
|
+
--wy-red-dark: #{palette.$red-dark};
|
|
123
|
+
--wy-orange-dark: #{palette.$orange-dark};
|
|
124
|
+
--wy-yellow-dark: #{palette.$yellow-dark};
|
|
125
|
+
--wy-green-dark: #{palette.$green-dark};
|
|
126
|
+
--wy-teal-dark: #{palette.$teal-dark};
|
|
127
|
+
--wy-cyan-dark: #{palette.$cyan-dark};
|
|
128
|
+
--wy-gray-dark: #{palette.$gray-dark};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:where(:root, :host > *, .wy-light) {
|
|
132
|
+
// light mode
|
|
133
|
+
color-scheme: light;
|
|
134
|
+
|
|
135
|
+
// theme colors
|
|
136
|
+
--wy-primary: var(--wy-primary-40);
|
|
137
|
+
--wy-on-primary: var(--wy-white);
|
|
138
|
+
--wy-primary-container: var(--wy-primary-90);
|
|
139
|
+
--wy-on-primary-container: var(--wy-primary-10);
|
|
140
|
+
|
|
141
|
+
--wy-secondary: var(--wy-secondary-40);
|
|
142
|
+
--wy-on-secondary: var(--wy-white);
|
|
143
|
+
--wy-secondary-container: var(--wy-secondary-90);
|
|
144
|
+
--wy-on-secondary-container: var(--wy-secondary-10);
|
|
145
|
+
|
|
146
|
+
--wy-tertiary: var(--wy-tertiary-40);
|
|
147
|
+
--wy-on-tertiary: var(--wy-white);
|
|
148
|
+
--wy-tertiary-container: var(--wy-tertiary-90);
|
|
149
|
+
--wy-on-tertiary-container: var(--wy-tertiary-10);
|
|
150
|
+
|
|
151
|
+
--wy-error: var(--wy-error-40);
|
|
152
|
+
--wy-on-error: var(--wy-white);
|
|
153
|
+
--wy-error-container: var(--wy-error-90);
|
|
154
|
+
--wy-on-error-container: var(--wy-error-10);
|
|
155
|
+
|
|
156
|
+
--wy-background: var(--wy-neutral-99);
|
|
157
|
+
--wy-on-background: var(--wy-neutral-10);
|
|
158
|
+
|
|
159
|
+
--wy-surface: var(--wy-neutral-99);
|
|
160
|
+
--wy-on-surface: var(--wy-neutral-10);
|
|
161
|
+
|
|
162
|
+
--wy-surface-variant: var(--wy-neutral-variant-90);
|
|
163
|
+
--wy-on-surface-variant: var(--wy-neutral-variant-30);
|
|
164
|
+
|
|
165
|
+
--wy-outline: var(--wy-neutral-variant-50);
|
|
166
|
+
--wy-outline-variant: var(--wy-neutral-variant-80);
|
|
167
|
+
|
|
168
|
+
--wy-inverse-surface: var(--wy-neutral-20);
|
|
169
|
+
--wy-on-inverse-surface: var(--wy-neutral-95);
|
|
170
|
+
--wy-inverse-primary: var(--wy-primary-80);
|
|
171
|
+
|
|
172
|
+
--wy-surface-1: var(--wy-surface-1-light); // --wy-surface + --wy-primary with 5% opacity
|
|
173
|
+
--wy-surface-2: var(--wy-surface-2-light); // --wy-surface + --wy-primary with 8% opacity
|
|
174
|
+
--wy-surface-3: var(--wy-surface-3-light); // --wy-surface + --wy-primary with 11 opacity
|
|
175
|
+
--wy-surface-4: var(--wy-surface-4-light); // --wy-surface + --wy-primary with 12% opacity
|
|
176
|
+
--wy-surface-5: var(--wy-surface-5-light); // --wy-surface + --wy-primary with 14% opacity
|
|
177
|
+
|
|
178
|
+
--wy-link: var(--wy-primary-40);
|
|
179
|
+
|
|
180
|
+
// custom colors
|
|
181
|
+
--wy-blue: var(--wy-blue-light);
|
|
182
|
+
--wy-indigo: var(--wy-indigo-light);
|
|
183
|
+
--wy-purple: var(--wy-purple-light);
|
|
184
|
+
--wy-pink: var(--wy-pink-light);
|
|
185
|
+
--wy-red: var(--wy-red-light);
|
|
186
|
+
--wy-orange: var(--wy-orange-light);
|
|
187
|
+
--wy-yellow: var(--wy-yellow-light);
|
|
188
|
+
--wy-green: var(--wy-green-light);
|
|
189
|
+
--wy-teal: var(--wy-teal-light);
|
|
190
|
+
--wy-cyan: var(--wy-cyan-light);
|
|
191
|
+
--wy-gray: var(--wy-gray-light);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:where(.wy-dark) {
|
|
195
|
+
// dark mode
|
|
196
|
+
color-scheme: dark;
|
|
197
|
+
|
|
198
|
+
// theme colors
|
|
199
|
+
--wy-primary: var(--wy-primary-80);
|
|
200
|
+
--wy-on-primary: var(--wy-primary-20);
|
|
201
|
+
--wy-primary-container: var(--wy-primary-30);
|
|
202
|
+
--wy-on-primary-container: var(--wy-primary-90);
|
|
203
|
+
|
|
204
|
+
--wy-secondary: var(--wy-secondary-80);
|
|
205
|
+
--wy-on-secondary: var(--wy-secondary-20);
|
|
206
|
+
--wy-secondary-container: var(--wy-secondary-30);
|
|
207
|
+
--wy-on-secondary-container: var(--wy-secondary-90);
|
|
208
|
+
|
|
209
|
+
--wy-tertiary: var(--wy-tertiary-80);
|
|
210
|
+
--wy-on-tertiary: var(--wy-tertiary-20);
|
|
211
|
+
--wy-tertiary-container: var(--wy-tertiary-30);
|
|
212
|
+
--wy-on-tertiary-container: var(--wy-tertiary-90);
|
|
213
|
+
|
|
214
|
+
--wy-error: var(--wy-error-80);
|
|
215
|
+
--wy-on-error: var(--wy-error-20);
|
|
216
|
+
--wy-error-container: var(--wy-error-30);
|
|
217
|
+
--wy-on-error-container: var(--wy-error-90);
|
|
218
|
+
|
|
219
|
+
--wy-background: var(--wy-neutral-10);
|
|
220
|
+
--wy-on-background: var(--wy-neutral-90);
|
|
221
|
+
|
|
222
|
+
--wy-surface: var(--wy-neutral-10);
|
|
223
|
+
--wy-on-surface: var(--wy-neutral-90);
|
|
224
|
+
|
|
225
|
+
--wy-surface-variant: var(--wy-neutral-variant-30);
|
|
226
|
+
--wy-on-surface-variant: var(--wy-neutral-variant-80);
|
|
227
|
+
|
|
228
|
+
--wy-outline: var(--wy-neutral-variant-60);
|
|
229
|
+
--wy-outline-variant: var(--wy-neutral-variant-30);
|
|
230
|
+
|
|
231
|
+
--wy-inverse-surface: var(--wy-neutral-90);
|
|
232
|
+
--wy-on-inverse-surface: var(--wy-neutral-20);
|
|
233
|
+
--wy-inverse-primary: var(--wy-primary-40);
|
|
234
|
+
|
|
235
|
+
--wy-surface-1: var(--wy-surface-1-dark); // --wy-surface + --wy-primary with 5% opacity
|
|
236
|
+
--wy-surface-2: var(--wy-surface-2-dark); // --wy-surface + --wy-primary with 8% opacity
|
|
237
|
+
--wy-surface-3: var(--wy-surface-3-dark); // --wy-surface + --wy-primary with 11 opacity
|
|
238
|
+
--wy-surface-4: var(--wy-surface-4-dark); // --wy-surface + --wy-primary with 12% opacity
|
|
239
|
+
--wy-surface-5: var(--wy-surface-5-dark); // --wy-surface + --wy-primary with 14% opacity
|
|
240
|
+
|
|
241
|
+
--wy-link: var(--wy-primary-80);
|
|
242
|
+
|
|
243
|
+
// custom colors
|
|
244
|
+
--wy-blue: var(--wy-blue-dark);
|
|
245
|
+
--wy-indigo: var(--wy-indigo-dark);
|
|
246
|
+
--wy-purple: var(--wy-purple-dark);
|
|
247
|
+
--wy-pink: var(--wy-pink-dark);
|
|
248
|
+
--wy-red: var(--wy-red-dark);
|
|
249
|
+
--wy-orange: var(--wy-orange-dark);
|
|
250
|
+
--wy-yellow: var(--wy-yellow-dark);
|
|
251
|
+
--wy-green: var(--wy-green-dark);
|
|
252
|
+
--wy-teal: var(--wy-teal-dark);
|
|
253
|
+
--wy-cyan: var(--wy-cyan-dark);
|
|
254
|
+
--wy-gray: var(--wy-gray-dark);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// scss theme colors
|
|
258
|
+
$primary: var(--wy-primary);
|
|
259
|
+
$on-primary: var(--wy-on-primary);
|
|
260
|
+
$primary-container: var(--wy-primary-container);
|
|
261
|
+
$on-primary-container: var(--wy-on-primary-container);
|
|
262
|
+
|
|
263
|
+
$secondary: var(--wy-secondary);
|
|
264
|
+
$on-secondary: var(--wy-on-secondary);
|
|
265
|
+
$secondary-container: var(--wy-secondary-container);
|
|
266
|
+
$on-secondary-container: var(--wy-on-secondary-container);
|
|
267
|
+
|
|
268
|
+
$tertiary: var(--wy-tertiary);
|
|
269
|
+
$on-tertiary: var(--wy-on-tertiary);
|
|
270
|
+
$tertiary-container: var(--wy-tertiary-container);
|
|
271
|
+
$on-tertiary-container: var(--wy-on-tertiary-container);
|
|
272
|
+
|
|
273
|
+
$error: var(--wy-error);
|
|
274
|
+
$on-error: var(--wy-on-error);
|
|
275
|
+
$error-container: var(--wy-error-container);
|
|
276
|
+
$on-error-container: var(--wy-on-error-container);
|
|
277
|
+
|
|
278
|
+
$background: var(--wy-background);
|
|
279
|
+
$on-background: var(--wy-on-background);
|
|
280
|
+
|
|
281
|
+
$surface: var(--wy-surface);
|
|
282
|
+
$on-surface: var(--wy-on-surface);
|
|
283
|
+
|
|
284
|
+
$surface-variant: var(--wy-surface-variant);
|
|
285
|
+
$on-surface-variant: var(--wy-on-surface-variant);
|
|
286
|
+
|
|
287
|
+
$outline: var(--wy-outline);
|
|
288
|
+
$outline-variant: var(--wy-outline-variant);
|
|
289
|
+
|
|
290
|
+
$surface-1: var(--wy-surface-1);
|
|
291
|
+
$surface-2: var(--wy-surface-2);
|
|
292
|
+
$surface-3: var(--wy-surface-3);
|
|
293
|
+
$surface-4: var(--wy-surface-4);
|
|
294
|
+
$surface-5: var(--wy-surface-5);
|
|
295
|
+
|
|
296
|
+
$inverse-surface: var(--wy-inverse-surface);
|
|
297
|
+
$on-inverse-surface: var(--wy-on-inverse-surface);
|
|
298
|
+
$inverse-primary: var(--wy-inverse-primary);
|
|
299
|
+
|
|
300
|
+
$link: var(--wy-link);
|
|
301
|
+
|
|
302
|
+
// scss custom colors
|
|
303
|
+
$blue: var(--wy-blue);
|
|
304
|
+
$indigo: var(--wy-indigo);
|
|
305
|
+
$purple: var(--wy-purple);
|
|
306
|
+
$pink: var(--wy-pink);
|
|
307
|
+
$red: var(--wy-red);
|
|
308
|
+
$orange: var(--wy-orange);
|
|
309
|
+
$yellow: var(--wy-yellow);
|
|
310
|
+
$green: var(--wy-green);
|
|
311
|
+
$teal: var(--wy-teal);
|
|
312
|
+
$cyan: var(--wy-cyan);
|
|
313
|
+
$gray: var(--wy-gray);
|
|
314
|
+
|
|
315
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Material design animation and shadows from https://fezvrasta.github.io/bootstrap-material-design/
|
|
2
|
+
$animation-curve-fast-out-slow-in: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3
|
+
$animation-curve-linear-out-slow-in: cubic-bezier(0, 0, 0.2, 1);
|
|
4
|
+
$animation-curve-fast-out-linear-in: cubic-bezier(0.4, 0, 1, 1);
|
|
5
|
+
$animation-curve-default: $animation-curve-fast-out-slow-in;
|
|
6
|
+
$animation-duration: .2s;
|
|
7
|
+
$animation-duration-fast: .1s;
|
|
8
|
+
|
|
9
|
+
$shadow-umbra-opacity: 0.2;
|
|
10
|
+
$shadow-penumbra-opacity: 0.14;
|
|
11
|
+
$shadow-ambient-opacity: 0.12;
|
|
12
|
+
$shadow-focus: 0 0 .5rem rgba(#000, .18), 0 .5rem 1rem rgba(#000, .36);
|
|
13
|
+
$shadow-2dp: 0 .125rem .125rem 0 rgba(#000, $shadow-penumbra-opacity), 0 .1875rem .0625rem -.125rem rgba(#000, $shadow-umbra-opacity), 0 .0625rem .3125rem 0 rgba(#000, $shadow-ambient-opacity);
|
|
14
|
+
$shadow-3dp: 0 .1875rem .25rem 0 rgba(#000, $shadow-penumbra-opacity), 0 .1875rem .1875rem -.125rem rgba(#000, $shadow-umbra-opacity), 0 .0625rem .5rem 0 rgba(#000, $shadow-ambient-opacity);
|
|
15
|
+
$shadow-4dp: 0 .25rem .3125rem 0 rgba(#000, $shadow-penumbra-opacity), 0 .0625rem .625rem 0 rgba(#000, $shadow-ambient-opacity), 0 .125rem .25rem -.0625rem rgba(#000, $shadow-umbra-opacity);
|
|
16
|
+
$shadow-6dp: 0 .375rem .625rem 0 rgba(#000, $shadow-penumbra-opacity), 0 .0625rem 1.5rem 0 rgba(#000, $shadow-ambient-opacity), 0 .1875rem .3125rem -.0625rem rgba(#000, $shadow-umbra-opacity);
|
|
17
|
+
$shadow-8dp: 0 .5rem .625rem .0625rem rgba(#000, $shadow-penumbra-opacity), 0 .1875rem 1.25rem .125rem rgba(#000, $shadow-ambient-opacity), 0 .3125rem .3125rem -.1875rem rgba(#000, $shadow-umbra-opacity);
|
|
18
|
+
$shadow-16dp: 0 1rem 2.25rem .125rem rgba(#000, $shadow-penumbra-opacity), 0 .375rem 1.875rem .3125rem rgba(#000, $shadow-ambient-opacity), 0 .5rem .625rem -.3125rem rgba(#000, $shadow-umbra-opacity);
|
|
19
|
+
$shadow-24dp: 0 .5625rem 4.375rem .5rem rgba(#000, $shadow-penumbra-opacity), 0 1.0625rem 1.3125rem -.4375rem rgba(#000, $shadow-ambient-opacity), 0 2.25rem 3.5rem .1875rem rgba(#000, $shadow-umbra-opacity);
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// initial color used to generate palette
|
|
2
|
+
$seed: #00658e;
|
|
3
|
+
|
|
4
|
+
// primary
|
|
5
|
+
$primary-0: #000000;
|
|
6
|
+
$primary-10: #001e2e;
|
|
7
|
+
$primary-20: #00344c;
|
|
8
|
+
$primary-30: #004c6c;
|
|
9
|
+
$primary-40: #00658e;
|
|
10
|
+
$primary-50: #007fb2;
|
|
11
|
+
$primary-60: #2f9ad0;
|
|
12
|
+
$primary-70: #53b5ec;
|
|
13
|
+
$primary-80: #84cfff;
|
|
14
|
+
$primary-90: #c7e7ff;
|
|
15
|
+
$primary-95: #e4f3ff;
|
|
16
|
+
$primary-99: #fbfcff;
|
|
17
|
+
$primary-100: #ffffff;
|
|
18
|
+
|
|
19
|
+
// secondary
|
|
20
|
+
$secondary-0: #000000;
|
|
21
|
+
$secondary-10: #201c00;
|
|
22
|
+
$secondary-20: #373100;
|
|
23
|
+
$secondary-30: #504700;
|
|
24
|
+
$secondary-40: #6a5f00;
|
|
25
|
+
$secondary-50: #857800;
|
|
26
|
+
$secondary-60: #a0921a;
|
|
27
|
+
$secondary-70: #bcad36;
|
|
28
|
+
$secondary-80: #d9c84f;
|
|
29
|
+
$secondary-90: #f6e468;
|
|
30
|
+
$secondary-95: #fff2a4;
|
|
31
|
+
$secondary-99: #fffbff;
|
|
32
|
+
$secondary-100: #ffffff;
|
|
33
|
+
|
|
34
|
+
// tertiary
|
|
35
|
+
$tertiary-0: #000000;
|
|
36
|
+
$tertiary-10: #002106;
|
|
37
|
+
$tertiary-20: #003910;
|
|
38
|
+
$tertiary-30: #00531b;
|
|
39
|
+
$tertiary-40: #206c2f;
|
|
40
|
+
$tertiary-50: #3c8645;
|
|
41
|
+
$tertiary-60: #56a15c;
|
|
42
|
+
$tertiary-70: #70bc75;
|
|
43
|
+
$tertiary-80: #8bd88e;
|
|
44
|
+
$tertiary-90: #a6f5a8;
|
|
45
|
+
$tertiary-95: #c7ffc4;
|
|
46
|
+
$tertiary-99: #f6fff1;
|
|
47
|
+
$tertiary-100: #ffffff;
|
|
48
|
+
|
|
49
|
+
// error
|
|
50
|
+
$error-0: #000000;
|
|
51
|
+
$error-10: #410002;
|
|
52
|
+
$error-20: #690005;
|
|
53
|
+
$error-30: #93000a;
|
|
54
|
+
$error-40: #ba1a1a;
|
|
55
|
+
$error-50: #de3730;
|
|
56
|
+
$error-60: #ff5449;
|
|
57
|
+
$error-70: #ff897d;
|
|
58
|
+
$error-80: #ffb4ab;
|
|
59
|
+
$error-90: #ffdad6;
|
|
60
|
+
$error-95: #ffedea;
|
|
61
|
+
$error-99: #fffbff;
|
|
62
|
+
$error-100: #ffffff;
|
|
63
|
+
|
|
64
|
+
// neutral
|
|
65
|
+
$neutral-0: #000000;
|
|
66
|
+
$neutral-10: #191c1e;
|
|
67
|
+
$neutral-20: #2e3133;
|
|
68
|
+
$neutral-30: #454749;
|
|
69
|
+
$neutral-40: #5c5e61;
|
|
70
|
+
$neutral-50: #75777a;
|
|
71
|
+
$neutral-60: #8f9193;
|
|
72
|
+
$neutral-70: #aaabae;
|
|
73
|
+
$neutral-80: #c5c6c9;
|
|
74
|
+
$neutral-90: #e2e2e5;
|
|
75
|
+
$neutral-95: #f0f1f3;
|
|
76
|
+
$neutral-99: #fcfcff;
|
|
77
|
+
$neutral-100: #ffffff;
|
|
78
|
+
|
|
79
|
+
// neutral variant
|
|
80
|
+
$neutral-variant-0: #000000;
|
|
81
|
+
$neutral-variant-10: #161c21;
|
|
82
|
+
$neutral-variant-20: #2b3136;
|
|
83
|
+
$neutral-variant-30: #41484d;
|
|
84
|
+
$neutral-variant-40: #595f65;
|
|
85
|
+
$neutral-variant-50: #71787e;
|
|
86
|
+
$neutral-variant-60: #8b9198;
|
|
87
|
+
$neutral-variant-70: #a5acb2;
|
|
88
|
+
$neutral-variant-80: #c1c7ce;
|
|
89
|
+
$neutral-variant-90: #dde3ea;
|
|
90
|
+
$neutral-variant-95: #ebf1f8;
|
|
91
|
+
$neutral-variant-99: #fbfcff;
|
|
92
|
+
$neutral-variant-100: #ffffff;
|
|
93
|
+
|
|
94
|
+
// custom colors
|
|
95
|
+
$blue-light: #7aadfa;
|
|
96
|
+
$indigo-light: #8489e0;
|
|
97
|
+
$purple-light: #bd78c2;
|
|
98
|
+
$pink-light: #d072a2;
|
|
99
|
+
$red-light: #da717c;
|
|
100
|
+
$orange-light: #ef9646;
|
|
101
|
+
$yellow-light: #d9c84f;
|
|
102
|
+
$green-light: #56a15c;
|
|
103
|
+
$teal-light: #00a29d;
|
|
104
|
+
$cyan-light: #008398;
|
|
105
|
+
$gray-light: #75777a;
|
|
106
|
+
|
|
107
|
+
$blue-dark: #a7c8ff;
|
|
108
|
+
$indigo-dark: #8489e0;
|
|
109
|
+
$purple-dark: #da92de;
|
|
110
|
+
$pink-dark: #ee8cbe;
|
|
111
|
+
$red-dark: #da717c;
|
|
112
|
+
$orange-dark: #ef9646;
|
|
113
|
+
$yellow-dark: #d9c84f;
|
|
114
|
+
$green-dark: #56a15c;
|
|
115
|
+
$teal-dark: #00a29d;
|
|
116
|
+
$cyan-dark: #009fb8;
|
|
117
|
+
$gray-dark: #8f9193;
|
|
118
|
+
|
|
119
|
+
// surface levels
|
|
120
|
+
$surface-1-light: #f0f4f9; // $neutral-99 + $primary-40 with 5% opacity
|
|
121
|
+
$surface-2-light: #e8f0f6; // $neutral-99 + $primary-40 with 8% opacity
|
|
122
|
+
$surface-3-light: #e0ebf2; // $neutral-99 + $primary-40 with 11% opacity
|
|
123
|
+
$surface-4-light: #deeaf1; // $neutral-99 + $primary-40 with 12% opacity
|
|
124
|
+
$surface-5-light: #d9e7ef; // $neutral-99 + $primary-40 with 14 opacity
|
|
125
|
+
|
|
126
|
+
$surface-1-dark: #1e2428; // $neutral-10 + $primary-80 with 5% opacity
|
|
127
|
+
$surface-2-dark: #212a2f; // $neutral-10 + $primary-80 with 8% opacity
|
|
128
|
+
$surface-3-dark: #242f36; // $neutral-10 + $primary-80 with 11% opacity
|
|
129
|
+
$surface-4-dark: #253138; // $neutral-10 + $primary-80 with 12% opacity
|
|
130
|
+
$surface-5-dark: #27343c; // $neutral-10 + $primary-80 with 14 opacity
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@use "
|
|
1
|
+
@use "vars";
|
|
2
2
|
|
|
3
3
|
@mixin fixed-top {
|
|
4
4
|
position: fixed;
|
|
5
5
|
top: 0;
|
|
6
6
|
right: 0;
|
|
7
7
|
left: 0;
|
|
8
|
-
z-index:
|
|
8
|
+
z-index: vars.$zindex-fixed;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
@mixin fixed-bottom {
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
right: 0;
|
|
14
14
|
bottom: 0;
|
|
15
15
|
left: 0;
|
|
16
|
-
z-index:
|
|
16
|
+
z-index: vars.$zindex-fixed;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@mixin sticky-top {
|
|
20
20
|
@supports (position: sticky) {
|
|
21
21
|
position: sticky;
|
|
22
22
|
top: 0;
|
|
23
|
-
z-index:
|
|
23
|
+
z-index: vars.$zindex-sticky;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
@supports (position: sticky) {
|
|
29
29
|
position: sticky;
|
|
30
30
|
bottom: 0;
|
|
31
|
-
z-index:
|
|
31
|
+
z-index: vars.$zindex-sticky;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@use "sass:selector";
|
|
2
|
+
@use "colors";
|
|
3
|
+
@use "vars";
|
|
4
|
+
|
|
5
|
+
// Some cherry-picked and ported from bootstrap/scss/reboot
|
|
6
|
+
// Use :where() to get specificity 0 https://developer.mozilla.org/en-US/docs/Web/CSS/:where
|
|
7
|
+
|
|
8
|
+
// General style reboot selector for all classes starting with wy-
|
|
9
|
+
:where([class^='wy-'], [class*=' wy-']) {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
// See https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
|
|
12
|
+
*::before, *::after {
|
|
13
|
+
box-sizing: inherit;
|
|
14
|
+
}
|
|
15
|
+
// Self and descendants
|
|
16
|
+
&, & * {
|
|
17
|
+
// A
|
|
18
|
+
&:where(a) {
|
|
19
|
+
text-decoration: vars.$link-decoration;
|
|
20
|
+
color: colors.$link;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
text-decoration: vars.$link-hover-decoration;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:where(:not([href]):not([class])) {
|
|
27
|
+
|
|
28
|
+
&, &:hover {
|
|
29
|
+
text-decoration: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
// P
|
|
34
|
+
&:where(p) {
|
|
35
|
+
margin-top: 0;
|
|
36
|
+
margin-bottom: 1rem;
|
|
37
|
+
}
|
|
38
|
+
// LABEL
|
|
39
|
+
&:where(label) {
|
|
40
|
+
cursor: inherit;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[hidden] {
|
|
44
|
+
display: none !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:where([role="button"]) {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|