spaCy/website/src/styles/link.module.sass
Marcus Blättermann 49237f05a6
Fix aria-hidden element (#12163)
* Rename CSS class to make use more clear

* Rename component prop to improve code readability

* Fix `aria-hidden` directly on a link element

This link wouldn't have been clickable by screenreaders

* Refactor component

This removes a unnessary `div` and a duplicate link

Co-authored-by: Ines Montani <ines@ines.io>
2023-01-24 14:44:47 +01:00

31 lines
454 B
Sass

.root
color: var(--color-theme-dark)
border-bottom: 1px solid
transition: color 0.2s ease
cursor: pointer
&:hover
color: var(--color-front)
.no-link-layout
border: none
color: inherit
&:hover
color: inherit
.icon
margin-left: 0.5em
width: 1.1em
height: 1.1em
.nowrap
white-space: nowrap
display: inline-block
.with-icon
border: none
.source-text
border-bottom: 1px solid