-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
73 lines (71 loc) · 2.32 KB
/
Copy pathstyles.css
File metadata and controls
73 lines (71 loc) · 2.32 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
* { box-sizing: border-box; }
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
background: #1e1e2e;
color: #cdd6f4;
height: 100vh;
display: flex;
flex-direction: column;
}
header {
padding: 10px 16px;
background: #181825;
border-bottom: 1px solid #313244;
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
header h1 { font-size: 15px; margin: 0; color: #f5e0dc; }
header .spacer { flex: 1; }
button {
background: #89b4fa;
color: #11111b;
border: none;
padding: 7px 14px;
border-radius: 6px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
button:hover { background: #74a8fc; }
button.ghost { background: #313244; color: #cdd6f4; }
button.ghost:hover { background: #45475a; }
.toast {
position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
background: #a6e3a1; color: #11111b; padding: 10px 20px; border-radius: 8px;
font-weight: 600; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.toast.show { opacity: 1; }
main { flex: 1; display: flex; min-height: 0; }
.pane { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pane + .pane { border-left: 1px solid #313244; }
.pane-label {
padding: 6px 14px; font-size: 12px; color: #9399b2;
background: #181825; border-bottom: 1px solid #313244;
display: flex; align-items: center; gap: 8px;
}
textarea {
flex: 1; border: none; resize: none; padding: 16px;
background: #1e1e2e; color: #cdd6f4;
font-family: "D2Coding", "Consolas", monospace; font-size: 14px;
line-height: 1.6; outline: none;
}
#preview {
flex: 1; overflow: auto; padding: 24px;
background: #fff; color: #222;
}
#htmlSource {
flex: 1; overflow: auto; margin: 0; padding: 16px;
background: #11111b; color: #a6adc8;
font-family: "Consolas", monospace; font-size: 12px;
white-space: pre-wrap; word-break: break-all; display: none;
}
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs button { padding: 3px 10px; font-size: 12px; }
.tabs button.active { background: #89b4fa; color: #11111b; }
.tabs button:not(.active) { background: #313244; color: #9399b2; }
/* Small helper styles (header counter & size indicator) — extracted from former inline styles */
#counter { margin-left: auto; color: #6c7086; }
#htmlSize { margin-left: 10px; color: #6c7086; }