Commit d895e920 authored by Ronny Bangsund's avatar Ronny Bangsund

Style improvements. Now looks alright.

parent 43ca570f
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
*/ */
code[class*="language-"], code[class*="language-"],
pre[class*="language-"] { pre[class*="language-"],
textarea[class*="language-"] {
color: white; color: white;
text-shadow: 0 -.1em .2em black; text-shadow: 0 -.1em .2em black;
font-family: Consolas, Monaco, 'Andale Mono', monospace; font-family: Consolas, Monaco, 'Andale Mono', monospace;
...@@ -34,12 +35,14 @@ pre[class*="language-"] { ...@@ -34,12 +35,14 @@ pre[class*="language-"] {
} }
pre[class*="language-"], pre[class*="language-"],
textarea[class*="language-"],
:not(pre) > code[class*="language-"] { :not(pre) > code[class*="language-"] {
background: hsl(30,20%,25%); background: hsl(30,20%,25%);
} }
/* Code blocks */ /* Code blocks */
pre[class*="language-"] { pre[class*="language-"],
textarea[class*="language-"] {
padding: 1em; padding: 1em;
margin: .5em 0; margin: .5em 0;
overflow: auto; overflow: auto;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
{{end}} {{end}}
</select> </select>
<label for="expiry" style="left:2px;top:2px;position:relative;float:left;">Expiry:</label> <label for="expiry" style="left:2px;top:2px;position:relative;float:left;">Expiry:</label>
<textarea name="content" style="left:0;top:28px;width:100%;height:400px;color:white;background-color:black;"></textarea> <textarea class="language-" name="content" style="left:0;top:28px;width:100%;height:400px;margin:1%;color:black;background-color:transparent;border:0px"></textarea>
<input type="submit" value="Post scrap" /> <input type="submit" value="Post scrap" />
<label for="username" style="left:20px; position:relative; top:2px;">Username:</label> <label for="username" style="left:20px; position:relative; top:2px;">Username:</label>
<input type="text" name="username" value="anonymous" style="position:relative; left:19px; top:1px; width:192px;" /> <input type="text" name="username" value="anonymous" style="position:relative; left:19px; top:1px; width:192px;" />
......
...@@ -9,8 +9,6 @@ func sane(s string) string { ...@@ -9,8 +9,6 @@ func sane(s string) string {
} }
func validLanguage(s string) bool { func validLanguage(s string) bool {
if s == "" { _, ok := languages[s]
return false return ok
}
return true
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment