aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui/html/stories.html
blob: 9f41fdeaf324a8446d7c082a0c78a2fc3666a7a4 (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
<!DOCTYPE html>
<html>
  <head>
    <title>Stories</title>
    <style>
      /* page css */
      div.page {
        margin: 0px;
        padding: 0px;
        font-size: 100%;
        font-family: Arial, Helvetica, sans-serif;
      }
      div.page p:not([class]) {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      div.page {
        width: 100%;
        display: flex;
        flex-direction: row;
      }
      /* sidebar css */
      div.sidebar {
        min-width: 200px;
        height: calc(100vh - 20px);
        overflow-y: visible;
        overflow-x: hidden;
        scroll-behavior: smooth;
      }
      div.sidebar > ol {
        padding: 4px;
      }
      div.sidebar div:first-child {
        background-color: lightcoral;
        cursor: pointer;
      }
      div.sidebar div[data-hide="true"] {
        display: none;
      }
      div.sidebar dd {
        margin-left: 1em;
        padding: 4px;
        cursor: pointer;
        border-radius: 4px;
        margin-bottom: 4px;
      }
      div.sidebar dd:nth-child(even) {
        background-color: lightgray;
      }
      div.sidebar dd:nth-child(odd) {
        background-color: lightblue;
      }
      div.sidebar a {
        color: black;
      }
      div.sidebar dd[data-selected] {
        background-color: green;
      }

      /* content css */
      div.content {
        width: 100%;
        padding: 20px;
      }
    </style>
    <script src="./stories.js"></script>
    <link rel="stylesheet" href="./main.css" />
  </head>
  <body>
    <taler-stories id="container"></taler-stories>
  </body>
</html>