Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
49 lines (42 loc) · 3.32 KB
/
Copy pathstyle.css
File metadata and controls
49 lines (42 loc) · 3.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
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: #0d1117; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.editor-container { width: 100%; max-width: 700px; background: #161b22; border: 1px solid #30363d; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); animation: slideUp 0.5s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.editor-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: #0d1117; border-bottom: 1px solid #30363d; }
.window-controls { display: flex; gap: 0.4rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.file-tab { color: #c9d1d9; font-size: 0.85rem; font-weight: 600; padding: 0.25rem 0.75rem; background: #21262d; border-radius: 8px; }
.file-tab i { color: #f7df1e; margin-right: 0.25rem; }
.header-actions { display: flex; gap: 0.5rem; }
.run-btn, .clear-btn { padding: 0.4rem 0.85rem; border: none; border-radius: 8px; font-weight: 700; font-size: 0.8rem; cursor: pointer; font-family: inherit; transition: all 0.25s ease; }
.run-btn { background: #238636; color: #fff; }
.run-btn:hover { background: #2ea043; transform: translateY(-1px); }
.clear-btn { background: #21262d; color: #f85149; }
.clear-btn:hover { background: #30363d; }
.run-btn i { margin-right: 0.25rem; }
.editor-body { display: flex; background: #0d1117; min-height: 250px; }
.line-numbers { padding: 1rem 0.5rem 1rem 1rem; text-align: right; color: #484f58; font-family: 'Courier New', monospace; font-size: 0.85rem; line-height: 1.6; user-select: none; min-width: 45px; }
.code-area { flex: 1; position: relative; }
#codeInput, .code-highlight { position: absolute; inset: 0; padding: 1rem; font-family: 'Courier New', monospace; font-size: 0.85rem; line-height: 1.6; border: none; resize: none; background: transparent; white-space: pre; overflow: auto; }
#codeInput { color: transparent; caret-color: #c9d1d9; z-index: 2; }
#codeInput:focus { outline: none; }
.code-highlight { z-index: 1; pointer-events: none; color: #c9d1d9; }
.code-highlight .keyword { color: #ff7b72; }
.code-highlight .string { color: #a5d6ff; }
.code-highlight .comment { color: #8b949e; font-style: italic; }
.code-highlight .number { color: #79c0ff; }
.code-highlight .function { color: #d2a8ff; }
.console { border-top: 1px solid #30363d; background: #0d1117; }
.console-header { padding: 0.65rem 1rem; color: #6e7681; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #21262d; }
.console-header i { margin-right: 0.25rem; }
.console-body { padding: 0.75rem 1rem; max-height: 150px; overflow-y: auto; font-family: 'Courier New', monospace; font-size: 0.85rem; line-height: 1.5; }
.console-body::-webkit-scrollbar { width: 4px; }
.console-body::-webkit-scrollbar-thumb { background: #30363d; border-radius: 2px; }
.console-line { margin-bottom: 0.25rem; }
.console-line.log { color: #7ee787; }
.console-line.error { color: #f85149; }
.console-line.info { color: #79c0ff; }
.console-line .prefix { color: #6e7681; margin-right: 0.5rem; }