blob: 914fc155dcbb286fa15a994341baed496073a868 [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';
$column-tree-width: 250px;
.workbench-view {
height: 100%;
width: 100%;
.workbench-splitter {
height: 100%;
& > .layout-splitter:hover {
background: black;
opacity: 0.1;
border-radius: 2px;
}
}
.column-tree {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
@include card-like;
}
.recent-panel {
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
gap: 2px;
.recent-query-task-panel,
.current-dart-panel {
flex: 1;
}
}
.center-panel {
position: absolute;
top: 0;
height: 100%;
width: 100%;
.tab-and-tool-bar {
position: absolute;
top: 0;
left: 0;
right: 0;
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 10px;
.tab-bar {
flex: 1;
white-space: nowrap;
overflow: auto;
.tab-button {
display: inline-block;
&.active {
@include card-like;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border-bottom: 2px solid #a1a6ba;
}
.tab-name .#{$bp-ns}-button-text {
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
line-height: 150%;
}
.tab-close {
opacity: 0;
margin: 0 3px;
}
&.active,
&:hover {
.tab-close {
opacity: 1;
}
}
}
.new-tab {
display: inline-block;
vertical-align: top;
padding: 6px 14px;
margin-left: 4px;
}
}
}
.query-tab {
position: absolute;
width: 100%;
top: 32px;
bottom: 0;
overflow: auto;
}
}
&.hide-column-tree .center-panel {
left: 0;
}
&.hide-right-panel .center-panel {
right: 0;
}
}