0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/client/scss/layouts/_compare-revisions.scss

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

79 lines
1.5 KiB
SCSS
Raw Normal View History

$color-addition-dark: var(--color-addition-dark);
$color-addition-light: var(--color-addition-light);
$color-deletion-dark: var(--color-deletion-dark);
$color-deletion-light: var(--color-deletion-light);
2016-11-23 14:37:23 +01:00
.comparison {
--color-addition-dark: #a6f3a6;
--color-addition-light: #ebffeb;
--color-deletion-dark: #f8cbcb;
--color-deletion-light: #ffebeb;
@include dark-theme() {
--color-addition-dark: #033a16;
--color-addition-light: #045720;
--color-deletion-dark: #67060c;
--color-deletion-light: #8e070f;
}
2017-01-05 11:45:41 +01:00
&__child-object {
border-top: 1px dashed theme('colors.border-furniture');
2017-01-05 11:45:41 +01:00
padding: 1em;
2018-11-28 21:58:35 +01:00
dd {
margin-inline-start: 40px;
2016-11-23 14:37:23 +01:00
}
2017-01-05 11:45:41 +01:00
&:first-child {
border-top: 0;
}
2016-11-23 14:37:23 +01:00
&.addition {
background-color: $color-addition-light;
}
&.deletion {
background-color: $color-deletion-light;
}
}
2016-11-23 14:37:23 +01:00
&__list {
margin-top: 0;
margin-bottom: -1em;
}
2016-11-23 14:37:23 +01:00
2017-01-05 11:45:41 +01:00
span.addition {
background-color: $color-addition-dark;
}
2016-11-23 14:37:23 +01:00
span.deletion {
2017-01-05 11:45:41 +01:00
background-color: $color-deletion-dark;
2016-11-23 14:37:23 +01:00
}
.preview-image {
display: inline-block;
2016-11-23 14:37:23 +01:00
&.addition,
&.deletion {
2017-01-05 11:45:41 +01:00
padding: 5px;
margin-inline-end: 5px;
2017-01-05 11:45:41 +01:00
border-style: solid;
border-width: 1px;
}
2016-11-23 14:37:23 +01:00
&.addition {
background-color: $color-addition-light;
2017-01-05 11:45:41 +01:00
border-color: $color-addition-dark;
}
2017-01-05 11:45:41 +01:00
&.deletion {
background-color: $color-deletion-light;
border-color: $color-deletion-dark;
}
img {
display: block;
2016-11-23 14:37:23 +01:00
}
}
2016-11-23 14:37:23 +01:00
}