Web UI tweaks

This commit is contained in:
Florian Festi 2017-02-13 19:36:12 +01:00
parent d3c76f2b9e
commit a71f9a2bed
2 changed files with 9 additions and 28 deletions

View File

@ -152,13 +152,7 @@ class BServer:
<div>
<div class="clear"></div>
<hr />
<div style="width: 100%; float: left;">
<h2 style="font-size: 1em; margin: 0px; "> <a href="/">generators</a></h2><h2 style="margin: 0px 0px 0px 20px;" > <span style="margin-right: 10px;"> >> <span>""", name, """</h2>
<h2 style="margin: 0px 0px 0px 20px;" ><span>""", name, """</h2>
<p>""", box.__doc__ or "", """</p>
<form action="%s" method="GET" target="_blank">
""" % (action)]
@ -178,10 +172,6 @@ class BServer:
<p><button name="render" value="1">Generate</button></p>
</form>
</div>
<!--
<div style="width: 5%; float: left;"></div>
@ -255,9 +245,6 @@ flex cuts, holes and slots for screws and more high level functions.
<div class="clear"></div>
<hr />
<div style="width: 100%; float: left;">
<p>These are the available generators:</p>
""" ]
for nr, group in enumerate(self.groups):
result.append('''<h3 onclick="showHide('%s')">%s</h3>\n<div id="%s">\n<ul>\n''' % (nr, group.title, nr))

View File

@ -27,37 +27,31 @@ a {
body {min-width: 996px;}
h1 {
font-family: 'Amatic SC', cursive;
font-family: 'Luckiest Guy', cursive;
font-family: 'Bungee Shade', cursive;
font-size: 3em;
}
font-size: 3em;
}
h2 {
font-family: 'Bungee Shade', cursive;
font-family: 'Bungee Shade', cursive;
font-family: 'Amatic SC', cursive;
font-family: 'Luckiest Guy', cursive;
font-size: 2.5em;
}
}
h3 {
padding: 5px;
padding-left: 15px;
margin: 0px;
}
h3::before {
content: "▶ ";
}
h3:hover {
background-color: #333;
color: #eee;