Skip to content

Commit

Permalink
Merge pull request #403 from conversionxl/anoblet/feat/action-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelkmpt authored Mar 27, 2024
2 parents f5139fb + c64af93 commit 5732746
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions packages/cxl-ui/scss/global/cxl-app-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,30 @@ cxl-app-layout {
/**
* Action bar.
*/
[slot="action-bar"] > * {
margin-left: var(--lumo-space-xs);
}
[slot="action-bar"] {
> * {
margin-left: var(--lumo-space-xs);

[slot="action-bar"] > *:first-child {
flex: 1;
margin-left: unset;
&:first-child {
margin-left: 0;
}
}

> .mobile,
> vaadin-button {
flex: 1;
}

> .mobile {
text-align: center;
}
}

&[wide] [slot="action-bar"] > *:first-child {
flex: unset;
&[wide] [slot="action-bar"] {
> .mobile,
> vaadin-button {
flex: initial;
}
}

/**
Expand All @@ -126,5 +139,4 @@ cxl-app-layout {
}
}
}

}

0 comments on commit 5732746

Please sign in to comment.