mirror of
https://projects.blender.org/infrastructure/gitea-custom.git
synced 2024-12-22 15:23:32 -05:00
829c083fbc
In the latest releases, Gitea has fixed a lot of the styling issues we had manually fixed in the past. Additionally, the recent style adjustments they did look a lot better so it is better to remove our custom styling as much as possible, and follow stock Gitea. Making it easier to upgrade in the future. * Fix broken styling * Remove custom font * Cleanup unused variables * Add code comments
125 lines
2.6 KiB
Cheetah
125 lines
2.6 KiB
Cheetah
<style>
|
|
:root {
|
|
--border-radius: .33rem;
|
|
--transition-speed: 150ms;
|
|
|
|
--color-timeline: var(--color-secondary);
|
|
}
|
|
|
|
/* Light-theme specific. */
|
|
.theme-gitea {
|
|
--color-primary: hsl(204deg, 90%, 52%);
|
|
}
|
|
|
|
/* Revert the red color in dashboard header buttons. */
|
|
.dashboard.feeds .right.stackable.menu>.item.active,
|
|
.dashboard.issues .right.stackable.menu>.item.active {
|
|
color: unset;
|
|
}
|
|
|
|
/* Global tweaks (all themes) */
|
|
/* Buttons. */
|
|
.ui.button,
|
|
a.ui.label {
|
|
transition: background-color var(--transition-speed), color var(--transition-speed);
|
|
}
|
|
|
|
/* Avatars. */
|
|
img.ui.avatar {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* Hide the app logo (first link in "brand" div). */
|
|
.following.bar #navbar .brand > a:first-child {
|
|
display: none;
|
|
}
|
|
|
|
/* Homepage. */
|
|
/* By default Gitea colors links green */
|
|
.home a {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
/* Hide brand navbar completely when not in mobile. */
|
|
@media (min-width: 768px) {
|
|
.following.bar #navbar .brand {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* Hide the navbar logo. */
|
|
#navbar #navbar-logo {
|
|
display: none;
|
|
}
|
|
|
|
/* Repository page. */
|
|
.repository .file-view.markdown a {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.repository .file-view .markup img {
|
|
border-radius: var(--border-radius);
|
|
}
|
|
|
|
/* Repository folder icon. */
|
|
.repository.file.list #repo-files-table tbody .svg.octicon-file-directory-fill {
|
|
color: currentColor;
|
|
}
|
|
|
|
/* Repository stats. */
|
|
.repository-summary-language-stats {
|
|
height: unset;
|
|
}
|
|
|
|
.repository .repository-summary .segment.language-stats {
|
|
height: 4px;
|
|
}
|
|
|
|
/* Repository: Activity page. */
|
|
.stats-table {
|
|
margin-bottom: var(--spacer);
|
|
}
|
|
|
|
/* Hide branches from PR list. */
|
|
.issue.list .branches {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Footer. */
|
|
footer {
|
|
color: var(--color-footer-text);
|
|
}
|
|
|
|
footer a {
|
|
color: var(--color-footer-links);
|
|
}
|
|
|
|
/* Manual preview tweaks. */
|
|
.restructuredtext a {
|
|
color: var(--color-accent) !important;
|
|
}
|
|
.restructuredtext :is(section, dd) > div {
|
|
background-color: var(--color-markup-code-block);
|
|
padding-bottom: 8px;
|
|
margin-bottom: 16px;
|
|
padding: 0;
|
|
border-radius: 5px;
|
|
}
|
|
.restructuredtext section div > p:first-child {
|
|
font-weight: 700;
|
|
}
|
|
.restructuredtext section div * {
|
|
margin: 0 !important;
|
|
}
|
|
.restructuredtext section div > :is(p, dl) {
|
|
padding: 8px 12px;
|
|
}
|
|
.restructuredtext section div > ul {
|
|
padding-bottom: 12px;
|
|
}
|
|
.restructuredtext section dl dt {
|
|
font-style: normal;
|
|
}
|
|
</style>
|
|
|
|
<script defer data-domain="projects.blender.org" src="https://analytics.blender.org/js/script.js"></script>
|