Style constants slightly better

This commit is contained in:
Nick 2019-11-07 20:56:10 -06:00
parent 9de6c6e2b7
commit cd65a10284
2 changed files with 24 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class MSQ
/** /**
* @brief Format a constant to HTML * @brief Format a constant to HTML
* @param $constant The constant name * @param $constant The constant name
* @param $value It's value * @param $value Its value
* @returns String HTML \<div\> * @returns String HTML \<div\>
*/ */
private function msqConstant($constant, $value, $help) private function msqConstant($constant, $value, $help)
@ -35,7 +35,7 @@ class MSQ
//var_export($constant); //var_export($constant);
//var_export($value); //var_export($value);
//var_export($help); //var_export($help);
return "<div class=\"constant\" title=\"$help\"><b>$constant</b>: $value</div>"; return "<span class=\"constant\" title=\"$help\"><b>$constant:</b><span class=\"value\">$value</span></span>";
} }
/** /**

View File

@ -155,6 +155,28 @@ div.chart {
display: inline; display: inline;
} }
/* msqur.css | http://localhost:5050/view/msqur.css */
div#tab_constants {
display: flex;
flex-flow: column wrap;
max-height: 900px;
overflow: auto;
max-width: 100%;
}
span.constant:nth-child(even) {
background-color: #e4e4e4;
}
span.constant {
margin: 0px 10px;
}
span.constant span.value {
float: right;
}
#engineForm { #engineForm {
display: table; display: table;
} }