summaryrefslogtreecommitdiff
path: root/internal/mdedit/res/style.css
blob: 01cd0c2c6a1512a5d8f4a7bad85303b9378a4d11 (plain)
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
:root {
  height: 100vh;
  overflow: none;
}

body {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-rows: 2rem 1fr;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "nav nav" "editor preview";
  overflow: hidden;
  height: 100vh;
  font-family: system-ui, sans-serif;

  & > nav { grid-area: nav; }
  & > textarea#editor { grid-area: editor; }
  & > div#preview { grid-area: preview; }
}

nav {
  height: 2rem;
  line-height: 2rem;
  padding: 0 1rem;
  background: #111;
  color: white;

  & > span#title { font-weight: bold; }
}

textarea#editor {
  margin: 0;
  border: none;
  background: #333;
  color: white;

  resize: none;
  overflow-y: scroll;
  height: 100%;
}

div#preview {
  padding: 0 1rem;

  overflow: scroll;
  height: 100%;
}