improve style + clearfix - twitch-go - twitch.tv web application in Go
(HTM) git clone git://git.codemadness.org/twitch-go
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d7a2da494cc23970e6338ae4c62be8c08fe72260
(DIR) parent 599ee5969e2f9862c03abe53b5f5312d91e5f7e4
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 29 Oct 2017 19:12:27 +0100
improve style + clearfix
Diffstat:
M data/static/twitch.css | 23 +++++++++++++----------
M data/templates/themes/default/page⦠| 5 +++--
2 files changed, 16 insertions(+), 12 deletions(-)
---
(DIR) diff --git a/data/static/twitch.css b/data/static/twitch.css
@@ -12,8 +12,8 @@ table {
}
hr {
height: 1px;
- color: #ccc;
- background-color: #ccc;
+ color: #aaa;
+ background-color: #aaa;
border: 0;
}
h1 {
@@ -43,7 +43,7 @@ table tr th {
table.table tr th,
table.table tr td {
padding: 3px;
- border: 1px solid #333;
+ border: 1px solid #777;
}
table.table tr th {
background-color: #eee;
@@ -62,21 +62,21 @@ table.table tr td.title {
text-overflow: ellipsis;
overflow: hidden;
}
-pre, code {
- border: 1px dashed #777;
+pre {
+ margin: 0;
+}
+code {
+ border: 3px solid #aaa;
background-color: #eee;
padding: 5px;
display: block;
overflow-x: auto;
-}
-code {
- white-space: nowrap;
word-wrap: normal;
}
#menuwrap {
background-color: #eee;
- padding: 1ex;
- border-bottom: 1px solid #ccc;
+ line-height: 40px;
+ border-bottom: 3px solid #aaa;
}
#main {
padding: 1ex;
@@ -94,6 +94,9 @@ code {
#links-contact {
float: right;
}
+.clearfix {
+ clear: both;
+}
.hidden {
display: none;
}
(DIR) diff --git a/data/templates/themes/default/page.html b/data/templates/themes/default/page.html
@@ -11,11 +11,12 @@
<form method="get" action="/playlist">
<a href="/featured">Featured</a> |
<a href="/games">Games</a> |
- <a href="https://git.codemadness.org/twitch-go/">Source-code</a> |
+ <a href="https://git.codemadness.org/twitch-go/">Source-code</a> |
<a href="/twitch.sh">SH version</a> |
<a href="/links">Links</a>
- <span style="float: right"><input type="text" name="c" size="16" autofocus="autofocus" placeholder="Channel..." /><input type="submit" name="get" value="Get playlist" /></span>
+ <span style="float: right"><input type="text" name="c" size="16" placeholder="Channel..." /><input type="submit" name="get" value="Get playlist" /></span>
+ <div class="clearfix"></div>
</form>
</span></div></div>
<hr class="hidden" />