feat: add doks default style + examples

This commit is contained in:
Henk Verlinde
2021-03-16 08:55:07 +01:00
parent 5180bd53c6
commit ad91b0523e
10 changed files with 155 additions and 9 deletions

View File

@ -62,12 +62,12 @@ body.dark .toggle-dark {
.btn-clipboard {
position: absolute;
top: 2.125rem;
right: 1rem;
top: 1rem;
right: 0.25rem;
z-index: 10;
display: block;
padding: 0.25rem 0.5rem;
font-size: $font-size-xs;
font-size: $font-size-sm;
}
}

View File

@ -0,0 +1,50 @@
/*
Doks — based on Ascetic by (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: $beige;
color: $black;
}
body.dark .hljs {
background: $body-overlay-dark;
color: $body-color-dark;
}
.hljs-string,
.hljs-variable,
.hljs-template-variable,
.hljs-symbol,
.hljs-bullet,
.hljs-section,
.hljs-addition,
.hljs-attribute,
.hljs-link {
color: #888;
}
.hljs-comment,
.hljs-quote,
.hljs-meta,
.hljs-deletion {
color: #ccc;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-section,
.hljs-name,
.hljs-type,
.hljs-strong {
font-weight: bold;
}
.hljs-emphasis {
font-style: italic;
}