* Optimize pages.

This commit is contained in:
caoyanyi
2022-07-25 16:55:08 +08:00
parent de70b2747f
commit 68468256cd
7 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ table.diff {margin-bottom: 0px;}
.diff .line-new, .diff .line-new {background: #CFC;}
.diff .line-old, .diff .line-old {background: #FCC;}
.diff .line-all, .diff .line-all {background: #FFF;}
.diff .w-num {width: 25px; border-right: 1px solid #E4E4E4; color: #999; border-left: 1px solid #E4E4E4; color: #999; font-weight: normal;}
.diff .w-num {width: 25px; border-right: 1px solid #E4E4E4; background: #fafafa; border-left: 1px solid #E4E4E4; color: #999; font-weight: normal;}
.repoCode .diff tr.over td.line-all, .repoCode .diff tr.over td.line-all {background: #f8eec7;}
.repoCode .diff tr.over td.line-new, .repoCode .diff tr.over td.line-new {background: #8eff8e;}
+1 -1
View File
@@ -7,5 +7,5 @@
.topLine {border-top: 1px solid #ccc;}
.topLine td.info {padding: 8px 4px;}
pre {margin-bottom: 0px; display: block; white-space: pre-wrap; padding: 0px 3px; border: 0px; background: none;}
.line {font-weight: bold; border: 1px solid #E4E4E4; background-color: #ECECEC; text-align: right;}
.line {font-weight: bold; border: 1px solid #E4E4E4; background-color: #fafafa; color: #999; text-align: center;}
.panel-actions.pull-right {margin-top: -5px;}
+1 -2
View File
@@ -4,10 +4,9 @@ a:hover, a:active {text-decoration:underline; color: #C61A1A;}
#swapper .col-footer a:hover {color: #0c64eb;}
h2,h3 {font-size: 20px; margin: 0; clear: both;}
h3 {font-size: 16px;}
.revision {font-size: 12px; line-height: 20px; text-align: right; padding-right: 8px;}
.revision {line-height: 20px; text-align: right; padding-right: 8px;}
.directory {background-image:url('theme/default/images/repo/dir.png');}
.file {background-image:url('theme/default/images/repo/txt.png');}
//.icon {width: 17px; padding-left: 10px; padding-right: 2px;}
.mini-icon {display: inline-block; height: 16px; width: 16px; background-color: transparent; background-position: 0 0; background-repeat: no-repeat; vertical-align: text-bottom;}
.action {float: left;}
.input-group select#encrypt {border-left: 0px;}
+1 -1
View File
@@ -9,7 +9,7 @@ table.diff {margin-bottom: 0px;}
.diff .line-new, .diff .line-new {background: #CFC;}
.diff .line-old, .diff .line-old {background: #FCC;}
.diff .line-all, .diff .line-all {background: #FFF;}
.diff .w-num {width: 25px; border-right: 1px solid #E4E4E4; color: #999; border-left: 1px solid #E4E4E4; color: #999; font-weight: normal;}
.diff .w-num {width: 25px; border-right: 1px solid #E4E4E4; background: #fafafa; border-left: 1px solid #E4E4E4; color: #999; font-weight: normal;}
.repoCode .diff tr .comment-btn .icon-wrapper {left: -23px;}
.repoCode .diff tr.over td.line-all, .repoCode .diff tr.over td.line-all {background: #f8eec7;}
+1
View File
@@ -2,3 +2,4 @@
.change li {list-style: none;}
.panel-heading {border-bottom: 1px solid #ddd;}
.back-btn {margin-right: 5px !important;}
.compare-all {top: 0 !important;}
+1 -2
View File
@@ -2,7 +2,7 @@
.code .content {border: 1px solid #CCC; padding: 0;}
.repoCode pre {margin: 0; padding: 0; background: white; border: none;}
tr,th,td {border-bottom: none;}
.repoCode pre > table > tbody > tr > th {border-right: 1px solid #E4E4E4; width: 40px; text-align: right; vertical-align: top;}
.repoCode pre > table > tbody > tr > th {border-right: 1px solid #E4E4E4; background: #fafafa; color: #999; width: 40px; text-align: right; vertical-align: top;}
.repoCode pre > table > tbody > tr > th, .repoCode pre > table > tbody > tr > td {padding: 1px 3px;}
.repoCode pre .commentContent {line-height: 1.4;}
.repoCode pre > table {border: 0px; width: 100%;}
@@ -14,4 +14,3 @@ tr,th,td {border-bottom: none;}
.body-modal .panel-actions {right: 30px;}
.icon-angle-left {transform: rotateY(180deg);}
#main {padding: 20px 0;}
#sidebar > .side-body {width: 560px;}
+2 -2
View File
@@ -35,8 +35,8 @@ $typeInfo = $type == 'file' ? '&type=file' : '';
<div class='cell'>
<div class='detail'>
<div class='detail-title'>
<?php echo $lang->repo->changes;?>
<div class='pull-right'><?php if(common::hasPriv('repo', 'diff')) echo html::a($this->repo->createLink('diff', "repoID=$repoID&objectID=$objectID&entry=&fromRevision=$oldRevision&toRevision=$revision"), $lang->repo->diffAll, '', "data-app='{$app->tab}'");?></div>
<span><?php echo $lang->repo->changes;?></span>
<span class='pull-right compare-all'><?php if(common::hasPriv('repo', 'diff')) echo html::a($this->repo->createLink('diff', "repoID=$repoID&objectID=$objectID&entry=&fromRevision=$oldRevision&toRevision=$revision"), $lang->repo->diffAll, '', "data-app='{$app->tab}'");?></span>
</div>
<div class='detail-content'>
<table class='table no-margin'>