-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patha11y-jetpack.php
executable file
·86 lines (71 loc) · 1.54 KB
/
a11y-jetpack.php
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
<?php
/**
* Accessible Design for Jetpack
* @package AccessibleDesignForJetpack
* @author Maja Benke
* @license GPLv3
*
* @wordpress-plugin
* Plugin Name: Accessible Design for Jetpack
* Plugin URI: https://wp1x1.de
* Description: Increase readability of statistics in Jetpack (add-on plugin for Jetpack)
* Version: 1.0.0
* Author: Maja Benke
* Author URI: https://wp1x1.de
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
*/
/**
* Adds css to admin footer.
*/
function a11y_jetpack_admin_footer() {
?>
<style>
.staticmetabox table td, .statsDay td, .statsDay th {
font-size: 14px;
font-weight: 400;
line-height: 1.2;
}
#clicks .statsDay span, #referrers .statsDay span {
position: relative;
top: 5px;
}
#referrers p, #postviews p, #searchterms p, #clicks p, #authorviews p, #videoplays p, #geoviews p {
font-size: 14px;
}
.stats-encourage-nodata {
color: #444;
}
.postbox .all, .postbox li.link {
font-size: 12px;
font-weight: 600;
}
#stats-nuggets ul li span {
font-weight: 300;
}
.stat-chart p {
font-size: 14px;
}
ul#chartswitch li a {
font-size: 13px;
}
#referrers p, #postviews p, #searchterms p, #clicks p, #authorviews p, #videoplays p, #geoviews p {
font-size: 14px;
}
#statchart div.summarytables {
font-size: 13px;
}
.summary-tabs li {
font-size: 13px;
}
/*Summary*/
.dates td, .dates th {
font-size: 10pt;
}
.dates td span {
font-size: 10pt !important;
}
</style>
<?php
}
add_action( 'admin_footer', 'a11y_jetpack_admin_footer', 11 );