1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-01 17:38:33 +00:00

Rework blame template and styling (#11885)

* Rework blame template and styling

* cleanup template and add missing NumLines

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
Cirno the Strongest 2020-06-15 20:39:39 +02:00 committed by GitHub
parent a7f7d1399f
commit c8780984f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 54 additions and 73 deletions

View file

@ -1069,7 +1069,6 @@ i.icons {
}
.lines-num {
vertical-align: top;
text-align: right !important;
color: #999999;
background: #f5f5f5;
@ -1077,7 +1076,13 @@ i.icons {
user-select: none;
span {
&:before {
&.bottom-line {
&:after {
border-bottom: 1px solid #eaecef;
}
}
&:after {
content: attr(data-line-number);
line-height: 20px !important;
padding: 0 10px;
@ -1090,6 +1095,7 @@ i.icons {
.lines-num,
.lines-code {
padding: 0 !important;
vertical-align: top;
pre,
ol,
@ -1101,7 +1107,7 @@ i.icons {
li {
display: block;
width: calc(100% - 1ch);
margin-left: 1ch;
padding-left: 1ch;
}
}
}
@ -1149,7 +1155,6 @@ i.icons {
}
}
.lines-num,
.lines-code,
.lines-commit {
.bottom-line {

View file

@ -1,5 +1,4 @@
.repository {
padding-top: 15px;
.repo-header {
@ -246,6 +245,12 @@
}
&.file.list {
&.blame {
.ui.container:not(.flex) {
width: 98%;
}
}
.repo-description {
display: flex;
justify-content: space-between;
@ -1646,7 +1651,6 @@
width: 1%;
min-width: 50px;
user-select: none;
vertical-align: top;
span.fold {
display: block;