blob: a494cdea914fcf3355eedd0de5c145c02e270aa8 (
plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
/**
* This file provides styles for the diff view, which shows you
* differences between two versions of a page (?do=diff).
*/
.mode_diff table.diff {
width: 100%;
border-width: 0;
}
.mode_diff table.diff th,
.mode_diff table.diff td {
vertical-align: top;
padding: 0;
border-width: 0;
/* no style.ini colours because deleted and added lines have a fixed background colour */
background-color: #fff;
color: #333;
}
/* table header */
.mode_diff table.diff th {
border-bottom: 1px solid @ini_border;
font-size: 110%;
font-weight: normal;
}
.mode_diff table.diff th a {
font-weight: bold;
}
.mode_diff table.diff th span.user {
font-size: .9em;
}
.mode_diff table.diff th span.sum {
font-size: .9em;
font-weight: bold;
}
.mode_diff table.diff th.minor {
color: #999;
}
.mode_diff table.diff_sidebyside th {
width: 50%;
}
/* table body */
.mode_diff table.diff .diff-lineheader {
width: .7em;
text-align: right;
}
[dir=rtl] .mode_diff table.diff .diff-lineheader {
text-align: left;
}
.mode_diff table.diff .diff-lineheader,
.mode_diff table.diff td {
font-family: @ini_mono_fonts;
background-color: #F6F8FA;
}
.mode_diff table.diff td.diff-blockheader {
font-weight: bold;
}
.mode_diff table.diff .diff-addedline {
background-color: #E4FFEE;
color: inherit;
}
.mode_diff table.diff .diff-deletedline {
background-color: #FFEEF0;
color: inherit;
}
.mode_diff table.diff td.diff-context {
background-color: #FFF;
color: inherit;
}
.mode_diff table.diff td.diff-addedline strong {
color: #23292E;
background-color: #A5F2C1;
font-weight: normal;
}
.mode_diff table.diff td.diff-deletedline strong {
color: #23292E;
background-color: #FFB7BF;
font-weight: normal;
}
/* diff options */
.mode_diff .diffoptions form {
float: left;
}
.mode_diff .diffoptions p {
float: right;
}
/* diff nav */
.mode_diff table.diff_sidebyside td.diffnav {
padding-bottom: .7em;
}
.mode_diff .diffnav a {
display: inline-block;
vertical-align: middle;
}
.mode_diff .diffnav a span {
display: none;
}
.mode_diff .diffnav a:hover,
.mode_diff .diffnav a:active,
.mode_diff .diffnav a:focus {
background-color: @ini_background_alt;
text-decoration: none;
}
.mode_diff .diffnav a:before {
display: inline-block;
line-height: 1;
padding: .2em .4em;
border: 1px solid @ini_border;
border-radius: 2px;
color: @ini_text;
}
.mode_diff .diffnav a.diffprevrev:before {
content: '\25C0'; /* left triangle */
}
.mode_diff .diffnav a.diffnextrev:before,
.mode_diff .diffnav a.difflastrev:before {
content: '\25B6'; /* right triangle */
}
.mode_diff .diffnav a.diffbothprevrev:before {
content: '\25C0\25C0';
}
.mode_diff .diffnav a.diffbothnextrev:before {
content: '\25B6\25B6';
}
.mode_diff .diffnav select {
width: 60%;
min-width: 9em;
height: 1.5em; /* height is necessary for longer options in Webkit */
}
.mode_diff .diffnav select option[selected] {
font-weight: bold;
}
/* dark mode overrides */
@media (prefers-color-scheme: dark) {
body.mode_diff.darkmode table.diff .diff-lineheader,
body.mode_diff.darkmode table.diff th,
body.mode_diff.darkmode table.diff td {
background-color: #1C2125;
color: #D0D5DA;
}
body.mode_diff.darkmode table.diff td.diff-context {
background-color: #23292E;
}
body.mode_diff.darkmode table.diff .diff-deletedline {
background-color: #49090F;
}
body.mode_diff.darkmode table.diff .diff-addedline {
background-color: #0A3A1E;
}
body.mode_diff.darkmode table.diff td.diff-addedline strong {
color: #FFF;
background-color: #038642;
}
body.mode_diff.darkmode table.diff td.diff-deletedline strong {
color: #FFF;
background-color: #BB0E27;
}
body.mode_diff.darkmode .diffnav a::before {
color: @ini_text_dark;
border: transparent none 0;
}
body.mode_diff.darkmode .diffnav select {
background-color: @ini_background_site_dark;
color: @ini_text_dark;
border: transparent none 0;
}
}
|