254 lines
8.6 KiB
CSS
254 lines
8.6 KiB
CSS
/* The same menu language across the rest of Gitea. No content is replaced. */
|
|
:root { --border-radius: 2px; }
|
|
|
|
/* Double rules echo the score-like separators in Automata's menu screens. */
|
|
.page-content > .secondary-nav {
|
|
background: transparent !important;
|
|
border: 0;
|
|
}
|
|
.ui.secondary.pointing.menu:not(.filter) {
|
|
background: var(--color-box-body);
|
|
border: 1px solid var(--yorha-rule);
|
|
border-bottom: 4px double var(--yorha-rule);
|
|
border-radius: 2px;
|
|
padding: 5px;
|
|
min-height: 48px;
|
|
}
|
|
.ui.secondary.pointing.menu:not(.filter) .item {
|
|
border: 0;
|
|
border-radius: 1px;
|
|
padding: 11px 16px;
|
|
margin: 0;
|
|
color: var(--color-text);
|
|
font-weight: 400;
|
|
letter-spacing: .035em;
|
|
}
|
|
.ui.secondary.pointing.menu:not(.filter) .active.item {
|
|
background: var(--yorha-cursor);
|
|
color: var(--yorha-cursor-text);
|
|
font-weight: 500;
|
|
}
|
|
.ui.secondary.pointing.menu:not(.filter) .active.item > .label {
|
|
color: inherit;
|
|
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
}
|
|
.ui.secondary.pointing.menu:not(.filter) .item:hover:not(.active) {
|
|
background: var(--color-hover);
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
/* Repository archives become long, ruled records instead of loose text. */
|
|
:is(.explore.repositories, .user.profile) .flex-divided-list.items-with-main {
|
|
background: var(--color-box-body);
|
|
border: 1px solid var(--yorha-rule);
|
|
border-top: 4px double var(--yorha-rule);
|
|
padding: 0 22px;
|
|
}
|
|
:is(.explore.repositories, .user.profile) .items-with-main > .item {
|
|
padding-block: 22px;
|
|
border-bottom-color: var(--color-secondary);
|
|
column-gap: 18px;
|
|
}
|
|
:is(.explore.repositories, .user.profile) .items-with-main > .item:last-child { border-bottom: 0; }
|
|
:is(.explore.repositories, .user.profile) .items-with-main .item-title {
|
|
font-size: 20px;
|
|
font-weight: 400;
|
|
letter-spacing: -.025em;
|
|
line-height: 1.4;
|
|
}
|
|
:is(.explore.repositories, .user.profile) .items-with-main .item-leading {
|
|
border: 1px solid var(--color-secondary);
|
|
width: 38px;
|
|
height: 38px;
|
|
display: grid;
|
|
place-items: center;
|
|
flex: 0 0 38px;
|
|
color: var(--color-text-light-1);
|
|
}
|
|
:is(.explore.repositories, .user.profile) .items-with-main .item-body {
|
|
line-height: 1.65;
|
|
max-width: 78ch;
|
|
}
|
|
.ui.secondary.filter.menu {
|
|
padding: 12px 0;
|
|
border-block: 1px solid var(--yorha-rule);
|
|
border-radius: 0;
|
|
margin-block: 18px;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Profile card: a portrait and identity plate, with metadata below. */
|
|
#profile-avatar-card {
|
|
border: 1px solid var(--yorha-rule);
|
|
border-top: 4px double var(--color-text-light-2);
|
|
background: var(--color-box-body);
|
|
border-radius: 2px;
|
|
}
|
|
#profile-avatar-card .item:first-child { padding-block: 28px !important; }
|
|
#profile-avatar-card .item:first-child img {
|
|
border-radius: 2px;
|
|
outline: 1px solid var(--color-text-light-2);
|
|
outline-offset: 6px;
|
|
}
|
|
#profile-avatar-card .item.flex-relaxed-list {
|
|
color: var(--yorha-cursor-text);
|
|
background: var(--yorha-cursor);
|
|
padding-block: 18px;
|
|
}
|
|
#profile-avatar-card .item.flex-relaxed-list :is(a, span, strong) { color: inherit; }
|
|
#profile-avatar-card .item:not(:first-child) { border-top-color: var(--yorha-rule); }
|
|
|
|
/* Issue search and triage controls form one flat work surface. */
|
|
.issue-list .list-header {
|
|
background: var(--color-box-body);
|
|
border: 1px solid var(--yorha-rule);
|
|
border-top: 4px double var(--yorha-rule);
|
|
padding: 16px;
|
|
margin-bottom: 0;
|
|
}
|
|
.issue-list .issue-list-toolbar:not(.tw-hidden) {
|
|
padding: 12px 16px;
|
|
border: 1px solid var(--yorha-rule);
|
|
border-top: 0;
|
|
background: var(--color-box-body);
|
|
}
|
|
.issue-list .issue-list-toolbar .ui.secondary.filter.menu {
|
|
border: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.ui.compact.menu .active.item,
|
|
.ui.pagination.menu .active.item {
|
|
background: var(--yorha-cursor);
|
|
color: var(--yorha-cursor-text);
|
|
}
|
|
/* Gitea marks compact filter backgrounds !important, including on hover. */
|
|
.small-menu-items.ui.menu .item.active {
|
|
background: var(--yorha-cursor) !important;
|
|
color: var(--yorha-cursor-text);
|
|
}
|
|
.ui.compact.menu .active.item .svg { color: inherit; }
|
|
.issue.list > .item, .issue-list .issue-item {
|
|
border-bottom: 1px solid var(--color-secondary);
|
|
padding-block: 17px;
|
|
}
|
|
.issue-content .comment {
|
|
border-radius: 2px;
|
|
border-color: var(--yorha-rule);
|
|
}
|
|
.repository.view.issue .comment-header {
|
|
background: var(--color-box-header);
|
|
border-bottom: 1px solid var(--yorha-rule);
|
|
}
|
|
.repository.view.issue .comment-body { padding: 20px; line-height: 1.7; }
|
|
.issue-content-right .ui.divider {
|
|
height: 4px;
|
|
border-block: 1px solid var(--yorha-rule);
|
|
background: transparent;
|
|
}
|
|
.empty-placeholder, .issue-list .tw-text-center.tw-p-8:has(> h3) {
|
|
margin-block: 24px;
|
|
padding: 46px 22px;
|
|
border: 1px solid var(--color-secondary);
|
|
border-bottom: 4px double var(--yorha-rule);
|
|
background: var(--color-box-body);
|
|
}
|
|
|
|
/* Histories, packages, and data tables read as a structured ledger. */
|
|
.ui.table { border-color: var(--yorha-rule); border-radius: 2px; }
|
|
.ui.table > thead > tr > th {
|
|
background: var(--color-box-header);
|
|
color: var(--color-text-dark);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
letter-spacing: .06em;
|
|
border-color: var(--yorha-rule);
|
|
padding-block: 14px;
|
|
}
|
|
.ui.table > tbody > tr > td { border-color: var(--color-secondary); }
|
|
.commit-table .ui.table > tbody > tr > td { padding-block: 14px; }
|
|
.ui.pagination.menu {
|
|
border: 1px solid var(--yorha-rule);
|
|
background: var(--color-box-body);
|
|
border-radius: 2px;
|
|
box-shadow: none;
|
|
}
|
|
.ui.pagination.menu .item { min-width: 38px; min-height: 38px; border-radius: 0; }
|
|
.repository .diff-file-header {
|
|
background: var(--color-box-header);
|
|
border-top: 3px double var(--yorha-rule);
|
|
border-radius: 0;
|
|
}
|
|
.repository .file-view.markup { line-height: 1.7; }
|
|
.markup h1, .markup h2 { font-weight: 400; letter-spacing: -.025em; }
|
|
.markup h1 { border-bottom: 4px double var(--yorha-rule); padding-bottom: 16px; }
|
|
.markup blockquote {
|
|
border-left: 3px solid var(--color-text-light-2);
|
|
background: var(--color-light);
|
|
padding: 12px 18px;
|
|
}
|
|
|
|
/* Settings use the same row cursor as repository tabs. The gutter is real
|
|
padding, so labels can wrap without their marker colliding with text. */
|
|
.ui.vertical.menu { border: 1px solid var(--yorha-rule); border-radius: 2px; box-shadow: none; }
|
|
.ui.vertical.menu > .item { padding: 14px 16px; }
|
|
.ui.vertical.menu .active.item {
|
|
border-left: 4px solid var(--color-text-light-2);
|
|
background: var(--yorha-cursor);
|
|
color: var(--yorha-cursor-text);
|
|
border-radius: 0;
|
|
}
|
|
.ui.vertical.menu > .header.item {
|
|
border-bottom: 4px double var(--yorha-rule);
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
letter-spacing: .045em;
|
|
}
|
|
.ui.top.attached.header:not(.segment) {
|
|
border-top: 3px solid var(--color-text-light-2);
|
|
border-radius: 2px 2px 0 0;
|
|
padding: 16px 20px;
|
|
font-weight: 500;
|
|
letter-spacing: .025em;
|
|
}
|
|
.ui.attached.segment { border-color: var(--yorha-rule); }
|
|
:is(.user.settings, .repository.settings, .admin) .ui.form .field > label {
|
|
font-weight: 500;
|
|
margin-bottom: 9px;
|
|
}
|
|
.ui.form :is(input, textarea, select):disabled { opacity: .65; }
|
|
input[type="checkbox"]:is(:checked, :indeterminate)::before {
|
|
background: var(--yorha-cursor-text);
|
|
}
|
|
.ui.toggle.checkbox input:checked ~ label::after { background: var(--yorha-cursor-text); }
|
|
.ui.message { border-radius: 2px; box-shadow: none; border-left-width: 3px; }
|
|
.ui.ui.ui.label:not(.basic):is(.red, .green, .blue, .yellow, .orange, .purple, .violet, .pink, .teal, .olive, .brown, .grey),
|
|
a.ui.ui.ui.label:not(.basic):is(.red, .green, .blue, .yellow, .orange, .purple, .violet, .pink, .teal, .olive, .brown, .grey):hover {
|
|
color: var(--yorha-filled-text);
|
|
}
|
|
.ui.modal { border: 1px solid var(--yorha-rule); border-radius: 2px; }
|
|
.ui.modal > .header {
|
|
background: var(--yorha-cursor);
|
|
color: var(--yorha-cursor-text);
|
|
font-size: 23px;
|
|
font-weight: 400;
|
|
padding: 22px;
|
|
}
|
|
.ui.modal > .actions { border-top: 4px double var(--yorha-rule); }
|
|
|
|
@media (min-width: 1280px) and (min-height: 600px) {
|
|
#navbar { border-radius: 2px; border-bottom: 5px double var(--yorha-rule); }
|
|
#navbar-logo { border-bottom: 4px double var(--yorha-rule); }
|
|
}
|
|
@media (max-width: 767.98px) {
|
|
:is(.explore.repositories, .user.profile) .flex-divided-list.items-with-main { padding-inline: 12px; }
|
|
:is(.explore.repositories, .user.profile) .items-with-main > .item { column-gap: 10px; }
|
|
:is(.explore.repositories, .user.profile) .items-with-main .item-title { font-size: 18px; }
|
|
:is(.explore.repositories, .user.profile) .items-with-main .item-leading {
|
|
width: 28px; height: 28px; flex-basis: 28px;
|
|
}
|
|
.issue-list .list-header, .issue-list .issue-list-toolbar:not(.tw-hidden) { padding: 12px 8px; }
|
|
.ui.secondary.pointing.menu:not(.filter) .item { padding-inline: 12px; }
|
|
.ui.top.attached.header:not(.segment) { padding-inline: 14px; }
|
|
}
|