1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00
This commit is contained in:
Michael An
2019-04-25 11:32:20 +08:00
parent eaeb75fddc
commit 3f67bd62e4
2 changed files with 93 additions and 88 deletions

View File

@@ -1,91 +1,97 @@
.old-history-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #e8e8e8;
background-color: #f4f4f7;
font-size: 1rem;
padding: 0.5rem 1rem;
}
.old-history-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #e8e8e8;
background-color: #f4f4f7;
font-size: 1rem;
padding: 0.5rem 1rem;
}
.old-history-main {
padding: 16px 10% 0;
display: inline !important;
overflow: auto;
position: relative;
min-height: 1px;
}
.old-history-main {
padding: 16px 10% 0;
display: inline !important;
overflow: auto;
position: relative;
min-height: 1px;
}
.old-history-main .go-back {
font-size: 25px;
color: #ccc;
float: left;
margin-left: -3rem;
}
.old-history-main .go-back:hover {
color:#ff9933;
text-decoration: none;
}
.old-history-main .get-more-btn {
width: 100%;
padding: .5em 0;
background: #efefef;
border: 0;
color: #777;
border-radius: 2px;
}
.old-history-main .get-more-btn:hover {
color: #444;
}
.old-history-main p {
color: #808080;
font-size: 12px;
margin-top: 0;
margin-bottom: 1rem;
}
.old-history-main h2 {
font-size: 1.5em;
color: #222;
font-weight: bold;
line-height: 1.5;
}
.old-history-main .file-name {
color: #ee8204;
word-wrap: break-word;
}
.old-history-main .commit-list {
width: 100%;
margin: 8px 0 40px;
}
.old-history-main .commit-list .avatar {
width: 16px;
height: 16px;
border-radius: 2px;
}
.old-history-main .commit-list .username {
vertical-align: middle;
color: #eb8205;
text-decoration: none;
font-weight: bold;
}
.old-history-more-operation i {
color: #999;
cursor: pointer;
}
.old-history-more-operation a:hover {
text-decoration: none;
}
.old-history-more-operation i:hover {
color: #666;
}
@media (max-width: 768px) {
.old-history-main .go-back {
font-size: 25px;
color: #ccc;
float: left;
margin-left: -20px;
margin-left: -2rem;
}
.old-history-main .go-back:hover {
color:#ff9933;
text-decoration: none;
}
.old-history-main .get-more-btn {
width: 100%;
padding: .5em 0;
background: #efefef;
border: 0;
color: #777;
border-radius: 2px;
}
.old-history-main .get-more-btn:hover {
color: #444;
}
.old-history-main p {
color: #808080;
font-size: 12px;
margin-top: 0;
margin-bottom: 1rem;
}
.old-history-main h2 {
font-size: 1.5em;
color: #222;
font-weight: bold;
line-height: 1.5;
}
.old-history-main .file-name {
color: #ee8204;
word-wrap: break-word;
}
.old-history-main .commit-list {
width: 100%;
margin: 8px 0 40px;
}
.old-history-main .commit-list .avatar {
width: 16px;
height: 16px;
border-radius: 2px;
}
.old-history-main .commit-list .username {
vertical-align: middle;
color: #eb8205;
text-decoration: none;
font-weight: bold;
}
.old-history-more-operation i {
color: #999;
cursor: pointer;
}
.old-history-more-operation a:hover {
text-decoration: none;
}
.old-history-more-operation i:hover {
color: #666;
}
}

View File

@@ -216,7 +216,6 @@ class FileHistory extends React.Component {
<span className="fas fa-chevron-left"></span>
</a>
<h2><span className="file-name">{fileName}</span>{' '}{gettext('History Versions')}</h2>
<p>{gettext('A new version will be generated after each modification, and you can restore the file to a previous version.')}</p>
</div>
<div>
{this.state.isLoading && <Loading />}