kopia lustrzana https://github.com/browsh-org/browsh
* Increase font size, fix invalid CSS (fixes #70) * Revert to 15px, use Courier New font if availablepull/286/head
rodzic
08c5ee8770
commit
f62d7dcb18
|
@ -139,27 +139,24 @@ export default MixinBase =>
|
|||
<title>${document.title}</title>
|
||||
<style>
|
||||
html * {
|
||||
font-family: monospace;
|
||||
font-family: 'Courier New', monospace;
|
||||
}
|
||||
body {
|
||||
font-size: 15px;
|
||||
}
|
||||
pre {
|
||||
background-image: url(${img_src});
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-size: ${width}px ${height}px;
|
||||
// Pixelate the background image
|
||||
image-rendering: optimizeSpeed; /* STOP SMOOTHING, GIVE ME SPEED */
|
||||
/* Pixelate the background image */
|
||||
image-rendering: -moz-crisp-edges; /* Firefox */
|
||||
image-rendering: -o-crisp-edges; /* Opera */
|
||||
image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
|
||||
image-rendering: pixelated; /* Chrome */
|
||||
image-rendering: optimize-contrast; /* CSS3 Proposed */
|
||||
image-rendering: pixelated; /* Chrome */
|
||||
-ms-interpolation-mode: nearest-neighbor; /* IE8+ */
|
||||
width: ${width}px;
|
||||
height: ${height}px;
|
||||
// These styles need to exactly follow Browsh's rendering styles
|
||||
/* These styles need to exactly follow Browsh's rendering styles */
|
||||
font-size: 15px !important;
|
||||
line-height: 20px !important;
|
||||
letter-spacing: 0px !important;
|
||||
|
|
Ładowanie…
Reference in New Issue