@weavy/uikit-react 13.0.0 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +30 -0
- package/dist/cjs/{types/client → client}/WeavyClient.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Attachment.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Avatar.d.ts +0 -0
- package/dist/{esm/types → cjs}/components/Chat.d.ts +1 -1
- package/dist/cjs/{types/components → components}/Conversation.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationBadge.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationForm.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationList.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationListItem.d.ts +0 -0
- package/dist/cjs/{types/components → components}/File.d.ts +0 -0
- package/dist/cjs/{types/components → components}/FileBrowser.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Image.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Meeting.d.ts +0 -0
- package/dist/cjs/{types/components → components}/MeetingCard.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Meetings.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Message.d.ts +0 -0
- package/dist/{esm/types → cjs}/components/Messages.d.ts +3 -1
- package/dist/cjs/{types/components → components}/Messenger.d.ts +0 -0
- package/dist/cjs/{types/components → components}/NewConversation.d.ts +0 -0
- package/dist/cjs/{types/components → components}/PdfViewer.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Presence.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Preview.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Reactions.d.ts +0 -0
- package/dist/cjs/{types/components → components}/SearchUsers.d.ts +0 -0
- package/dist/cjs/{types/components → components}/SeenBy.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Typing.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/UserContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useBadge.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useChat.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useConversation.d.ts +0 -0
- package/dist/cjs/hooks/useConversations.d.ts +1 -0
- package/dist/cjs/{types/hooks → hooks}/useDebounce.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useEvents.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMembers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMessages.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
- package/dist/{esm/types → cjs}/hooks/useMutateMessage.d.ts +1 -1
- package/dist/cjs/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/usePresence.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/usePreview.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useReactions.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useThrottle.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useUser.d.ts +0 -0
- package/dist/cjs/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/cjs/index.js +6 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
- package/dist/cjs/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
- package/dist/cjs/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
- package/dist/{esm/types → cjs}/types/Message.d.ts +2 -0
- package/dist/cjs/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
- package/dist/cjs/types/{types/types.d.ts → types.d.ts} +47 -4
- package/dist/cjs/{types/ui → ui}/Button.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Dropdown.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Icon.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Overlay.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Spinner.d.ts +2 -1
- package/dist/cjs/{types/utils → utils}/fileUtilities.d.ts +0 -0
- package/dist/css/weavy-chat.css +1543 -959
- package/dist/css/weavy-messenger.css +1903 -1302
- package/dist/css/weavy.css +1703 -1102
- package/dist/esm/{types/client → client}/WeavyClient.d.ts +0 -0
- package/dist/esm/{types/components → components}/Attachment.d.ts +0 -0
- package/dist/esm/{types/components → components}/Avatar.d.ts +0 -0
- package/dist/{cjs/types → esm}/components/Chat.d.ts +1 -1
- package/dist/esm/{types/components → components}/Conversation.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationBadge.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationForm.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationList.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationListItem.d.ts +0 -0
- package/dist/esm/{types/components → components}/File.d.ts +0 -0
- package/dist/esm/{types/components → components}/FileBrowser.d.ts +0 -0
- package/dist/esm/{types/components → components}/Image.d.ts +0 -0
- package/dist/esm/{types/components → components}/Meeting.d.ts +0 -0
- package/dist/esm/{types/components → components}/MeetingCard.d.ts +0 -0
- package/dist/esm/{types/components → components}/Meetings.d.ts +0 -0
- package/dist/esm/{types/components → components}/Message.d.ts +0 -0
- package/dist/{cjs/types → esm}/components/Messages.d.ts +3 -1
- package/dist/esm/{types/components → components}/Messenger.d.ts +0 -0
- package/dist/esm/{types/components → components}/NewConversation.d.ts +0 -0
- package/dist/esm/{types/components → components}/PdfViewer.d.ts +0 -0
- package/dist/esm/{types/components → components}/Presence.d.ts +0 -0
- package/dist/esm/{types/components → components}/Preview.d.ts +0 -0
- package/dist/esm/{types/components → components}/Reactions.d.ts +0 -0
- package/dist/esm/{types/components → components}/SearchUsers.d.ts +0 -0
- package/dist/esm/{types/components → components}/SeenBy.d.ts +0 -0
- package/dist/esm/{types/components → components}/Typing.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/UserContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useBadge.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useChat.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useConversation.d.ts +0 -0
- package/dist/esm/hooks/useConversations.d.ts +1 -0
- package/dist/esm/{types/hooks → hooks}/useDebounce.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useEvents.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMembers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMessages.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
- package/dist/{cjs/types → esm}/hooks/useMutateMessage.d.ts +1 -1
- package/dist/esm/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
- package/dist/esm/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/usePresence.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/usePreview.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useReactions.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useThrottle.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useUser.d.ts +0 -0
- package/dist/esm/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/esm/index.js +6 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
- package/dist/esm/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
- package/dist/esm/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
- package/dist/{cjs/types → esm}/types/Message.d.ts +2 -0
- package/dist/esm/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
- package/dist/esm/types/{types/types.d.ts → types.d.ts} +47 -4
- package/dist/esm/{types/ui → ui}/Button.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Dropdown.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Icon.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Overlay.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Spinner.d.ts +2 -1
- package/dist/esm/{types/utils → utils}/fileUtilities.d.ts +0 -0
- package/dist/index.d.ts +2 -1
- package/package.json +18 -15
- package/{rollup.config.js → rollup.config.mjs} +10 -3
- package/src/client/WeavyClient.ts +12 -17
- package/src/components/Attachment.tsx +5 -5
- package/src/components/Chat.tsx +6 -5
- package/src/components/Conversation.tsx +26 -20
- 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 +94 -58
- package/src/components/FileBrowser.tsx +53 -50
- package/src/components/Image.tsx +2 -1
- package/src/components/MeetingCard.tsx +35 -13
- package/src/components/Meetings.tsx +1 -1
- package/src/components/Message.tsx +41 -42
- package/src/components/Messages.tsx +61 -60
- package/src/components/Messenger.tsx +7 -2
- package/src/components/NewConversation.tsx +1 -1
- package/src/components/PdfViewer.tsx +5 -5
- package/src/components/Preview.tsx +2 -2
- package/src/components/Reactions.tsx +11 -5
- package/src/components/SearchUsers.tsx +19 -9
- package/src/components/SeenBy.tsx +13 -7
- package/src/components/Typing.tsx +11 -12
- package/src/contexts/UserContext.tsx +1 -1
- package/src/contexts/WeavyContext.tsx +3 -3
- package/src/hooks/useConversations.ts +15 -5
- package/src/hooks/useMutateMessage.ts +1 -5
- package/src/hooks/useMutateRead.ts +5 -3
- package/src/hooks/usePresence.ts +2 -3
- package/src/hooks/useReactions.ts +11 -12
- package/src/scss/theme/_alert.scss +61 -63
- package/src/scss/theme/_appbar.scss +105 -30
- 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 +3 -3
- package/src/scss/theme/_code-vscode-light.scss +3 -3
- package/src/scss/theme/_code.scss +0 -2
- 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 +76 -47
- package/src/scss/theme/_grid.scss +8 -0
- package/src/scss/theme/_icons.scss +155 -19
- package/src/scss/theme/_image-grid.scss +7 -12
- 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 +65 -19
- 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 +33 -28
- 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 +11 -2
- package/src/scss/theme/_preview-embed.scss +8 -2
- 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.scss +57 -79
- 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 +10 -4
- package/src/scss/weavy-messenger.scss +37 -21
- package/src/types/Chat.ts +2 -1
- package/src/types/Message.ts +3 -1
- package/src/types/types.ts +56 -5
- package/src/ui/Icon.tsx +1 -1
- package/src/ui/Spinner.tsx +3 -2
- package/src/utils/infiniteScroll.js +12 -3
- package/src/utils/postal-parent.js +398 -0
- package/src/utils/promise.js +187 -0
- package/src/utils/scrollbarDetection.js +71 -9
- package/src/utils/utils.js +547 -0
- package/dist/cjs/types/hooks/useConversations.d.ts +0 -1
- package/dist/esm/types/hooks/useConversations.d.ts +0 -1
- 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
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
// Bootstrap functions
|
|
2
|
-
//
|
|
3
|
-
// Utility mixins and functions for evaluating source code across our variables, maps, and mixins.
|
|
4
|
-
|
|
5
|
-
// Ascending
|
|
6
|
-
// Used to evaluate Sass maps like our grid breakpoints.
|
|
7
|
-
@mixin _assert-ascending($map, $map-name) {
|
|
8
|
-
$prev-key: null;
|
|
9
|
-
$prev-num: null;
|
|
10
|
-
@each $key, $num in $map {
|
|
11
|
-
@if $prev-num == null or unit($num) == "%" or unit($prev-num) == "%" {
|
|
12
|
-
// Do nothing
|
|
13
|
-
} @else if not comparable($prev-num, $num) {
|
|
14
|
-
@warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
|
15
|
-
} @else if $prev-num >= $num {
|
|
16
|
-
@warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
|
17
|
-
}
|
|
18
|
-
$prev-key: $key;
|
|
19
|
-
$prev-num: $num;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Starts at zero
|
|
24
|
-
// Used to ensure the min-width of the lowest breakpoint starts at 0.
|
|
25
|
-
@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
|
|
26
|
-
@if length($map) > 0 {
|
|
27
|
-
$values: map-values($map);
|
|
28
|
-
$first-value: nth($values, 1);
|
|
29
|
-
@if $first-value != 0 {
|
|
30
|
-
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Colors
|
|
36
|
-
@function to-rgb($value) {
|
|
37
|
-
@return red($value), green($value), blue($value);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// stylelint-disable scss/dollar-variable-pattern
|
|
41
|
-
@function rgba-css-var($identifier, $target) {
|
|
42
|
-
@if $identifier == "body" and $target == "bg" {
|
|
43
|
-
@return rgba(var(--#{$prefix}#{$identifier}-bg-rgb), var(--#{$prefix}#{$target}-opacity));
|
|
44
|
-
} @if $identifier == "body" and $target == "text" {
|
|
45
|
-
@return rgba(var(--#{$prefix}#{$identifier}-color-rgb), var(--#{$prefix}#{$target}-opacity));
|
|
46
|
-
} @else {
|
|
47
|
-
@return rgba(var(--#{$prefix}#{$identifier}-rgb), var(--#{$prefix}#{$target}-opacity));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@function map-loop($map, $func, $args...) {
|
|
52
|
-
$_map: ();
|
|
53
|
-
|
|
54
|
-
@each $key, $value in $map {
|
|
55
|
-
// allow to pass the $key and $value of the map as an function argument
|
|
56
|
-
$_args: ();
|
|
57
|
-
@each $arg in $args {
|
|
58
|
-
$_args: append($_args, if($arg == "$key", $key, if($arg == "$value", $value, $arg)));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
$_map: map-merge($_map, ($key: call(get-function($func), $_args...)));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@return $_map;
|
|
65
|
-
}
|
|
66
|
-
// stylelint-enable scss/dollar-variable-pattern
|
|
67
|
-
|
|
68
|
-
@function varify($list) {
|
|
69
|
-
$result: null;
|
|
70
|
-
@each $entry in $list {
|
|
71
|
-
$result: append($result, var(--#{$prefix}#{$entry}), space);
|
|
72
|
-
}
|
|
73
|
-
@return $result;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Internal Bootstrap function to turn maps into its negative variant.
|
|
77
|
-
// It prefixes the keys with `n` and makes the value negative.
|
|
78
|
-
@function negativify-map($map) {
|
|
79
|
-
$result: ();
|
|
80
|
-
@each $key, $value in $map {
|
|
81
|
-
@if $key != 0 {
|
|
82
|
-
$result: map-merge($result, ("n" + $key: (-$value)));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
@return $result;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// Get multiple keys from a sass map
|
|
89
|
-
@function map-get-multiple($map, $values) {
|
|
90
|
-
$result: ();
|
|
91
|
-
@each $key, $value in $map {
|
|
92
|
-
@if (index($values, $key) != null) {
|
|
93
|
-
$result: map-merge($result, ($key: $value));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
@return $result;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Merge multiple maps
|
|
100
|
-
@function map-merge-multiple($maps...) {
|
|
101
|
-
$merged-maps: ();
|
|
102
|
-
|
|
103
|
-
@each $map in $maps {
|
|
104
|
-
$merged-maps: map-merge($merged-maps, $map);
|
|
105
|
-
}
|
|
106
|
-
@return $merged-maps;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// Replace `$search` with `$replace` in `$string`
|
|
110
|
-
// Used on our SVG icon backgrounds for custom forms.
|
|
111
|
-
//
|
|
112
|
-
// @author Hugo Giraudel
|
|
113
|
-
// @param {String} $string - Initial string
|
|
114
|
-
// @param {String} $search - Substring to replace
|
|
115
|
-
// @param {String} $replace ('') - New value
|
|
116
|
-
// @return {String} - Updated string
|
|
117
|
-
@function str-replace($string, $search, $replace: "") {
|
|
118
|
-
$index: str-index($string, $search);
|
|
119
|
-
|
|
120
|
-
@if $index {
|
|
121
|
-
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@return $string;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// See https://codepen.io/kevinweber/pen/dXWoRw
|
|
128
|
-
//
|
|
129
|
-
// Requires the use of quotes around data URIs.
|
|
130
|
-
|
|
131
|
-
@function escape-svg($string) {
|
|
132
|
-
@if str-index($string, "data:image/svg+xml") {
|
|
133
|
-
@each $char, $encoded in $escaped-characters {
|
|
134
|
-
// Do not escape the url brackets
|
|
135
|
-
@if str-index($string, "url(") == 1 {
|
|
136
|
-
$string: url("#{str-replace(str-slice($string, 6, -3), $char, $encoded)}");
|
|
137
|
-
} @else {
|
|
138
|
-
$string: str-replace($string, $char, $encoded);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@return $string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// Color contrast
|
|
147
|
-
// See https://github.com/twbs/bootstrap/pull/30168
|
|
148
|
-
|
|
149
|
-
// A list of pre-calculated numbers of pow(divide((divide($value, 255) + .055), 1.055), 2.4). (from 0 to 255)
|
|
150
|
-
// stylelint-disable-next-line scss/dollar-variable-default, scss/dollar-variable-pattern
|
|
151
|
-
$_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 .0033 .0037 .004 .0044 .0048 .0052 .0056 .006 .0065 .007 .0075 .008 .0086 .0091 .0097 .0103 .011 .0116 .0123 .013 .0137 .0144 .0152 .016 .0168 .0176 .0185 .0194 .0203 .0212 .0222 .0232 .0242 .0252 .0262 .0273 .0284 .0296 .0307 .0319 .0331 .0343 .0356 .0369 .0382 .0395 .0409 .0423 .0437 .0452 .0467 .0482 .0497 .0513 .0529 .0545 .0561 .0578 .0595 .0612 .063 .0648 .0666 .0685 .0704 .0723 .0742 .0762 .0782 .0802 .0823 .0844 .0865 .0887 .0908 .0931 .0953 .0976 .0999 .1022 .1046 .107 .1095 .1119 .1144 .117 .1195 .1221 .1248 .1274 .1301 .1329 .1356 .1384 .1413 .1441 .147 .15 .1529 .1559 .159 .162 .1651 .1683 .1714 .1746 .1779 .1812 .1845 .1878 .1912 .1946 .1981 .2016 .2051 .2086 .2122 .2159 .2195 .2232 .227 .2307 .2346 .2384 .2423 .2462 .2502 .2542 .2582 .2623 .2664 .2705 .2747 .2789 .2831 .2874 .2918 .2961 .3005 .305 .3095 .314 .3185 .3231 .3278 .3325 .3372 .3419 .3467 .3515 .3564 .3613 .3663 .3712 .3763 .3813 .3864 .3916 .3968 .402 .4072 .4125 .4179 .4233 .4287 .4342 .4397 .4452 .4508 .4564 .4621 .4678 .4735 .4793 .4851 .491 .4969 .5029 .5089 .5149 .521 .5271 .5333 .5395 .5457 .552 .5583 .5647 .5711 .5776 .5841 .5906 .5972 .6038 .6105 .6172 .624 .6308 .6376 .6445 .6514 .6584 .6654 .6724 .6795 .6867 .6939 .7011 .7084 .7157 .7231 .7305 .7379 .7454 .7529 .7605 .7682 .7758 .7835 .7913 .7991 .807 .8148 .8228 .8308 .8388 .8469 .855 .8632 .8714 .8796 .8879 .8963 .9047 .9131 .9216 .9301 .9387 .9473 .956 .9647 .9734 .9823 .9911 1;
|
|
152
|
-
|
|
153
|
-
@function color-contrast($background, $color-contrast-dark: $color-contrast-dark, $color-contrast-light: $color-contrast-light, $min-contrast-ratio: $min-contrast-ratio) {
|
|
154
|
-
$foregrounds: $color-contrast-light, $color-contrast-dark, $white, $black;
|
|
155
|
-
$max-ratio: 0;
|
|
156
|
-
$max-ratio-color: null;
|
|
157
|
-
|
|
158
|
-
@each $color in $foregrounds {
|
|
159
|
-
$contrast-ratio: contrast-ratio($background, $color);
|
|
160
|
-
@if $contrast-ratio > $min-contrast-ratio {
|
|
161
|
-
@return $color;
|
|
162
|
-
} @else if $contrast-ratio > $max-ratio {
|
|
163
|
-
$max-ratio: $contrast-ratio;
|
|
164
|
-
$max-ratio-color: $color;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
@warn "Found no color leading to #{$min-contrast-ratio}:1 contrast ratio against #{$background}...";
|
|
169
|
-
|
|
170
|
-
@return $max-ratio-color;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
@function contrast-ratio($background, $foreground: $color-contrast-light) {
|
|
174
|
-
$l1: luminance($background);
|
|
175
|
-
$l2: luminance(opaque($background, $foreground));
|
|
176
|
-
|
|
177
|
-
@return if($l1 > $l2, divide($l1 + .05, $l2 + .05), divide($l2 + .05, $l1 + .05));
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// Return WCAG2.1 relative luminance
|
|
181
|
-
// See https://www.w3.org/TR/WCAG/#dfn-relative-luminance
|
|
182
|
-
// See https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
|
|
183
|
-
@function luminance($color) {
|
|
184
|
-
$rgb: (
|
|
185
|
-
"r": red($color),
|
|
186
|
-
"g": green($color),
|
|
187
|
-
"b": blue($color)
|
|
188
|
-
);
|
|
189
|
-
|
|
190
|
-
@each $name, $value in $rgb {
|
|
191
|
-
$value: if(divide($value, 255) < .03928, divide(divide($value, 255), 12.92), nth($_luminance-list, $value + 1));
|
|
192
|
-
$rgb: map-merge($rgb, ($name: $value));
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
@return (map-get($rgb, "r") * .2126) + (map-get($rgb, "g") * .7152) + (map-get($rgb, "b") * .0722);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// Return opaque color
|
|
199
|
-
// opaque(#fff, rgba(0, 0, 0, .5)) => #808080
|
|
200
|
-
@function opaque($background, $foreground) {
|
|
201
|
-
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// scss-docs-start color-functions
|
|
205
|
-
// Tint a color: mix a color with white
|
|
206
|
-
@function tint-color($color, $weight) {
|
|
207
|
-
@return mix(white, $color, $weight);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// Shade a color: mix a color with black
|
|
211
|
-
@function shade-color($color, $weight) {
|
|
212
|
-
@return mix(black, $color, $weight);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// Shade the color if the weight is positive, else tint it
|
|
216
|
-
@function shift-color($color, $weight) {
|
|
217
|
-
@return if($weight > 0, shade-color($color, $weight), tint-color($color, -$weight));
|
|
218
|
-
}
|
|
219
|
-
// scss-docs-end color-functions
|
|
220
|
-
|
|
221
|
-
// Return valid calc
|
|
222
|
-
@function add($value1, $value2, $return-calc: true) {
|
|
223
|
-
@if $value1 == null {
|
|
224
|
-
@return $value2;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
@if $value2 == null {
|
|
228
|
-
@return $value1;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) {
|
|
232
|
-
@return $value1 + $value2;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
@return if($return-calc == true, calc(#{$value1} + #{$value2}), $value1 + unquote(" + ") + $value2);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
@function subtract($value1, $value2, $return-calc: true) {
|
|
239
|
-
@if $value1 == null and $value2 == null {
|
|
240
|
-
@return null;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
@if $value1 == null {
|
|
244
|
-
@return -$value2;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
@if $value2 == null {
|
|
248
|
-
@return $value1;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) {
|
|
252
|
-
@return $value1 - $value2;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
@if type-of($value2) != number {
|
|
256
|
-
$value2: unquote("(") + $value2 + unquote(")");
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
@return if($return-calc == true, calc(#{$value1} - #{$value2}), $value1 + unquote(" - ") + $value2);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
@function divide($dividend, $divisor, $precision: 10) {
|
|
263
|
-
$sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
|
|
264
|
-
$dividend: abs($dividend);
|
|
265
|
-
$divisor: abs($divisor);
|
|
266
|
-
@if $dividend == 0 {
|
|
267
|
-
@return 0;
|
|
268
|
-
}
|
|
269
|
-
@if $divisor == 0 {
|
|
270
|
-
@error "Cannot divide by 0";
|
|
271
|
-
}
|
|
272
|
-
$remainder: $dividend;
|
|
273
|
-
$result: 0;
|
|
274
|
-
$factor: 10;
|
|
275
|
-
@while ($remainder > 0 and $precision >= 0) {
|
|
276
|
-
$quotient: 0;
|
|
277
|
-
@while ($remainder >= $divisor) {
|
|
278
|
-
$remainder: $remainder - $divisor;
|
|
279
|
-
$quotient: $quotient + 1;
|
|
280
|
-
}
|
|
281
|
-
$result: $result * 10 + $quotient;
|
|
282
|
-
$factor: $factor * .1;
|
|
283
|
-
$remainder: $remainder * 10;
|
|
284
|
-
$precision: $precision - 1;
|
|
285
|
-
@if ($precision < 0 and $remainder >= $divisor * 5) {
|
|
286
|
-
$result: $result + 1;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
$result: $result * $factor * $sign;
|
|
290
|
-
$dividend-unit: unit($dividend);
|
|
291
|
-
$divisor-unit: unit($divisor);
|
|
292
|
-
$unit-map: (
|
|
293
|
-
"px": 1px,
|
|
294
|
-
"rem": 1rem,
|
|
295
|
-
"em": 1em,
|
|
296
|
-
"%": 1%
|
|
297
|
-
);
|
|
298
|
-
@if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {
|
|
299
|
-
$result: $result * map-get($unit-map, $dividend-unit);
|
|
300
|
-
}
|
|
301
|
-
@return $result;
|
|
302
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Row
|
|
2
|
-
//
|
|
3
|
-
// Rows contain your columns.
|
|
4
|
-
|
|
5
|
-
@if $enable-grid-classes {
|
|
6
|
-
.row {
|
|
7
|
-
@include make-row();
|
|
8
|
-
|
|
9
|
-
> * {
|
|
10
|
-
@include make-col-ready();
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@if $enable-cssgrid {
|
|
16
|
-
.grid {
|
|
17
|
-
display: grid;
|
|
18
|
-
grid-template-rows: repeat(var(--#{$prefix}rows, 1), 1fr);
|
|
19
|
-
grid-template-columns: repeat(var(--#{$prefix}columns, #{$grid-columns}), 1fr);
|
|
20
|
-
gap: var(--#{$prefix}gap, #{$grid-gutter-width});
|
|
21
|
-
|
|
22
|
-
@include make-cssgrid();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
// Columns
|
|
28
|
-
//
|
|
29
|
-
// Common styles for small and large grid columns
|
|
30
|
-
|
|
31
|
-
@if $enable-grid-classes {
|
|
32
|
-
@include make-grid-columns();
|
|
33
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
@import "helpers/clearfix";
|
|
2
|
-
@import "helpers/color-bg";
|
|
3
|
-
@import "helpers/colored-links";
|
|
4
|
-
@import "helpers/ratio";
|
|
5
|
-
@import "helpers/position";
|
|
6
|
-
@import "helpers/stacks";
|
|
7
|
-
@import "helpers/visually-hidden";
|
|
8
|
-
@import "helpers/stretched-link";
|
|
9
|
-
@import "helpers/text-truncation";
|
|
10
|
-
@import "helpers/vr";
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// Responsive images (ensure images don't scale beyond their parents)
|
|
2
|
-
//
|
|
3
|
-
// This is purposefully opt-in via an explicit class rather than being the default for all `<img>`s.
|
|
4
|
-
// We previously tried the "images are responsive by default" approach in Bootstrap v2,
|
|
5
|
-
// and abandoned it in Bootstrap v3 because it breaks lots of third-party widgets (including Google Maps)
|
|
6
|
-
// which weren't expecting the images within themselves to be involuntarily resized.
|
|
7
|
-
// See also https://github.com/twbs/bootstrap/issues/18178
|
|
8
|
-
.img-fluid {
|
|
9
|
-
@include img-fluid();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// Image thumbnails
|
|
14
|
-
.img-thumbnail {
|
|
15
|
-
padding: $thumbnail-padding;
|
|
16
|
-
background-color: $thumbnail-bg;
|
|
17
|
-
border: $thumbnail-border-width solid $thumbnail-border-color;
|
|
18
|
-
@include border-radius($thumbnail-border-radius);
|
|
19
|
-
@include box-shadow($thumbnail-box-shadow);
|
|
20
|
-
|
|
21
|
-
// Keep them at most 100% wide
|
|
22
|
-
@include img-fluid();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
//
|
|
26
|
-
// Figures
|
|
27
|
-
//
|
|
28
|
-
|
|
29
|
-
.figure {
|
|
30
|
-
// Ensures the caption's text aligns with the image.
|
|
31
|
-
display: inline-block;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.figure-img {
|
|
35
|
-
margin-bottom: $spacer * .5;
|
|
36
|
-
line-height: 1;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.figure-caption {
|
|
40
|
-
@include font-size($figure-caption-font-size);
|
|
41
|
-
color: $figure-caption-color;
|
|
42
|
-
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
// Base class
|
|
2
|
-
//
|
|
3
|
-
// Easily usable on <ul>, <ol>, or <div>.
|
|
4
|
-
|
|
5
|
-
.list-group {
|
|
6
|
-
// scss-docs-start list-group-css-vars
|
|
7
|
-
--#{$prefix}list-group-color: #{$list-group-color};
|
|
8
|
-
--#{$prefix}list-group-bg: #{$list-group-bg};
|
|
9
|
-
--#{$prefix}list-group-border-color: #{$list-group-border-color};
|
|
10
|
-
--#{$prefix}list-group-border-width: #{$list-group-border-width};
|
|
11
|
-
--#{$prefix}list-group-border-radius: #{$list-group-border-radius};
|
|
12
|
-
--#{$prefix}list-group-item-padding-x: #{$list-group-item-padding-x};
|
|
13
|
-
--#{$prefix}list-group-item-padding-y: #{$list-group-item-padding-y};
|
|
14
|
-
--#{$prefix}list-group-action-color: #{$list-group-action-color};
|
|
15
|
-
--#{$prefix}list-group-action-hover-color: #{$list-group-action-hover-color};
|
|
16
|
-
--#{$prefix}list-group-action-hover-bg: #{$list-group-hover-bg};
|
|
17
|
-
--#{$prefix}list-group-action-active-color: #{$list-group-action-active-color};
|
|
18
|
-
--#{$prefix}list-group-action-active-bg: #{$list-group-action-active-bg};
|
|
19
|
-
--#{$prefix}list-group-disabled-color: #{$list-group-disabled-color};
|
|
20
|
-
--#{$prefix}list-group-disabled-bg: #{$list-group-disabled-bg};
|
|
21
|
-
--#{$prefix}list-group-active-color: #{$list-group-active-color};
|
|
22
|
-
--#{$prefix}list-group-active-bg: #{$list-group-active-bg};
|
|
23
|
-
--#{$prefix}list-group-active-border-color: #{$list-group-active-border-color};
|
|
24
|
-
// scss-docs-end list-group-css-vars
|
|
25
|
-
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
|
|
29
|
-
// No need to set list-style: none; since .list-group-item is block level
|
|
30
|
-
padding-left: 0; // reset padding because ul and ol
|
|
31
|
-
margin-bottom: 0;
|
|
32
|
-
@include border-radius(var(--#{$prefix}list-group-border-radius));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.list-group-numbered {
|
|
36
|
-
list-style-type: none;
|
|
37
|
-
counter-reset: section;
|
|
38
|
-
|
|
39
|
-
> .list-group-item::before {
|
|
40
|
-
// Increments only this instance of the section counter
|
|
41
|
-
content: counters(section, ".") ". ";
|
|
42
|
-
counter-increment: section;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Interactive list items
|
|
47
|
-
//
|
|
48
|
-
// Use anchor or button elements instead of `li`s or `div`s to create interactive
|
|
49
|
-
// list items. Includes an extra `.active` modifier class for selected items.
|
|
50
|
-
|
|
51
|
-
.list-group-item-action {
|
|
52
|
-
width: 100%; // For `<button>`s (anchors become 100% by default though)
|
|
53
|
-
color: var(--#{$prefix}list-group-action-color);
|
|
54
|
-
text-align: inherit; // For `<button>`s (anchors inherit)
|
|
55
|
-
|
|
56
|
-
// Hover state
|
|
57
|
-
&:hover,
|
|
58
|
-
&:focus {
|
|
59
|
-
z-index: 1; // Place hover/focus items above their siblings for proper border styling
|
|
60
|
-
color: var(--#{$prefix}list-group-action-hover-color);
|
|
61
|
-
text-decoration: none;
|
|
62
|
-
background-color: var(--#{$prefix}list-group-action-hover-bg);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:active {
|
|
66
|
-
color: var(--#{$prefix}list-group-action-active-color);
|
|
67
|
-
background-color: var(--#{$prefix}list-group-action-active-bg);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// Individual list items
|
|
72
|
-
//
|
|
73
|
-
// Use on `li`s or `div`s within the `.list-group` parent.
|
|
74
|
-
|
|
75
|
-
.list-group-item {
|
|
76
|
-
position: relative;
|
|
77
|
-
display: block;
|
|
78
|
-
padding: var(--#{$prefix}list-group-item-padding-y) var(--#{$prefix}list-group-item-padding-x);
|
|
79
|
-
color: var(--#{$prefix}list-group-color);
|
|
80
|
-
text-decoration: if($link-decoration == none, null, none);
|
|
81
|
-
background-color: var(--#{$prefix}list-group-bg);
|
|
82
|
-
border: var(--#{$prefix}list-group-border-width) solid var(--#{$prefix}list-group-border-color);
|
|
83
|
-
|
|
84
|
-
&:first-child {
|
|
85
|
-
@include border-top-radius(inherit);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&:last-child {
|
|
89
|
-
@include border-bottom-radius(inherit);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&.disabled,
|
|
93
|
-
&:disabled {
|
|
94
|
-
color: var(--#{$prefix}list-group-disabled-color);
|
|
95
|
-
pointer-events: none;
|
|
96
|
-
background-color: var(--#{$prefix}list-group-disabled-bg);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Include both here for `<a>`s and `<button>`s
|
|
100
|
-
&.active {
|
|
101
|
-
z-index: 2; // Place active items above their siblings for proper border styling
|
|
102
|
-
color: var(--#{$prefix}list-group-active-color);
|
|
103
|
-
background-color: var(--#{$prefix}list-group-active-bg);
|
|
104
|
-
border-color: var(--#{$prefix}list-group-active-border-color);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
& + & {
|
|
108
|
-
border-top-width: 0;
|
|
109
|
-
|
|
110
|
-
&.active {
|
|
111
|
-
margin-top: calc(var(--#{$prefix}list-group-border-width) * -1); // stylelint-disable-line function-disallowed-list
|
|
112
|
-
border-top-width: var(--#{$prefix}list-group-border-width);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// Horizontal
|
|
118
|
-
//
|
|
119
|
-
// Change the layout of list group items from vertical (default) to horizontal.
|
|
120
|
-
|
|
121
|
-
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
122
|
-
@include media-breakpoint-up($breakpoint) {
|
|
123
|
-
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
124
|
-
|
|
125
|
-
.list-group-horizontal#{$infix} {
|
|
126
|
-
flex-direction: row;
|
|
127
|
-
|
|
128
|
-
> .list-group-item {
|
|
129
|
-
&:first-child {
|
|
130
|
-
@include border-bottom-start-radius(var(--#{$prefix}list-group-border-radius));
|
|
131
|
-
@include border-top-end-radius(0);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&:last-child {
|
|
135
|
-
@include border-top-end-radius(var(--#{$prefix}list-group-border-radius));
|
|
136
|
-
@include border-bottom-start-radius(0);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&.active {
|
|
140
|
-
margin-top: 0;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
+ .list-group-item {
|
|
144
|
-
border-top-width: var(--#{$prefix}list-group-border-width);
|
|
145
|
-
border-left-width: 0;
|
|
146
|
-
|
|
147
|
-
&.active {
|
|
148
|
-
margin-left: calc(var(--#{$prefix}list-group-border-width) * -1); // stylelint-disable-line function-disallowed-list
|
|
149
|
-
border-left-width: var(--#{$prefix}list-group-border-width);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
// Flush list items
|
|
159
|
-
//
|
|
160
|
-
// Remove borders and border-radius to keep list group items edge-to-edge. Most
|
|
161
|
-
// useful within other components (e.g., cards).
|
|
162
|
-
|
|
163
|
-
.list-group-flush {
|
|
164
|
-
@include border-radius(0);
|
|
165
|
-
|
|
166
|
-
> .list-group-item {
|
|
167
|
-
border-width: 0 0 var(--#{$prefix}list-group-border-width);
|
|
168
|
-
|
|
169
|
-
&:last-child {
|
|
170
|
-
border-bottom-width: 0;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
// scss-docs-start list-group-modifiers
|
|
177
|
-
// List group contextual variants
|
|
178
|
-
//
|
|
179
|
-
// Add modifier classes to change text and background color on individual items.
|
|
180
|
-
// Organizationally, this must come after the `:hover` states.
|
|
181
|
-
|
|
182
|
-
@each $state, $value in $theme-colors {
|
|
183
|
-
$list-group-variant-bg: shift-color($value, $list-group-item-bg-scale);
|
|
184
|
-
$list-group-variant-color: shift-color($value, $list-group-item-color-scale);
|
|
185
|
-
@if (contrast-ratio($list-group-variant-bg, $list-group-variant-color) < $min-contrast-ratio) {
|
|
186
|
-
$list-group-variant-color: mix($value, color-contrast($list-group-variant-bg), abs($list-group-item-color-scale));
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
@include list-group-item-variant($state, $list-group-variant-bg, $list-group-variant-color);
|
|
190
|
-
}
|
|
191
|
-
// scss-docs-end list-group-modifiers
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// Re-assigned maps
|
|
2
|
-
//
|
|
3
|
-
// Placed here so that others can override the default Sass maps and see automatic updates to utilities and more.
|
|
4
|
-
|
|
5
|
-
// scss-docs-start theme-colors-rgb
|
|
6
|
-
$theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value") !default;
|
|
7
|
-
// scss-docs-end theme-colors-rgb
|
|
8
|
-
|
|
9
|
-
// Utilities maps
|
|
10
|
-
//
|
|
11
|
-
// Extends the default `$theme-colors` maps to help create our utilities.
|
|
12
|
-
|
|
13
|
-
// Come v6, we'll de-dupe these variables. Until then, for backward compatibility, we keep them to reassign.
|
|
14
|
-
// scss-docs-start utilities-colors
|
|
15
|
-
$utilities-colors: $theme-colors-rgb !default;
|
|
16
|
-
// scss-docs-end utilities-colors
|
|
17
|
-
|
|
18
|
-
// scss-docs-start utilities-text-colors
|
|
19
|
-
$utilities-text: map-merge(
|
|
20
|
-
$utilities-colors,
|
|
21
|
-
(
|
|
22
|
-
"black": to-rgb($black),
|
|
23
|
-
"white": to-rgb($white),
|
|
24
|
-
"body": to-rgb($body-color)
|
|
25
|
-
)
|
|
26
|
-
) !default;
|
|
27
|
-
$utilities-text-colors: map-loop($utilities-text, rgba-css-var, "$key", "text") !default;
|
|
28
|
-
// scss-docs-end utilities-text-colors
|
|
29
|
-
|
|
30
|
-
// scss-docs-start utilities-bg-colors
|
|
31
|
-
$utilities-bg: map-merge(
|
|
32
|
-
$utilities-colors,
|
|
33
|
-
(
|
|
34
|
-
"black": to-rgb($black),
|
|
35
|
-
"white": to-rgb($white),
|
|
36
|
-
"body": to-rgb($body-bg)
|
|
37
|
-
)
|
|
38
|
-
) !default;
|
|
39
|
-
$utilities-bg-colors: map-loop($utilities-bg, rgba-css-var, "$key", "bg") !default;
|
|
40
|
-
// scss-docs-end utilities-bg-colors
|
|
41
|
-
|
|
42
|
-
// scss-docs-start utilities-border-colors
|
|
43
|
-
$utilities-border: map-merge(
|
|
44
|
-
$utilities-colors,
|
|
45
|
-
(
|
|
46
|
-
"white": to-rgb($white)
|
|
47
|
-
)
|
|
48
|
-
) !default;
|
|
49
|
-
$utilities-border-colors: map-loop($utilities-border, rgba-css-var, "$key", "border") !default;
|
|
50
|
-
// scss-docs-end utilities-border-colors
|
|
51
|
-
|
|
52
|
-
$negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default;
|
|
53
|
-
|
|
54
|
-
$gutters: $spacers !default;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// Toggles
|
|
2
|
-
//
|
|
3
|
-
// Used in conjunction with global variables to enable certain theme features.
|
|
4
|
-
|
|
5
|
-
// Vendor
|
|
6
|
-
@import "vendor/rfs";
|
|
7
|
-
|
|
8
|
-
// Deprecate
|
|
9
|
-
@import "mixins/deprecate";
|
|
10
|
-
|
|
11
|
-
// Helpers
|
|
12
|
-
@import "mixins/breakpoints";
|
|
13
|
-
@import "mixins/color-scheme";
|
|
14
|
-
@import "mixins/image";
|
|
15
|
-
@import "mixins/resize";
|
|
16
|
-
@import "mixins/visually-hidden";
|
|
17
|
-
@import "mixins/reset-text";
|
|
18
|
-
@import "mixins/text-truncate";
|
|
19
|
-
|
|
20
|
-
// Utilities
|
|
21
|
-
@import "mixins/utilities";
|
|
22
|
-
|
|
23
|
-
// Components
|
|
24
|
-
@import "mixins/alert";
|
|
25
|
-
@import "mixins/backdrop";
|
|
26
|
-
@import "mixins/buttons";
|
|
27
|
-
@import "mixins/caret";
|
|
28
|
-
@import "mixins/pagination";
|
|
29
|
-
@import "mixins/lists";
|
|
30
|
-
@import "mixins/list-group";
|
|
31
|
-
@import "mixins/forms";
|
|
32
|
-
@import "mixins/table-variants";
|
|
33
|
-
|
|
34
|
-
// Skins
|
|
35
|
-
@import "mixins/border-radius";
|
|
36
|
-
@import "mixins/box-shadow";
|
|
37
|
-
@import "mixins/gradients";
|
|
38
|
-
@import "mixins/transition";
|
|
39
|
-
|
|
40
|
-
// Layout
|
|
41
|
-
@import "mixins/clearfix";
|
|
42
|
-
@import "mixins/container";
|
|
43
|
-
@import "mixins/grid";
|