File size: 1,929 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | @import "@automattic/color-studio/dist/color-variables";
@import "@automattic/components/src/styles/typography";
$blueberry-color: #3858e9;
.metric-tab-bar {
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 250px;
align-self: self-start;
gap: 16px;
button {
color: inherit;
}
}
.metric-tab-bar__tab {
display: flex;
gap: 6px;
text-align: initial;
flex-grow: 1;
padding: 16px 22px;
width: 100%;
border: 1px solid transparent;
border-bottom: 1px solid var(--gutenberg-gray-100, #f0f0f0);
&.active {
/* stylelint-disable-next-line scales/radii */
border-radius: 6px;
border-color: transparent;
$metric-tab-shadow: 0 0 0 var(--wp-admin-border-width-focus) $blueberry-color;
box-shadow: $metric-tab-shadow;
// Windows High Contrast mode will show this outline, but not the box-shadow.
outline: 3px solid transparent;
&.metric-tab-bar__performance {
border-width: 0;
margin-inline: -1px;
padding: 17px 24px;
width: calc(100% + 2px);
box-shadow: $metric-tab-shadow inset;
}
}
&:last-child {
border-bottom: 0;
}
&:hover {
cursor: pointer;
color: $blueberry-color;
}
}
.metric-tab-bar__tab-status {
line-height: normal;
display: none;
}
.metric-tab-bar__tab-text {
display: flex;
flex-direction: column;
gap: 4px;
}
.metric-tab-bar__tab-header {
font-family: $font-sf-pro-display;
font-size: $font-body-small;
font-weight: 500;
margin-bottom: 6px;
}
.metric-tab-bar__tab-metric {
font-family: $font-sf-pro-display;
font-size: $font-size-header-small;
&.good {
color: var(--studio-green-60);
}
&.needs-improvement {
color: var(--studio-orange-60);
}
&.bad {
color: var(--studio-red-60);
}
}
.metric-tab-bar__performance,
.metric-tab-bar__tab-container {
border: 1px solid var(--studio-gray-5);
/* stylelint-disable-next-line scales/radii */
border-radius: 6px;
background: var(--studio-white);
}
|