From 052c32e2cec36075d662e0baeb223d0841e016d1 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 13 Jul 2018 00:03:04 +0100 Subject: [PATCH] Arguments are now bordered white boxes again --- src/web/stylesheets/components/_operation.css | 37 +++++++++++++++++-- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/src/web/stylesheets/components/_operation.css b/src/web/stylesheets/components/_operation.css index 695e40f8..84713574 100755 --- a/src/web/stylesheets/components/_operation.css +++ b/src/web/stylesheets/components/_operation.css @@ -40,6 +40,10 @@ grid-column: unset; } +.ingredients .form-group { + padding-top: 1rem; +} + .arg { font-family: var(--fixed-width-font-family); text-overflow: ellipsis; @@ -60,7 +64,11 @@ div.toggle-string { } .operation [class^='bmd-label'], -.operation [class*=' bmd-label'], +.operation [class*=' bmd-label'] { + top: 31px; + left: 10px; +} + .operation label { color: #388e3c; } @@ -75,9 +83,20 @@ div.toggle-string { } .operation .form-control { - background-color: transparent; - border-color: var(--primary-border-colour); - color: var(--primary-font-colour); + border-width: 1px; + border-style: solid; + padding: 12px 10px; + border-radius: 4px; + background-color: var(--arg-background); + background-image: none; + border-color: var(--arg-border-colour); + color: var(--arg-font-colour); +} + +.operation .form-control:focus { + border-width: 2px; + padding: 11px 9px; + border-color: #1976d2; } .bmd-form-group.is-filled div.toggle-string label.bmd-label-floating, @@ -85,6 +104,16 @@ div.toggle-string { left: unset; } +.bmd-form-group.is-filled label.bmd-label-floating, +.bmd-form-group.is-focused label.bmd-label-floating { + top: 0.65rem; + left: 0.5rem; + background-image: linear-gradient(to top, + var(--arg-background) 8px, + var(--rec-list-operation-bg-colour) 8px); + padding: 0 4px; +} + .editable-option-menu { height: auto; max-height: 350px;