Skip to content

Commit 77b1dcd

Browse files
crystalcrystalcommunication
authored andcommitted
CB/ui: move style overrides to this repo (!53)
Moves the contents of codeberg.css from the Codeberg-Infrastrcuture/build-deploy-forgejo repository to this one, converting them to a less file. Also adds overrides to swap the Codeberg logo to the blue version when the theme uses a light background for the header and footer. fixes https://codeberg.org/Codeberg/Community/issues/880 Co-authored-by: crystal <[email protected]> Reviewed-on: https://codeberg.org/Codeberg/forgejo/pulls/53 Co-committed-by: crystal <[email protected]>
1 parent fe71a05 commit 77b1dcd

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

web_src/css/codeberg.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
:root {
2+
--gitea-color-scheme-1: #2185d0;
3+
--gitea-text-color: #FFF;
4+
}
5+
6+
#navbar .ui.red.label, #navbar .ui.red.labels .label { box-shadow: 0 0 1px 1px #c82121; }
7+
8+
* {
9+
scrollbar-width: initial;
10+
scrollbar-color: initial;
11+
}
12+
13+
.item.brand .ui.mini.image, footer .branding img {
14+
.theme-forgejo-light &, .theme-gitea & {
15+
content: url('https://design.codeberg.org/logo-kit/icon.svg');
16+
}
17+
.theme-forgejo-auto &, .theme-auto & {
18+
@media (prefers-color-scheme: light) {
19+
content: url('https://design.codeberg.org/logo-kit/icon.svg');
20+
}
21+
}
22+
}

web_src/css/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@
4040
@import "./package.css";
4141
@import "./runner.css";
4242
@import "./helpers.css";
43+
44+
/* codeberg */
45+
@import "./codeberg.css";

0 commit comments

Comments
 (0)