Skip to content

Commit f62d7dc

Browse files
niutechtombh
authored andcommitted
Change font family, fix invalid CSS (fixes #70) (#253)
* Increase font size, fix invalid CSS (fixes #70) * Revert to 15px, use Courier New font if available
1 parent 08c5ee8 commit f62d7dc

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

webext/src/dom/serialise_mixin.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,27 +139,24 @@ export default MixinBase =>
139139
<title>${document.title}</title>
140140
<style>
141141
html * {
142-
font-family: monospace;
142+
font-family: 'Courier New', monospace;
143143
}
144144
body {
145145
font-size: 15px;
146146
}
147147
pre {
148148
background-image: url(${img_src});
149-
background-size: contain;
150149
background-repeat: no-repeat;
151150
background-size: ${width}px ${height}px;
152-
// Pixelate the background image
153-
image-rendering: optimizeSpeed; /* STOP SMOOTHING, GIVE ME SPEED */
151+
/* Pixelate the background image */
154152
image-rendering: -moz-crisp-edges; /* Firefox */
155153
image-rendering: -o-crisp-edges; /* Opera */
156154
image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
157-
image-rendering: pixelated; /* Chrome */
158-
image-rendering: optimize-contrast; /* CSS3 Proposed */
155+
image-rendering: pixelated; /* Chrome */
159156
-ms-interpolation-mode: nearest-neighbor; /* IE8+ */
160157
width: ${width}px;
161158
height: ${height}px;
162-
// These styles need to exactly follow Browsh's rendering styles
159+
/* These styles need to exactly follow Browsh's rendering styles */
163160
font-size: 15px !important;
164161
line-height: 20px !important;
165162
letter-spacing: 0px !important;

0 commit comments

Comments
 (0)