feat: add styling for dark theme

pull/7734/head
Carl Richter 4 years ago
parent b6c8cdfb0c
commit eae23957d6

@ -30,6 +30,10 @@
.toc-anchor { .toc-anchor {
display: none !important; display: none !important;
} }
@at-root .theme--dark & {
color: mc('grey', '200');
}
} }
// remove underline // remove underline
@ -44,7 +48,7 @@
background: mc('grey', '300'); background: mc('grey', '300');
@at-root .theme--dark & { @at-root .theme--dark & {
background: mc('grey', '300'); background: mc('grey', '800');
} }
} }
} }
@ -104,19 +108,28 @@
& + p { & + p {
padding-top: 8px; padding-top: 8px;
} }
@at-root .theme--dark & {
color: mc('grey', '300');
}
} }
// --------------------------------- // ---------------------------------
// CODE // CODE
// --------------------------------- // ---------------------------------
code { code:not([class]) {
background: mc('grey', '200'); background: mc('grey', '200');
padding: .1em .5em; padding: .1em .5em;
border-radius: 4px; border-radius: 4px;
font-size: 85%; font-size: 85%;
text-shadow: none; text-shadow: none;
color: mc('grey', '800'); color: mc('grey', '800');
@at-root .theme--dark & {
background: rgba(mc('grey', '800'), .5);
color: mc('grey', '400');
}
} }
.code-toolbar { .code-toolbar {
@ -177,6 +190,10 @@
padding: 7px 16px; padding: 7px 16px;
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
@at-root .theme--dark & {
background: rgba(#000, .2);
}
} }
.prismjs { .prismjs {
@ -201,6 +218,15 @@
} }
} }
// ---------------------------------
// KEY BINDINGS
// ---------------------------------
kbd {
@at-root .theme--dark & {
color: mc('grey', '800');
background-color: mc('grey', '100');
}
}
// --------------------------------- // ---------------------------------
// TABLES // TABLES
@ -214,6 +240,10 @@
th, th,
tr td { tr td {
border: 1px solid mc('grey', '200'); border: 1px solid mc('grey', '200');
@at-root .theme--dark & {
border: 1px solid mc('grey', '800');
}
} }
th { th {
@ -222,10 +252,19 @@
font-size: .8em; font-size: .8em;
letter-spacing: .05em; letter-spacing: .05em;
text-transform: uppercase; text-transform: uppercase;
@at-root .theme--dark & {
background: mc('grey', '800');
color: mc('grey', '400');
}
} }
tbody tr:nth-child(even) td { tbody tr:nth-child(even) td {
background: mc('grey', '50'); background: mc('grey', '50');
@at-root .theme--dark & {
background: rgba(mc('grey', '800'), .25);
}
} }
} }
} }

@ -13,3 +13,7 @@
opacity: 1; opacity: 1;
visibility: visible; visibility: visible;
} }
.theme--dark .ty-anchor-button {
color: mc('grey', '400');
}

@ -28,6 +28,7 @@
a, button { a, button {
pointer-events: all; pointer-events: all;
color: currentColor !important;
} }
} }

@ -5,9 +5,9 @@
function ImageOverlay(src) { function ImageOverlay(src) {
return ` return `
<div class="ty-image-overlay"> <div class="ty-image-overlay">
<a href="${src}" target="_blank" class="v-btn v-btn--contained theme--light v-size--default primary" aria-label="In neuem Tab öffnen"> <a href="${src}" target="_blank" class="v-btn v-btn--contained v-size--default primary" aria-label="In neuem Tab öffnen">
<span class="v-btn__content"> <span class="v-btn__content">
<i aria-hidden="true" class="v-icon v-icon--left notranslate mdi mdi-open-in-new theme--light"></i> <i aria-hidden="true" class="v-icon v-icon--left notranslate mdi mdi-open-in-new"></i>
In neuem Tab öffnen In neuem Tab öffnen
</span> </span>
</a> </a>

Loading…
Cancel
Save