Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,36 +138,45 @@ html, body, .stApp {
|
|
| 138 |
background: #333;
|
| 139 |
border-radius: 2px;
|
| 140 |
}
|
| 141 |
-
/*
|
| 142 |
-
[data-testid="stAppViewContainer"]
|
| 143 |
padding-right: 5px !important;
|
| 144 |
padding-left: 8px !important;
|
|
|
|
| 145 |
}
|
| 146 |
-
|
| 147 |
-
/* تن
|
| 148 |
-
[data-testid="stAppViewContainer"]
|
| 149 |
-
[data-testid="stAppViewContainer"]
|
| 150 |
-
[data-testid="stAppViewContainer"] .
|
| 151 |
-
[data-testid="stAppViewContainer"] .
|
| 152 |
-
[data-testid="stAppViewContainer"] .
|
| 153 |
-
[data-testid="stAppViewContainer"] .
|
| 154 |
-
[data-testid="stAppViewContainer"] .
|
|
|
|
|
|
|
| 155 |
[data-testid="stAppViewContainer"] .price-container,
|
| 156 |
[data-testid="stAppViewContainer"] .explanation-item,
|
| 157 |
[data-testid="stAppViewContainer"] .stAlert,
|
| 158 |
[data-testid="stAppViewContainer"] .stMarkdown,
|
| 159 |
-
[data-testid="stAppViewContainer"] .folium-map
|
| 160 |
-
|
| 161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
}
|
| 163 |
-
|
| 164 |
-
/* تنظیمات
|
| 165 |
-
[data-testid="stAppViewContainer"]
|
| 166 |
-
[data-testid="stAppViewContainer"]
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
|
|
|
|
|
|
| 171 |
padding-right: 0 !important;
|
| 172 |
padding-left: 0 !important;
|
| 173 |
}
|
|
|
|
| 138 |
background: #333;
|
| 139 |
border-radius: 2px;
|
| 140 |
}
|
| 141 |
+
/* تنظیم پدینگ عمومی با * */
|
| 142 |
+
[data-testid="stAppViewContainer"] * {
|
| 143 |
padding-right: 5px !important;
|
| 144 |
padding-left: 8px !important;
|
| 145 |
+
box-sizing: border-box !important;
|
| 146 |
}
|
| 147 |
+
|
| 148 |
+
/* استثناهای اصلی */
|
| 149 |
+
[data-testid="stAppViewContainer"]::after,
|
| 150 |
+
[data-testid="stAppViewContainer"]::-webkit-scrollbar,
|
| 151 |
+
[data-testid="stAppViewContainer"] .stButton>button,
|
| 152 |
+
[data-testid="stAppViewContainer"] .stTextInput>div>div>input,
|
| 153 |
+
[data-testid="stAppViewContainer"] .stNumberInput>div>div>input,
|
| 154 |
+
[data-testid="stAppViewContainer"] .stSelectbox>div>div>select,
|
| 155 |
+
[data-testid="stAppViewContainer"] .stTextArea>div>textarea,
|
| 156 |
+
[data-testid="stAppViewContainer"] .stDateInput>div>div>input,
|
| 157 |
+
[data-testid="stAppViewContainer"] .stTimeInput>div>div>input,
|
| 158 |
[data-testid="stAppViewContainer"] .price-container,
|
| 159 |
[data-testid="stAppViewContainer"] .explanation-item,
|
| 160 |
[data-testid="stAppViewContainer"] .stAlert,
|
| 161 |
[data-testid="stAppViewContainer"] .stMarkdown,
|
| 162 |
+
[data-testid="stAppViewContainer"] .folium-map,
|
| 163 |
+
[data-testid="stAppViewContainer"] .stRadio>div>div>div>label,
|
| 164 |
+
[data-testid="stAppViewContainer"] .stCheckbox>div>div>label,
|
| 165 |
+
[data-testid="stAppViewContainer"] .stSlider>div>div>div>div,
|
| 166 |
+
[data-testid="stAppViewContainer"] .stMultiSelect>div>div>div {
|
| 167 |
+
padding-right: 0 !important;
|
| 168 |
+
padding-left: 0 !important;
|
| 169 |
}
|
| 170 |
+
|
| 171 |
+
/* تنظیمات خاص برای کانتینرهای Streamlit */
|
| 172 |
+
[data-testid="stAppViewContainer"] [data-testid="stVerticalBlock"]>div,
|
| 173 |
+
[data-testid="stAppViewContainer"] [data-testid="stHorizontalBlock"]>div {
|
| 174 |
+
padding-right: 5px !important;
|
| 175 |
+
padding-left: 8px !important;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
/* بازنشانی پدینگ برای المانهای داخلی خاص */
|
| 179 |
+
[data-testid="stAppViewContainer"] .stSelectbox>div {
|
| 180 |
padding-right: 0 !important;
|
| 181 |
padding-left: 0 !important;
|
| 182 |
}
|