mmjjrr
mmjjrr
KPCKevin Powell - Community
Created by mmjjrr on 7/22/2024 in #front-end
Automatic scroll with MUI Appbar
No description
1 replies
KPCKevin Powell - Community
Created by mmjjrr on 7/22/2024 in #front-end
Customizing editor experience
No description
1 replies
KPCKevin Powell - Community
Created by mmjjrr on 7/22/2024 in #front-end
native CSS nesting
Hello everyone, I would like to rewrite this CSS to implement it instead with native CSS nesting. My question is if that's smart to do so; it CSS nesting supported yet by all major browsers?
/* Editor container styles */

.tiptap {
min-height: 15rem;
outline: none;
}
/* Editor node styles */

.tiptap ul,
.tiptap ol {
padding: 0 1rem;
margin: 1.25rem 1rem 1.25rem 0.4rem;
}
.tiptap ul li p,
.tiptap ol li p {
margin-top: 0.25em;
margin-bottom: 0.25em;
}
.tiptap h1,
.tiptap h2,
.tiptap h3 {
line-height: 1.1;
text-wrap: pretty;
}
.tiptap h1,
.tiptap h2 {
margin-bottom: 1.5rem;
}
.tiptap h1 {
font-size: 2.813rem;
}
.tiptap h2 {
font-size: 2.344rem;
}
.tiptap h3 {
font-size: 1.875rem;
}

.tiptap pre {
background: black;
border-radius: 0.5rem;
color: white;
font-family: "JetBrainsMono", monospace;
margin: 1.5rem 0;
padding: 0.75rem 1rem;
}

.tiptap pre code {
background: none;

font-size: 0.8rem;
padding: 0;
}

.tiptap blockquote {
border-left: 3px solid rgb(11, 107, 203);
margin: 1.5rem 0;
padding-left: 1rem;
}
/* Editor container styles */

.tiptap {
min-height: 15rem;
outline: none;
}
/* Editor node styles */

.tiptap ul,
.tiptap ol {
padding: 0 1rem;
margin: 1.25rem 1rem 1.25rem 0.4rem;
}
.tiptap ul li p,
.tiptap ol li p {
margin-top: 0.25em;
margin-bottom: 0.25em;
}
.tiptap h1,
.tiptap h2,
.tiptap h3 {
line-height: 1.1;
text-wrap: pretty;
}
.tiptap h1,
.tiptap h2 {
margin-bottom: 1.5rem;
}
.tiptap h1 {
font-size: 2.813rem;
}
.tiptap h2 {
font-size: 2.344rem;
}
.tiptap h3 {
font-size: 1.875rem;
}

.tiptap pre {
background: black;
border-radius: 0.5rem;
color: white;
font-family: "JetBrainsMono", monospace;
margin: 1.5rem 0;
padding: 0.75rem 1rem;
}

.tiptap pre code {
background: none;

font-size: 0.8rem;
padding: 0;
}

.tiptap blockquote {
border-left: 3px solid rgb(11, 107, 203);
margin: 1.5rem 0;
padding-left: 1rem;
}
8 replies