Skip to content

Commit fed71fe

Browse files
committed
Fixes the code block style bug and addresses the deprecation warning about the Sass @import statement.
1 parent 60fd0af commit fed71fe

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/styles/code-block.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import "tailwindcss/base";
2-
@import "tailwindcss/components";
3-
@import "tailwindcss/utilities";
1+
@use "tailwindcss/base" as *;
2+
@use "tailwindcss/components" as *;
3+
@use "tailwindcss/utilities" as *;
44

55
.tiptap {
66
.code-block {

src/styles/styles.scss

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
@import "tailwindcss/base";
2-
@import "tailwindcss/components";
3-
@import "tailwindcss/utilities";
4-
5-
// Your custom SCSS styles here
1+
@use "tailwindcss/base" as *;
2+
@use "tailwindcss/components" as *;
3+
@use "tailwindcss/utilities" as *;
64

75
/* Basic TipTap editor styles */
86
.tiptap {
97
:first-child {
108
margin-top: 0;
119
}
1210

13-
14-
1511
/* List styles */
1612
ul,
1713
ol {

0 commit comments

Comments
 (0)