_editor.scss 5.3 KB
Newer Older
V
Vlad Ilyushchenko 已提交
1
/*!******************************************************************************
2 3 4 5 6
 *     ___                  _   ____  ____
 *    / _ \ _   _  ___  ___| |_|  _ \| __ )
 *   | | | | | | |/ _ \/ __| __| | | |  _ \
 *   | |_| | |_| |  __/\__ \ |_| |_| | |_) |
 *    \__\_\\__,_|\___||___/\__|____/|____/
V
Vlad Ilyushchenko 已提交
7
 *
8 9
 *  Copyright (c) 2014-2019 Appsicle
 *  Copyright (c) 2019-2020 QuestDB
V
Vlad Ilyushchenko 已提交
10
 *
11 12 13
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
V
Vlad Ilyushchenko 已提交
14
 *
15
 *  http://www.apache.org/licenses/LICENSE-2.0
V
Vlad Ilyushchenko 已提交
16
 *
17 18 19 20 21
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
22
 *
V
Vlad Ilyushchenko 已提交
23 24
 ******************************************************************************/

V
Vlad Ilyushchenko 已提交
25 26 27 28 29
.border-rounded-top-half {
  border-top-left-radius: $border-radius;
  border-top-right-radius: $border-radius;
}

30 31
#console-top {
  display: flex;
32
  width: 100%;
M
Méril Pilon 已提交
33
  min-height: 140px;
34
  flex-direction: column;
M
Méril Pilon 已提交
35
  flex: 1;
36 37 38
}

#editor {
39
  position: relative;
40 41 42
  display: flex;
}

V
Vlad Ilyushchenko 已提交
43
#sqlEditor {
44
  flex: 1;
45
  font-family: 1.4rem SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
V
Vlad Ilyushchenko 已提交
46
  line-height: 1.5em !important;
V
Vlad Ilyushchenko 已提交
47
}
V
Vlad Ilyushchenko 已提交
48 49 50 51 52 53 54 55 56 57 58 59 60

// endless progress bar
@-webkit-keyframes moving-gradient {
  0% {
    background-position: left bottom;
  }
  100% {
    background-position: right bottom;
  }
}

.query-progress-animated {
  background: -webkit-linear-gradient(
61
      left,
M
Méril Pilon 已提交
62 63 64
      #ffb86c 30%,
      #f8f8f2 80%,
      #ffb86c 100%
65 66
    )
    repeat;
V
Vlad Ilyushchenko 已提交
67 68 69 70 71 72 73 74 75 76 77

  -webkit-background-size: 50% 100%;
  -webkit-animation-name: moving-gradient;
  -webkit-animation-duration: 1s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
}

.query-progress-spinner {
  width: 100%;
  height: 6px;
M
Méril Pilon 已提交
78
  background-color: #21222c;
V
Vlad Ilyushchenko 已提交
79 80 81
}

