Skip to content

Commit 4d9f6df

Browse files
mfikesdnolen
authored andcommitted
CLJS-2584: Tweak whitespace / negative space / font sizes of default index.html
1 parent c479467 commit 4d9f6df

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/main/clojure/cljs/repl/browser.clj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,21 @@
9999
"<!DOCTYPE html><html>"
100100
"<head>"
101101
"<meta charset=\"UTF-8\">"
102+
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" >"
102103
"<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"cljs-logo-icon-32.png\"/>"
103104
"</head>"
104105
"<body>"
105106
"<div id=\"app\">"
106107
"<link href=\"https://fonts.googleapis.com/css?family=Open+Sans\" rel=\"stylesheet\">"
107108
"<style>"
108-
"body { color: white; font-family: \"Open Sans\", sans-serif; background-image: linear-gradient(to right, #0f2242, #2351a1); }"
109-
"code, pre { color: #5cc70c; }"
109+
"body { padding: 28px; margin: auto; max-width: 42em; "
110+
"color: white; font-family: \"Open Sans\", sans-serif; background-image: linear-gradient(to right, #0f2242, #2351a1); }"
111+
"code, pre { color: #5cc70c; font-size: 17px; white-space: pre-wrap; }"
110112
"</style>"
113+
"<center><img src=\"cljs-logo.svg\" style=\"width: 200px; height: 200px; margin: 15px;\"/></center>"
111114
"<p>Welcome to the default <code>index.html</code> provided by the ClojureScript Browser REPL.</p>"
112115
"<p>This page provides the evaluation environment for your Browser REPL and application.</p>"
113-
"<p>You can quickly validate the connection by typing <code>(js/alert&nbsp;\"Hello CLJS!\")</code> into the "
116+
"<p>You can quickly validate the connection by typing <code>(js/alert&nbsp;\"Hello&nbsp;CLJS!\")</code> into the "
114117
"ClojureScript REPL that launched this page.</p><p>You can easily use your own HTML file to host your application "
115118
"and REPL by providing your own <code>index.html</code> in the directory that you launched this REPL from.</p>"
116119
"<p>Start with this template:</p>"
@@ -125,7 +128,6 @@
125128
" &lt;/body&gt;\n"
126129
"&lt;/html&gt;\n"
127130
"</pre>"
128-
"<center><img src=\"cljs-logo.svg\" style=\"width: 350px; height: 350px;\"/></center>"
129131
"</div></div>"
130132
"<script src=\"" output-to "\"></script>"
131133
"</body></html>"))

0 commit comments

Comments
 (0)