File size: 2,905 Bytes
a7060a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
@import "../../assets/styles/global.prefix.css";

body {
  background: var(--color-neutral-background);
}

.editor {
  --main-bg-color: var(--color-neutral-surface);
  --sticky-items-offset: 48px;
  --topbar-height: 48px;
  --bottombar-height: 0;

  color: var(--color-neutral-content);
  width: 100%;
  height: 100%;
  min-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  background-color: transparent;

  &_fullscreen {
    position: absolute;
    background: var(--color-neutral-surface);
    top: 0;
    left: 0;
    width: 100%;
    padding: 2em;
  }
}

@media (width <= 760px) {
  /* phone */
  .editor {
    width: 300px;
    min-width: 300px;
  }
}

.wrapper {
  flex: 1;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 1fr;
  align-items: stretch;
  max-width: 100%;
  height: calc(100% - var(--sticky-items-offset));

  &_bsp {
    display: block;
  }

  &_showingBottomBar {
    --bottombar-height: 50px;
  }

  & .menu {
    padding-bottom: 8px;
  }
}

.main-view {
  flex: 1;
  z-index: 1;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: space-between;

  &__annotation {
    padding: 1em;
  }

  &__infobar {
    padding: 6px 1em 7px;
    font-size: 14px;
    color: var(--color-neutral-content-subtler);
    background-color: var(--main-bg-color);
    border-top: 1px solid var(--color-neutral-border);
    position: sticky;
    bottom: 0;
    z-index: 5;
  }
}

.main-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.key-group {
  display: inline-flex;
  align-items: center;

  &__key {
    padding: 0 4px;
    height: 16px;
    color: var(--color-neutral-content);
    display: inline-flex;
    align-items: center;
    background: var(--color-neutral-background);
    border-radius: 2px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow:
      0 0 0 1px rgb(0 0 0 / 10%),
      0 1px 0 rgb(0 0 0 / 8%);
  }

  &__key + &__key {
    margin-left: 4px;
  }

  & + & {
    margin-left: 5px;
  }
}

.sub__result {
  margin: -35px 0 30px;
}

.menu {
  width: 320px;
  min-width: 320px;
  flex: none;
  display: flex;
  flex-flow: column;
  z-index: 100;
  align-self: stretch;
  background-color: var(--color-neutral-background);
  border-left: 1px solid var(--color-neutral-border);

  @media (width <= 760px) {
    /* phone */
    margin-left: 0;
    margin-top: 20px;
  }

  &_bsp {
    display: flex;
    flex-direction: row;
    margin-top: 2em;

    & > div {
      margin-right: 2em;
      width: 33.3%;

      &:last-child {
        margin-right: 0;
      }
    }
  }

  &:empty {
    width: 0;
    min-width: auto;
  }
}

:global(.ant-result-title) {
  color: var(--color-neutral-content);
}

:global(.ant-result-success .ant-result-icon > .anticon) {
  color: var(--color-positive-icon);
}