mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 23:43:57 +02:00
refact(resources): clean up dead code
This commit is contained in:
@@ -20,30 +20,6 @@ export const Children = styled.div`
|
|||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export const Label = styled.div`
|
|
||||||
user-select: none;
|
|
||||||
position: relative;
|
|
||||||
padding: 4px 0 2px;
|
|
||||||
margin-bottom: 2px;
|
|
||||||
cursor: pointer;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
border-bottom: 1px solid transparent;
|
|
||||||
align-self: flex-start;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
border-color: ${(props) =>
|
|
||||||
transparentize(0.7, props.theme.sidebar.foreground)};
|
|
||||||
}
|
|
||||||
|
|
||||||
svg {
|
|
||||||
position: absolute;
|
|
||||||
right: 100%;
|
|
||||||
margin-right: 4px;
|
|
||||||
width: 10px;
|
|
||||||
}
|
|
||||||
`
|
|
||||||
|
|
||||||
export const LanguageLabel = styled.div`
|
export const LanguageLabel = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -52,16 +28,6 @@ export const LanguageLabel = styled.div`
|
|||||||
padding: 4px 15px 4px 0;
|
padding: 4px 15px 4px 0;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: ${(props) => transparentize(0.5, props.theme.sidebar.foreground)};
|
color: ${(props) => transparentize(0.5, props.theme.sidebar.foreground)};
|
||||||
|
|
||||||
svg {
|
|
||||||
margin-left: auto;
|
|
||||||
transform: rotate(90deg);
|
|
||||||
transition: transform 0.3s;
|
|
||||||
|
|
||||||
path {
|
|
||||||
fill: ${(props) => transparentize(0.5, props.theme.sidebar.foreground)};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`
|
`
|
||||||
|
|
||||||
export const TreeWrapper = styled.div`
|
export const TreeWrapper = styled.div`
|
||||||
@@ -77,10 +43,6 @@ export const TreeWrapper = styled.div`
|
|||||||
${Children} {
|
${Children} {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > ${Label} svg {
|
|
||||||
fill: ${(props) => props.theme.sidebar.foreground};
|
|
||||||
}
|
|
||||||
`
|
`
|
||||||
|
|
||||||
export const PageLink = styled(Link)`
|
export const PageLink = styled(Link)`
|
||||||
|
|||||||
Reference in New Issue
Block a user