mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
67 lines
1.1 KiB
SCSS
67 lines
1.1 KiB
SCSS
$color-addition-dark: #a6f3a6;
|
|
$color-addition-light: #ebffeb;
|
|
$color-deletion-dark: #f8cbcb;
|
|
$color-deletion-light: #ffebeb;
|
|
|
|
.comparison {
|
|
&__child-object {
|
|
border-top: 1px dashed $color-grey-4;
|
|
padding: 1em;
|
|
|
|
dd {
|
|
margin-inline-start: 40px;
|
|
}
|
|
|
|
&:first-child {
|
|
border-top: 0;
|
|
}
|
|
|
|
&.addition {
|
|
background-color: $color-addition-light;
|
|
}
|
|
|
|
&.deletion {
|
|
background-color: $color-deletion-light;
|
|
}
|
|
}
|
|
|
|
&__list {
|
|
margin-top: 0;
|
|
margin-bottom: -1em;
|
|
}
|
|
|
|
span.addition {
|
|
background-color: $color-addition-dark;
|
|
}
|
|
|
|
span.deletion {
|
|
background-color: $color-deletion-dark;
|
|
}
|
|
|
|
.preview-image {
|
|
display: inline-block;
|
|
|
|
&.addition,
|
|
&.deletion {
|
|
padding: 5px;
|
|
margin-inline-end: 5px;
|
|
border-style: solid;
|
|
border-width: 1px;
|
|
}
|
|
|
|
&.addition {
|
|
background-color: $color-addition-light;
|
|
border-color: $color-addition-dark;
|
|
}
|
|
|
|
&.deletion {
|
|
background-color: $color-deletion-light;
|
|
border-color: $color-deletion-dark;
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|