discourse/app/assets/stylesheets/common/base/history.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

191 lines
3.2 KiB
SCSS
Raw Normal View History

2013-12-12 10:41:34 +08:00
// styles that apply to the popup that appears when you show the edit history of a post
2013-09-06 03:37:07 +08:00
.modal.history-modal {
.modal-body:not(.theme-change-modal-body) {
max-height: 70vh;
}
#revision-numbers {
display: inline-block;
min-width: 96px;
text-align: center;
}
#revision {
display: flex;
justify-content: space-between;
padding-bottom: 0.5em;
align-items: center;
overflow: auto;
border-bottom: 3px solid var(--primary-low);
}
#revision-details {
display: flex;
align-items: baseline;
gap: 0.5em;
.d-icon {
align-self: center;
}
}
.revision__title,
.body-diff,
table.markdown > tbody > tr,
.-tag-revisions {
--gap-width: 1rem;
display: flex;
gap: 0 var(--gap-width);
}
.revision__title {
margin: 0;
line-height: var(--line-height-medium);
}
.-tag-revisions span,
.revision-content {
flex: 0 0 calc(50% - (var(--gap-width) / 2));
}
table.markdown {
tbody {
border: none;
}
}
#revision-controls {
display: flex;
align-items: center;
.btn {
margin: 0;
}
}
[class^="revision-controls--"] {
display: flex;
gap: 0 1em;
2018-02-24 10:41:40 +08:00
}
#revisions {
.row:first-of-type {
margin-top: 10px;
}
.revision-content table {
thead {
th {
padding-bottom: 2px;
font-weight: bold;
color: var(--primary);
}
}
td {
padding: 3px 3px 3px 0.5em;
img {
max-width: none;
}
}
}
}
#revision-footer-buttons {
display: flex;
gap: 0.5em;
button {
margin: 0;
}
}
ins,
.diff-ins {
code,
img {
border: 2px solid var(--success);
2013-12-12 10:41:34 +08:00
}
img {
opacity: 0.75;
2013-12-12 10:41:34 +08:00
filter: alpha(opacity=75);
}
a {
color: var(--success);
2013-12-12 10:41:34 +08:00
text-decoration: none;
}
}
img.diff-ins,
code.diff-ins {
border: 2px solid var(--success);
2013-12-12 10:41:34 +08:00
}
img.diff-ins {
opacity: 0.75;
2013-12-12 10:41:34 +08:00
filter: alpha(opacity=75);
}
.diff-ins {
color: var(--primary);
background: var(--success-low);
2013-12-12 10:41:34 +08:00
}
2013-09-06 03:37:07 +08:00
ins {
color: var(--primary);
background: var(--success-low);
text-decoration: none;
2013-12-12 10:41:34 +08:00
}
del,
.diff-del {
code,
img {
border: 2px solid var(--danger);
2013-12-12 10:41:34 +08:00
}
img {
opacity: 0.5;
2013-12-12 10:41:34 +08:00
filter: alpha(opacity=50);
}
a {
color: var(--danger);
2013-12-12 10:41:34 +08:00
text-decoration: none;
}
}
img.diff-del,
code.diff-del {
border: 2px solid var(--danger);
2013-12-12 10:41:34 +08:00
}
img.diff-del {
opacity: 0.5;
2013-12-12 10:41:34 +08:00
filter: alpha(opacity=50);
}
.diff-del {
color: var(--primary);
background: var(--danger-low);
text-decoration: none;
2013-09-06 03:37:07 +08:00
}
del {
color: var(--primary);
background: var(--danger-low);
text-decoration: none;
2013-12-12 10:41:34 +08:00
}
span.date {
font-weight: bold;
}
span.edit-reason {
background-color: var(--highlight-bg);
2013-12-12 10:41:34 +08:00
padding: 3px 5px 5px 5px;
2013-09-06 03:37:07 +08:00
}
.d-icon-ban {
color: var(--danger);
2014-05-13 20:53:11 +08:00
}
.hidden-revision-either {
opacity: 0.5;
}
.hidden-revision-previous .row {
div:nth-of-type(1),
td:nth-of-type(1) {
opacity: 0.5;
}
}
.hidden-revision-current .row {
div:nth-of-type(2),
td:nth-of-type(2) {
opacity: 0.5;
}
2014-10-16 22:32:02 +08:00
}
2013-09-06 03:37:07 +08:00
}