2021-06-23 08:19:35 +00:00
|
|
|
@import './layout';
|
|
|
|
@import './skin';
|
|
|
|
%composite-row {
|
|
|
|
@extend %list-row;
|
|
|
|
}
|
|
|
|
%composite-row > .header {
|
|
|
|
@extend %composite-row-header, %list-row-header;
|
|
|
|
}
|
|
|
|
%composite-row > .detail {
|
|
|
|
@extend %composite-row-detail, %list-row-detail;
|
|
|
|
}
|
|
|
|
%composite-row > .actions {
|
|
|
|
@extend %composite-row-actions;
|
|
|
|
}
|
|
|
|
%with-composite-row-intent:hover,
|
|
|
|
%with-composite-row-intent:focus,
|
|
|
|
%with-composite-row-intent:active {
|
|
|
|
@extend %list-row-intent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* project level */
|
2020-05-19 16:18:04 +00:00
|
|
|
|
|
|
|
.list-collection > ul > li:not(:first-child) {
|
|
|
|
@extend %composite-row;
|
|
|
|
}
|
|
|
|
/* hoverable rows */
|
2020-05-21 17:46:15 +00:00
|
|
|
%composite-row.linkable,
|
2020-05-19 16:18:04 +00:00
|
|
|
.consul-service-instance-list > ul > li:not(:first-child),
|
2020-09-22 17:20:44 +00:00
|
|
|
.consul-node-list > ul > li:not(:first-child),
|
2020-06-23 09:12:04 +00:00
|
|
|
.consul-token-list > ul > li:not(:first-child),
|
|
|
|
.consul-policy-list > ul > li:not(:first-child),
|
2021-03-17 14:40:56 +00:00
|
|
|
.consul-role-list > ul > li:not(:first-child),
|
|
|
|
.consul-auth-method-list > ul > li:not(:first-child) {
|
2020-05-19 16:18:04 +00:00
|
|
|
@extend %with-composite-row-intent;
|
|
|
|
}
|
2020-08-20 14:29:16 +00:00
|
|
|
.consul-lock-session-list ul > li:not(:first-child) {
|
|
|
|
@extend %with-one-action-row;
|
|
|
|
}
|
2021-05-10 10:19:11 +00:00
|
|
|
// TODO: This hides the iconless dt's in the below lists as they don't have
|
2020-11-30 16:52:13 +00:00
|
|
|
// tooltips the todo would be to wrap these texts in spans
|
2021-05-19 10:05:54 +00:00
|
|
|
.consul-lock-session-list ul > li:not(:first-child) dl:not([class]) dt,
|
2020-07-20 17:12:34 +00:00
|
|
|
.consul-nspace-list > ul > li:not(:first-child) dt,
|
2020-06-23 09:12:04 +00:00
|
|
|
.consul-token-list > ul > li:not(:first-child) dt,
|
|
|
|
.consul-policy-list > ul li:not(:first-child) dl:not(.datacenter) dt,
|
|
|
|
.consul-role-list > ul > li:not(:first-child) dt {
|
2021-05-10 10:19:11 +00:00
|
|
|
@extend %iconless-dt;
|
|
|
|
}
|
|
|
|
%iconless-dt {
|
2020-06-23 08:59:43 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-05-10 10:19:11 +00:00
|
|
|
%iconless-dt + dd {
|
|
|
|
margin-left: 0 !important;
|
|
|
|
}
|
2020-06-17 09:25:54 +00:00
|
|
|
/* TODO: the service list has a 1px offset */
|
2020-06-23 09:12:04 +00:00
|
|
|
.consul-policy-list dl.datacenter dt,
|
2020-06-17 09:25:54 +00:00
|
|
|
.consul-service-list li > div:first-child > dl:first-child dd {
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
2020-09-22 17:20:44 +00:00
|
|
|
.consul-service-list .detail,
|
|
|
|
.consul-service-instance-list .detail {
|
|
|
|
overflow-x: visible !important;
|
|
|
|
}
|
2020-11-12 18:45:11 +00:00
|
|
|
.consul-intention-permission-list > ul {
|
2021-10-07 18:21:11 +00:00
|
|
|
border-top: 1px solid rgb(var(--tone-gray-200));
|
2020-05-19 16:18:04 +00:00
|
|
|
}
|
2020-09-22 17:20:44 +00:00
|
|
|
.consul-service-instance-list .port dt,
|
|
|
|
.consul-service-instance-list .port dt::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.consul-service-instance-list .port .copy-button {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
// Copy Button
|
|
|
|
%composite-row .copy-button {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
%composite-row-header .copy-button {
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
%composite-row-detail .copy-button {
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
%composite-row .copy-button button {
|
|
|
|
padding: 0 !important;
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
%composite-row-header .copy-button button {
|
2020-11-30 16:52:13 +00:00
|
|
|
display: none;
|
2020-09-22 17:20:44 +00:00
|
|
|
}
|
|
|
|
%composite-row-header:hover .copy-button button {
|
2020-11-30 16:52:13 +00:00
|
|
|
display: block;
|
2020-09-22 17:20:44 +00:00
|
|
|
}
|
|
|
|
%composite-row .copy-button button:hover {
|
|
|
|
background-color: transparent !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
%composite-row-detail > .consul-kind:first-child,
|
|
|
|
%composite-row-detail > .consul-external-source:first-child {
|
|
|
|
margin-left: -5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
%composite-row-detail .policy::before {
|
|
|
|
@extend %with-file-fill-mask, %as-pseudo;
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
%composite-row-detail .role::before {
|
|
|
|
@extend %with-user-plain-mask, %as-pseudo;
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
%composite-row-detail .policy-management::before {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
%composite-row-header .policy-management dd::before,
|
|
|
|
%composite-row-detail .policy-management::before {
|
|
|
|
@extend %with-star-fill-mask, %as-pseudo;
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--brand-600));
|
2020-09-22 17:20:44 +00:00
|
|
|
}
|