code-slicer commited on
Commit
ab5c834
ยท
verified ยท
1 Parent(s): 449cd35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -18
app.py CHANGED
@@ -194,24 +194,24 @@ COLOR = "#F1F1F1"
194
 
195
  st.markdown(f"""
196
  <style>
197
- /* ์ƒ๋‹จ/์ปจํ…Œ์ด๋„ˆ๋Š” ํˆฌ๋ช… ์ฒ˜๋ฆฌ(์œ—๋ถ€๋ถ„ ํฐ ๋  ๋ฐฉ์ง€) */
198
  header[data-testid="stHeader"],
199
  [data-testid="stAppViewContainer"],
200
- main, section.main { background: transparent !important; }
201
 
202
- /* ์ž”์—ฌ ๋ ˆ์ด์–ด ์ œ๊ฑฐ */
203
  .stApp::before, .stApp::after,
204
- .block-container::before, .block-container::after { content:none !important; }
205
 
206
- /* โœ… ์ค‘์•™ ์ปฌ๋Ÿผ ๋ฐฐ๊ฒฝ (ํด๋ž˜์Šค/๋ฐ์ดํ„ฐ-testid ๋ชจ๋‘ ๋Œ€์‘) */
207
  section.main .block-container,
208
- section.main div[data-testid="block-container"] {
209
  position: relative;
210
  min-height: 100vh;
211
  background: {COLOR} !important;
212
- }
213
 
214
- /* โœ… ์ค‘์•™ ์ปฌ๋Ÿผ ๋‚ด๋ถ€ ๋ž˜ํผ๋“ค๋„ ๋™์ผ ์ƒ‰์œผ๋กœ ํ†ต์ผ โ†’ ๊ฒฝ๊ณ„/๋Š๊น€ ์ œ๊ฑฐ */
215
  section.main .block-container [data-testid="stVerticalBlock"],
216
  section.main .block-container [data-testid="stHorizontalBlock"],
217
  section.main .block-container [data-testid="stForm"],
@@ -219,19 +219,11 @@ section.main .block-container [data-testid="stMarkdownContainer"],
219
  section.main div[data-testid="block-container"] [data-testid="stVerticalBlock"],
220
  section.main div[data-testid="block-container"] [data-testid="stHorizontalBlock"],
221
  section.main div[data-testid="block-container"] [data-testid="stForm"],
222
- section.main div[data-testid="block-container"] [data-testid="stMarkdownContainer"] {
223
  background: {COLOR} !important;
224
  box-shadow: none !important;
225
  border: 0 !important;
226
- }
227
-
228
- /* ์ž…๋ ฅ์ฐฝ ๋ž˜ํผ๋Š” ํ†ค ๋‹จ์ ˆ ๋ฐฉ์ง€์šฉ ํˆฌ๋ช… ์ฒ˜๋ฆฌ(์ฑ„ํŒ…/์ผ๋ฐ˜ ๋‘˜ ๋‹ค) */
229
- div[data-testid="stChatInput"],
230
- div[data-testid="stTextInput"] {
231
- background: transparent !important;
232
- box-shadow: none !important;
233
- border: 0 !important;
234
- }
235
  </style>
236
  """, unsafe_allow_html=True)
237
 
 
194
 
195
  st.markdown(f"""
196
  <style>
197
+ /* ํ—ค๋”/์•ฑ ์ปจํ…Œ์ด๋„ˆ ํˆฌ๋ช…ํ™” โ†’ ์ƒ๋‹จ ํฐ ๋  ๋ฐฉ์ง€ */
198
  header[data-testid="stHeader"],
199
  [data-testid="stAppViewContainer"],
200
+ main, section.main {{ background: transparent !important; }}
201
 
202
+ /* ํ˜น์‹œ ๋‚จ์•„์žˆ์„ ์ˆ˜ ์žˆ๋Š” ๋ฐฐ๊ฒฝ ๋ ˆ์ด์–ด ์ œ๊ฑฐ */
203
  .stApp::before, .stApp::after,
204
+ .block-container::before, .block-container::after {{ content:none !important; }}
205
 
206
+ /* ์ค‘์•™ ์ปฌ๋Ÿผ๋งŒ ๋‹จ์ƒ‰ (๋‘ ์…€๋ ‰ํ„ฐ ๋ชจ๋‘ ๋Œ€์‘: class / data-testid) */
207
  section.main .block-container,
208
+ section.main div[data-testid="block-container"] {{
209
  position: relative;
210
  min-height: 100vh;
211
  background: {COLOR} !important;
212
+ }}
213
 
214
+ /* ๋‚ด๋ถ€ ๋ž˜ํผ๋“ค๋„ ์ปฌ๋Ÿฌ ํ†ต์ผ โ†’ ๊ฒฝ๊ณ„/๋Š๊น€ ์ œ๊ฑฐ */
215
  section.main .block-container [data-testid="stVerticalBlock"],
216
  section.main .block-container [data-testid="stHorizontalBlock"],
217
  section.main .block-container [data-testid="stForm"],
 
219
  section.main div[data-testid="block-container"] [data-testid="stVerticalBlock"],
220
  section.main div[data-testid="block-container"] [data-testid="stHorizontalBlock"],
221
  section.main div[data-testid="block-container"] [data-testid="stForm"],
222
+ section.main div[data-testid="block-container"] [data-testid="stMarkdownContainer"] {{
223
  background: {COLOR} !important;
224
  box-shadow: none !important;
225
  border: 0 !important;
226
+ }}
 
 
 
 
 
 
 
 
227
  </style>
228
  """, unsafe_allow_html=True)
229