Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
45 lines (35 loc) · 2.96 KB
/
Copy pathstyle.css
File metadata and controls
45 lines (35 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: #0f172a; min-height: 100vh; color: #e2e8f0; }
.container { max-width: 1000px; margin: 0 auto; padding: 2rem 1rem; }
header { text-align: center; margin-bottom: 1.5rem; }
header h1 { font-size: 1.5rem; color: #fff; }
header h1 i { color: #6366f1; margin-right: 0.5rem; }
.subtitle { color: #64748b; font-size: 0.85rem; margin-top: 0.25rem; }
.editor-area { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; height: 70vh; }
.editor-panel, .preview-panel { display: flex; flex-direction: column; background: #1e293b; border: 1px solid #334155; border-radius: 16px; overflow: hidden; }
.panel-header { padding: 0.75rem 1rem; background: #334155; color: #94a3b8; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.panel-header i { margin-right: 0.25rem; color: #6366f1; }
#editor { flex: 1; padding: 1rem; border: none; background: #1e293b; color: #e2e8f0; font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.6; resize: none; }
#editor:focus { outline: none; }
.preview { flex: 1; padding: 1rem; overflow-y: auto; line-height: 1.7; }
.preview::-webkit-scrollbar { width: 4px; }
.preview::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }
.preview h1 { font-size: 1.75rem; color: #fff; margin-bottom: 0.5rem; border-bottom: 1px solid #334155; padding-bottom: 0.25rem; }
.preview h2 { font-size: 1.4rem; color: #fff; margin: 1rem 0 0.5rem; }
.preview h3 { font-size: 1.15rem; color: #c7d2fe; margin: 0.75rem 0 0.5rem; }
.preview p { color: #cbd5e1; margin-bottom: 0.75rem; font-size: 0.95rem; }
.preview ul, .preview ol { margin: 0.5rem 0 0.75rem 1.5rem; color: #cbd5e1; }
.preview li { margin-bottom: 0.25rem; }
.preview code { background: #334155; color: #f0abfc; padding: 0.15rem 0.4rem; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 0.85rem; }
.preview pre { background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 1rem; overflow-x: auto; margin-bottom: 0.75rem; }
.preview pre code { background: none; color: #e2e8f0; padding: 0; }
.preview blockquote { border-left: 3px solid #6366f1; padding-left: 1rem; margin: 0.5rem 0; color: #94a3b8; font-style: italic; }
.preview a { color: #818cf8; text-decoration: underline; }
.preview strong { color: #fff; font-weight: 700; }
.preview em { color: #c7d2fe; }
.preview hr { border: none; border-top: 1px solid #334155; margin: 1rem 0; }
.preview img { max-width: 100%; border-radius: 10px; }
.preview table { border-collapse: collapse; width: 100%; margin-bottom: 0.75rem; }
.preview th, .preview td { border: 1px solid #334155; padding: 0.5rem; text-align: left; color: #cbd5e1; font-size: 0.85rem; }
.preview th { background: #334155; color: #fff; }
@media (max-width: 700px) { .editor-area { grid-template-columns: 1fr; height: auto; } #editor { min-height: 200px; } .preview { min-height: 200px; max-height: 400px; } }