1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +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,4 +1,4 @@
.old-history-header { .old-history-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@@ -6,86 +6,92 @@
background-color: #f4f4f7; background-color: #f4f4f7;
font-size: 1rem; font-size: 1rem;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
} }
.old-history-main { .old-history-main {
padding: 16px 10% 0; padding: 16px 10% 0;
display: inline !important; display: inline !important;
overflow: auto; overflow: auto;
position: relative; position: relative;
min-height: 1px; min-height: 1px;
} }
.old-history-main .go-back { .old-history-main .go-back {
font-size: 25px; font-size: 25px;
color: #ccc; color: #ccc;
float: left; float: left;
margin-left: -20px; margin-left: -3rem;
} }
.old-history-main .go-back:hover { .old-history-main .go-back:hover {
color:#ff9933; color:#ff9933;
text-decoration: none; text-decoration: none;
} }
.old-history-main .get-more-btn { .old-history-main .get-more-btn {
width: 100%; width: 100%;
padding: .5em 0; padding: .5em 0;
background: #efefef; background: #efefef;
border: 0; border: 0;
color: #777; color: #777;
border-radius: 2px; border-radius: 2px;
} }
.old-history-main .get-more-btn:hover { .old-history-main .get-more-btn:hover {
color: #444; color: #444;
} }
.old-history-main p { .old-history-main p {
color: #808080; color: #808080;
font-size: 12px; font-size: 12px;
margin-top: 0; margin-top: 0;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.old-history-main h2 { .old-history-main h2 {
font-size: 1.5em; font-size: 1.5em;
color: #222; color: #222;
font-weight: bold; font-weight: bold;
line-height: 1.5; line-height: 1.5;
} }
.old-history-main .file-name { .old-history-main .file-name {
color: #ee8204; color: #ee8204;
word-wrap: break-word; word-wrap: break-word;
} }
.old-history-main .commit-list { .old-history-main .commit-list {
width: 100%; width: 100%;
margin: 8px 0 40px; margin: 8px 0 40px;
} }
.old-history-main .commit-list .avatar { .old-history-main .commit-list .avatar {
width: 16px; width: 16px;
height: 16px; height: 16px;
border-radius: 2px; border-radius: 2px;
} }
.old-history-main .commit-list .username { .old-history-main .commit-list .username {
vertical-align: middle; vertical-align: middle;
color: #eb8205; color: #eb8205;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
} }
.old-history-more-operation i { .old-history-more-operation i {
color: #999; color: #999;
cursor: pointer; cursor: pointer;
} }
.old-history-more-operation a:hover { .old-history-more-operation a:hover {
text-decoration: none; text-decoration: none;
} }
.old-history-more-operation i:hover { .old-history-more-operation i:hover {
color: #666; color: #666;
}
@media (max-width: 768px) {
.old-history-main .go-back {
margin-left: -2rem;
} }
}

View File

@@ -216,7 +216,6 @@ class FileHistory extends React.Component {
<span className="fas fa-chevron-left"></span> <span className="fas fa-chevron-left"></span>
</a> </a>
<h2><span className="file-name">{fileName}</span>{' '}{gettext('History Versions')}</h2> <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>
<div> <div>
{this.state.isLoading && <Loading />} {this.state.isLoading && <Loading />}