Split and re-ordered SCSS files for easier overrides of defaults (#4)

* Split SCSS for easier changes
* Re-ordered SCSS files for easier overrides of defaults
* Fixed padding classes with auto value
* Added theme """stub"""
This commit is contained in:
2026-05-11 13:32:00 +02:00
committed by GitHub
parent 95ffb881f9
commit 91098bc437
68 changed files with 926 additions and 786 deletions
+42
View File
@@ -0,0 +1,42 @@
// NibblePoker CSS Theme - CC0 1.0 (Public Domain)
/* Defaults > Code */
code, .code, kbd, .t-monospace {
font-family: Consolas, "Courier New", monospace;
}
// For large blocks
//code { }
// For inline spans
// We're applying the equivalent of `.r-s.px-xs.px-s`
// Kinda goes against the core ideas, but it would be annoying without it.
.code, kbd {
background-color: #{$color-background-code};
border: 1px solid;
// Using '.r-s'
border-radius: calc(#{$border-base-radius} * 0.75);
// Using the middle of '.px-xs' and '.px-s'
padding-left: calc(#{$border-base-radius} * 0.625);
padding-right: calc(#{$border-base-radius} * 0.625);
}
// Removes the background added by highlight.js
.code-line {
background: rgba(0,0,0,0) !important;
}
// FIXME: Makes the inline block ugly !!!
code, .code, .code-line {
line-height: 1.35;
}
// FIXME: Use a proper class !!!
.code:not(code) {
padding: calc(#{$border-base-radius} * 0.625);
}