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

144 lines
3.7 KiB
SCSS
Raw Normal View History

2015-04-09 15:46:29 +02:00
/**
* Copyright JS Foundation and other contributors, http://js.foundation
2015-04-09 15:46:29 +02:00
*
* 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.
**/
2019-04-30 23:56:39 +02:00
#red-ui-sidebar {
2015-04-09 15:46:29 +02:00
position: absolute;
2015-07-12 00:43:45 +02:00
top: 0px;
right: 0px;
2015-07-14 16:59:56 +02:00
bottom: 0px;
2015-07-12 00:43:45 +02:00
width: 315px;
2019-05-15 14:54:29 +02:00
background: $primary-background;
2015-04-09 15:46:29 +02:00
box-sizing: border-box;
2016-02-28 00:13:19 +01:00
z-index: 10;
2015-04-09 15:46:29 +02:00
@include component-border;
}
2019-04-30 23:56:39 +02:00
#red-ui-sidebar.closing {
2015-04-09 15:46:29 +02:00
border-style: dashed;
}
2019-04-30 23:56:39 +02:00
#red-ui-sidebar-content {
2015-04-13 01:11:32 +02:00
position: absolute;
2019-05-15 14:54:29 +02:00
background: $secondary-background;
2015-07-12 00:43:45 +02:00
top: 35px;
2015-04-13 01:11:32 +02:00
right: 0;
2015-07-14 16:59:56 +02:00
bottom: 25px;
2015-04-13 01:11:32 +02:00
left: 0px;
2015-04-09 15:46:29 +02:00
overflow-y: auto;
}
2019-04-30 23:56:39 +02:00
#red-ui-sidebar-separator {
2015-04-13 01:11:32 +02:00
position: absolute;
top: 5px;
2015-07-14 00:21:03 +02:00
right: 315px;
2015-04-13 01:11:32 +02:00
bottom:10px;
2015-07-14 00:21:03 +02:00
width: 7px;
2016-02-28 00:13:19 +01:00
z-index: 11;
background: $primary-background url(images/grip.png) no-repeat 50% 50%;
2015-04-09 15:46:29 +02:00
cursor: col-resize;
}
2019-04-30 23:56:39 +02:00
.red-ui-sidebar-closed > #red-ui-sidebar { display: none; }
.red-ui-sidebar-closed > #red-ui-sidebar-separator { right: 0px !important; }
2019-05-01 23:41:20 +02:00
.red-ui-sidebar-closed > #red-ui-workspace { right: 7px !important; }
.red-ui-sidebar-closed > #red-ui-editor-stack { right: 8px !important; }
2015-07-14 00:21:03 +02:00
2019-04-30 23:56:39 +02:00
#red-ui-sidebar .button {
2015-07-14 00:21:03 +02:00
@include workspace-button;
line-height: 18px;
font-size: 12px;
margin-right: 5px;
padding: 2px 8px;
}
2015-07-14 16:59:56 +02:00
2019-04-30 23:56:39 +02:00
.sidebar-header, /* Deprecated -> red-ui-sidebar-header */
.red-ui-sidebar-header {
2019-05-15 14:54:29 +02:00
color: $primary-text-color;
text-align: right;
padding: 8px 10px;
2019-05-15 14:54:29 +02:00
background: $primary-background;
border-bottom: 1px solid $secondary-border-color;
2016-10-25 22:15:06 +02:00
white-space: nowrap;
}
2019-04-30 23:56:39 +02:00
/* Deprecated -> red-ui-footer-button */
2016-01-13 00:03:33 +01:00
.sidebar-footer-button {
@include component-footer-button;
}
2019-04-30 23:56:39 +02:00
/* Deprecated -> red-ui-footer-button-toggle */
2016-10-25 22:15:06 +02:00
.sidebar-footer-button-toggle {
@include component-footer-button-toggle;
}
2019-04-30 23:56:39 +02:00
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 {
2016-01-13 00:03:33 +01:00
@include workspace-button;
font-size: 13px;
line-height: 13px;
padding: 5px 8px;
&.toggle {
@include workspace-button-toggle;
}
2016-01-13 00:03:33 +01:00
}
2019-04-30 23:56:39 +02:00
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 workspace-button-toggle;
font-size: 13px;
line-height: 13px;
padding: 5px 8px;
}
2019-04-30 23:56:39 +02:00
2019-05-16 14:26:49 +02:00
.sidebar-header-button:not(:first-child), /* Deprecated -> red-ui-sidebar-header-button */
2019-04-30 23:56:39 +02:00
.red-ui-sidebar-header-button:not(:first-child) {
border-left: none;
}
2019-04-30 23:56:39 +02:00
.red-ui-sidebar-shade {
@include shade;
}
2018-10-17 12:03:09 +02:00
2019-04-30 23:56:39 +02:00
@mixin red-ui-sidebar-control {
2018-10-17 12:03:09 +02:00
display: none;
position: absolute;
top: calc(50% - 26px);
padding:15px 8px;
2019-05-15 14:54:29 +02:00
border:1px solid $primary-border-color;
background:$primary-background;
color: $secondary-text-color;
2018-10-17 12:03:09 +02:00
text-align: center;
cursor: pointer;
}
2019-04-30 23:56:39 +02:00
.red-ui-sidebar-control-right {
@include red-ui-sidebar-control;
2018-10-17 12:03:09 +02:00
right: calc(100%);
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
2019-04-30 23:56:39 +02:00
.red-ui-sidebar-control-left {
@include red-ui-sidebar-control;
2018-10-17 12:03:09 +02:00
left: calc(100%);
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}