Browse Source

Style tweaks

tags/v0.2.0
Dylan Baker 5 years ago
parent
commit
4d40062221
1 changed files with 16 additions and 2 deletions
  1. 16
    2
      src/template.ts

+ 16
- 2
src/template.ts View File

@@ -41,10 +41,24 @@ const defaultStylesheet = `
41 41
     border-radius: 4px;
42 42
     font-family: Source Code Pro;
43 43
     font-size: 16px;
44
-    padding: 4px;
44
+    overflow-x: scroll;
45
+  }
46
+
47
+  pre {
48
+    padding: 5px;
49
+  }
50
+
51
+  p code  {
45 52
     white-space: nowrap;
46 53
   }
47 54
 
55
+  pre code {
56
+    display: block;
57
+    overflow-x: scroll;
58
+    white-space: pre;
59
+    width: 100%;
60
+  }
61
+
48 62
   body.dark pre, body.dark code {
49 63
     background: #333333;
50 64
   }
@@ -56,7 +70,7 @@ const defaultStylesheet = `
56 70
   #settings, #container {
57 71
     box-sizing: border-box;
58 72
     margin: auto;
59
-    max-width: 700px;
73
+    max-width: 90ch;
60 74
     padding: 0 1em;
61 75
     width: 100%;
62 76
   }

Loading…
Cancel
Save