This commit is contained in:
Free 2021-08-31 16:15:57 +02:00
parent ffec99056c
commit fb6353fa52

View file

@ -1,6 +1,6 @@
/* ==UserStyle== /* ==UserStyle==
@name Gitea Modern @name Gitea Modern
@version 1.0.6 @version 1.0.7
@description A modern style for Gitea and Codeberg! @description A modern style for Gitea and Codeberg!
@updateURL https://codeberg.org/Freeplay/CSS-Styles/raw/branch/main/Gitea/theme-gitea-modern.user.css @updateURL https://codeberg.org/Freeplay/CSS-Styles/raw/branch/main/Gitea/theme-gitea-modern.user.css
@homepageURL https://codeberg.org/Freeplay/CSS-Styles @homepageURL https://codeberg.org/Freeplay/CSS-Styles
@ -456,7 +456,7 @@
margin-left: 4px; margin-left: 4px;
} }
@media only screen and (min-width: 850px) { @media only screen and (min-width: 850px) {
.page-content.repository:not(.issues.repository.milestones):not(.migrate) { .page-content.repository:not(.issues.repository.milestones) {
display: grid; display: grid;
grid-row-gap: 10px; grid-row-gap: 10px;
grid-template-columns: 100px calc(100% - 100px); grid-template-columns: 100px calc(100% - 100px);
@ -466,10 +466,13 @@
max-width: 100%; max-width: 100%;
margin: auto; margin: auto;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper { .page-content.repository:not(.issues.repository.milestones) > .middle {
grid-column: 1/span 2;
}
.page-content.repository:not(.issues.repository.milestones) .header-wrapper {
display: contents; display: contents;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper > .ui.container:first-child { .page-content.repository:not(.issues.repository.milestones) .header-wrapper > .ui.container:first-child {
grid-row: 1; grid-row: 1;
grid-column: 1/span 2; grid-column: 1/span 2;
width: 100%; width: 100%;
@ -477,8 +480,8 @@
border: 0 !important; border: 0 !important;
box-shadow: none !important; box-shadow: none !important;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper > .ui.container:first-child .avatar, .page-content.repository:not(.issues.repository.milestones) .header-wrapper > .ui.container:first-child .avatar,
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper > .ui.container:first-child .repo-icon { .page-content.repository:not(.issues.repository.milestones) .header-wrapper > .ui.container:first-child .repo-icon {
width: 50px !important; width: 50px !important;
height: 50px !important; height: 50px !important;
object-fit: contain; object-fit: contain;
@ -492,12 +495,12 @@
border-radius: 8px !important; border-radius: 8px !important;
z-index: 2; z-index: 2;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper > .ui.container:first-child .repo-title-wrap { .page-content.repository:not(.issues.repository.milestones) .header-wrapper > .ui.container:first-child .repo-title-wrap {
display: flex; display: flex;
flex-direction: row !important; flex-direction: row !important;
align-items: center; align-items: center;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper > .ui.container:first-child .fork-flag { .page-content.repository:not(.issues.repository.milestones) .header-wrapper > .ui.container:first-child .fork-flag {
margin: 0 !important; margin: 0 !important;
margin-left: 6px !important; margin-left: 6px !important;
padding: 2px 8px; padding: 2px 8px;
@ -505,7 +508,7 @@
border-radius: var(--base-border-radius); border-radius: var(--base-border-radius);
border: 1px solid var(--color-secondary); border: 1px solid var(--color-secondary);
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs {
order: -1; order: -1;
width: auto !important; width: auto !important;
margin: 0 !important; margin: 0 !important;
@ -521,7 +524,7 @@
min-height: calc(100vh - 40px); min-height: calc(100vh - 40px);
z-index: 2; z-index: 2;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs::before { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs::before {
content: ""; content: "";
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@ -532,17 +535,17 @@
box-shadow: 0 0 20px 20px var(--color-body); box-shadow: 0 0 20px 20px var(--color-body);
opacity: 0.8; opacity: 0.8;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs .tabular { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs .tabular {
flex-direction: column !important; flex-direction: column !important;
padding-right: 30px; padding-right: 30px;
overflow: visible !important; overflow: visible !important;
padding-left: 0; padding-left: 0;
border-bottom: 0 !important; border-bottom: 0 !important;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs .tabular::before { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs .tabular::before {
content: unset !important; content: unset !important;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs .tabular .item { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs .tabular .item {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
text-align: center; text-align: center;
@ -554,7 +557,7 @@
opacity: 0.7; opacity: 0.7;
border-radius: 12px !important; border-radius: 12px !important;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs .tabular .item svg { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs .tabular .item svg {
margin: 0; margin: 0;
width: 22px; width: 22px;
height: 22px; height: 22px;
@ -564,21 +567,21 @@
overflow: visible; overflow: visible;
order: -2; order: -2;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs .tabular .item .label { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs .tabular .item .label {
margin: 0 !important; margin: 0 !important;
margin-top: -3px !important; margin-top: -3px !important;
margin-bottom: 6px !important; margin-bottom: 6px !important;
order: -1; order: -1;
position: relative; position: relative;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs .tabular .item.active { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs .tabular .item.active {
border: none; border: none;
opacity: 1; opacity: 1;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs .tabular .item.active::before { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs .tabular .item.active::before {
content: unset !important; content: unset !important;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs .tabular .item.active::after { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs .tabular .item.active::after {
all: unset; all: unset;
content: ""; content: "";
position: absolute; position: absolute;
@ -591,16 +594,16 @@
border-radius: 12px !important; border-radius: 12px !important;
z-index: -1; z-index: -1;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs .tabular .item:hover { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs .tabular .item:hover {
opacity: 0.9 !important; opacity: 0.9 !important;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .tabs .tabular .right.menu { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .tabs .tabular .right.menu {
display: contents; display: contents;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) .header-wrapper .divider { .page-content.repository:not(.issues.repository.milestones) .header-wrapper .divider {
display: none; display: none;
} }
.page-content.repository:not(.issues.repository.milestones):not(.migrate) > .ui.container { .page-content.repository:not(.issues.repository.milestones) > .ui.container {
width: 100%; width: 100%;
} }
#project-board { #project-board {