A new FE UI interface implemented with React framework. Need to work with the new Spring framework and RESTful API in #4596. This is a simple UI for Doris. User can develope their own UI if they want Proposal #4308
227 lines
5.8 KiB
Plaintext
227 lines
5.8 KiB
Plaintext
/* 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 'less/variable';
|
|
@import '~antd/lib/style/themes/default.less';
|
|
|
|
html,
|
|
body,
|
|
:global(#root) {
|
|
height: 100%;
|
|
}
|
|
|
|
:global(input[readonly]:not(.ant-cascader-input)) {
|
|
border: none !important;
|
|
}
|
|
|
|
:global(.url) {
|
|
word-wrap: break-word;
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* navbar */
|
|
:global {
|
|
.ant-row {
|
|
display: flex;
|
|
}
|
|
.ant-table-cell {
|
|
.ant-legacy-form-item {
|
|
margin: 0 !important;
|
|
}
|
|
}
|
|
.ant-form-item {
|
|
margin-bottom: 24px !important;
|
|
}
|
|
.ant-form-item-explain, .ant-form-item-extra {
|
|
margin-top: 0 !important;
|
|
}
|
|
.ant-select-selection-search-input {
|
|
padding-right: 0 !important;
|
|
}
|
|
.ant-tree-node-content-wrapper {
|
|
display: flex !important;
|
|
}
|
|
.ant-layout-header{
|
|
z-index: 5!important;
|
|
box-sizing: border-box;
|
|
border: 1px solid #f0f0f0;
|
|
line-height: 61px !important;
|
|
background-color: #fff !important;
|
|
}
|
|
.ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional):before{
|
|
position: absolute;
|
|
left: 100%;
|
|
top: 10px;
|
|
}
|
|
// .ant-menu-inline .ant-menu-item-selected:after, .ant-menu-inline .ant-menu-selected:after {
|
|
// display: none !important;
|
|
// }
|
|
// .ant-menu-dark.ant-menu-horizontal > .ant-menu-item,
|
|
// .ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu {
|
|
// top: -1px !important;
|
|
// border-bottom: 2px solid transparent !important;
|
|
// // border-bottom-width: 2px !important;
|
|
// }
|
|
// .ant-menu-dark.ant-menu-horizontal > .ant-menu-item-selected,
|
|
// .ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu-selected {
|
|
// border-bottom: 2px solid @primary-color !important;
|
|
// background: transparent !important;
|
|
// color: #608bff !important;
|
|
// }
|
|
// .ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected,
|
|
// .ant-menu.ant-menu-dark .ant-menu-item-selected {
|
|
// background: transparent !important;
|
|
// }
|
|
.react-resizable-handle {
|
|
background-image: none !important;
|
|
height: 1px !important;
|
|
padding: 0 !important;
|
|
width: 100% !important;
|
|
background-color: #DCDCDC;
|
|
cursor: row-resize !important;
|
|
}
|
|
.react-resizable-handle:after {
|
|
display: block;
|
|
content: '';
|
|
height: 7px;
|
|
width: 30px;
|
|
margin-left: calc((100% - 30px) / 2);
|
|
margin-top: -3px;
|
|
border: 1px solid #DCDCDC;
|
|
border-left: none;
|
|
border-right: none;
|
|
cursor: row-resize !important;
|
|
}
|
|
.react-resizable-handle-w {
|
|
left: 0 !important;
|
|
top: 0 !important;
|
|
transform: rotate(0deg) !important;
|
|
height: 100% !important;
|
|
width: 1px !important;
|
|
&:after {
|
|
display: block;
|
|
content: "";
|
|
height: 30px;
|
|
width: 7px;
|
|
margin-left: -3px;
|
|
margin-top: 144px;
|
|
border: 1px solid #dcdcdc;
|
|
border-top: none;
|
|
border-bottom: none;
|
|
cursor: col-resize !important;
|
|
}
|
|
}
|
|
.react-resizable-handle-e {
|
|
right: 0 !important;
|
|
top: 0 !important;
|
|
transform: rotate(0deg) !important;
|
|
height: 100% !important;
|
|
width: 1px !important;
|
|
position: relative;
|
|
&:after {
|
|
display: block;
|
|
position: absolute;
|
|
content: "";
|
|
height: 30px;
|
|
width: 7px;
|
|
margin-left: -3px;
|
|
top: calc(50% - 15px);
|
|
border: 1px solid #dcdcdc;
|
|
border-top: none;
|
|
border-bottom: none;
|
|
cursor: col-resize !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
:global {
|
|
.ant-card-body {
|
|
padding: 24px 30px !important;
|
|
}
|
|
}
|
|
|
|
/* dropdown ---START--- */
|
|
:global(.ant-dropdown-menu) {
|
|
padding: @spacer 0 !important;
|
|
border-radius: 2px !important;
|
|
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1) !important;
|
|
}
|
|
:global(.ant-dropdown-menu-item) {
|
|
padding: 0 2*@spacer !important;
|
|
margin: 0 !important;
|
|
line-height: 30px !important;
|
|
border-radius: 0 !important;
|
|
// text-align: right;
|
|
font-size: @font-size-sm !important;
|
|
> a {
|
|
border-radius: 0 !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
&:hover {
|
|
background: #f9f9f9 !important;
|
|
}
|
|
}
|
|
/* dropdown ---END--- */
|
|
|
|
:global(.form-item-appendix) {
|
|
position: absolute;
|
|
right: -3*@spacer;
|
|
}
|
|
|
|
:global(.page-wrapper) {
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 3*@spacer;
|
|
}
|
|
|
|
:global(.page-list-top) {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin: 2*@spacer 0 @spacer;
|
|
}
|
|
|
|
:global(.list-selected-count) {
|
|
display: inline-block;
|
|
width: 2.5*@spacer;
|
|
text-align: center;
|
|
}
|
|
|
|
:global(.CodeMirror) {
|
|
line-height: 20px;
|
|
}
|
|
|
|
:global {
|
|
.ml {
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
a:-webkit-any-link {
|
|
text-decoration: none;
|
|
}
|
|
:global {
|
|
.iconfont {
|
|
font-size: 16px;
|
|
font-style: normal;
|
|
}
|
|
}
|
|
:global {
|
|
.ant-tree {
|
|
background-color: transparent !important;
|
|
}
|
|
}
|