Skip to content

Commit

Permalink
Merge pull request #183 from cosmology-tech/fix/temp-disable-css-layers
Browse files Browse the repository at this point in the history
fix: temp disable css layers
  • Loading branch information
yyyyaaa authored Apr 23, 2024
2 parents 417b0cf + 6fb9dac commit 86a834f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 33 deletions.
44 changes: 20 additions & 24 deletions src/ui/button/button.css.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,32 @@
import { style, styleVariants, createVar } from "@vanilla-extract/css";
import { themeVars } from "../../styles/themes.css";
import { baseLayer } from "../../styles/layers.css";
// import { baseLayer } from "../../styles/layers.css";

export const buttonBgVar = createVar();
export const buttonHoverBgVar = createVar();
export const buttonTextColorVar = createVar();
export const buttonHoverTextColorVar = createVar();

export const baseButton = style({
"@layer": {
[baseLayer]: {
fontFamily: themeVars.font.body,
fontWeight: themeVars.fontWeight.semibold,
cursor: "pointer",
appearance: "none",
border: "none",
position: "relative",
userSelect: "none",
whiteSpace: "nowrap",
verticalAlign: "middle",
lineHeight: 1.2,
transitionProperty:
"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter",
transitionDuration: "200ms",
display: "flex",
justifyContent: "center",
alignItems: "center",
selectors: {
"&:focus": {
outline: "none",
},
},
fontFamily: themeVars.font.body,
fontWeight: themeVars.fontWeight.semibold,
cursor: "pointer",
appearance: "none",
border: "none",
position: "relative",
userSelect: "none",
whiteSpace: "nowrap",
verticalAlign: "middle",
lineHeight: 1.2,
transitionProperty:
"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter",
transitionDuration: "200ms",
display: "flex",
justifyContent: "center",
alignItems: "center",
selectors: {
"&:focus": {
outline: "none",
},
},
});
Expand Down
14 changes: 5 additions & 9 deletions src/ui/mesh-modal/mesh-modal.css.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { style, createVar, styleVariants } from "@vanilla-extract/css";
import { themeVars } from "../../styles/themes.css";
import { themeLayer } from "../../styles/layers.css";
// import { themeLayer } from "../../styles/layers.css";

export const connectModalShadowVar = createVar();
export const connectModalBgVar = createVar();
Expand Down Expand Up @@ -82,12 +82,8 @@ export const modalHeader = style({
});

export const modalCloseButton = style({
"@layer": {
[themeLayer]: {
position: "absolute",
top: themeVars.space["14"],
right: themeVars.space["14"],
padding: "0",
},
},
position: "absolute",
top: themeVars.space["14"],
right: themeVars.space["14"],
padding: "0",
});

0 comments on commit 86a834f

Please sign in to comment.