2020-04-21 14:21:52 +00:00
|
|
|
%composite-row {
|
2020-06-17 09:25:54 +00:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: auto 50px;
|
|
|
|
grid-template-rows: 50% 50%;
|
|
|
|
|
|
|
|
grid-template-areas:
|
|
|
|
'header actions'
|
|
|
|
'detail actions';
|
|
|
|
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
/* whilst this isn't in the designs this makes our temporary rollover look better */
|
|
|
|
padding-left: 12px;
|
2020-04-08 17:09:36 +00:00
|
|
|
}
|
2020-08-20 14:29:16 +00:00
|
|
|
%with-one-action-row {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr auto;
|
|
|
|
grid-template-rows: 50% 50%;
|
|
|
|
|
|
|
|
// only one action applies to these rows
|
|
|
|
grid-template-areas:
|
|
|
|
'header actions'
|
|
|
|
'detail actions';
|
|
|
|
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
padding-right: 12px;
|
|
|
|
}
|
2020-05-07 13:57:15 +00:00
|
|
|
%composite-row-header {
|
2020-06-17 09:25:54 +00:00
|
|
|
grid-area: header;
|
|
|
|
align-self: start;
|
2020-04-08 17:09:36 +00:00
|
|
|
}
|
|
|
|
%composite-row-detail {
|
2020-06-17 09:25:54 +00:00
|
|
|
grid-area: detail;
|
|
|
|
align-self: end;
|
|
|
|
}
|
|
|
|
%composite-row-detail:not(:last-child) {
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
%composite-row-actions {
|
|
|
|
grid-area: actions;
|
|
|
|
justify-self: center;
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
%composite-row-icon {
|
2020-06-18 13:23:42 +00:00
|
|
|
margin-right: 6px;
|
2020-06-17 09:25:54 +00:00
|
|
|
}
|
|
|
|
%composite-row-icon dt {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
%composite-row-icon dd::before {
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
/* TODO Currently only here due to dl's in %form-row */
|
|
|
|
%composite-row dl {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
%composite-row-detail,
|
|
|
|
%composite-row-detail ul,
|
|
|
|
%composite-row-detail dl,
|
|
|
|
%composite-row-header,
|
|
|
|
%composite-row-header dl {
|
|
|
|
display: inline-flex;
|
2020-04-08 17:09:36 +00:00
|
|
|
flex-wrap: nowrap;
|
|
|
|
}
|
2020-06-17 09:25:54 +00:00
|
|
|
%composite-row-header *,
|
2020-04-08 17:09:36 +00:00
|
|
|
%composite-row-detail * {
|
|
|
|
white-space: nowrap;
|
2020-06-17 09:25:54 +00:00
|
|
|
flex-wrap: nowrap;
|
2020-04-08 17:09:36 +00:00
|
|
|
}
|
2020-06-18 13:23:42 +00:00
|
|
|
%composite-row-detail dl,
|
2020-06-24 13:54:16 +00:00
|
|
|
%composite-row-detail > span {
|
2020-08-19 13:17:34 +00:00
|
|
|
margin-right: 18px;
|
2020-04-08 17:09:36 +00:00
|
|
|
}
|
2020-06-24 13:54:16 +00:00
|
|
|
%composite-row-detail dl.node dt::before {
|
|
|
|
margin-top: 3px;
|
2020-06-12 13:35:52 +00:00
|
|
|
}
|
2020-06-18 13:23:42 +00:00
|
|
|
%composite-row-detail dl dt::before {
|
|
|
|
margin-right: 4px;
|
2020-06-24 13:54:16 +00:00
|
|
|
margin-top: 2px;
|
2020-06-18 13:23:42 +00:00
|
|
|
}
|
2020-06-17 09:25:54 +00:00
|
|
|
// Copy Button
|
2020-05-19 16:18:04 +00:00
|
|
|
%composite-row .copy-button button {
|
2020-05-07 13:57:15 +00:00
|
|
|
padding: 0 !important;
|
2020-05-19 16:18:04 +00:00
|
|
|
margin: 0 !important;
|
|
|
|
}
|
2020-06-18 13:23:42 +00:00
|
|
|
%composite-row-detail .copy-button {
|
|
|
|
margin-right: 4px;
|
2020-07-01 14:27:29 +00:00
|
|
|
margin-top: 2px;
|
2020-06-18 13:23:42 +00:00
|
|
|
}
|
|
|
|
%composite-row-header .copy-button {
|
2020-05-19 16:18:04 +00:00
|
|
|
margin-left: 4px;
|
|
|
|
}
|
2020-06-17 09:25:54 +00:00
|
|
|
%composite-row .copy-button {
|
2020-05-19 16:18:04 +00:00
|
|
|
display: inline-flex;
|
2020-05-07 13:57:15 +00:00
|
|
|
}
|
2020-06-17 09:25:54 +00:00
|
|
|
/* buttons need to be displayed in order for the tooltip */
|
|
|
|
/* to track them */
|
2020-06-18 13:23:42 +00:00
|
|
|
%composite-row-header .copy-button button {
|
2020-06-17 09:25:54 +00:00
|
|
|
opacity: 0;
|
2020-05-13 15:28:11 +00:00
|
|
|
}
|
2020-06-18 13:23:42 +00:00
|
|
|
%composite-row-header:hover .copy-button button {
|
2020-06-17 09:25:54 +00:00
|
|
|
opacity: 1;
|
2020-05-13 15:28:11 +00:00
|
|
|
}
|