-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
_compare-revisions.scss
66 lines (53 loc) · 1.09 KB
/
_compare-revisions.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$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;
}
}
}