Spaces:
Paused
Paused
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,21 +58,74 @@ st.markdown("""
|
|
| 58 |
font-size: 14px !important;
|
| 59 |
}
|
| 60 |
|
| 61 |
-
/*
|
| 62 |
.stTextInput input,
|
| 63 |
.stNumberInput input,
|
| 64 |
.stSelectbox select,
|
| 65 |
.stTextArea textarea,
|
| 66 |
.stDateInput input,
|
| 67 |
-
.stTimeInput input
|
| 68 |
-
.stMultiSelect div[role="combobox"],
|
| 69 |
-
div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div > div > div > div > input,
|
| 70 |
-
.st-bq, .st-br, .st-bs, .st-bt, .st-bu, .st-bv, .st-bw, .st-bx, .st-by, .st-bz {
|
| 71 |
color: #000000 !important;
|
| 72 |
background-color: var(--input-bg) !important;
|
| 73 |
-
border: 1px var(--text) !important;
|
|
|
|
| 74 |
}
|
| 75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
/* حالت فوکوس */
|
| 77 |
.stTextInput input:focus,
|
| 78 |
.stNumberInput input:focus,
|
|
|
|
| 58 |
font-size: 14px !important;
|
| 59 |
}
|
| 60 |
|
| 61 |
+
/* استایل عمومی برای تمام inputها */
|
| 62 |
.stTextInput input,
|
| 63 |
.stNumberInput input,
|
| 64 |
.stSelectbox select,
|
| 65 |
.stTextArea textarea,
|
| 66 |
.stDateInput input,
|
| 67 |
+
.stTimeInput input {
|
|
|
|
|
|
|
|
|
|
| 68 |
color: #000000 !important;
|
| 69 |
background-color: var(--input-bg) !important;
|
| 70 |
+
border: 1px solid var(--text) !important;
|
| 71 |
+
padding-right: 12px !important; /* فاصله از راست */
|
| 72 |
}
|
| 73 |
|
| 74 |
+
/* استایل برای فلش dropdown در selectbox */
|
| 75 |
+
.stSelectbox select {
|
| 76 |
+
-webkit-appearance: none !important;
|
| 77 |
+
-moz-appearance: none !important;
|
| 78 |
+
appearance: none !important;
|
| 79 |
+
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236a0dad'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e") !important;
|
| 80 |
+
background-repeat: no-repeat !important;
|
| 81 |
+
background-position: left 12px center !important;
|
| 82 |
+
background-size: 16px !important;
|
| 83 |
+
padding-left: 36px !important; /* فضای کافی برای آیکون */
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
/* استایل برای لیست dropdown */
|
| 87 |
+
.stSelectbox [role="listbox"] {
|
| 88 |
+
color: #000000 !important;
|
| 89 |
+
background-color: #ffffff !important;
|
| 90 |
+
border: 1px solid var(--primary) !important;
|
| 91 |
+
border-radius: 4px !important;
|
| 92 |
+
box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
/* استایل برای آیتمهای لیست dropdown */
|
| 96 |
+
.stSelectbox [role="option"] {
|
| 97 |
+
padding: 8px 12px !important;
|
| 98 |
+
color: #333333 !important;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
/* استایل برای آیتم hover در لیست */
|
| 102 |
+
.stSelectbox [role="option"]:hover {
|
| 103 |
+
background-color: #f0e6ff !important;
|
| 104 |
+
color: #000000 !important;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
/* استایل برای دکمههای + و - در number input */
|
| 108 |
+
.stNumberInput button {
|
| 109 |
+
color: var(--primary) !important;
|
| 110 |
+
background-color: transparent !important;
|
| 111 |
+
border: none !important;
|
| 112 |
+
width: 30px !important;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
/* استایل برای hover دکمههای + و - */
|
| 116 |
+
.stNumberInput button:hover {
|
| 117 |
+
background-color: #f0e6ff !important;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
/* استایل برای حالت focus */
|
| 121 |
+
.stSelectbox select:focus,
|
| 122 |
+
.stTextInput input:focus,
|
| 123 |
+
.stNumberInput input:focus {
|
| 124 |
+
border-color: var(--primary) !important;
|
| 125 |
+
box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2) !important;
|
| 126 |
+
outline: none !important;
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
/* حالت فوکوس */
|
| 130 |
.stTextInput input:focus,
|
| 131 |
.stNumberInput input:focus,
|