You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vuetify: 1.4.3 Vue: 2.5.22 Browsers: Chrome 71.0.3578.98 OS: Windows 10
Steps to reproduce
Make a v-layout with a grid-list prop that contains flex items with nested flex items
Expected Behavior
The gutter should only impact the top level flex items (as in .flex items that are direct children of the .layout item that is a direct child of the .container item), not the nested flex items
Actual Behavior
The grid-list functionality adds padding and margin to nested flex items as well as the direct child flex items
In the codepen, I put the css from the /components/_grid.styl and used red borders to show that it was targeting nested flex items.
Then, I made a "custom" class with green borders that shows how this could be fixed using the ">" css selector so that only the top most level flex items are targeted.
Basically:
The styl should read:
.container
&.grid-list
for $size, $gutter in $grid-gutters
&-{$size}
> .layout
> .flex
padding: ($gutter / 2)
not:
.container
&.grid-list
for $size, $gutter in $grid-gutters
&-{$size}
.layout
.flex
padding: ($gutter / 2)
The text was updated successfully, but these errors were encountered:
Versions and Environment
Vuetify: 1.4.3
Vue: 2.5.22
Browsers: Chrome 71.0.3578.98
OS: Windows 10
Steps to reproduce
Make a v-layout with a grid-list prop that contains flex items with nested flex items
Expected Behavior
The gutter should only impact the top level flex items (as in .flex items that are direct children of the .layout item that is a direct child of the .container item), not the nested flex items
Actual Behavior
The grid-list functionality adds padding and margin to nested flex items as well as the direct child flex items
Reproduction Link
https://codepen.io/austinpe/pen/LqELMr
Other comments
In the codepen, I put the css from the /components/_grid.styl and used red borders to show that it was targeting nested flex items.
Then, I made a "custom" class with green borders that shows how this could be fixed using the ">" css selector so that only the top most level flex items are targeted.
Basically:
The styl should read:
not:
The text was updated successfully, but these errors were encountered: