-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
57 lines (52 loc) · 1.3 KB
/
style.css
File metadata and controls
57 lines (52 loc) · 1.3 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
/* style.css */
* { box-sizing:border-box; margin:0; padding:0; }
:root { --header-h:3rem; }
body {
height:100vh;
display:flex;
flex-direction:column;
font-family:Arial,sans-serif;
}
body.light { background:#fdfdfd; color:#333; }
body.dark { background:#1e1e1e; color:#ddd; }
/* Header */
header {
height:var(--header-h);
display:flex; align-items:center;
padding:0 1rem; background:#00509e; color:#fff;
}
header .logo { font-weight:bold; margin-right:1rem; }
header select, header button {
margin-left:0.5rem; padding:0.3rem 0.6rem;
border:none; border-radius:4px;
background:#f0f0f0; color:#333;
cursor:pointer; font-size:0.9rem;
}
body.dark header select,
body.dark header button {
background:#333; color:#fff;
}
/* Editor & Preview */
#container {
flex:1; display:flex; overflow:hidden;
}
#container > .CodeMirror { flex:1; height:100%; }
#preview {
flex:1; padding:1rem; overflow:auto;
background:rgba(0,0,0,0.03);
}
body.dark #preview {
background:rgba(255,255,255,0.05);
}
/* SQL tables */
#preview table {
border-collapse:collapse; width:100%; margin-top:0.5rem;
}
#preview th, #preview td {
border:1px solid #aaa; padding:0.3rem 0.5rem; text-align:left;
}
/* Responsive */
@media(max-width:768px) {
#container { flex-direction:column; }
#container > .CodeMirror { height:50%; }
}