Commit 445154e6 authored by Alix Guillard's avatar Alix Guillard

Improve form styling.

Align the form parameter input to one single line.
parent 2495e32c
......@@ -64,14 +64,15 @@ p {
.form fieldset {
border:0;
margin:0;
padding:0 5px 5px;
padding:5px 5px;
float:left;
}
.form fieldset#submit {
right:50px;
position:absolute;
border:0;
clear: both;
float: right;
margin: -66px 15px 0 0;
}
.form select#commandselect {
......@@ -231,6 +232,29 @@ p {
margin: 0 auto -41px; /* the bottom margin is the negative value of the footer's height */
}
@media all and (min-width: 30em) {
#wrapper {
font-size: 75%;
line-height: 1;
}
}
@media all and (min-width: 40em) {
#wrapper {
font-size: 90%;
line-height: 1.5;
}
}
@media all and (min-width: 60em) {
#wrapper {
font-size: 110%;
line-height: 1.8;
}
.push {
height:40px;
}
......
......@@ -21,7 +21,8 @@ body {
margin:0;
padding:0;
font-family:Helvetica, Arial, SansSerif;
font-size:1.1em;
font-size:100%;
}
#header {
......
......@@ -5,6 +5,11 @@
<title>Universal Looking Glass</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="style-horiz.css" />
<script type="text/javascript">var NREUMQ=NREUMQ||[];NREUMQ.push(["mark","firstbyte",new Date().getTime()]);</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<py:if test="defined('refresh')">
<meta http-equiv="refresh" content="$refresh" py:if="defined('refresh') and (refresh>0)" />
</py:if>
......@@ -21,12 +26,13 @@
document.getElementById("paramsect").innerHTML=' \
<py:for each="pidx,param in enumerate(routers[ridx].listCommands()[cidx].getParamSpecs())">
<label for="param${pidx}"> \
<fieldset> \
<label for="param${pidx}"> \
${pidx+3}. ${param.getName()}: \
</label> \
</label> \
<py:choose>
<py:when test="param.getType() == 'select'">
<select name="param${pidx}" id="param${pidx}"> \
<select name="param${pidx}" id="param${pidx}"> \
<py:for each="paridx,partuple in enumerate(param.getOptions())">
<py:choose>
<py:when test="default_routerid == ridx and default_commandid == cidx and defined('default_params') and partuple[0] == default_params[pidx]">
......@@ -59,6 +65,7 @@
</py:choose>
</py:otherwise>
</py:choose>
</fieldset> \
</py:for>';
}
</py:for>
......
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