_editor.scss 5.4 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 39 40
}

#editor {
  display: flex;
  flex-direction: column;
41
  flex: 1;
42 43
}

V
Vlad Ilyushchenko 已提交
44
#sqlEditor {
45
  flex: 1;
M
Méril Pilon 已提交
46
  font: 1.4rem "Source Code Pro", monospace !important;
V
Vlad Ilyushchenko 已提交
47
  line-height: 1.5em !important;
V
Vlad Ilyushchenko 已提交
48
}
V
Vlad Ilyushchenko 已提交
49 50 51 52 53 54 55 56 57 58 59 60 61

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

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

  -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 已提交
79
  background-color: #21222c;
V
Vlad Ilyushchenko 已提交
80 81 82
}

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

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

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

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

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

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

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

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

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

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

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

M
Méril Pilon 已提交
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
.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;
  border-radius: 0.25rem;
  color: #f8f8f2;

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

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

M
Méril Pilon 已提交
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
.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;
  border-radius: 0.25rem;
  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%);
  }
203 204
}

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

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

M
Méril Pilon 已提交
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 245
.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;
246 247
  flex: 1;
  overflow: hidden;
M
Méril Pilon 已提交
248 249 250 251 252 253
  font-size: 1.4rem;
  background: #21222c;

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

M
Méril Pilon 已提交
256 257
.result-wrapper {
  display: flex;
258
  min-height: 200px;
M
Méril Pilon 已提交
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  background: #282a36;
  color: #f8f8f2;

  ::selection {
    background: #ff5555;
    color: #f9f9f2;
  }
}

.menu-bar {
  display: flex;
  height: 41px;
  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;
289 290
}

M
Méril Pilon 已提交
291 292 293
#quick-vis {
    display: flex;
    flex: 1;
294
}