From: Joe Sweeney Date: Sun, 14 Oct 2018 07:22:41 +0000 (-0600) Subject: Allow border radius if only one control in field X-Git-Tag: 0.7.3~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8355aa363cdd7ee7dc35a59a94edd4fbb69de839;p=thirdparty%2Fbulma.git Allow border radius if only one control in field If there is only one child inside a field with addons, the current first and last child selectors remove any radius. Since a single control would be both a first and last child at the same time, it gets canceled out. This leverages the :only-child property to not apply this rule if there is only one control. --- diff --git a/sass/elements/form.sass b/sass/elements/form.sass index 7d9f9bf73..c73f10fdf 100644 --- a/sass/elements/form.sass +++ b/sass/elements/form.sass @@ -437,13 +437,13 @@ $help-size: $size-small !default .input, .select select border-radius: 0 - &:first-child + &:first-child:not(:only-child) .button, .input, .select select border-bottom-right-radius: 0 border-top-right-radius: 0 - &:last-child + &:last-child:not(:only-child) .button, .input, .select select