.query-message {
82
  display: flex;
M
Méril Pilon 已提交
83 84
  color: #f8f8f2;
  background: #282a36;
85 86 87
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
M
Méril Pilon 已提交
88
  border-left: 3px solid #8be9fd;
89 90 91 92 93 94
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.query-message:not(.query-message-ok) {
V
Vlad Ilyushchenko 已提交
95 96 97 98
  padding: 5px;
}

.query-message.query-message-error {
M
Méril Pilon 已提交
99
  border-left: 3px solid #ff5555;
V
Vlad Ilyushchenko 已提交
100 101 102
}

.query-message.query-message-ok {
M
Méril Pilon 已提交
103
  border-left: 3px solid #50fa7b;
V
Vlad Ilyushchenko 已提交
104 105
}

106 107 108 109
.query-error-at {
  position: relative;
  left: 8px;
  white-space: pre-line;
V
Vlad Ilyushchenko 已提交
110 111
}

112 113 114
.query-result-value {
  display: flex;
  flex-direction: column;
M
Méril Pilon 已提交
115 116
  flex: 1;
  border-right: 1px solid #21222c;
117
  overflow: hidden;
V
Vlad Ilyushchenko 已提交
118 119
}

120 121 122 123 124
.query-result-value div {
  padding: 2px 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
V
Vlad Ilyushchenko 已提交
125 126
}

127
.query-result-value div:nth-child(1) {
M
Méril Pilon 已提交
128
  background-color: #21222c;
V
Vlad Ilyushchenko 已提交
129 130 131 132 133 134
}

.js-query-message-text {
  display: inline-block;
}

V
Vlad Ilyushchenko 已提交
135
.js-syntax-error {
M
Méril Pilon 已提交
136
  border-bottom: 1px solid #ff5555;
V
Vlad Ilyushchenko 已提交
137 138 139
  position: absolute;
  cursor: pointer !important;
  pointer-events: auto;
140 141
}

M
Méril Pilon 已提交
142 143 144
.button-primary .fa + span,
.button-toggle .fa + span {
  margin-left: 1rem;
145 146
}

M
Méril Pilon 已提交
147 148 149 150 151 152 153 154 155 156 157 158 159
.export-input-container {
  display: inline-block;
  padding: 0 0 0 10px;
}

.js-help-input {
  height: 3rem;
  border: none;
  width: 180px;
  padding: 0 1rem;
  line-height: 1.5;
  outline: none;
  background: #44475a;
160
  border-radius: 4px;
M
Méril Pilon 已提交
161 162 163 164 165 166 167 168 169
  color: #f8f8f2;

  &:focus {
    box-shadow: inset 0 0 0 1px #f8f8f2;
  }

  &::placeholder {
    color: #bbb;
  }
170 171
}

M
Méril Pilon 已提交
172 173 174 175 176 177 178 179 180
.button-primary,
.button-toggle {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, Helvetica, Roboto,
    sans-serif;
  display: flex;
  height: 3rem;
  padding: 0 1rem;
  align-items: center;
  justify-content: center;
181
  border-radius: 4px;
M
Méril Pilon 已提交
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
  border: 1px solid #44475a;
  background: #44475a;
  color: #f8f8f2;
  font-weight: 400;
  outline: 0;
  line-height: 1.15;
  transition: all 70ms cubic-bezier(0, 0, 0.38, 0.9);

  &:hover {
    background: #6272a4;
    opacity: 1;
  }

  &:focus {
    box-shadow: inset 0 0 0 1px #f8f8f2;
  }

  &:active {
    background: darken(#6272a4, 10%);
  }
202 203
}

M
Méril Pilon 已提交
204 205
.button-success {
  color: #50fa7b;
206 207
}

M
Méril Pilon 已提交
208 209
.button-danger {
  color: #ff5555;
210 211
}

M
Méril Pilon 已提交
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
.button-toggle {
  height: 100%;
  background: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  color: #f8f8f2;
  opacity: 0.5;
  min-width: 10rem;

  &.active {
    opacity: 1;
    border-bottom-color: #ff79c6;
  }
}

.console-wrapper {
  display: flex;
  flex: 0 0 400px;
  overflow: hidden;
}

#schema-content {
  display: flex;
  flex-direction: column;
  flex: 0 0 350px;
  height: 100%;
  border-right: 6px solid #21222c;
}

.js-sql-panel {
  display: flex;
  flex-direction: column;
245 246
  flex: 1;
  overflow: hidden;
M
Méril Pilon 已提交
247 248 249 250 251 252
  font-size: 1.4rem;
  background: #21222c;

  ::selection {
    background: #44475a;
  }
253 254
}

M
Méril Pilon 已提交
255 256
.result-wrapper {
  display: flex;
257
  min-height: 200px;
M
Méril Pilon 已提交
258 259 260 261 262 263 264 265
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  background: #282a36;
}

.menu-bar {
  display: flex;
266
  height: 4rem;
M
Méril Pilon 已提交
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281
  padding: 0 1rem;
  align-items: center;
  background: #21222c;
  box-shadow: 0 6px 6px -6px #191a21;
  border-bottom: 1px solid #191a21;
  z-index: 5;
}

.menu-bar .button-primary:not(:last-child),
.menu-bar .button-secondary:not(:last-child) {
  margin-right: 1rem;
}

.flex-separator {
  flex: 1;
282 283
}

M
Méril Pilon 已提交
284
#quick-vis {
285 286
  display: flex;
  flex: 1;
287
}