mirror of https://github.com/rusefi/msqur.git
Style constants slightly better
This commit is contained in:
parent
9de6c6e2b7
commit
cd65a10284
|
@ -27,7 +27,7 @@ class MSQ
|
|||
/**
|
||||
* @brief Format a constant to HTML
|
||||
* @param $constant The constant name
|
||||
* @param $value It's value
|
||||
* @param $value Its value
|
||||
* @returns String HTML \<div\>
|
||||
*/
|
||||
private function msqConstant($constant, $value, $help)
|
||||
|
@ -35,7 +35,7 @@ class MSQ
|
|||
//var_export($constant);
|
||||
//var_export($value);
|
||||
//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>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -155,6 +155,28 @@ div.chart {
|
|||
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 {
|
||||
display: table;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue