-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathcodes.css
144 lines (134 loc) · 4.13 KB
/
codes.css
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
/* Difference Highlighting and Strike-through
------------------------------------------------ */
ins {
color: #333333;
background-color: #eaffea;
text-decoration: none;
}
del {
color: #AA3333;
background-color: #ffeaea;
text-decoration: line-through;
}
/* Image Diffing
------------------------------------------------ */
del.diffimg.diffsrc {
display: inline-block;
position: relative;
}
del.diffimg.diffsrc:before {
position: absolute;
content: "";
left: 0;
top: 0;
width: 100%;
height: 100%;
background: repeating-linear-gradient(
to left top,
rgba(255, 0, 0, 0),
rgba(255, 0, 0, 0) 49.5%,
rgba(255, 0, 0, 1) 49.5%,
rgba(255, 0, 0, 1) 50.5%
), repeating-linear-gradient(
to left bottom,
rgba(255, 0, 0, 0),
rgba(255, 0, 0, 0) 49.5%,
rgba(255, 0, 0, 1) 49.5%,
rgba(255, 0, 0, 1) 50.5%
);
}
/* List Diffing
------------------------------------------------ */
/* List Styles */
.diff-list {
list-style: none;
counter-reset: section;
display: table;
}
.diff-list > li.normal,
.diff-list > li.removed,
.diff-list > li.replacement {
display: table-row;
}
.diff-list > li > div{
display: inline;
}
.diff-list > li.replacement:before,
.diff-list > li.new:before {
color: #333333;
background-color: #eaffea;
text-decoration: none;
}
.diff-list > li.removed:before{
counter-increment: section;
color: #AA3333;
background-color: #ffeaea;
text-decoration: line-through;
}
/* List Counters / Numbering */
.diff-list > li.normal:before,
.diff-list > li.removed:before,
.diff-list > li.replacement:before {
width: 15px;
overflow: hidden;
content: counters(section,".") ". ";
display: table-cell;
text-indent: -1em;
padding-left: 1em;
}
.diff-list > li.normal:before,
li.replacement + li.replacement:before,
.diff-list > li.replacement:first-child:before{
counter-increment: section;
}
ol.diff-list li.removed + li.replacement {
counter-increment: none;
}
ol.diff-list li.removed + li.removed + li.replacement {
counter-increment: section -1;
}
ol.diff-list li.removed + li.removed + li.removed + li.replacement {
counter-increment: section -2;
}
ol.diff-list li.removed + li.removed + li.removed + li.removed + li.replacement {
counter-increment: section -3;
}
ol.diff-list li.removed + li.removed + li.removed + li.removed + li.removed + li.replacement {
counter-increment: section -4;
}
ol.diff-list li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.replacement {
counter-increment: section -5;
}
ol.diff-list li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.replacement {
counter-increment: section -6;
}
ol.diff-list li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.replacement {
counter-increment: section -7;
}
ol.diff-list li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.replacement {
counter-increment: section -8;
}
ol.diff-list li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.replacement {
counter-increment: section -9;
}
ol.diff-list li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.replacement{
counter-increment: section -10;
}
ol.diff-list li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.removed + li.replacement {
counter-increment: section -11;
}
/* Exception Lists */
ul.exception,
ul.exception li:before {
list-style: none;
content: none;
}
.diff-list ul.exception ol {
list-style: none;
counter-reset: exception-section;
/* Creates a new instance of the section counter with each ol element */
}
.diff-list ul.exception ol > li:before {
counter-increment: exception-section;
content:counters(exception-section, ".") ".";
}