forked from jcharum/lxml-readability
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregression_test_css.py
More file actions
63 lines (57 loc) · 1002 Bytes
/
regression_test_css.py
File metadata and controls
63 lines (57 loc) · 1002 Bytes
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
SUMMARY_CSS = '''
table, th, td {
border: 1px solid black;
border-collapse: collapse;
font-family: Georgia, 'Times New Roman', serif;
}
table {
margin: auto;
}
.skipped {
color: gray;
}
td, th {
font-size: 1.2em;
border: 1px solid black;
padding: 3px 7px 2px 7px;
}
th {
font-size: 16px;
text-align: left;
padding-top: 5px;
padding-bottom: 4px;
}
'''
READABILITY_CSS = '''
#article {
margin: 0 auto;
max-width: 705px;
min-width: 225px;
font-family: Georgia, 'Times New Roman', serif;
font-size: 19px;
line-height: 29px;
}
#article p {
font-size: 19px;
line-height: 29px;
margin: 19px 0px 19px 0px;
}
ins {
background-color: #C6F7C3;
text-decoration: none;
}
ins img {
border-width: 3px;
border-style: dotted;
border-color: #51B548;
}
del {
background-color: #F7C3C3;
text-decoration: none;
}
del img {
border-width: 3px;
border-style: dotted;
border-color: #D12626;
}
'''