Commit | Line | Data |
---|---|---|
849204bd AE |
1 | /* edit history */ |
2 | .editHistoryDiff { | |
8ad880f7 AE |
3 | > .table { |
4 | table-layout: fixed; | |
5 | width: 100%; | |
6 | ||
7 | th { | |
8 | text-align: center; | |
9 | } | |
10 | ||
11 | td { | |
12 | background-color: rgb(250, 250, 250); | |
13 | color: rgb(44, 62, 80); | |
14 | padding: 5px; | |
15 | ||
16 | &:not(.diffSection) { | |
17 | border-bottom-width: 0 !important; | |
18 | } | |
19 | ||
20 | &:first-child:last-child:empty { | |
21 | display: none; | |
22 | } | |
23 | ||
24 | &:last-child:not(:first-child) { | |
25 | border-left: 1px solid $wcfContentBorderInner; | |
26 | } | |
27 | ||
28 | &.diffAdded { | |
29 | background-color: rgb(223, 240, 216); | |
30 | color: rgb(60, 118, 61); | |
31 | } | |
32 | ||
33 | &.diffRemoved { | |
34 | background-color: rgb(242, 222, 222); | |
35 | color: rgb(169, 68, 66); | |
36 | } | |
37 | ||
38 | &.diffSection { | |
39 | background-clip: padding-box; | |
40 | background-color: rgb(236, 239, 241); | |
41 | border-bottom: 20px solid transparent; | |
42 | color: rgb(44, 62, 80); | |
43 | padding: 10px; | |
44 | text-align: center; | |
45 | ||
46 | @include wcfFontHeadline; | |
47 | } | |
48 | } | |
49 | ||
50 | tr:not(:first-child) > .diffSection { | |
51 | border-top: 20px solid transparent; | |
52 | } | |
53 | ||
54 | & + form { | |
55 | /* Out of the way, Lydia! */ | |
56 | margin-top: 40px; | |
57 | } | |
58 | } | |
59 | ||
849204bd AE |
60 | > .sideBySide:first-child { |
61 | margin-bottom: 20px; | |
62 | text-align: center; | |
63 | } | |
64 | ||
65 | .sideBySide { | |
66 | display: flex; | |
67 | ||
68 | > div { | |
69 | flex: 0 0 50%; | |
ce280017 | 70 | max-width: 50%; |
849204bd AE |
71 | |
72 | &:first-child { | |
73 | padding-right: 10px; | |
74 | } | |
75 | ||
76 | &:last-child { | |
77 | padding-left: 10px; | |
78 | } | |
79 | } | |
80 | } | |
81 | } | |
82 | ||
83 | @include screen-sm-down { | |
84 | .editHistoryVersionList { | |
85 | .columnUser, | |
86 | .columnEditReason { | |
87 | display: none; | |
88 | } | |
89 | } | |
90 | } |