Scrollbars

This commit is contained in:
Wes Bos 2020-01-08 11:58:45 -05:00
parent e32cd00d33
commit 0e964fe52b
2 changed files with 33 additions and 11 deletions

View file

@ -52,7 +52,7 @@ export default function Person({ person, currentTag }) {
)} )}
{person.twitter && ( {person.twitter && (
<span> <TwitterHandle>
<a <a
href={`https://twitter.com/${person.twitter}`} href={`https://twitter.com/${person.twitter}`}
target="_blank" target="_blank"
@ -61,9 +61,8 @@ export default function Person({ person, currentTag }) {
<span className="at">@</span> <span className="at">@</span>
{person.twitter.replace('@', '')} {person.twitter.replace('@', '')}
</a> </a>
</span> </TwitterHandle>
)} )}
{person.github && <span>{person.github}</span>}
</PersonDeets> </PersonDeets>
</PersonWrapper> </PersonWrapper>
); );
@ -146,10 +145,6 @@ const PersonDeets = styled.div`
:first-child { :first-child {
border-inline-start: none; border-inline-start: none;
} }
.at {
color: var(--yellow);
margin-right: 2px;
}
.country { .country {
font-size: 3rem; font-size: 3rem;
} }
@ -157,3 +152,11 @@ const PersonDeets = styled.div`
padding: 0; padding: 0;
} }
`; `;
const TwitterHandle = styled.span`
font-size: 1.24323423426928098420394802rem;
.at {
color: var(--yellow);
margin-right: 2px;
}
`;

View file

@ -65,12 +65,10 @@ const GlobalStyle = createGlobalStyle`
font-weight: 100; font-weight: 100;
font-size: 10px; font-size: 10px;
} }
::selection {
background: var(--yellow);
color: var(--blue);
}
body { body {
font-size: 2rem; font-size: 2rem;
overflow-y: scroll;
overflow-x: hidden;
} }
h1,h2,h3,h4,h5,h6 { h1,h2,h3,h4,h5,h6 {
font-weight: 500; font-weight: 500;
@ -83,6 +81,27 @@ const GlobalStyle = createGlobalStyle`
code { code {
background: var(--lightblue); background: var(--lightblue);
} }
::selection {
background: var(--yellow);
color: var(--blue);
}
body::-webkit-scrollbar {
width: 12px;
}
html {
scrollbar-width: thin;
scrollbar-color: var(--yellow) var(--blue);
}
body::-webkit-scrollbar-track {
background: var(--blue);
}
body::-webkit-scrollbar-thumb {
background-color: var(--yellow) ;
border-radius: 6px;
border: 3px solid var(--blue);
}
`; `;
// Component Styles // Component Styles