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

Update for changes in Gitea 1.21 and 1.20

This commit is contained in:
Brecht Van Lommel 2023-10-17 20:02:09 +02:00
parent 8f2a59000b
commit a168b7d35a
13 changed files with 21 additions and 26 deletions

View file

@ -168,6 +168,9 @@
/* Navbar. */ /* Navbar. */
--color-navbar: hsl(213, 10%, 18%); --color-navbar: hsl(213, 10%, 18%);
--color-nav-bg: hsl(213, 10%, 18%);
--color-nav-hover-bg: hsla(213, 18%, 90%, .05);
--color-header-wrapper: hsl(213, 10%, 18%);
--color-navbar-transparent: hsla(213, 10%, 14%, 0); --color-navbar-transparent: hsla(213, 10%, 14%, 0);
--color-header-bar: hsl(213, 10%, 18%); --color-header-bar: hsl(213, 10%, 18%);
@ -293,34 +296,10 @@
color: var(--color-label-text); color: var(--color-label-text);
} }
.following.bar #navbar {
min-height: 45px;
}
/* Align items (notifications, dropdown toggle) to the right. */
.following.bar #navbar .brand {
justify-content: flex-end !important;
}
.ui.tabular.menu { .ui.tabular.menu {
border-color: var(--color-border); border-color: var(--color-border);
} }
/* Navbar logo. */
.item.brand a {
opacity: .8;
transition: opacity var(--transition-speed) ease-in-out;
}
.item.brand a:hover {
opacity: 1;
}
.item.brand svg {
height: 21px;
color: #fff;
}
.ui.breadcrumb a { .ui.breadcrumb a {
color: var(--color-text); color: var(--color-text);
} }

View file

Before

Width:  |  Height:  |  Size: 4 KiB

After

Width:  |  Height:  |  Size: 4 KiB

View file

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View file

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View file

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 124 KiB

View file

Before

Width:  |  Height:  |  Size: 92 KiB

After

Width:  |  Height:  |  Size: 92 KiB

View file

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 118 KiB

View file

@ -455,7 +455,7 @@
</style> </style>
<style> <style>
/* Custom styling for code.blender.org */ /* Custom styling for projects.blender.org */
/* Make sure to start every line with ".nav-global" /* Make sure to start every line with ".nav-global"
* so changes affect the developer navbar only. */ * so changes affect the developer navbar only. */
@ -467,6 +467,22 @@
max-width: 1170px; max-width: 1170px;
} }
} }
/* Override Gitea's default navbar height. */
#navbar {
min-height: 46px;
}
/* Hide the site logo. */
#navbar .item:first-child {
display: none;
}
/* Fix alignment of text in dropdown items. */
.ui.dropdown>.text {
position: relative;
top: -2px;
}
</style> </style>
<div class="nav-global"> <div class="nav-global">

View file

@ -32,4 +32,4 @@
</div> </div>
</div> </div>
<a class="item" href="{{AppSubUrl}}/blender/blender/issues/new?template=.gitea%2fissue_template%2fbug.yaml">{{.locale.Tr "Report a Bug"}}</a> <a class="item" href="{{AppSubUrl}}/blender/blender/issues/new?template=.gitea%2fissue_template%2fbug.yaml">Report a Bug</a>