@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
209 lines (207 loc) • 7.15 kB
CSS
.m_d6493fad :first-child {
margin-top: 0;
}
.m_d6493fad :last-child {
margin-bottom: 0;
}
.m_d6493fad :where(h1, h2, h3, h4, h5, h6) {
margin-bottom: var(--mantine-spacing-xs);
text-wrap: var(--mantine-heading-text-wrap);
}
.m_d6493fad :where(h1) {
margin-top: calc(1.5 * var(--mantine-spacing-xl));
font-size: var(--mantine-h1-font-size);
line-height: var(--mantine-h1-line-height);
font-weight: var(--mantine-h1-font-weight);
}
.m_d6493fad :where(h2) {
margin-top: var(--mantine-spacing-xl);
font-size: var(--mantine-h2-font-size);
line-height: var(--mantine-h2-line-height);
font-weight: var(--mantine-h2-font-weight);
}
.m_d6493fad :where(h3) {
margin-top: calc(0.8 * var(--mantine-spacing-xl));
font-size: var(--mantine-h3-font-size);
line-height: var(--mantine-h3-line-height);
font-weight: var(--mantine-h3-font-weight);
}
.m_d6493fad :where(h4) {
margin-top: calc(0.8 * var(--mantine-spacing-xl));
font-size: var(--mantine-h4-font-size);
line-height: var(--mantine-h4-line-height);
font-weight: var(--mantine-h4-font-weight);
}
.m_d6493fad :where(h5) {
margin-top: calc(0.5 * var(--mantine-spacing-xl));
font-size: var(--mantine-h5-font-size);
line-height: var(--mantine-h5-line-height);
font-weight: var(--mantine-h5-font-weight);
}
.m_d6493fad :where(h6) {
margin-top: calc(0.5 * var(--mantine-spacing-xl));
font-size: var(--mantine-h6-font-size);
line-height: var(--mantine-h6-line-height);
font-weight: var(--mantine-h6-font-weight);
}
.m_d6493fad :where(img) {
max-width: 100%;
margin-bottom: var(--mantine-spacing-xs);
}
.m_d6493fad :where(p) {
margin-top: 0;
margin-bottom: var(--mantine-spacing-lg);
}
:where([data-mantine-color-scheme='light']) .m_d6493fad :where(mark) {
background-color: var(--mantine-color-yellow-2);
color: inherit;
}
:where([data-mantine-color-scheme='dark']) .m_d6493fad :where(mark) {
background-color: var(--mantine-color-yellow-5);
color: var(--mantine-color-black);
}
.m_d6493fad :where(a) {
color: var(--mantine-color-anchor);
text-decoration: none;
}
@media (hover: hover) {
.m_d6493fad :where(a):hover {
text-decoration: underline;
}
}
@media (hover: none) {
.m_d6493fad :where(a):active {
text-decoration: underline;
}
}
.m_d6493fad :where(hr) {
margin-top: var(--mantine-spacing-md);
margin-bottom: var(--mantine-spacing-md);
border: 0;
border-top: 1px solid;
}
:where([data-mantine-color-scheme='light']) .m_d6493fad :where(hr) {
border-color: var(--mantine-color-gray-3);
}
:where([data-mantine-color-scheme='dark']) .m_d6493fad :where(hr) {
border-color: var(--mantine-color-dark-3);
}
.m_d6493fad :where(pre) {
padding: var(--mantine-spacing-xs);
line-height: var(--mantine-line-height);
margin: 0;
margin-top: var(--mantine-spacing-md);
margin-bottom: var(--mantine-spacing-md);
overflow-x: auto;
font-family: var(--mantine-font-family-monospace);
font-size: var(--mantine-font-size-xs);
border-radius: var(--mantine-radius-sm);
}
:where([data-mantine-color-scheme='light']) .m_d6493fad :where(pre) {
background-color: var(--mantine-color-gray-0);
}
:where([data-mantine-color-scheme='dark']) .m_d6493fad :where(pre) {
background-color: var(--mantine-color-dark-8);
}
.m_d6493fad :where(pre) :where(code) {
background-color: transparent;
padding: 0;
border-radius: 0;
color: inherit;
border: 0;
}
.m_d6493fad :where(kbd) {
--kbd-fz: 12px;
--kbd-padding: 3px 5px;
font-family: var(--mantine-font-family-monospace);
line-height: var(--mantine-line-height);
font-weight: 700;
padding: var(--kbd-padding);
font-size: var(--kbd-fz);
border-radius: var(--mantine-radius-sm);
border: 1px solid;
border-bottom-width: 3px;
}
:where([data-mantine-color-scheme='light']) .m_d6493fad :where(kbd) {
border-color: var(--mantine-color-gray-3);
color: var(--mantine-color-gray-7);
background-color: var(--mantine-color-gray-0);
}
:where([data-mantine-color-scheme='dark']) .m_d6493fad :where(kbd) {
border-color: var(--mantine-color-dark-3);
color: var(--mantine-color-dark-0);
background-color: var(--mantine-color-dark-5);
}
.m_d6493fad :where(code) {
line-height: var(--mantine-line-height);
padding: 1px 5px;
border-radius: var(--mantine-radius-sm);
font-family: var(--mantine-font-family-monospace);
font-size: var(--mantine-font-size-xs);
}
:where([data-mantine-color-scheme='light']) .m_d6493fad :where(code) {
background-color: var(--mantine-color-gray-0);
color: var(--mantine-color-black);
}
:where([data-mantine-color-scheme='dark']) .m_d6493fad :where(code) {
background-color: var(--mantine-color-dark-5);
color: var(--mantine-color-white);
}
.m_d6493fad :where(ul, ol):not([data-type='taskList']) {
margin-bottom: var(--mantine-spacing-md);
padding-inline-start: var(--mantine-spacing-xl);
list-style-position: outside;
}
.m_d6493fad :where(table) {
width: 100%;
border-collapse: collapse;
caption-side: bottom;
margin-bottom: var(--mantine-spacing-md);
}
:where([data-mantine-color-scheme='light']) .m_d6493fad :where(table) {
--table-border-color: var(--mantine-color-gray-3);
}
:where([data-mantine-color-scheme='dark']) .m_d6493fad :where(table) {
--table-border-color: var(--mantine-color-dark-4);
}
.m_d6493fad :where(table) :where(caption) {
margin-top: var(--mantine-spacing-xs);
font-size: var(--mantine-font-size-sm);
color: var(--mantine-color-dimmed);
}
.m_d6493fad :where(table) :where(th) {
text-align: left;
font-weight: bold;
font-size: var(--mantine-font-size-sm);
padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);
}
.m_d6493fad :where(table) :where(thead th) {
border-bottom: 1px solid;
border-color: var(--table-border-color);
}
.m_d6493fad :where(table) :where(tfoot th) {
border-top: 1px solid;
border-color: var(--table-border-color);
}
.m_d6493fad :where(table) :where(td) {
padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);
border-bottom: 1px solid;
border-color: var(--table-border-color);
font-size: var(--mantine-font-size-sm);
}
.m_d6493fad :where(table) :where(tr:last-of-type td) {
border-bottom: 0;
}
.m_d6493fad :where(blockquote) {
font-size: var(--mantine-font-size-lg);
line-height: var(--mantine-line-height);
margin: var(--mantine-spacing-md) 0;
border-radius: var(--mantine-radius-sm);
padding: var(--mantine-spacing-md) var(--mantine-spacing-lg);
}
:where([data-mantine-color-scheme='light']) .m_d6493fad :where(blockquote) {
background-color: var(--mantine-color-gray-0);
}
:where([data-mantine-color-scheme='dark']) .m_d6493fad :where(blockquote) {
background-color: var(--mantine-color-dark-8);
}