Files
web/packages/design-system/lib/components/JsonToHtml/jsontohtml.module.css
2025-10-10 10:37:26 +00:00

151 lines
2.0 KiB
CSS

.container {
max-width: var(--max-width-content);
margin: 0 auto;
width: 100%;
& > :first-child {
margin-top: 0;
}
& > :last-child {
margin-bottom: 0;
}
}
.heading {
color: var(--Text-Heading);
margin-top: var(--Space-x3);
text-wrap: balance;
hyphens: auto;
}
.h1,
.h2 {
margin-bottom: var(--Space-x2);
}
.h3,
.h4,
.h5,
.p,
.blockquote,
.code,
.divider,
.div {
margin-bottom: var(--Space-x15);
}
.imageWithCaption {
display: grid;
gap: var(--Space-x1);
margin: var(--Space-x3) 0;
.imageWrapper {
margin: 0;
}
}
.imageWrapper {
position: relative;
width: 100%;
height: 365px;
border-radius: var(--Corner-radius-md);
margin: var(--Space-x3) 0;
overflow: hidden;
}
.image {
width: 100%;
object-fit: cover;
}
.ul,
.ol {
padding: 0;
margin: var(--Space-x2) 0;
}
.ol > li::marker {
color: var(--Icon-Accent);
}
.li {
margin-left: var(--Space-x3);
margin-bottom: var(--Space-x05);
}
.heart > .li,
.check > .li,
.li:has(.check),
.li:has(.heart) {
list-style: none;
margin-left: 0;
display: flex;
gap: var(--Space-x1);
}
.heart > .li::before,
.li:has(.heart)::before,
.check > .li::before,
.li:has(.check)::before {
position: relative;
height: 8px;
top: 3px;
}
.check > .li::before,
.li:has(.check)::before {
content: url('/_static/icons/check-ring.svg');
}
.heart > .li::before,
.li:has(.heart)::before {
content: url('/_static/icons/heart.svg');
}
.li > * {
display: inline;
margin: 0;
}
.tableContainer {
max-width: 100%;
overflow-x: auto;
margin: var(--Space-x3) 0;
}
.table .p {
display: inline;
margin: 0;
}
.theadContent {
color: var(--Text-Heading);
}
.iframe {
margin: var(--Space-x3) 0;
}
@media screen and (min-width: 768px) {
.ol,
.ul {
&.two-column,
&.two-columns,
&:has(.two-column, .two-columns) {
column-count: 2;
column-gap: var(--Space-x3);
}
}
}
@container sidebar (max-width: 360px) {
.ol,
.ul {
&.two-column,
&.two-columns,
&:has(.two-column, .two-columns) {
column-count: 1;
}
}
}