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 {
|
2023-10-03 21:42:09 +08:00
|
|
|
.modal-inner-container {
|
|
|
|
max-width: var(--d-max-width);
|
|
|
|
width: 100dvw;
|
|
|
|
}
|
|
|
|
&.--mode-inline {
|
|
|
|
.modal-inner-container {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-04 04:01:40 +08:00
|
|
|
.modal-body:not(.theme-change-modal-body) {
|
2023-10-03 21:42:09 +08:00
|
|
|
min-height: 65dvh;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-footer {
|
|
|
|
gap: 0.5em;
|
|
|
|
justify-content: space-between;
|
2023-05-13 01:53:54 +08:00
|
|
|
}
|
|
|
|
|
2014-03-19 07:36:02 +08:00
|
|
|
#revision-numbers {
|
|
|
|
display: inline-block;
|
2023-10-03 21:42:09 +08:00
|
|
|
min-width: 7em;
|
2014-03-19 07:36:02 +08:00
|
|
|
text-align: center;
|
|
|
|
}
|
2017-01-27 10:49:17 +08:00
|
|
|
|
|
|
|
#revision {
|
2023-09-27 05:50:09 +08:00
|
|
|
display: flex;
|
2023-10-03 21:42:09 +08:00
|
|
|
flex-wrap: wrap;
|
2023-09-27 05:50:09 +08:00
|
|
|
justify-content: space-between;
|
2023-10-03 21:42:09 +08:00
|
|
|
gap: 0.5em 0;
|
2023-09-27 05:50:09 +08:00
|
|
|
align-items: center;
|
2023-10-03 21:42:09 +08:00
|
|
|
padding-bottom: 0.5em;
|
2017-01-27 10:49:17 +08:00
|
|
|
overflow: auto;
|
2020-08-04 10:57:10 +08:00
|
|
|
border-bottom: 3px solid var(--primary-low);
|
2023-10-03 21:42:09 +08:00
|
|
|
@include breakpoint(tablet) {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
@include breakpoint(mobile-large) {
|
|
|
|
padding-bottom: 0.5em;
|
|
|
|
}
|
2017-01-27 10:49:17 +08:00
|
|
|
}
|
|
|
|
|
2023-09-27 05:50:09 +08:00
|
|
|
#revision-details {
|
|
|
|
display: flex;
|
2023-10-03 21:42:09 +08:00
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
2023-09-27 05:50:09 +08:00
|
|
|
gap: 0.5em;
|
2023-10-03 21:42:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#display-modes {
|
|
|
|
.nav {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
2023-09-27 05:50:09 +08:00
|
|
|
}
|
2023-10-03 21:42:09 +08:00
|
|
|
@include breakpoint(tablet) {
|
|
|
|
width: 100%;
|
|
|
|
margin-top: 0.5em;
|
|
|
|
.nav-pills {
|
|
|
|
width: 100%;
|
|
|
|
li {
|
|
|
|
margin: 0;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
width: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.revision-details__user {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-09-27 05:50:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.revision__title,
|
|
|
|
.body-diff,
|
|
|
|
table.markdown > tbody > tr,
|
|
|
|
.-tag-revisions {
|
|
|
|
--gap-width: 1rem;
|
|
|
|
display: flex;
|
|
|
|
gap: 0 var(--gap-width);
|
|
|
|
}
|
|
|
|
|
2023-10-03 21:42:09 +08:00
|
|
|
.mobile-view & {
|
|
|
|
.-tag-revisions {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.discourse-tags {
|
|
|
|
display: inline;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.inline-diff {
|
|
|
|
width: 100%;
|
|
|
|
max-width: var(--modal-max-width);
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
word-wrap: anywhere; // prevent long strings from breaking modal width
|
|
|
|
min-width: 0;
|
|
|
|
overflow: auto;
|
|
|
|
flex: 0 1 auto;
|
|
|
|
}
|
|
|
|
|
2023-09-27 05:50:09 +08:00
|
|
|
.revision__title {
|
|
|
|
margin: 0;
|
|
|
|
line-height: var(--line-height-medium);
|
|
|
|
}
|
|
|
|
|
2023-10-03 21:42:09 +08:00
|
|
|
&:not(.--mode-inline) {
|
|
|
|
.-tag-revisions span {
|
|
|
|
flex: 0 1 50%;
|
|
|
|
min-width: 0;
|
|
|
|
align-self: start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-30 04:15:50 +08:00
|
|
|
.revision-content {
|
2023-10-03 21:42:09 +08:00
|
|
|
flex: 0 1 50%;
|
2023-09-28 22:31:24 +08:00
|
|
|
min-width: 0;
|
2023-09-27 05:50:09 +08:00
|
|
|
}
|
2019-03-29 12:38:44 +08:00
|
|
|
|
2023-10-03 21:42:09 +08:00
|
|
|
.markdown {
|
|
|
|
font-family: monospace;
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
|
|
|
td {
|
|
|
|
word-wrap: anywhere;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
flex: 0 1 50%;
|
|
|
|
}
|
2023-09-27 05:50:09 +08:00
|
|
|
tbody {
|
|
|
|
border: none;
|
2018-01-30 04:15:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-27 05:50:09 +08:00
|
|
|
#revision-controls {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-10-03 21:42:09 +08:00
|
|
|
|
2023-09-27 05:50:09 +08:00
|
|
|
.btn {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2023-10-03 21:42:09 +08:00
|
|
|
|
|
|
|
@include breakpoint(tablet) {
|
|
|
|
width: 100%;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
2023-09-27 05:50:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[class^="revision-controls--"] {
|
|
|
|
display: flex;
|
|
|
|
gap: 0 1em;
|
2018-02-24 10:41:40 +08:00
|
|
|
}
|
|
|
|
|
2023-05-24 08:59:13 +08:00
|
|
|
#revisions {
|
2023-10-03 21:42:09 +08:00
|
|
|
word-wrap: break-word;
|
|
|
|
table {
|
|
|
|
margin-top: 10px;
|
|
|
|
tr {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-24 08:59:13 +08:00
|
|
|
.row:first-of-type {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
2023-05-31 05:29:04 +08:00
|
|
|
.revision-content table {
|
2023-05-24 08:59:13 +08:00
|
|
|
thead {
|
|
|
|
th {
|
|
|
|
padding-bottom: 2px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
padding: 3px 3px 3px 0.5em;
|
|
|
|
img {
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-10-28 05:06:43 +08:00
|
|
|
}
|
2023-05-24 08:59:13 +08:00
|
|
|
|
2023-09-27 05:50:09 +08:00
|
|
|
#revision-footer-buttons {
|
|
|
|
display: flex;
|
|
|
|
gap: 0.5em;
|
|
|
|
button {
|
|
|
|
margin: 0;
|
2023-10-03 21:42:09 +08:00
|
|
|
flex: 1 1 auto;
|
|
|
|
min-width: 0;
|
|
|
|
.d-button-label {
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include breakpoint(tablet) {
|
|
|
|
width: 100%;
|
|
|
|
flex: 1 1 100%;
|
|
|
|
button {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
ins,
|
|
|
|
.diff-ins,
|
|
|
|
del,
|
|
|
|
.diff-del {
|
|
|
|
color: var(--primary);
|
|
|
|
text-decoration: none;
|
|
|
|
code,
|
|
|
|
img {
|
|
|
|
border: 2px solid;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
2023-09-27 05:50:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
ins,
|
|
|
|
.diff-ins {
|
2023-10-03 21:42:09 +08:00
|
|
|
background: var(--success-low);
|
2018-06-08 17:49:31 +08:00
|
|
|
code,
|
|
|
|
img {
|
2023-10-03 21:42:09 +08:00
|
|
|
border-color: var(--success);
|
2013-12-12 10:41:34 +08:00
|
|
|
}
|
|
|
|
img {
|
2018-06-08 17:49:31 +08:00
|
|
|
opacity: 0.75;
|
2013-12-12 10:41:34 +08:00
|
|
|
filter: alpha(opacity=75);
|
|
|
|
}
|
|
|
|
a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--success);
|
2013-12-12 10:41:34 +08:00
|
|
|
}
|
|
|
|
}
|
2023-10-03 21:42:09 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
del,
|
|
|
|
.diff-del {
|
2023-10-03 21:42:09 +08:00
|
|
|
background: var(--danger-low);
|
|
|
|
text-decoration: none;
|
2018-06-08 17:49:31 +08:00
|
|
|
code,
|
|
|
|
img {
|
2023-10-03 21:42:09 +08:00
|
|
|
border-color: var(--danger);
|
2013-12-12 10:41:34 +08:00
|
|
|
}
|
|
|
|
img {
|
2018-06-08 17:49:31 +08:00
|
|
|
opacity: 0.5;
|
2013-12-12 10:41:34 +08:00
|
|
|
filter: alpha(opacity=50);
|
|
|
|
}
|
|
|
|
a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--danger);
|
2013-12-12 10:41:34 +08:00
|
|
|
}
|
|
|
|
}
|
2023-10-03 21:42:09 +08:00
|
|
|
|
2013-12-12 10:41:34 +08:00
|
|
|
span.date {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
span.edit-reason {
|
2023-02-21 17:15:49 +08:00
|
|
|
background-color: var(--highlight-bg);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2017-11-24 00:14:51 +08:00
|
|
|
.d-icon-ban {
|
2023-09-27 05:50:09 +08:00
|
|
|
color: var(--danger);
|
2014-05-13 20:53:11 +08:00
|
|
|
}
|
2014-10-28 05:06:43 +08:00
|
|
|
.hidden-revision-either {
|
2018-06-08 17:49:31 +08:00
|
|
|
opacity: 0.5;
|
2014-10-28 05:06:43 +08:00
|
|
|
}
|
|
|
|
.hidden-revision-previous .row {
|
2018-06-08 17:49:31 +08:00
|
|
|
div:nth-of-type(1),
|
|
|
|
td:nth-of-type(1) {
|
|
|
|
opacity: 0.5;
|
2014-10-28 05:06:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.hidden-revision-current .row {
|
2018-06-08 17:49:31 +08:00
|
|
|
div:nth-of-type(2),
|
|
|
|
td:nth-of-type(2) {
|
|
|
|
opacity: 0.5;
|
2014-10-28 05:06:43 +08:00
|
|
|
}
|
2014-10-16 22:32:02 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|