-
-
Notifications
You must be signed in to change notification settings - Fork 765
fix: Mantine styles #553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix: Mantine styles #553
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8ffc225
Updated Mantine and package-lock
matthewlipski 5b0cbb0
Added Mantine global styles reset
matthewlipski c09edec
Made Mantine global styles not get imported
matthewlipski 28919f6
Fixed CSS import order
matthewlipski 6694b94
Updated test & snapshots
matthewlipski d670886
Implemented PR feedback
matthewlipski fa3bbe4
Implemented PR feedback
matthewlipski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,138 @@ | ||
| /* Based on https://github.com/orgs/mantinedev/discussions/5685 */ | ||
|
|
||
| /* We need all the Mantine styles except the global styles, so unfortunately our | ||
|
matthewlipski marked this conversation as resolved.
|
||
| only option is to import all the component styles separately. Could consider | ||
| importing only styles for components used in BlockNote in the future. */ | ||
| /* Files list: https://mantine.dev/styles/css-files-list/ */ | ||
| @import url("@mantine/core/styles/ScrollArea.css"); | ||
|
matthewlipski marked this conversation as resolved.
|
||
| @import url("@mantine/core/styles/UnstyledButton.css"); | ||
| @import url("@mantine/core/styles/VisuallyHidden.css"); | ||
| @import url("@mantine/core/styles/Paper.css"); | ||
| @import url("@mantine/core/styles/Popover.css"); | ||
| @import url("@mantine/core/styles/CloseButton.css"); | ||
| @import url("@mantine/core/styles/Group.css"); | ||
| @import url("@mantine/core/styles/Loader.css"); | ||
| @import url("@mantine/core/styles/Overlay.css"); | ||
| @import url("@mantine/core/styles/ModalBase.css"); | ||
| @import url("@mantine/core/styles/Input.css"); | ||
| @import url("@mantine/core/styles/Flex.css"); | ||
|
|
||
| @import url("@mantine/core/styles/Accordion.css"); | ||
| @import url("@mantine/core/styles/ActionIcon.css"); | ||
| @import url("@mantine/core/styles/Affix.css"); | ||
| @import url("@mantine/core/styles/Alert.css"); | ||
| @import url("@mantine/core/styles/Anchor.css"); | ||
| @import url("@mantine/core/styles/AspectRatio.css"); | ||
| @import url("@mantine/core/styles/AppShell.css"); | ||
| @import url("@mantine/core/styles/Avatar.css"); | ||
| @import url("@mantine/core/styles/Badge.css"); | ||
| @import url("@mantine/core/styles/BackgroundImage.css"); | ||
| @import url("@mantine/core/styles/Blockquote.css"); | ||
| @import url("@mantine/core/styles/Breadcrumbs.css"); | ||
| @import url("@mantine/core/styles/Button.css"); | ||
| @import url("@mantine/core/styles/Burger.css"); | ||
| @import url("@mantine/core/styles/Card.css"); | ||
| @import url("@mantine/core/styles/Center.css"); | ||
| @import url("@mantine/core/styles/Checkbox.css"); | ||
| @import url("@mantine/core/styles/Chip.css"); | ||
| @import url("@mantine/core/styles/Code.css"); | ||
| @import url("@mantine/core/styles/ColorInput.css"); | ||
| @import url("@mantine/core/styles/ColorPicker.css"); | ||
| @import url("@mantine/core/styles/ColorSwatch.css"); | ||
| @import url("@mantine/core/styles/Combobox.css"); | ||
| @import url("@mantine/core/styles/Container.css"); | ||
| @import url("@mantine/core/styles/Dialog.css"); | ||
| @import url("@mantine/core/styles/Divider.css"); | ||
| @import url("@mantine/core/styles/Drawer.css"); | ||
| @import url("@mantine/core/styles/Fieldset.css"); | ||
| @import url("@mantine/core/styles/Grid.css"); | ||
| @import url("@mantine/core/styles/Image.css"); | ||
| @import url("@mantine/core/styles/Indicator.css"); | ||
| @import url("@mantine/core/styles/InlineInput.css"); | ||
| @import url("@mantine/core/styles/Kbd.css"); | ||
| @import url("@mantine/core/styles/List.css"); | ||
| @import url("@mantine/core/styles/LoadingOverlay.css"); | ||
| @import url("@mantine/core/styles/Mark.css"); | ||
| @import url("@mantine/core/styles/Menu.css"); | ||
| @import url("@mantine/core/styles/Modal.css"); | ||
| @import url("@mantine/core/styles/NavLink.css"); | ||
| @import url("@mantine/core/styles/Notification.css"); | ||
| @import url("@mantine/core/styles/NumberInput.css"); | ||
| @import url("@mantine/core/styles/Pagination.css"); | ||
| @import url("@mantine/core/styles/Pill.css"); | ||
| @import url("@mantine/core/styles/PasswordInput.css"); | ||
| @import url("@mantine/core/styles/PillsInput.css"); | ||
| @import url("@mantine/core/styles/PinInput.css"); | ||
| @import url("@mantine/core/styles/Progress.css"); | ||
| @import url("@mantine/core/styles/Radio.css"); | ||
| @import url("@mantine/core/styles/Rating.css"); | ||
| @import url("@mantine/core/styles/RingProgress.css"); | ||
| @import url("@mantine/core/styles/SegmentedControl.css"); | ||
| @import url("@mantine/core/styles/SimpleGrid.css"); | ||
| @import url("@mantine/core/styles/Skeleton.css"); | ||
| @import url("@mantine/core/styles/Slider.css"); | ||
| @import url("@mantine/core/styles/Spoiler.css"); | ||
| @import url("@mantine/core/styles/Stack.css"); | ||
| @import url("@mantine/core/styles/Stepper.css"); | ||
| @import url("@mantine/core/styles/Switch.css"); | ||
| @import url("@mantine/core/styles/Table.css"); | ||
| @import url("@mantine/core/styles/Tabs.css"); | ||
| @import url("@mantine/core/styles/Text.css"); | ||
| @import url("@mantine/core/styles/ThemeIcon.css"); | ||
| @import url("@mantine/core/styles/Timeline.css"); | ||
| @import url("@mantine/core/styles/Title.css"); | ||
| @import url("@mantine/core/styles/Tooltip.css"); | ||
| @import url("@mantine/core/styles/TypographyStylesProvider.css"); | ||
|
|
||
| /* Mantine global styles, scoped to bn-container */ | ||
| /* Based on @mantine/core/styles/global.css | ||
| (src: https://github.com/mantinedev/mantine/blob/master/packages/%40mantine/core/src/core/MantineProvider/global.css) | ||
| but with styles set on `body` and `html` instead set on `bn-container`, as | ||
| well as other minor changes. */ | ||
| .bn-container *, .bn-container :after, .bn-container :before { | ||
| box-sizing: border-box | ||
| } | ||
|
|
||
| .bn-container button, | ||
| .bn-container select { | ||
| text-transform: none | ||
| } | ||
|
|
||
| @media screen and (max-device-width: 500px) { | ||
| .bn-container { | ||
| -webkit-text-size-adjust: 100% | ||
| } | ||
| } | ||
|
|
||
| @media (prefers-reduced-motion: reduce) { | ||
| .bn-container [data-respect-reduced-motion] [data-reduce-motion] { | ||
| animation: none; | ||
| transition: none | ||
| } | ||
| } | ||
|
|
||
| .bn-container [data-mantine-color-scheme=dark] .mantine-dark-hidden, .bn-container [data-mantine-color-scheme=light] .mantine-light-hidden { | ||
| display: none | ||
| } | ||
|
|
||
| .bn-container .mantine-focus-auto:focus-visible { | ||
| outline: calc(.125rem * var(--mantine-scale)) solid var(--mantine-primary-color-filled); | ||
| outline-offset: calc(.125rem * var(--mantine-scale)) | ||
| } | ||
|
|
||
| .bn-container .mantine-focus-always:focus { | ||
| outline: calc(.125rem * var(--mantine-scale)) solid var(--mantine-primary-color-filled); | ||
| outline-offset: calc(.125rem * var(--mantine-scale)) | ||
| } | ||
|
|
||
| .bn-container .mantine-focus-never:focus { | ||
| outline: none | ||
| } | ||
|
|
||
| .bn-container .mantine-active:active { | ||
| transform: translateY(calc(.0625rem * var(--mantine-scale))) | ||
| } | ||
|
|
||
| .bn-container[dir=rtl] .mantine-rotate-rtl { | ||
| transform: rotate(180deg) | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+6 Bytes
(100%)
...d/slashmenu/slashmenu.test.ts-snapshots/slash-menu-end-product-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+191 Bytes
(100%)
...to-end/theming/theming.test.ts-snapshots/dark-drag-handle-menu-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-49 Bytes
(100%)
...rc/end-to-end/theming/theming.test.ts-snapshots/dark-side-menu-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.