1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 07:01:19 -04:00

refactor the link underline logic to produce smaller output

This commit is contained in:
2022-03-04 09:33:44 -05:00
parent 71fe4455d1
commit f8b6378faf
16 changed files with 77 additions and 55 deletions

View File

@@ -12,7 +12,7 @@ const ConstrainImage = styled("div", {
lineHeight: 0,
padding: 0,
"@mobile": {
"@medium": {
width: "70px",
height: "70px",
},
@@ -22,7 +22,7 @@ const Image = styled(NextImage, {
border: "1px solid $light !important",
borderRadius: "50%",
"@mobile": {
"@medium": {
borderWidth: "2px !important",
},
});
@@ -36,7 +36,7 @@ const Link = styled("a", {
"&:hover": {
color: "$link",
"@mobile": {
"@medium": {
[`${Image}`]: {
borderColor: "$linkUnderline !important",
},
@@ -50,7 +50,7 @@ const Name = styled("span", {
fontWeight: 500,
lineHeight: 1,
"@mobile": {
"@medium": {
display: "none",
},
});