Skip to content

Commit ce75b25

Browse files
author
minjk-bl
committed
Add disabled input and select style
1 parent e9575c1 commit ce75b25

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

visualpython/css/component/popupComponent.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
min-height: 400px;
1818
width: 400px;
1919
height: 400px;
20-
background: var(--vp-background-color);
20+
background-color: var(--vp-background-color);
2121
border: 1px solid var(--vp-border-gray-color);
2222
border-top: 3px solid var(--vp-border-gray-color);
2323
box-shadow: 1px 1px 2px rgb(0 0 0 / 10%);
@@ -360,6 +360,11 @@
360360
.vp-popup-frame input[type=number]::placeholder {
361361
color: var(--vp-gray-color);
362362
}
363+
.vp-popup-frame input[type=text]:disabled,
364+
.vp-popup-frame input[type=number]:disabled {
365+
background-color: var(--vp-light-gray-color);
366+
cursor: not-allowed;
367+
}
363368

364369
.vp-popup-frame select {
365370
width: 160px;

visualpython/css/root.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ input.vp-input {
8080
height: 30px;
8181
padding: 3px 7px;
8282
color: var(--vp-font-primary);
83-
background: var(--vp-background-color);
83+
background-color: var(--vp-background-color);
8484
outline-color: var(--vp-highlight-color);
8585
border: 0.25px solid var(--vp-border-gray-color);
8686
box-sizing: border-box;
@@ -90,6 +90,7 @@ input.vp-input::placeholder {
9090
}
9191
input.vp-input:disabled,
9292
select.vp-select:disabled {
93+
background-color: var(--vp-light-gray-color);
9394
cursor: not-allowed;
9495
}
9596

0 commit comments

Comments
 (0)