From bbb2539ace87164184a5233aa9481d9f8ba76688 Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Thu, 25 May 2023 17:49:32 -0700 Subject: [PATCH] Add missing input styles (#57) --- lib/assets/styles/classes.scss | 43 ++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/lib/assets/styles/classes.scss b/lib/assets/styles/classes.scss index e2d61685..b161292c 100644 --- a/lib/assets/styles/classes.scss +++ b/lib/assets/styles/classes.scss @@ -162,6 +162,49 @@ } } +.input-group { + display: flex; + flex-direction: row; + grid-gap: var(--gap-sm); + flex-wrap: wrap; + max-width: 100%; + align-items: center; + + .multiselect { + width: 15rem; + } + + input { + flex-shrink: 2; + } + + &.shrink-first { + :first-child { + flex-shrink: 2; + flex-grow: 1; + flex-basis: min-content; + } + + :not(:first-child) { + flex-shrink: 1; + } + } +} + +.input-stack { + display: flex; + flex-direction: column; + + > * { + margin-bottom: var(--gap-md); + } + + > .multiselect { + width: unset; + height: inherit; + } +} + .standard-body { :last-child { margin-bottom: 0; diff --git a/package.json b/package.json index 97be0713..6460225c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "omorphia", "type": "module", - "version": "0.4.20", + "version": "0.4.21", "files": [ "dist" ],