aboutsummaryrefslogtreecommitdiff
path: root/www/index.html
blob: 36e30c73180e2c2406aabd20c6bc28073f96b113 (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
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
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>CSTea</title>
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap" rel="stylesheet">
  </head>
  <style>

html, body {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 14px;
}

.grid-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.syntax-node {
  padding-left: 5px;
  margin-left: 20px;
  background-color: #2c313a;
}

.syntax-node:hover {
  background-color: #545c6933;
}

.syntax-err {
  color: #e06c75;
}

.header {
  text-align: center;
  padding: 12px 0;
}

#cst, #source-code, .header,
a, a:hover, a:visited {
  background-color: #282c34;
  color: #a3aab6;
}

#cst, #source-code {
  height: 100vh;
  overflow: scroll;
}

.cm-editor * {
  font-family: 'IBM Plex Mono', monospace;
}

pre {
  padding: 0px;
  margin: 0px;
  font-family: 'IBM Plex Mono', monospace;
}

  </style>
  <body>
    <noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript>
    <script src="./bootstrap.js"></script>
    <div class="header">
      explore rust csts · <a href="https://git.peppe.rs/web/cstea/about">src</a>
    </div>
    <div class="grid-container">
      <div id="source-code"></div>
      <div id="cst">
      </div>
    </div>
  </body>
</html>