Skip to content

Commit d0122e5

Browse files
committed
style: Remove some importants that required other importants... The context menu gets the theming now.
1 parent 27ed2b3 commit d0122e5

File tree

2 files changed

+16
-37
lines changed

2 files changed

+16
-37
lines changed

packages/design-system/src/css/style.css

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,24 +1190,19 @@ dialog::backdrop {
11901190
.litegraph.litecontextmenu,
11911191
.litegraph.litecontextmenu.dark {
11921192
z-index: 9999 !important;
1193-
background-color: var(--comfy-menu-bg) !important;
1193+
background-color: var(--comfy-menu-bg);
11941194
}
11951195

1196-
.litegraph.litecontextmenu
1197-
.litemenu-entry:hover:not(.disabled):not(.separator) {
1198-
background-color: var(--comfy-menu-hover-bg, var(--border-color)) !important;
1199-
color: var(--fg-color);
1200-
}
12011196

12021197
.litegraph.litecontextmenu .litemenu-entry.submenu,
12031198
.litegraph.litecontextmenu.dark .litemenu-entry.submenu {
1204-
background-color: var(--comfy-menu-bg) !important;
1205-
color: var(--input-text);
1199+
background-color: var(--comfy-menu-bg);
1200+
color: var(--fg-color)
12061201
}
12071202

12081203
.litegraph.litecontextmenu input {
1209-
background-color: var(--comfy-input-bg) !important;
1210-
color: var(--input-text) !important;
1204+
background-color: var(--comfy-input-bg);
1205+
color: var(--input-text);
12111206
}
12121207

12131208
.comfy-context-menu-filter {
@@ -1248,14 +1243,14 @@ dialog::backdrop {
12481243

12491244
.litegraph.litesearchbox {
12501245
z-index: 9999 !important;
1251-
background-color: var(--comfy-menu-bg) !important;
1246+
background-color: var(--comfy-menu-bg);
12521247
overflow: hidden;
12531248
display: block;
12541249
}
12551250

12561251
.litegraph.litesearchbox input,
12571252
.litegraph.litesearchbox select {
1258-
background-color: var(--comfy-input-bg) !important;
1253+
background-color: var(--comfy-input-bg);
12591254
color: var(--input-text);
12601255
}
12611256

src/lib/litegraph/public/css/litegraph.css

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
min-width: 100px;
2222
color: #aaf;
2323
padding: 0;
24-
box-shadow: 0 0 10px black !important;
25-
background-color: #2e2e2e !important;
24+
box-shadow: 0 0 10px black;
25+
background-color: #2e2e2e;
2626
z-index: 10;
2727
max-height: -webkit-fill-available;
2828
overflow-y: auto;
@@ -36,10 +36,6 @@
3636
}
3737
}
3838

39-
.litegraph.litecontextmenu.dark {
40-
background-color: #000 !important;
41-
}
42-
4339
.litegraph.litecontextmenu .litemenu-title img {
4440
margin-top: 2px;
4541
margin-left: 2px;
@@ -51,14 +47,6 @@
5147
padding: 2px;
5248
}
5349

54-
.litegraph.litecontextmenu .litemenu-entry.submenu {
55-
background-color: #2e2e2e !important;
56-
}
57-
58-
.litegraph.litecontextmenu.dark .litemenu-entry.submenu {
59-
background-color: #000 !important;
60-
}
61-
6250
.litegraph .litemenubar ul {
6351
font-family: Tahoma, sans-serif;
6452
margin: 0;
@@ -137,8 +125,8 @@
137125
height: 0px;
138126
margin: 3px 0 2px 0;
139127
background-color: transparent;
140-
padding: 0 !important;
141-
cursor: default !important;
128+
padding: 0;
129+
cursor: default;
142130
}
143131

144132
.litegraph .litemenu-entry.has_submenu {
@@ -154,8 +142,8 @@
154142
}
155143

156144
.litegraph .litemenu-entry:hover:not(.disabled):not(.separator) {
157-
background-color: #444 !important;
158-
color: #eee;
145+
background-color: var(--palette-interface-panel-hover-surface);
146+
color: var(--content-hover-fg);
159147
transition: all 0.2s;
160148
}
161149

@@ -372,10 +360,6 @@
372360
padding: 4px;
373361
}
374362

375-
.litegraph .dialog .property:hover {
376-
background-color: color(from var(--comfy-menu-bg) 255 g b / .5);
377-
}
378-
379363
.litegraph .dialog .property_name {
380364
color: var(--muted-foreground);
381365
display: inline-block;
@@ -496,11 +480,11 @@
496480

497481
.graphmenu-entry.danger,
498482
.litemenu-entry.danger {
499-
color: var(--error-text) !important;
483+
color: var(--error-text);
500484
}
501485

502486
.litegraph .litemenu-entry.danger:hover:not(.disabled) {
503-
color: var(--error-text) !important;
487+
color: var(--error-text);
504488
opacity: 0.8;
505489
}
506490

@@ -549,7 +533,7 @@
549533
min-height: 2em;
550534
background-color: #333;
551535
font-size: 1.2em;
552-
box-shadow: 0 0 10px black !important;
536+
box-shadow: 0 0 10px black;
553537
z-index: 10;
554538
}
555539

0 commit comments

Comments
 (0)