consul/ui/packages/consul-ui/app/styles/typography.scss

129 lines
2.2 KiB
SCSS

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
body,
%form-element-text-input {
@extend %body-200-regular;
}
%radio-card header,
fieldset > header,
%definition-table dt,
%table caption,
%tbody-th,
%form-element > span {
@extend %display-100-semibold;
}
%definition-table dt {
line-height: var(--token-typography-body-300-line-height);
}
%internal-button,
%breadcrumbs li > *,
%tab-nav {
@extend %body-200-medium;
}
%table td p,
%table td {
@extend %body-200-regular;
}
%healthcheck-output dt,
%table td:first-child p,
%table td:first-child,
%sliding-toggle label span {
@extend %body-200-semibold;
}
%filter-bar input,
%tab-section p {
@extend %body-200-regular;
}
%empty-state-anchor,
%form-element-label,
%stats-card header a span,
%app-view h1 span.kind-proxy {
@extend %body-100-regular;
}
%empty-state-subheader,
%empty-state p,
%main-content p,
%form-element-note,
%form-element-error > strong {
@extend %body-100-regular;
}
%main-content p code {
@extend %inline-code;
}
%radio-group label {
line-height: var(--token-typography-body-100-line-height);
}
%form-element-label,
%button {
@extend %body-100-semibold;
}
%route-card section dt,
%route-card header:not(.short) dd,
%splitter-card > header {
@extend .hds-font-weight-bold;
}
/**/
/* resets */
%empty-state-subheader,
%main-content label a[rel*='help'],
%pill,
%form-element > strong,
%tbody-th em,
%route-card header dt {
@extend .hds-font-weight-regular;
}
%form-element-note,
%tbody-th em,
%app-view h1 em {
font-style: normal;
}
/**/
/* composite row */
%composite-row-header {
@extend %display-300-medium;
}
%composite-row-header *:not(button) {
font-size: inherit;
font-weight: inherit;
}
/**/
%app-view h1 em {
@extend %body-200-medium;
}
/*TODO: This should go in reset, and probably needs select etc adding */
@media (max-width: 420px) and (-webkit-min-device-pixel-ratio: 0) {
input {
font-size: var(--token-typography-body-300-font-size) !important;
}
}
%healthcheck-output dl > dd {
@extend %body-200-regular;
}
h1 {
@extend %display-500-bold;
}
%healthcheck-output pre code,
pre code,
pre,
code {
@extend %code-200-regular;
}
dd code,
dd pre code {
@extend %code-100-regular;
}