Jerrycool commited on
Commit
2137a82
·
verified ·
1 Parent(s): 25f103f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -22
app.py CHANGED
@@ -309,57 +309,56 @@ body {
309
 
310
  markdown_css = """
311
  /* ===============================
312
- About Tab – Markdown Typography
313
  =============================== */
314
  .markdown-text, .markdown-text p {
315
- font-family: Arial, Helvetica, sans-serif;
316
- font-size: 1.1rem;
317
- line-height: 1.75;
318
- /* color: #344054; REMOVED - Rely on theme */
319
- margin-bottom: 0.9rem;
320
  }
321
 
322
  .markdown-text h1,
323
  .markdown-text h2,
324
  .markdown-text h3 {
325
- /* color: #212529; REMOVED - Rely on theme */
326
  font-weight: 600;
327
  line-height: 1.3;
328
- margin: 1.4rem 0 0.8rem 0;
329
  }
330
- .markdown-text h1 { font-size: 1.7rem; }
331
- .markdown-text h2 { font-size: 1.5rem; }
332
- .markdown-text h3 { font-size: 1.3rem; }
333
 
334
  .markdown-text ul,
335
  .markdown-text ol {
336
- padding-left: 1.6rem;
337
- margin-bottom: 1.1rem;
338
  }
339
 
340
  /* Code blocks - light mode */
341
  .markdown-text pre, .markdown-text code {
342
  font-family: "Source Code Pro", "Menlo", monospace;
343
- background-color: #f1f3f5; /* Light background for light mode */
344
- color: #333; /* Dark text for light mode */
345
  border-radius: 0.4rem;
346
- border: 1px solid #dee2e6; /* Light border */
347
  }
348
  .markdown-text pre {
349
  padding: 1rem 1.2rem;
350
  overflow-x: auto;
351
  }
352
  .markdown-text code {
353
- padding: 0.15rem 0.4rem;
354
- font-size: 0.95rem;
355
  }
356
 
357
  @media (max-width: 768px) {
358
- .markdown-text, .markdown-text p { font-size: 1.1rem; }
359
- .markdown-text h1 { font-size: 1.6rem; }
360
- .markdown-text h2 { font-size: 1.4rem; }
361
- .markdown-text h3 { font-size: 1.25rem; }
362
  }
 
363
  """
364
 
365
  tab_css = """
 
309
 
310
  markdown_css = """
311
  /* ===============================
312
+ About Tab – Markdown Typography (Updated)
313
  =============================== */
314
  .markdown-text, .markdown-text p {
315
+ font-family: "Segoe UI", "Helvetica Neue", sans-serif;
316
+ font-size: 1.2rem;
317
+ line-height: 1.8;
318
+ margin-bottom: 1rem;
 
319
  }
320
 
321
  .markdown-text h1,
322
  .markdown-text h2,
323
  .markdown-text h3 {
 
324
  font-weight: 600;
325
  line-height: 1.3;
326
+ margin: 1.5rem 0 0.9rem 0;
327
  }
328
+ .markdown-text h1 { font-size: 1.9rem; }
329
+ .markdown-text h2 { font-size: 1.6rem; }
330
+ .markdown-text h3 { font-size: 1.4rem; }
331
 
332
  .markdown-text ul,
333
  .markdown-text ol {
334
+ padding-left: 1.8rem;
335
+ margin-bottom: 1.2rem;
336
  }
337
 
338
  /* Code blocks - light mode */
339
  .markdown-text pre, .markdown-text code {
340
  font-family: "Source Code Pro", "Menlo", monospace;
341
+ background-color: #f1f3f5;
342
+ color: #333;
343
  border-radius: 0.4rem;
344
+ border: 1px solid #dee2e6;
345
  }
346
  .markdown-text pre {
347
  padding: 1rem 1.2rem;
348
  overflow-x: auto;
349
  }
350
  .markdown-text code {
351
+ padding: 0.2rem 0.45rem;
352
+ font-size: 1rem;
353
  }
354
 
355
  @media (max-width: 768px) {
356
+ .markdown-text, .markdown-text p { font-size: 1.15rem; }
357
+ .markdown-text h1 { font-size: 1.75rem; }
358
+ .markdown-text h2 { font-size: 1.5rem; }
359
+ .markdown-text h3 { font-size: 1.35rem; }
360
  }
361
+
362
  """
363
 
364
  tab_css = """