consul/ui/packages/consul-ui/app/components/composite-row/layout.scss

39 lines
710 B
SCSS
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
%composite-row {
2020-06-17 09:25:54 +00:00
display: grid;
grid-template-columns: 1fr auto;
2020-06-17 09:25:54 +00:00
grid-template-rows: 50% 50%;
grid-template-areas:
'header actions'
'detail actions';
}
%composite-row-header {
2020-06-17 09:25:54 +00:00
grid-area: header;
align-self: start;
}
%composite-row-detail {
2020-06-17 09:25:54 +00:00
grid-area: detail;
align-self: end;
}
%composite-row-detail * {
flex-wrap: nowrap !important;
}
2020-06-17 09:25:54 +00:00
%composite-row-actions {
grid-area: actions;
display: inline-flex;
2020-06-17 09:25:54 +00:00
}
%composite-row-header:nth-last-child(2) {
grid-column-start: header;
grid-column-end: actions;
}
%composite-row-detail:last-child {
grid-column-start: detail;
grid-column-end: actions;
}