mirror of
https://github.com/status-im/consul.git
synced 2025-01-25 13:10:32 +00:00
b8166de30d
From an engineers perspective, whenever specifying colors from now on we should use the form: ``` color: rgb(var(--tone-red-500)); ``` Please note: - Use rgb. This lets us do this like rgb(var(--tone-red-500) / 10%) so we can use a 10% opacity red-500 if we ever need to whilst still making use of our color tokens. - Use --tone-colorName-000 (so the prefix tone). Previously we could use a mix of --gray-500: $gray-500 (note the left hand CSS prop and right hand SASS var) for the things we need to theme currently. As we no longer use SASS we can't do --gray-500: --gray-500, so we now do --tone-gray-500: --gray-500. Just for clarity after that, whenever specifying a color anywhere, use rgb and --tone. There is only one reason where you might not use tone, and that is if you never want a color to be affected by a theme (for example a background shadow probably always should use --black) There are a 2 or 3 left for the code editor, plus our custom-query values
118 lines
3.1 KiB
SCSS
118 lines
3.1 KiB
SCSS
@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 */
|
|
|
|
.list-collection > ul > li:not(:first-child) {
|
|
@extend %composite-row;
|
|
}
|
|
/* hoverable rows */
|
|
%composite-row.linkable,
|
|
.consul-service-instance-list > ul > li:not(:first-child),
|
|
.consul-node-list > ul > li:not(:first-child),
|
|
.consul-token-list > ul > li:not(:first-child),
|
|
.consul-policy-list > ul > li:not(:first-child),
|
|
.consul-role-list > ul > li:not(:first-child),
|
|
.consul-auth-method-list > ul > li:not(:first-child) {
|
|
@extend %with-composite-row-intent;
|
|
}
|
|
.consul-lock-session-list ul > li:not(:first-child) {
|
|
@extend %with-one-action-row;
|
|
}
|
|
// TODO: This hides the iconless dt's in the below lists as they don't have
|
|
// tooltips the todo would be to wrap these texts in spans
|
|
.consul-lock-session-list ul > li:not(:first-child) dl:not([class]) dt,
|
|
.consul-nspace-list > ul > li:not(:first-child) dt,
|
|
.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 {
|
|
@extend %iconless-dt;
|
|
}
|
|
%iconless-dt {
|
|
display: none;
|
|
}
|
|
%iconless-dt + dd {
|
|
margin-left: 0 !important;
|
|
}
|
|
/* TODO: the service list has a 1px offset */
|
|
.consul-policy-list dl.datacenter dt,
|
|
.consul-service-list li > div:first-child > dl:first-child dd {
|
|
margin-top: 1px;
|
|
}
|
|
.consul-service-list .detail,
|
|
.consul-service-instance-list .detail {
|
|
overflow-x: visible !important;
|
|
}
|
|
.consul-intention-permission-list > ul {
|
|
border-top: 1px solid rgb(var(--tone-gray-200));
|
|
}
|
|
.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 {
|
|
display: none;
|
|
}
|
|
%composite-row-header:hover .copy-button button {
|
|
display: block;
|
|
}
|
|
%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;
|
|
background-color: rgb(var(--brand-600));
|
|
}
|