consul/ui/packages/consul-ui/app/styles/typography.scss
Tyler Wendlandt e5948e8eb4
CC-5545: Side Nav (#19342)
* Initial work for sidenav

* Use HDS::Text

* Add resolution for ember-element-helper

* WIP dc selector

* Update HCP Home link

* DC selector

* Hook up remaining selectors

* Fix settings and tutorial links

* Remove comments

* Remove skip-links

* Replace auth with new dropdown

* Use href-to helper for sidenav links

* Changelog

* Add description to NavSelector

* Wrap version in footer and role

* Fix login tests

* Add data-test selectors for namespaces

* Fix datacenter disclosure menu test

* Stop rendering auth dialog if acls are disabled

* Update disabled selector state and token selector

* Fix logic in ACL selector

* Fix HCP Home integration test

* Remove toggling the sidenav in tests

* Add sidenav to eng docs

* Re-add debug navigation for eng docs

* Remove ember-in-viewport

* Remove unused styles

* Upgrade @hashicorp/design-system-componentseee

* Add translations for side-nav

* Only show back to hcp link if url is present

* Disable responsive due to a11y-dialog issue
2023-11-06 08:18:48 -07:00

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;
}