custom.css•2.86 kB
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}
/* For readability improvements */
.markdown > h2 {
--ifm-h2-font-size: 1.5rem;
}
.markdown > h3 {
--ifm-h3-font-size: 1.25rem;
}
/* Custom styling for ADR status badges */
.adr-status {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: bold;
text-transform: uppercase;
margin-left: 0.5rem;
}
.adr-status--accepted {
background-color: #d1f2eb;
color: #0e5232;
}
.adr-status--proposed {
background-color: #fef9e7;
color: #7d6608;
}
.adr-status--deprecated {
background-color: #fadbd8;
color: #78281f;
}
.adr-status--superseded {
background-color: #e8daef;
color: #512e5f;
}
/* Custom table styling for ADR index */
.adr-table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
.adr-table th,
.adr-table td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid var(--ifm-table-border-color);
}
.adr-table th {
background-color: var(--ifm-table-head-background);
font-weight: bold;
}
.adr-table tbody tr:hover {
background-color: var(--ifm-table-row-hover-background);
}
/* Dark theme adjustments */
[data-theme='dark'] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}
[data-theme='dark'] .adr-status--accepted {
background-color: #0e5232;
color: #d1f2eb;
}
[data-theme='dark'] .adr-status--proposed {
background-color: #7d6608;
color: #fef9e7;
}
[data-theme='dark'] .adr-status--deprecated {
background-color: #78281f;
color: #fadbd8;
}
[data-theme='dark'] .adr-status--superseded {
background-color: #512e5f;
color: #e8daef;
}
/* Code block improvements */
.prism-code {
font-size: 0.9rem;
}
/* Table of contents improvements */
.table-of-contents {
font-size: 0.8rem;
}
.table-of-contents__link {
display: block;
margin: 0.125rem 0;
}
/* Responsive improvements */
@media (max-width: 768px) {
.adr-table {
font-size: 0.8rem;
}
.adr-table th,
.adr-table td {
padding: 0.5rem;
}
}