mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-03 00:44:35 -04:00
Reorganize CSS files (#24739)
Reorganize various CSS files for clarity, group together by subdirectory in `index.css`. This reorders some of the rules, but I don't think it should introduce any issues because of that.
This commit is contained in:
parent
c78b923822
commit
b926f96da7
16 changed files with 35 additions and 28 deletions
44
web_src/css/repo/issue-label.css
Normal file
44
web_src/css/repo/issue-label.css
Normal file
|
@ -0,0 +1,44 @@
|
|||
.issue-label-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.issue-label-list .item {
|
||||
border-bottom: 1px solid var(--color-secondary);
|
||||
display: flex;
|
||||
padding: 1em 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.issue-label-list .item:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.issue-label-list .item:last-child {
|
||||
border-bottom: none;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.issue-label-list .item .label-title {
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.issue-label-list .item .label-issues {
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.issue-label-list .item .label-operation {
|
||||
width: 33%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.issue-label-list .item a {
|
||||
font-size: 12px;
|
||||
padding-right: 10px;
|
||||
color: var(--color-text-light);
|
||||
}
|
||||
|
||||
.issue-label-list .item.org-label {
|
||||
opacity: 0.7;
|
||||
}
|
15
web_src/css/repo/issue-list.css
Normal file
15
web_src/css/repo/issue-list.css
Normal file
|
@ -0,0 +1,15 @@
|
|||
.issue-list-toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.issue-list-toolbar-left {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.issue-list-toolbar-right {
|
||||
margin-left: auto;
|
||||
}
|
25
web_src/css/repo/linebutton.css
Normal file
25
web_src/css/repo/linebutton.css
Normal file
|
@ -0,0 +1,25 @@
|
|||
.code-view .lines-num:hover {
|
||||
color: var(--color-text-dark) !important;
|
||||
}
|
||||
|
||||
.code-line-menu {
|
||||
width: auto !important;
|
||||
border: none !important; /* the border is provided by tippy, not using the `.ui.menu` border */
|
||||
}
|
||||
|
||||
.code-line-button {
|
||||
background-color: var(--color-menu);
|
||||
color: var(--color-text-light);
|
||||
border: 1px solid var(--color-secondary);
|
||||
border-radius: var(--border-radius);
|
||||
padding: 1px 10px;
|
||||
position: absolute;
|
||||
font-family: var(--fonts-regular);
|
||||
left: 0;
|
||||
transform: translateX(-70%);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.code-line-button:hover {
|
||||
color: var(--color-primary);
|
||||
}
|
36
web_src/css/repo/list-header.css
Normal file
36
web_src/css/repo/list-header.css
Normal file
|
@ -0,0 +1,36 @@
|
|||
.list-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: .5rem;
|
||||
}
|
||||
|
||||
.list-header-sort {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.list-header-search {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
min-width: 200px; /* to enable flexbox wrapping on mobile */
|
||||
}
|
||||
|
||||
.list-header-search .input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.small-menu-items {
|
||||
min-height: 35.4px !important; /* match .small.button in height */
|
||||
}
|
||||
|
||||
.small-menu-items .item {
|
||||
padding-top: 6px !important;
|
||||
padding-bottom: 6px !important;
|
||||
}
|
134
web_src/css/repo/release-tag.css
Normal file
134
web_src/css/repo/release-tag.css
Normal file
|
@ -0,0 +1,134 @@
|
|||
.repository.releases #release-list {
|
||||
margin-top: 12px;
|
||||
padding-top: 12px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.repository.releases #release-list .release-list-title {
|
||||
font-size: 2rem;
|
||||
font-weight: normal;
|
||||
margin-top: -4px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .meta,
|
||||
.repository.releases #release-list > li .detail {
|
||||
padding-top: 30px;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .meta {
|
||||
margin-top: 4px;
|
||||
text-align: right;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail {
|
||||
border-left: 1px solid var(--color-secondary);
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .author img {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download > a .svg {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download .list {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download .list li {
|
||||
list-style: none;
|
||||
display: block;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-secondary);
|
||||
background: var(--color-light);
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download .list li a > .text.right {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download .list li + li {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download .list li:first-of-type {
|
||||
border-radius: var(--border-radius) 0 0 var(--border-radius);
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download .list li:last-of-type {
|
||||
border-radius: 0 var(--border-radius) var(--border-radius) 0;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: var(--color-secondary-dark-3);
|
||||
z-index: 9;
|
||||
position: absolute;
|
||||
display: block;
|
||||
left: -5.5px;
|
||||
top: 40px;
|
||||
border-radius: 100%;
|
||||
border: 2.5px solid var(--color-body);
|
||||
}
|
||||
|
||||
.repository.tags #tags-table .tag {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
.repository.tags #tags-table .release-tag-name {
|
||||
font-size: 18px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.repository.new.release .target {
|
||||
min-width: 500px;
|
||||
}
|
||||
|
||||
.repository.new.release .target #tag-name {
|
||||
margin-top: -4px;
|
||||
}
|
||||
|
||||
.repository.new.release .target .at {
|
||||
margin-left: -5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.repository.new.release .target .selection.dropdown {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.repository.new.release .prerelease.field {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 438px) {
|
||||
.repository.new.release .field button,
|
||||
.repository.new.release .field input {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.repository.new.release .field button {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.repository.new.release .field .wrap_remove {
|
||||
height: 38px;
|
||||
}
|
||||
|
||||
.repository.new.release .field .attachment_edit {
|
||||
width: 450px !important;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue