mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
css: align read-only values with the input fields
The System Settings rows all pair a label with a form control, except Model, which is a bare span. The inputs carry padding and a left margin, so their text starts about 32px further in than the model name did - close enough to look like a mistake and far enough to see it. Give read-only values a class with the same metrics instead of styling the model specifically; any other value shown without a control gets the alignment for free.
This commit is contained in:
@@ -82,6 +82,8 @@ object, img {
|
|||||||
.isNOK{ color: #900;}
|
.isNOK{ color: #900;}
|
||||||
.isOK{ color: #090;}
|
.isOK{ color: #090;}
|
||||||
.ip{padding:8px 16px;margin-bottom: 1em;margin-left: 1em}
|
.ip{padding:8px 16px;margin-bottom: 1em;margin-left: 1em}
|
||||||
|
/* read-only values line up with the text inside the input fields */
|
||||||
|
.rotext{display:inline-block;padding:8px 16px;margin-bottom: 1em;margin-left: 1em}
|
||||||
.row {display: flex;}
|
.row {display: flex;}
|
||||||
.rcol {flex: 90%;}
|
.rcol {flex: 90%;}
|
||||||
.lcol {flex: 10%;}
|
.lcol {flex: 10%;}
|
||||||
|
|||||||
Reference in New Issue
Block a user