Spaces:
Sleeping
Sleeping
Commit ·
ee76f73
1
Parent(s): 5e51ca3
UI: improve contrast for light background; make cards readable
Browse files- static/css/style.css +25 -25
static/css/style.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
/* Consolidated styles extracted from the original template */
|
| 2 |
:root {
|
| 3 |
-
--primary: #
|
| 4 |
-
--secondary: #
|
| 5 |
-
--dark: #
|
| 6 |
-
--light: #
|
| 7 |
-
--
|
| 8 |
-
--
|
| 9 |
-
--
|
| 10 |
}
|
| 11 |
|
| 12 |
body {
|
|
@@ -37,26 +37,26 @@ body::before {
|
|
| 37 |
}
|
| 38 |
|
| 39 |
.main-container { display:flex; flex-direction:column; gap:25px; width:100%; max-width:1200px; padding:20px }
|
| 40 |
-
.container { background:
|
| 41 |
.link-container { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap:20px; width:100% }
|
| 42 |
-
.function-box { background:
|
| 43 |
-
.function-box:hover { transform:translateY(-5px) scale(1.02);
|
| 44 |
-
.function-box h2 { font-size:1.6em; margin-bottom:12px; z-index:2;
|
| 45 |
-
.function-box p { font-size:0.95em; opacity:0.
|
| 46 |
-
.output-container { display:none; margin-top:20px; padding:18px; background:
|
| 47 |
|
| 48 |
.output-container { position:relative }
|
| 49 |
|
| 50 |
/* Top-right download icon inside the output container */
|
| 51 |
-
.download-icon { position:absolute; top:10px; right:10px; width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; background: rgba(
|
| 52 |
.download-icon i { font-size:16px }
|
| 53 |
|
| 54 |
/* Ensure output content has padding to avoid overlapping the icon */
|
| 55 |
.output-container .content-inner { padding-top:8px }
|
| 56 |
|
| 57 |
/* Footer */
|
| 58 |
-
.site-footer { width:100%; max-width:1200px; margin:24px auto 8px; color:
|
| 59 |
-
.site-footer .footer-inner { background:
|
| 60 |
.site-footer .heart { color:#ff6b6b; margin:0 4px }
|
| 61 |
.site-footer .sep { opacity:0.6 }
|
| 62 |
.loading { display:none; margin-top:10px }
|
|
@@ -65,32 +65,32 @@ body::before {
|
|
| 65 |
.spinner { width:32px; height:32px; border-radius:50%; border:4px solid rgba(255,255,255,0.15); border-top-color: #ffffff; animation: spin 1s linear infinite; margin:8px auto }
|
| 66 |
@keyframes spin { to { transform: rotate(360deg); } }
|
| 67 |
|
| 68 |
-
.function-box .meta { position:absolute; top:12px; right:12px; font-size:0.85rem; color:
|
| 69 |
|
| 70 |
.function-box.disabled { opacity:0.48; transform:none; pointer-events:none }
|
| 71 |
|
| 72 |
-
.badge { display:inline-block; background: rgba(
|
| 73 |
|
| 74 |
-
.demo-btn { background: linear-gradient(90deg,
|
| 75 |
.demo-btn { position: relative; padding-right:44px }
|
| 76 |
.demo-btn-wrap { display:inline-block; position:relative }
|
| 77 |
.demo-download-icon { position:absolute; right:6px; top:50%; transform:translateY(-50%); width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.28); color:#fff; border-radius:8px; border:1px solid rgba(255,255,255,0.06); text-decoration:none }
|
| 78 |
.demo-download-icon i { font-size:14px }
|
| 79 |
|
| 80 |
-
.error-message { color: #
|
| 81 |
|
| 82 |
.download-btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 20px; margin-top:15px; border-radius:8px; background: linear-gradient(135deg,var(--primary),var(--secondary)); color:white; font-weight:600; text-decoration:none }
|
| 83 |
|
| 84 |
/* Upload container */
|
| 85 |
.upload-container { background:var(--glass); backdrop-filter: blur(12px); border-radius:20px; padding:30px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); border:1px solid var(--glass-border); max-width:500px; margin:0 auto }
|
| 86 |
-
input[type=file] { margin:20px 0; padding:15px; border:2px dashed rgba(
|
| 87 |
-
button { padding:12px 25px; margin:10px; border:none; border-radius:10px; background: linear-gradient(45deg,
|
| 88 |
.download-btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 20px; margin-top:15px; border-radius:8px; background: linear-gradient(135deg,var(--primary),var(--secondary)); color:white; font-weight:600 }
|
| 89 |
|
| 90 |
/* Navbar */
|
| 91 |
-
.navbar { backdrop-filter: blur(
|
| 92 |
-
.navbar .title { font-size:1.6rem; font-weight:700; display:flex; align-items:center; gap:0.6rem; color:
|
| 93 |
-
.tagline { font-size:0.95rem; color:
|
| 94 |
|
| 95 |
.box-badges { position:absolute; left:16px; top:12px; display:flex; gap:8px }
|
| 96 |
.box-badges .badge { background: rgba(255,255,255,0.06); color:#fff; padding:6px 10px; border-radius:999px; font-size:0.75rem; border:1px solid rgba(255,255,255,0.06) }
|
|
|
|
| 1 |
/* Consolidated styles extracted from the original template */
|
| 2 |
:root {
|
| 3 |
+
--primary: #2f7a3e;
|
| 4 |
+
--secondary: #6cc06a;
|
| 5 |
+
--dark: #0f172a;
|
| 6 |
+
--light: #f8faf6;
|
| 7 |
+
--card-bg: rgba(255,255,255,0.92);
|
| 8 |
+
--card-border: rgba(15,23,42,0.06);
|
| 9 |
+
--muted: #6b7280;
|
| 10 |
}
|
| 11 |
|
| 12 |
body {
|
|
|
|
| 37 |
}
|
| 38 |
|
| 39 |
.main-container { display:flex; flex-direction:column; gap:25px; width:100%; max-width:1200px; padding:20px }
|
| 40 |
+
.container { background: var(--card-bg); border-radius:20px; padding:40px; border:1px solid var(--card-border); color:var(--dark) }
|
| 41 |
.link-container { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap:20px; width:100% }
|
| 42 |
+
.function-box { background: #ffffff; box-shadow: 0 6px 18px rgba(15,23,42,0.04); cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:180px; padding:25px; border-radius:18px; border:1px solid var(--card-border); position:relative; overflow:hidden }
|
| 43 |
+
.function-box:hover { transform:translateY(-5px) scale(1.02); box-shadow: 0 12px 30px rgba(15,23,42,0.06); }
|
| 44 |
+
.function-box h2 { font-size:1.6em; margin-bottom:12px; z-index:2; color:var(--dark); }
|
| 45 |
+
.function-box p { font-size:0.95em; opacity:0.95; margin-top:0; z-index:2; color:var(--muted) }
|
| 46 |
+
.output-container { display:none; margin-top:20px; padding:18px; background: #ffffff; border-radius:12px; text-align:left; max-height:300px; overflow-y:auto; width:100%; border-left:3px solid var(--primary); box-shadow:0 6px 18px rgba(15,23,42,0.04) }
|
| 47 |
|
| 48 |
.output-container { position:relative }
|
| 49 |
|
| 50 |
/* Top-right download icon inside the output container */
|
| 51 |
+
.download-icon { position:absolute; top:10px; right:10px; width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; background: rgba(15,23,42,0.06); color:var(--dark); border-radius:8px; text-decoration:none; border:1px solid rgba(15,23,42,0.04) }
|
| 52 |
.download-icon i { font-size:16px }
|
| 53 |
|
| 54 |
/* Ensure output content has padding to avoid overlapping the icon */
|
| 55 |
.output-container .content-inner { padding-top:8px }
|
| 56 |
|
| 57 |
/* Footer */
|
| 58 |
+
.site-footer { width:100%; max-width:1200px; margin:24px auto 8px; color:var(--muted); font-size:0.9rem }
|
| 59 |
+
.site-footer .footer-inner { background: #ffffff; padding:10px 16px; border-radius:12px; display:inline-flex; gap:8px; align-items:center; box-shadow:0 6px 18px rgba(15,23,42,0.04); border:1px solid var(--card-border) }
|
| 60 |
.site-footer .heart { color:#ff6b6b; margin:0 4px }
|
| 61 |
.site-footer .sep { opacity:0.6 }
|
| 62 |
.loading { display:none; margin-top:10px }
|
|
|
|
| 65 |
.spinner { width:32px; height:32px; border-radius:50%; border:4px solid rgba(255,255,255,0.15); border-top-color: #ffffff; animation: spin 1s linear infinite; margin:8px auto }
|
| 66 |
@keyframes spin { to { transform: rotate(360deg); } }
|
| 67 |
|
| 68 |
+
.function-box .meta { position:absolute; top:12px; right:12px; font-size:0.85rem; color: var(--muted) }
|
| 69 |
|
| 70 |
.function-box.disabled { opacity:0.48; transform:none; pointer-events:none }
|
| 71 |
|
| 72 |
+
.badge { display:inline-block; background: rgba(15,23,42,0.04); color: var(--dark); padding:6px 10px; border-radius:999px; margin-right:8px; font-size:0.8rem; border:1px solid rgba(15,23,42,0.04) }
|
| 73 |
|
| 74 |
+
.demo-btn { background: linear-gradient(90deg,var(--primary),var(--secondary)); padding:10px 16px; border-radius:10px; margin-left:8px; color:white }
|
| 75 |
.demo-btn { position: relative; padding-right:44px }
|
| 76 |
.demo-btn-wrap { display:inline-block; position:relative }
|
| 77 |
.demo-download-icon { position:absolute; right:6px; top:50%; transform:translateY(-50%); width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.28); color:#fff; border-radius:8px; border:1px solid rgba(255,255,255,0.06); text-decoration:none }
|
| 78 |
.demo-download-icon i { font-size:14px }
|
| 79 |
|
| 80 |
+
.error-message { color: #9b1c1c; background: rgba(255,0,0,0.06); padding:10px; border-radius:8px }
|
| 81 |
|
| 82 |
.download-btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 20px; margin-top:15px; border-radius:8px; background: linear-gradient(135deg,var(--primary),var(--secondary)); color:white; font-weight:600; text-decoration:none }
|
| 83 |
|
| 84 |
/* Upload container */
|
| 85 |
.upload-container { background:var(--glass); backdrop-filter: blur(12px); border-radius:20px; padding:30px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); border:1px solid var(--glass-border); max-width:500px; margin:0 auto }
|
| 86 |
+
input[type=file] { margin:20px 0; padding:15px; border:2px dashed rgba(15,23,42,0.08); border-radius:10px; background: transparent; color:var(--dark); width:80%; max-width:400px }
|
| 87 |
+
.button, button { padding:12px 25px; margin:10px; border:none; border-radius:10px; background: linear-gradient(45deg,var(--primary),var(--secondary)); color:white; cursor:pointer }
|
| 88 |
.download-btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 20px; margin-top:15px; border-radius:8px; background: linear-gradient(135deg,var(--primary),var(--secondary)); color:white; font-weight:600 }
|
| 89 |
|
| 90 |
/* Navbar */
|
| 91 |
+
.navbar { backdrop-filter: blur(6px); background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.85)); border-radius:1rem; margin:1.2rem auto; max-width:1200px; padding:0.8rem 3rem; display:flex; align-items:center; justify-content:space-between; box-shadow: 0 6px 24px rgba(15,23,42,0.04); border:1px solid var(--card-border) }
|
| 92 |
+
.navbar .title { font-size:1.6rem; font-weight:700; display:flex; align-items:center; gap:0.6rem; color:var(--dark) }
|
| 93 |
+
.tagline { font-size:0.95rem; color: var(--muted); margin-top:4px }
|
| 94 |
|
| 95 |
.box-badges { position:absolute; left:16px; top:12px; display:flex; gap:8px }
|
| 96 |
.box-badges .badge { background: rgba(255,255,255,0.06); color:#fff; padding:6px 10px; border-radius:999px; font-size:0.75rem; border:1px solid rgba(255,255,255,0.06) }
|