code-slicer commited on
Commit
b5845d0
·
verified ·
1 Parent(s): b0ad61f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -19
app.py CHANGED
@@ -194,28 +194,16 @@ COLOR = "#F1F1F1"
194
 
195
  st.markdown(f"""
196
  <style>
197
- html, body {{
198
- height: 100%;
199
- margin: 0;
200
- }}
201
-
202
- /* 상단·배경 투명 처리 */
203
- header[data-testid="stHeader"],
204
  [data-testid="stAppViewContainer"],
205
- main, section.main {{ background: transparent !important; }}
206
-
207
- /* 남아있을 수 있는 레이어 제거 */
208
- .stApp::before, .stApp::after,
209
- .block-container::before, .block-container::after {{ content:none !important; }}
210
-
211
- /* 중앙 컬럼에만 단색 배경 */
212
- .block-container {{
213
- position: relative;
214
- min-height: 100%;
215
- background: {COLOR} !important;
216
  }}
217
 
218
- .block-container > * {{ position: relative; z-index: 1; }}
 
 
 
219
  </style>
220
  """, unsafe_allow_html=True)
221
 
 
194
 
195
  st.markdown(f"""
196
  <style>
197
+ /* 전체 앱을 감싸는 컨테이너와 헤더는 투명하게 처리 */
 
 
 
 
 
 
198
  [data-testid="stAppViewContainer"],
199
+ header[data-testid="stHeader"] {{
200
+ background: none;
 
 
 
 
 
 
 
 
 
201
  }}
202
 
203
+ /* 실제 콘텐츠가 담기고 스크롤되는 main 영역에 배경색 적용 */
204
+ .main {{
205
+ background: {COLOR};
206
+ }}
207
  </style>
208
  """, unsafe_allow_html=True)
209