Skip to content

Commit 30e870d

Browse files
committed
feat: add prose-custom table styles for tinymce content
1 parent 9ba72a9 commit 30e870d

File tree

2 files changed

+93
-663
lines changed

2 files changed

+93
-663
lines changed

src/styles/main.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,4 +449,54 @@ body {
449449
color: var(--orange-2);
450450
@apply underline;
451451
}
452+
453+
.prose-custom table {
454+
width: 100% !important;
455+
height: auto !important;
456+
border-collapse: collapse !important;
457+
border-spacing: 0 !important;
458+
border: none !important;
459+
border-radius: 1rem;
460+
overflow: hidden;
461+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
462+
margin-bottom: 2rem;
463+
font-family: "Nunito", sans-serif;
464+
font-size: 1rem;
465+
}
466+
467+
.prose-custom table th {
468+
background-color: #6b4226 !important;
469+
color: white !important;
470+
font-family: 'Bantayog', sans-serif !important;
471+
font-weight: 700 !important;
472+
text-align: left !important;
473+
padding: 1rem 1.5rem !important;
474+
border: none !important;
475+
}
476+
477+
.prose-custom table td {
478+
padding: 1rem 1.5rem !important;
479+
border: none !important;
480+
border-bottom: 1px solid #e8d5c4 !important;
481+
color: var(--brown-2);
482+
vertical-align: top !important;
483+
text-align: left !important;
484+
}
485+
486+
.prose-custom table tbody tr:nth-child(odd) {
487+
background-color: #ffffff !important;
488+
}
489+
490+
.prose-custom table tbody tr:nth-child(even) {
491+
background-color: #f8ebe5 !important;
492+
}
493+
494+
.prose-custom table td p {
495+
font-size: 1rem !important;
496+
margin-bottom: 0.5rem !important;
497+
}
498+
499+
.prose-custom table td p:last-child {
500+
margin-bottom: 0 !important;
501+
}
452502
}

0 commit comments

Comments
 (0)