File size: 2,404 Bytes
b95ac18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
* {
    box-sizing: border-box;
  }
  html,
  body,
  #app {
    height: 100%;
  }
  body {
    margin: 0;
    font-family: -apple-system, "system-ui", "Segoe UI Adjusted", "Segoe UI",
      "Liberation Sans", sans-serif;
  }
  pre {
    overflow-x: auto;
    border-radius: 6px;
  }
  button {
    border: none;
    background-color: transparent;
    color: inherit;
    padding: 0;
    cursor: pointer;
  }
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  #app {
    display: flex;
    flex-direction: column;
  }
  header {
    position: relative;
    width: 100%;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    color: white;
  }
  header > button {
    position: absolute;
    padding: 12px;
  }
  button.menu {
    left: 0;
  }
  button.clear {
    right: 0;
  }
  .hidden {
    display: none;
  }
  aside {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
  }
  .sidebar-container {
    background-color: #333;
    color: white;
    width: 300px;
    overflow-y: auto;
  }
  .sidebar-modal {
    flex: 1 0;
    min-width: 64px;
    background-color: rgba(0, 0, 0, 0.3);
  }
  li > button {
    width: 100%;
    height: 48px;
    text-align: left;
    padding: 0 16px;
    transition: background-color 0.2s;
  }
  li > button:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  main {
    flex-grow: 1;
    overflow-y: auto;
  }
  .chat-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    overflow-wrap: break-word;
  }
  .chat-container .message {
    padding: 2px 16px;
  }

  .chat-container code:not(.hljs) {
    color: #4d4d4d;
    padding: 0 5px;
    display: inline-block;
  }

  .chat-container .assistant {
    background-color: #f0f0f0;
  }
  footer {
    width: 100%;
    padding: 8px;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  #input-box {
    width: 100%;
    max-width: 768px;
    padding: 8px;
    border-width: 1px;
    border-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }

  .hljs-code-header {
    display: flex;
    justify-content: space-between;
    padding: 3px 6px;
    background-color: #9b9b9b;
    color: #fff;
  }