node-red/packages/node_modules/@node-red/editor-client/src/sass/sidebar.scss

238 lines
6.0 KiB
SCSS

@use "mixins";
/**
* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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
*
* 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.
**/
.red-ui-sidebar {
position: relative;
flex-grow: 0;
flex-shrink: 0;
width: 315px;
margin: 4px 0;
@include mixins.component-border;
border-left: none;
border-right: none;
background: var(--red-ui-secondary-background);
box-sizing: border-box;
z-index: 10;
display: flex;
flex-direction: column;
overflow: hidden;
}
.red-ui-sidebar-left {
background: var(--red-ui-primary-background);
margin: 0;
border: none;
}
.red-ui-sidebar-right {
margin-left: 0;
}
.red-ui-sidebar-footer {
@include mixins.component-footer;
position: relative;
flex-grow: 0;
flex-shrink: 0;
}
.red-ui-sidebar-section {
margin: 4px;
display: flex;
flex-direction: column;
min-height: 40px;
background: rgba(0,0,255,0.2);
flex-grow: 1;
border-radius: 6px;
border: 1px solid var(--red-ui-primary-border-color);
// overflow: hidden;
}
.red-ui-sidebar-left .red-ui-sidebar-section {
margin-left: 0;
}
.red-ui-sidebar-right .red-ui-sidebar-section {
margin-right: 0
}
.red-ui-sidebar-content-wrapper {
display: flex;
flex-direction: column;
height: 100%;
flex-grow: 1;
flex-shrink: 0;
}
.red-ui-sidebar-content {
position: relative;
background: var(--red-ui-secondary-background);
flex-grow: 1;
overflow-y: auto;
}
.red-ui-sidebar-separator {
width: 0;
flex: 0 0 auto;
// z-index: 11;
background-color: var(--red-ui-view-background);
overflow: visible;
cursor: col-resize;
.red-ui-sidebar-separator-handle {
position: absolute;
// background: rgba(255,140,0,0.2);
top: 0;
left: -6px;
width: 12px;
height: 100%;
z-index: 20;
}
}
.red-ui-sidebar-tab-bar {
background-color: var(--red-ui-secondary-background);
flex: 0 0 auto;
display: flex;
flex-direction: column;
align-items: center;
margin: 4px;
@include mixins.component-border;
z-index: 10;
overflow: hidden;
// border: 1px solid var(--red-ui-primary-border-color);
// height: 100%;
&.red-ui-sidebar-left {
border: none;
margin-right: 0;
background: var(--red-ui-primary-background);
}
&.red-ui-sidebar-right {
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
margin-left: 0;
border-left: none;
}
button {
@include mixins.workspace-button;
display: flex;
flex-grow: 0;
flex-shrink: 0;
align-items: center;
justify-content: center;
padding: 0;
height: 24px;
width: 24px;
&:not(.selected):not(:hover) {
border: none;
i {
opacity: 0.7;
}
}
}
.red-ui-sidebar-tab-bar-button-placeholder {
border: 1px dashed var(--red-ui-form-input-border-color);
}
.red-ui-sidebar-tab-bar-buttons {
display: flex;
width: 100%;
// background-color: var(--red-ui-primary-background);
// background: rgba(255, 0, 0, 0.1);
padding: 6px;
box-sizing: border-box;
flex-direction: column;
align-items: center;
gap: 10px;
flex-grow: 1;
}
.red-ui-sidebar-tab-bar-bottom-buttons {
background: rgba(0, 255, 0, 0.1);
min-height: 50px;
flex-grow: 0;
}
}
.red-ui-sidebar .button {
@include mixins.workspace-button;
line-height: 18px;
font-size: 12px;
margin-right: 5px;
padding: 2px 8px;
}
.sidebar-header, /* Deprecated -> red-ui-sidebar-header */
.red-ui-sidebar-header {
color: var(--red-ui-primary-text-color);
text-align: right;
padding: 8px 10px;
background: var(--red-ui-primary-background);
border-bottom: 1px solid var(--red-ui-secondary-border-color);
white-space: nowrap;
}
/* Deprecated -> red-ui-footer-button */
.sidebar-footer-button {
@include mixins.component-footer-button;
}
/* Deprecated -> red-ui-footer-button-toggle */
.sidebar-footer-button-toggle {
@include mixins.component-footer-button-toggle;
}
a.sidebar-header-button,
button.sidebar-header-button, /* Deprecated -> red-ui-sidebar-header-button */
a.red-ui-sidebar-header-button,
button.red-ui-sidebar-header-button {
@include mixins.workspace-button;
font-size: 13px;
line-height: 13px;
padding: 5px 8px;
&.toggle {
@include mixins.workspace-button-toggle;
}
}
a.sidebar-header-button-toggle, /* Deprecated -> red-ui-sidebar-header-button-toggle */
button.sidebar-header-button-toggle, /* Deprecated -> red-ui-sidebar-header-button-toggle */
a.red-ui-sidebar-header-button-toggle,
button.red-ui-sidebar-header-button-toggle {
@include mixins.workspace-button-toggle;
font-size: 13px;
line-height: 13px;
padding: 5px 8px;
}
.sidebar-header-button:not(:first-child), /* Deprecated -> red-ui-sidebar-header-button */
.red-ui-sidebar-header-button:not(:first-child) {
border-left: none;
}
i.red-ui-sidebar-tab-icon {
display: inline-block;
// margin-left: -8px;
// margin-right: 3px;
// margin-top: -2px;
opacity: 1;
width: 18px;
height: 18px;
vertical-align: middle;
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-position: center;
mask-position: center;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
background-color: var(--red-ui-workspace-button-color);
}