@rhds/elements
Version:
Red Hat Design System Elements
63 lines (52 loc) • 1.63 kB
CSS
:where(rh-tile) {
position: relative;
}
rh-tile a {
color: var(--_link-color) ;
text-decoration: var(--rh-tile-link-text-decoration, none) ;
}
rh-tile:focus-within a,
rh-tile a:is(:focus, :hover, :active) {
text-decoration: var(--rh-tile-link-text-decoration, underline) ;
text-decoration-color: inherit ;
text-decoration-style: dashed ;
text-decoration-thickness: var(--rh-border-width-sm, 1px) ;
text-underline-offset: max(5px, 0.28em) ;
transition-timing-function: ease ;
transition-property: text-underline-offset, color, text-decoration-color ;
transition-duration: 0.3s ;
}
rh-tile a:not([slot='image'], [slot='headline']) {
z-index: 2 ;
position: relative ;
}
rh-tile[aria-disabled='true'] a {
color:
var(--_text-color-secondary,
var(--rh-color-text-secondary)) ;
}
rh-tile *:is([slot='image'], [slot='headline']) a {
z-index: 1 ;
position: static ;
color: var(--_link-color) ;
}
rh-tile *:is([slot='image'], [slot='headline']) a:after,
rh-tile a:is([slot='image'], [slot='headline']):after {
content: '';
position: absolute;
inset: 0;
display: var(--_link-after-display);
}
rh-tile [slot='headline'] a:after,
rh-tile a[slot='headline']:after {
z-index: 3;
}
rh-tile a[slot='image'] > :is(img, svg) {
width: 100%;
}
rh-tile:defined a:is(:focus, :hover, :active) {
outline: var(--_link-outline) ;
}
rh-tile:defined :is([slot='image'], [slot='headline']) a {
--_link-outline: none;
}