mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
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.
This commit is contained in:
parent
14dac4c562
commit
8355aa363c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user