2019-12-17 19:27:28 +00:00
|
|
|
/* CSS active states are partly added at the top of */
|
|
|
|
/* components/templates/discovery-chain.hbs for reasons */
|
|
|
|
/* the styling there almost 100% uses our CSS vars */
|
|
|
|
/* defined in our CSS files, but be sure to */
|
|
|
|
/* take a look in the discovery-chain.hbs */
|
|
|
|
%route-card > header ul li {
|
2020-09-22 17:20:44 +00:00
|
|
|
@extend %pill-500, %frame-gray-900;
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|
|
|
|
%discovery-chain-tween {
|
|
|
|
transition-duration: 0.1s;
|
|
|
|
transition-timing-function: linear;
|
|
|
|
}
|
|
|
|
%discovery-chain-edge,
|
|
|
|
%chain-node {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
%discovery-chain-edge {
|
|
|
|
@extend %discovery-chain-tween;
|
|
|
|
transition-property: stroke;
|
|
|
|
|
|
|
|
fill: none;
|
2021-10-07 18:21:11 +00:00
|
|
|
stroke: rgb(var(--tone-gray-400));
|
2019-12-17 19:27:28 +00:00
|
|
|
stroke-width: 2;
|
|
|
|
vector-effect: non-scaling-stroke;
|
|
|
|
}
|
|
|
|
%discovery-chain.active [id*=':'],
|
|
|
|
%chain-node-inactive,
|
|
|
|
%discovery-chain-edge-inactive {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
%chain-node,
|
|
|
|
%chain-node a {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--tone-gray-900)) !important;
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|
|
|
|
%discovery-chain-edge-active {
|
2021-10-07 18:21:11 +00:00
|
|
|
stroke: rgb(var(--tone-gray-900));
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|
|
|
|
%chain-group {
|
2021-10-07 18:21:11 +00:00
|
|
|
border-radius: var(--decor-radius-100);
|
2022-01-07 16:15:22 +00:00
|
|
|
border: 1px solid;
|
|
|
|
/* TODO: If this color is combined with the above */
|
|
|
|
/* border property then the compressor removes the color */
|
|
|
|
border-color: rgb(var(--tone-gray-200));
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-gray-100));
|
2019-12-17 19:27:28 +00:00
|
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
%chain-group > header span,
|
|
|
|
%chain-node {
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
%chain-group > header > * {
|
|
|
|
text-transform: uppercase;
|
2021-01-26 17:53:45 +00:00
|
|
|
@extend %p3;
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|
|
|
|
%chain-group > header span::after {
|
|
|
|
@extend %with-info-circle-outline-icon, %as-pseudo;
|
|
|
|
width: 1.2em;
|
|
|
|
height: 1.2em;
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
%chain-node {
|
|
|
|
@extend %discovery-chain-tween;
|
|
|
|
transition-property: opacity background-color border-color;
|
|
|
|
}
|
|
|
|
%chain-node-active {
|
|
|
|
opacity: 1;
|
2021-11-23 18:32:11 +00:00
|
|
|
background-color: rgb(var(--tone-gray-000));
|
2021-10-07 18:21:11 +00:00
|
|
|
border-color: rgb(var(--tone-gray-500));
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|
|
|
|
/* TODO: More text truncation, centralize */
|
|
|
|
%route-card header:not(.short) dd {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
/* Icons */
|
|
|
|
%route-card section header > * {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
%resolver-card dt,
|
|
|
|
%route-card section header > *::before {
|
2020-09-18 10:14:06 +00:00
|
|
|
@extend %with-glyph-icon;
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|
|
|
|
%route-card .match-headers header *::before {
|
|
|
|
content: 'H';
|
|
|
|
}
|
|
|
|
%route-card .match-queryparams header > *::before {
|
|
|
|
content: 'Q';
|
|
|
|
}
|
|
|
|
%resolver-card dt {
|
|
|
|
font-size: 0;
|
|
|
|
}
|
2022-05-25 13:28:42 +00:00
|
|
|
%resolver-card dt::before {
|
|
|
|
content: '';
|
|
|
|
--icon-size: icon-999;
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|
2022-05-25 13:28:42 +00:00
|
|
|
%resolver-card dl.failover dt::before {
|
|
|
|
--icon-name: icon-cloud-cross;
|
|
|
|
}
|
|
|
|
%resolver-card dl.redirect dt::before {
|
|
|
|
--icon-name: icon-redirect;
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|
|
|
|
/**/
|
|
|
|
%with-chain-outlet::before {
|
|
|
|
@extend %as-pseudo;
|
2021-11-23 18:32:11 +00:00
|
|
|
background-color: rgb(var(--tone-gray-000));
|
2019-12-17 19:27:28 +00:00
|
|
|
|
2021-10-07 18:21:11 +00:00
|
|
|
border-radius: var(--decor-radius-full);
|
2022-01-07 16:15:22 +00:00
|
|
|
border: 2px solid;
|
|
|
|
/* TODO: If this color is combined with the above */
|
|
|
|
/* border property then the compressor removes the color */
|
|
|
|
border-color: rgb(var(--tone-gray-400));
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|
|
|
|
%discovery-chain circle {
|
|
|
|
stroke-width: 2;
|
2021-10-07 18:21:11 +00:00
|
|
|
stroke: rgb(var(--tone-gray-400));
|
2021-11-23 18:32:11 +00:00
|
|
|
fill: rgb(var(--tone-gray-000));
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|