_editor.scss 3.8 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 32 33 34 35 36 37 38 39
#console-top {
  display: flex;
  flex-direction: column;
}

#editor {
  display: flex;
  flex-direction: column;
}

V
Vlad Ilyushchenko 已提交
40
#sqlEditor {
41 42 43
  min-height: 140px;
  flex: 1;
  font: 1.1em "source-code-pro", monospace !important;
V
Vlad Ilyushchenko 已提交
44
  line-height: 1.5em !important;
V
Vlad Ilyushchenko 已提交
45
}
V
Vlad Ilyushchenko 已提交
46 47 48 49 50 51 52 53 54 55 56 57 58

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

.query-progress-animated {
  background: -webkit-linear-gradient(
59 60 61 62 63 64
      left,
      #0193cd 30%,
      #badae5 80%,
      #0193cd 100%
    )
    repeat;
V
Vlad Ilyushchenko 已提交
65 66 67 68 69 70 71 72 73 74 75

  -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;
76
  background-color: #1c1c1c;
V
Vlad Ilyushchenko 已提交
77 78 79 80 81 82

  border-bottom-left-radius: $border-radius;
  border-bottom-right-radius: $border-radius;
}

.query-message {
83 84
  display: flex;
  min-height: 30px;
V
Vlad Ilyushchenko 已提交
85
  margin-top: 10px;
86 87
  flex: 0 0 auto;
  align-items: center;
V
Vlad Ilyushchenko 已提交
88 89
  border: 1px solid #e7eaec;
  border-radius: 2px;
90 91 92 93 94 95 96
  border-left: 3px solid #ccc;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.query-message.query-message-error {
101
  border-left: 3px solid #ed5565;
V
Vlad Ilyushchenko 已提交
102 103 104
}

.query-message.query-message-ok {
105
  border-left: 3px solid #1ab394;
V
Vlad Ilyushchenko 已提交
106 107
}

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

114 115 116 117 118 119
.query-result-value {
  display: flex;
  flex-direction: column;
  width: 115px;
  border-right: 1px solid #ccc;
  overflow: hidden;
V
Vlad Ilyushchenko 已提交
120 121
}

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

129 130
.query-result-value div:nth-child(1) {
  background-color: #fafafb;
V
Vlad Ilyushchenko 已提交
131 132 133 134 135 136
}

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

V
Vlad Ilyushchenko 已提交
137 138 139 140 141
.js-syntax-error {
  border-bottom: 1px solid red;
  position: absolute;
  cursor: pointer !important;
  pointer-events: auto;
142 143 144
}

.js-query-run > .fa {
145
  margin-right: 5px;
146 147 148
  color: #3dc7ab;
}

149
.js-chart-draw > .fa {
150
  margin-right: 5px;
151 152 153
  color: #3dc7ab;
}

154
.js-query-cancel > .fa {
155
  margin-right: 5px;
156
  color: #ed5565;
157 158
}

159
.js-chart-cancel > .fa {
160
  margin-right: 5px;
161
  color: #ed5565;
162 163
}

164 165 166 167 168
.export-input-container {
  display: inline-block;
  padding: 0 0 0 10px;
}

169 170
.js-export-url,
.js-help-input {
171 172 173 174 175 176 177
  font-size: 10px;
  padding: 6px 10px;
  border: 1px solid #e7eaec;
  border-radius: 3px 0 0 3px;
  line-height: 1.5;
}

178 179
.js-export-copy-url:focus,
.js-export-copy-url:hover {
180 181 182 183 184 185 186
  border-left: none;
}

.js-export-copy-url {
  border-radius: 0 3px 3px 0;
  border-left: none;
  padding: 5px 10px 4px 10px;
187
}