added darkly-compact - issue 552

This commit is contained in:
dankxiaobong 2023-06-21 11:19:30 +02:00
parent 7efbf8c69c
commit d56aeb95ca
4 changed files with 12112 additions and 1 deletions

View file

@ -0,0 +1,62 @@
@import "variables.darkly";
// DEBUG
// * {
// border: 1px red solid;
// }
/*
GENERAL
*/
// Desktop Breakpoint
$container-max-widths: (
lg: 1920px,
);
// Reduce hr height
hr.my-3 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
/*
POST-LISTING
*/
.post-listing {
line-height: 1;
.post-title h5 {
margin: 0;
}
.post-title + p {
padding-top: 0.125rem !important;
padding-bottom: 0.125rem !important;
}
.community-link {
padding-left: 0.125rem;
}
.person-listing {
padding-right: 0.125rem;
}
ul.list-inline {
&.mt-2 {
margin-top: 0.125rem !important;
}
&.mb-1 {
margin-bottom: 0.125rem !important;
}
}
.btn-sm {
--bs-btn-padding-y: 0;
}
.img-icon {
display: none;
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,2 @@
@import "variables.darkly-compact";
@import "../../../../node_modules/bootstrap/scss/bootstrap";

View file

@ -4,7 +4,13 @@ import { readdir } from "fs/promises";
const extraThemesFolder =
process.env["LEMMY_UI_EXTRA_THEMES_FOLDER"] || "./extra_themes";
const themes = ["darkly", "darkly-red", "litely", "litely-red"];
const themes = [
"darkly",
"darkly-red",
"darkly-compact",
"litely",
"litely-red",
];
export async function buildThemeList(): Promise<string[]> {
if (existsSync(extraThemesFolder)) {