Skip to content

Commit ebfba94

Browse files
committed
tabs header design
1 parent f9a17b7 commit ebfba94

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

web/src/components/editor/TabsNodeEditor.tsx

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ const styles = (theme: Theme) =>
3333
minWidth: 0,
3434
"& .tabs-container": {
3535
display: "flex",
36-
backgroundColor: theme.vars.palette.grey[900],
36+
backgroundColor: "rgba(18, 18, 18, 0.6)",
37+
backdropFilter: "blur(12px)",
3738
alignItems: "center",
3839
position: "relative",
3940
padding: "4px 0px 0px 10px",
4041
width: "100%",
41-
WebkitAppRegion: "drag"
42+
WebkitAppRegion: "drag",
43+
borderBottom: "1px solid rgba(255, 255, 255, 0.08)"
4244
},
4345
"& .tabs": {
4446
flex: 1,
@@ -71,46 +73,50 @@ const styles = (theme: Theme) =>
7173
minWidth: "80px",
7274
flex: "0 0 auto",
7375
cursor: "pointer",
74-
color: theme.vars.palette.grey[200],
75-
background: theme.vars.palette.grey[800],
76+
color: theme.vars.palette.grey[400],
77+
background: "rgba(255, 255, 255, 0.02)",
7678
borderRadius: "8px 8px 0 0",
77-
border: `1px solid ${theme.vars.palette.grey[800]}`,
79+
border: `1px solid rgba(255, 255, 255, 0.05)`,
7880
borderBottom: "none",
7981
fontSize: "13px",
8082
letterSpacing: "0.3px",
8183
transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
8284
position: "relative",
83-
marginRight: "1px",
85+
marginRight: "4px",
8486
boxSizing: "border-box",
8587

8688
"&::before": {
8789
content: '""',
8890
position: "absolute",
8991
bottom: 0,
90-
left: 4,
91-
right: 4,
92-
height: "2px",
93-
background: "var(--palette-primary-main)",
92+
left: 0,
93+
right: 0,
94+
height: "1px",
95+
background: "rgba(255, 255, 255, 0.1)",
9496
opacity: 0,
95-
transform: "scaleX(0.7)",
9697
transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)"
9798
},
9899

99100
"&:hover": {
100101
backgroundColor: "rgba(255, 255, 255, 0.05)",
101-
color: theme.vars.palette.grey[0],
102-
borderColor: theme.vars.palette.grey[700],
102+
color: theme.vars.palette.grey[100],
103+
borderColor: "rgba(255, 255, 255, 0.1)",
103104
"&::before": {
104-
opacity: 0.3,
105-
transform: "scaleX(0.3)"
105+
opacity: 1
106106
}
107107
},
108108

109109
"&.active": {
110-
color: theme.vars.palette.grey[0],
111-
background: theme.vars.palette.c_editor_bg_color,
110+
color: theme.vars.palette.primary.main,
111+
background: "rgba(255, 255, 255, 0.08)",
112112
zIndex: 2,
113-
borderColor: theme.vars.palette.grey[700]
113+
borderColor: "rgba(255, 255, 255, 0.1)",
114+
boxShadow: "0 -4px 12px rgba(0, 0, 0, 0.1)",
115+
"&::before": {
116+
background: theme.vars.palette.primary.main,
117+
height: "2px",
118+
opacity: 1
119+
}
114120
},
115121

116122
"& .close-icon": {

0 commit comments

Comments
 (0)