Skip to content

Commit 93c20f6

Browse files
committed
Updated to match the draft rules.
1 parent 1c021a8 commit 93c20f6

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

scripts/text-adaptation.js

+3-12
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,14 @@
2626

2727
function initMyBookmarklet() {
2828
(window.myBookmarklet = function() {
29-
30-
31-
// Color
32-
$("*").css('color', 'black');
33-
$("*").css('background-color', '#fff');
34-
$("*").css('background-image', 'none !important');
35-
36-
// font family
37-
$("*:not([role='img'])").css('font-family', '"Verdana"');
3829

3930
// Spacing
4031
var wordElements = $('p, li, h1, h2, h3, h4, h5, h6');
4132

42-
$(wordElements).css("letter-spacing", "0.1em");
4333
$(wordElements).css("line-height", "1.5");
44-
$(wordElements).css("word-spacing", "0.03em");
45-
34+
$('p').css("margin-bottom", "2em");
35+
$(wordElements).css("letter-spacing", "0.12em");
36+
$(wordElements).css("word-spacing", "0.16em");
4637

4738
})();
4839
}

0 commit comments

Comments
 (0)