@telekom/scale-components
Version:
Scale is the digital design system for Telekom products and experiences.
53 lines (46 loc) • 1.52 kB
CSS
/**
* @license
* Scale https://github.com/telekom/scale
*
* Copyright (c) 2021 Egor Kirpichev and contributors, Deutsche Telekom AG
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
scale-nav-segment {
--transition: all 0.2s ease-in-out;
--color: var(--telekom-color-text-and-icon-white-standard);
--spacing-y: var(--telekom-spacing-composition-space-03);
--font-size: var(--telekom-typography-font-size-caption);
--font-weight: var(--telekom-typography-font-weight-extra-bold);
--line-height: var(--telekom-typography-line-spacing-extra-tight);
--border-bottom: 1px solid var(--telekom-color-text-and-icon-white-standard);
--focus-outline: var(--telekom-line-weight-highlight) solid
var(--telekom-color-functional-focus-standard);
}
.sr-only {
position: absolute;
left: -10000px;
overflow: hidden;
}
.segment-navigation__item {
list-style: none;
}
.segment-navigation__item-link {
color: var(--color);
padding: var(--spacing-y) 0;
font-size: var(--font-size);
font-weight: var(--font-weight);
line-height: var(--line-height);
transition: var(--transition);
text-decoration: none;
}
.segment-navigation__item-link:hover,
.segment-navigation__item-link.active {
border-bottom: var(--border-bottom);
transition: var(--transition);
}
.segment-navigation__item-link:focus {
outline: var(--focus-outline);
}