File size: 1,611 Bytes
01a8e32 | 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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | :root {
color-scheme: light;
--border: #e5e5e5;
--bg: #fafafa;
--text: #222;
--muted: #666;
}
body {
margin: 0;
font-family:
system-ui,
-apple-system,
Segoe UI,
Roboto,
"Noto Sans CJK SC",
"Noto Sans SC",
Arial,
sans-serif;
color: var(--text);
}
.header {
padding: 16px 20px;
border-bottom: 1px solid var(--border);
background: white;
}
.header h1 {
margin: 0 0 12px 0;
font-size: 18px;
}
.toolbar {
display: flex;
gap: 10px;
align-items: center;
}
button,
select {
height: 32px;
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: white;
}
button {
cursor: pointer;
}
.main {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
padding: 16px;
}
.panel {
border: 1px solid var(--border);
border-radius: 10px;
background: var(--bg);
padding: 12px;
min-height: 60vh;
}
.panel h2 {
margin: 0 0 10px 0;
font-size: 15px;
}
.hint {
margin: 0 0 10px 0;
color: var(--muted);
font-size: 13px;
}
textarea {
width: 100%;
height: calc(60vh - 80px);
resize: vertical;
padding: 10px;
border-radius: 8px;
border: 1px solid var(--border);
font-size: 14px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.output {
background: white;
border: 1px solid var(--border);
border-radius: 8px;
padding: 12px;
min-height: calc(60vh - 50px);
line-height: 2.1;
white-space: pre-wrap;
}
ruby {
ruby-position: over;
ruby-align: center;
padding: 0 1px;
}
rt {
font-size: 12px;
color: #6f2dbd;
}
|