open-nomad/ui/app/styles/components/toolbar.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
812 B
SCSS
Raw Normal View History

2021-11-05 21:35:01 +00:00
@use "sass:math";
2019-03-07 04:59:59 +00:00
$spacing: 1.5em;
.toolbar {
display: flex;
2021-11-05 21:35:01 +00:00
margin-bottom: math.div($spacing, 2);
2019-03-07 04:59:59 +00:00
justify-content: space-between;
flex-wrap: wrap;
2021-11-05 21:35:01 +00:00
margin-left: math.div(-$spacing, 4);
margin-right: math.div(-$spacing, 4);
2019-03-07 04:59:59 +00:00
&.collapse + .toolbar {
2021-11-05 21:35:01 +00:00
margin-top: math.div(-$spacing, 2);
}
2019-03-07 04:59:59 +00:00
.toolbar-item {
2021-11-05 21:35:01 +00:00
margin-bottom: math.div($spacing, 2);
padding-left: math.div($spacing, 4);
padding-right: math.div($spacing, 4);
2019-03-07 04:59:59 +00:00
align-self: center;
flex-grow: 1;
&.is-minimum {
flex-grow: 0;
}
2019-03-07 04:59:59 +00:00
&.is-right-aligned {
flex-grow: 0;
margin-left: auto;
}
&.is-top-aligned {
align-self: auto;
}
2019-03-07 04:59:59 +00:00
&.is-mobile-full-width {
@include mobile {
flex-grow: 1;
margin-left: 0;
width: 100%;
}
}
}
}