171 lines
3.4 KiB
Cheetah
171 lines
3.4 KiB
Cheetah
<style>
|
|
:root {
|
|
--border-radius: 0.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%;
|
|
}
|
|
|
|
/* Dim the "header" of sections in dropdown menus. */
|
|
.ui.dropdown .menu > .header:not(.ui) {
|
|
color: var(--color-text-light-3);
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
/* Alert blocks. */
|
|
blockquote.attention-note {
|
|
background-color: var(--color-info-bg);
|
|
border-left-color: var(--color-blue-dark-1);
|
|
}
|
|
strong.attention-note,
|
|
span.attention-note {
|
|
color: var(--color-blue-dark-1);
|
|
}
|
|
|
|
blockquote.attention-tip {
|
|
background-color: var(--color-success-bg);
|
|
border-left-color: var(--color-success-text);
|
|
}
|
|
strong.attention-tip,
|
|
span.attention-tip {
|
|
color: var(--color-success-text);
|
|
}
|
|
|
|
blockquote.attention-important {
|
|
background-color: var(--color-violet-dark-bg);
|
|
border-left-color: var(--color-violet-dark-1);
|
|
}
|
|
|
|
strong.attention-important,
|
|
span.attention-important {
|
|
color: var(--color-violet-dark-1);
|
|
}
|
|
|
|
blockquote.attention-warning {
|
|
background-color: var(--color-warning-bg);
|
|
border-left-color: var(--color-warning-text);
|
|
}
|
|
|
|
strong.attention-warning,
|
|
span.attention-warning {
|
|
color: var(--color-warning-text);
|
|
}
|
|
|
|
blockquote.attention-caution {
|
|
background-color: var(--color-error-bg);
|
|
border-left-color: var(--color-red-dark-1);
|
|
}
|
|
strong.attention-caution,
|
|
span.attention-caution {
|
|
color: var(--color-red-dark-1);
|
|
}
|
|
</style>
|