UNPKG

@taiga-ui/core

Version:

Core library for creating Angular components and applications using Taiga UI

86 lines (72 loc) 1.83 kB
@import '@taiga-ui/core/styles/taiga-ui-local.less'; /** * @name Link * @selector [tuiLink] * * @description * Plain link design, applicable to both links and buttons * * @example * <a tuiLink>Click me</a> * * @see-also * Icons, Appearance, Button */ [tuiLink] { // TODO: Remove in v5 --tui-text-tertiary: var(--tui-text-secondary); .transition(~'color, text-decoration, opacity'); padding: 0; background: transparent; border: none; cursor: pointer; font: inherit; color: var(--tui-text-primary); text-decoration: none dashed currentColor; text-underline-offset: 0.2em; text-decoration-thickness: 0.7px; text-decoration-color: color-mix(in lch, currentColor, transparent); // TODO: Remove in v5 @media @tui-mouse { &:hover { --tui-text-secondary: var(--tui-text-primary); } } &::before { margin-inline-end: 0.25rem; } &::after { margin-inline-start: 0.25rem; } &[tuiIcons]::before, &[tuiIcons]::after { content: '\2060'; padding: calc(var(--tui-icon-size, 1rem) / 2); vertical-align: super; font-size: 0; line-height: 0; box-sizing: border-box; } &[tuiChevron]::after { display: inline-block; } .appearance-focus({ outline: none; background: var(--tui-service-selection-background); background: color-mix(in lch, currentColor 12%, transparent); }); .appearance-hover({ text-decoration-color: currentColor; }); .appearance-active({ text-decoration-color: currentColor; }); @media @tui-mouse { &[data-appearance='']:hover { opacity: 0.7; } } &[data-appearance='']:active { opacity: 0.7; } }