blob: 8a84a7670734f7bc78aa13bb2668bdd9f1b41b10 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
@import '../../../variables';
.recent-query-task-panel {
position: relative;
@include card-like;
overflow: auto;
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.title {
position: relative;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
padding: 8px 10px;
user-select: none;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
.close-button {
position: absolute;
top: 2px;
right: 2px;
}
}
.work-entries {
position: absolute;
top: 30px;
left: 0;
right: 0;
bottom: 0;
padding: 10px;
&:empty:after {
content: 'No recent queries';
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
}
.work-entry {
display: block;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
padding-top: 8px;
padding-bottom: 8px;
cursor: pointer;
&:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.line1 {
margin-bottom: 4px;
.status-icon {
display: inline-block;
margin-right: 5px;
&.running {
svg {
animation-name: spin;
animation-duration: 10s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
}
}
.timing {
display: inline-block;
}
}
.line2 {
white-space: nowrap;
overflow: hidden;
}
.output-icon {
margin-right: 5px;
opacity: 0.6;
}
.output-datasource {
display: inline-block;
&.query {
font-style: italic;
}
}
.query-indicator {
display: inline-block;
margin-left: 10px;
}
}
}
}