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);
|
|
|
|
border: 1px solid rgb(var(--tone-gray-200));
|
|
|
|
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-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--white));
|
|
|
|
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;
|
|
|
|
background-size: 80% 80%;
|
|
|
|
}
|
|
|
|
%resolver-card dl.failover dt {
|
|
|
|
@extend %with-cloud-cross-icon;
|
|
|
|
}
|
|
|
|
%resolver-card dl.redirect dt {
|
|
|
|
@extend %with-redirect-icon;
|
|
|
|
}
|
|
|
|
/**/
|
|
|
|
%with-chain-outlet::before {
|
|
|
|
@extend %as-pseudo;
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--white));
|
2019-12-17 19:27:28 +00:00
|
|
|
|
2021-10-07 18:21:11 +00:00
|
|
|
border-radius: var(--decor-radius-full);
|
|
|
|
border: 2px solid 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));
|
|
|
|
fill: rgb(var(--white));
|
2019-12-17 19:27:28 +00:00
|
|
|
}
|