Skip to content

Commit

Permalink
lib: form-layout: Do not set width for relaxed elements
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett authored and martinpitt committed Dec 13, 2018
1 parent d16fca9 commit 3128c62
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkg/lib/form-layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@
grid-column: ~"2 / -1";
line-height: @widget-height;
margin: 0;
width: auto;

&:not(.ct-form-layout-relax) {
width: auto;
}
}

// Auto-relax inputs with size
Expand All @@ -127,7 +130,9 @@
> .bootstrap-select,
> .btn-group,
> .dropdown {
width: auto !important;
&:not(.ct-form-layout-relax) {
width: auto !important;
}
}

// Elements with role="group" are used to group elements —
Expand All @@ -150,7 +155,7 @@
justify-content: start;

// Allow dropdowns to be less wide
> .dropdown {
&:not(.ct-form-layout-relax) > .dropdown {
width: auto !important;
}

Expand Down

0 comments on commit 3128c62

Please sign in to comment.