Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions docs/components/HomePageLogo.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { globalStyle, style } from "@vanilla-extract/css";

export const root = style({});

export const logoDark = style({}, "logoDark");
globalStyle(`:root:not(.dark) ${logoDark}`, {
export const logoDark = style({});
globalStyle(`:root:not(.dark) .${logoDark}`, {
display: "none",
});

export const logoLight = style({}, "logoLight");
globalStyle(`:root.dark ${logoLight}`, {
export const logoLight = style({});
globalStyle(`:root.dark .${logoLight}`, {
display: "none",
});

Expand All @@ -23,16 +23,13 @@ const viewportVars = {
"min-1280px": "screen and (min-width: 1281px)",
};

export const logo = style(
{
display: "flex",
justifyContent: "center",
height: "48px",
"@media": {
[viewportVars["max-720px"]]: {
height: "36px",
},
export const logo = style({
display: "flex",
justifyContent: "center",
height: "48px",
"@media": {
[viewportVars["max-720px"]]: {
height: "36px",
},
},
"logo",
);
});