mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-13 21:05:26 -04:00
remove unnecessary flexboxes
This commit is contained in:
@@ -23,7 +23,7 @@ const Wrapper = styled("ul", {
|
|||||||
|
|
||||||
const Item = styled("li", {
|
const Item = styled("li", {
|
||||||
listStyle: "none",
|
listStyle: "none",
|
||||||
display: "inline-flex",
|
display: "inline-block",
|
||||||
marginLeft: "1em",
|
marginLeft: "1em",
|
||||||
|
|
||||||
"@medium": {
|
"@medium": {
|
||||||
|
|||||||
@@ -2,10 +2,8 @@ import NextLink from "next/link";
|
|||||||
import { styled } from "../../lib/styles/stitches.config";
|
import { styled } from "../../lib/styles/stitches.config";
|
||||||
|
|
||||||
const Link = styled("a", {
|
const Link = styled("a", {
|
||||||
display: "inline-flex",
|
display: "inline-block",
|
||||||
alignItems: "center",
|
|
||||||
color: "$mediumDark",
|
color: "$mediumDark",
|
||||||
lineHeight: 1,
|
|
||||||
textDecoration: "none",
|
textDecoration: "none",
|
||||||
padding: "0.6em",
|
padding: "0.6em",
|
||||||
|
|
||||||
@@ -28,17 +26,6 @@ const Link = styled("a", {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const Label = styled("span", {
|
|
||||||
fontSize: "0.95em",
|
|
||||||
fontWeight: 500,
|
|
||||||
marginTop: "0.1em",
|
|
||||||
marginLeft: "0.8em",
|
|
||||||
|
|
||||||
"@medium": {
|
|
||||||
display: "none",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const Icon = styled("svg", {
|
const Icon = styled("svg", {
|
||||||
width: "1.25em",
|
width: "1.25em",
|
||||||
height: "1.25em",
|
height: "1.25em",
|
||||||
@@ -50,6 +37,16 @@ const Icon = styled("svg", {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const Label = styled("span", {
|
||||||
|
fontSize: "0.95em",
|
||||||
|
fontWeight: 500,
|
||||||
|
marginLeft: "0.4em",
|
||||||
|
|
||||||
|
"@medium": {
|
||||||
|
display: "none",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
export type MenuItemProps = {
|
export type MenuItemProps = {
|
||||||
href?: string;
|
href?: string;
|
||||||
text?: string;
|
text?: string;
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ const Wrapper = styled("div", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const MetaItem = styled("div", {
|
const MetaItem = styled("div", {
|
||||||
display: "inline-flex",
|
|
||||||
marginRight: "1.6em",
|
marginRight: "1.6em",
|
||||||
whiteSpace: "nowrap",
|
whiteSpace: "nowrap",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user