mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 16:06:12 +02:00
Merge pull request #345 from travisk-codes/344-spotlight-underline
Prevent spotlight link underlines from extending past text
This commit is contained in:
@@ -5,15 +5,14 @@ import styled from "styled-components"
|
|||||||
export const PageLink = styled(Link)`
|
export const PageLink = styled(Link)`
|
||||||
display: block;
|
display: block;
|
||||||
padding: 4px 0 0;
|
padding: 4px 0 0;
|
||||||
margin-bottom: 4px;
|
|
||||||
color: ${(props) => props.theme.sidebar.foreground};
|
color: ${(props) => props.theme.sidebar.foreground};
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: 2px solid transparent;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: ${(props) =>
|
border-color: ${(props) =>
|
||||||
transparentize(0.7, props.theme.sidebar.foreground)};
|
transparentize(0.7, props.theme.sidebar.foreground)};
|
||||||
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
& + & {
|
& + & {
|
||||||
|
|||||||
Reference in New Issue
Block a user