0
Fork 0
mirror of https://projects.blender.org/infrastructure/gitea-custom.git synced 2024-12-22 07:13:09 -05:00

UI: Add font matching other blender.org sites

Use Heebo variable font, the same as in blender.org and other sites.
This commit is contained in:
Pablo Vazquez 2023-01-26 18:52:41 +01:00
parent 5da551a2a4
commit ef239744e3
2 changed files with 24 additions and 0 deletions

View file

@ -1,6 +1,19 @@
/* bthree dark theme */
@font-face {
font-family: "Heebo";
src: url("../fonts/Heebo-VariableFont_wght.ttf") format("truetype-variations");
font-weight: normal;
font-variation-settings: "wght" var(--font-weight);
font-style: normal
}
:root {
/* Override fonts. */
--fonts-override: 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--font-weight-thin: 300;
--font-weight-bold: 600;
--is-dark-theme: true;
/* Spacing. */
@ -218,6 +231,17 @@
--color-footer-links: var(--color-text-light-1);
}
/* Strong/bold elements. */
strong, b, h1, h2, h3, h4, h5, h6,
.issue.list>.item .issue-item-top-row {
font-weight: normal !important;
font-variation-settings: "wght" var(--font-weight-bold);
}
.repository.view.issue .title .issue-title h1 {
font-variation-settings: "wght" var(--font-weight-thin);
}
/* Custom styling of individual elements.
* Using !important is bad, but unfortunately gitea does it already in _base.less. */

Binary file not shown.