85 lines
2.4 KiB
Vue
85 lines
2.4 KiB
Vue
<template>
|
|
<div class="toolbar">
|
|
<div class="toolbar-column toolbar-column-left">
|
|
<slot name="left"></slot>
|
|
</div>
|
|
<div class="toolbar-column toolbar-column-right">
|
|
<slot name="right"></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss">
|
|
.toolbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: map-get($spacer, 2);
|
|
|
|
.toolbar-column {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
|
|
&.toolbar-column-left {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
input {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
// &.form-footer-column-left, &.form-footer-column-right {
|
|
// a, button {
|
|
// margin-left: map-get($spacer, 1);
|
|
// margin-right: map-get($spacer, 1);
|
|
|
|
// &:first-of-type {
|
|
// margin-left: 0;
|
|
// }
|
|
|
|
// &:last-of-type {
|
|
// margin-right: 0;
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
&.toolbar-column-right {
|
|
justify-content: flex-end;
|
|
}
|
|
// }
|
|
// }
|
|
|
|
// @media screen and (max-width: 768px) {
|
|
// .form-footer {
|
|
// flex-direction: column-reverse;
|
|
|
|
// .form-footer-column {
|
|
// &.form-footer-column-left, &.form-footer-column-right {
|
|
// display: flex;
|
|
// flex-direction: column-reverse;
|
|
// justify-content: center;
|
|
|
|
// & > * {
|
|
// display: block;
|
|
// width: 100%;
|
|
// text-align: center;
|
|
|
|
// margin-top: map-get($spacer, 1);
|
|
// margin-bottom: map-get($spacer, 1);
|
|
// margin-left: 0 !important;
|
|
// margin-right: 0 !important;
|
|
// }
|
|
// }
|
|
|
|
// &.form-footer-column-left {
|
|
// margin-bottom: -#{map-get($spacer, 1) / 2};
|
|
// }
|
|
|
|
// &.form-footer-column-right {
|
|
// margin-top: -#{map-get($spacer, 1) / 2};
|
|
// }
|
|
// }
|
|
}
|
|
}
|
|
</style>
|