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