discourse/app/assets/stylesheets/common/base/history.scss
Régis Hanol e7f251c105 LOTS of changes to properly handle post/topic revisions
FIX: history revision can now properly be hidden
FIX: PostRevision serializer is now entirely dynamic to properly handle
hidden revisions
FIX: default history modal to "side by side" view on mobile
FIX: properly hiden which revision has been hidden
UX: inline category/user/wiki/post_type changes with the revision
details
FEATURE: new '/posts/:post_id/revisions/latest' endpoint to retrieve
latest revision
UX: do not show the hide/show revision button on mobile (no room for
them)
UX: remove CSS transitions on the buttons in the history modal
FIX: PostRevisor now handles all the changes that might create new
revisions
FIX: PostRevision.ensure_consistency! was wrong due to off by 1
mistake...
refactored topic's callbacks for better readability
extracted 'PostRevisionGuardian'
2014-10-27 22:06:43 +01:00

94 lines
1.8 KiB
SCSS

// styles that apply to the popup that appears when you show the edit history of a post
.modal.history-modal {
#revision-numbers {
display: inline-block;
min-width: 100px;
text-align: center;
}
#revision-loading {
.fa {
margin-right: 7px;
}
}
#revisions .row:first-of-type {
margin-top: 10px;
}
ins, .diff-ins {
code, img {
border: 2px solid $success;
}
img {
opacity: .75;
filter: alpha(opacity=75);
}
a {
color: $success;
text-decoration: none;
}
}
img.diff-ins, code.diff-ins {
border: 2px solid $success;
}
img.diff-ins {
opacity: .75;
filter: alpha(opacity=75);
}
.diff-ins {
background: scale-color($success, $lightness: 90%);
}
ins {
color: $success;
background: scale-color($success, $lightness: 90%);
}
del, .diff-del {
code, img {
border: 2px solid $danger;
}
img {
opacity: .5;
filter: alpha(opacity=50);
}
a {
color: $danger;
text-decoration: none;
}
}
img.diff-del, code.diff-del {
border: 2px solid $danger;
}
img.diff-del {
opacity: .5;
filter: alpha(opacity=50);
}
.diff-del {
background: scale-color($danger, $lightness: 60%);
}
del {
color: $danger;
background: scale-color($danger, $lightness: 60%);
}
span.date {
font-weight: bold;
}
span.edit-reason {
background-color: lighten($highlight, 23%);
padding: 3px 5px 5px 5px;
}
.fa-ban {
color: #f00;
}
.hidden-revision-either {
opacity: .5;
}
.hidden-revision-previous .row {
div:nth-of-type(1), td:nth-of-type(1) {
opacity: .5;
}
}
.hidden-revision-current .row {
div:nth-of-type(2), td:nth-of-type(2) {
opacity: .5;
}
}
}