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

282 lines
7.1 KiB
SCSS
Raw Normal View History

2016-08-04 17:49:36 +02:00
/**
* Copyright JS Foundation and other contributors, http://js.foundation
2016-08-04 17:49:36 +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.
**/
#red-ui-settings-tab-palette {
height: 100%;
}
#red-ui-palette-editor {
2016-08-04 17:49:36 +02:00
text-align: left;
position: absolute;
top: 0px;
right: 0;
bottom: 0;
2016-08-04 17:49:36 +02:00
left:0;
padding: 0;
box-sizing:border-box;
2022-06-18 22:05:25 +02:00
background: var(--red-ui-secondary-background);
2016-08-04 17:49:36 +02:00
.red-ui-editableList-container {
2016-08-09 11:43:03 +02:00
border: none;
2016-08-04 17:49:36 +02:00
border-radius: 0;
padding: 0px;
li {
// border: none;
2022-06-18 22:05:25 +02:00
// border-top: 1px solid var(--red-ui-primary-border-color);
2016-08-04 17:49:36 +02:00
padding: 0px;
2019-05-17 11:42:43 +02:00
.red-ui-button {
2019-05-15 14:54:29 +02:00
min-width: 60px;
}
2016-08-04 17:49:36 +02:00
.disabled {
2022-06-18 22:05:25 +02:00
// background: var(--red-ui-secondary-background-inactive;//f3f3f3);
.red-ui-palette-module-name {
font-style: italic;
2022-06-18 22:05:25 +02:00
color: var(--red-ui-tertiary-text-color);
}
.red-ui-palette-module-version {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-tertiary-text-color);
}
.red-ui-palette-module-errors .fa-warning {
opacity: 0.5;
}
ul.red-ui-palette-module-error-list li {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-tertiary-text-color);
}
2016-08-04 17:49:36 +02:00
}
.red-ui-editableList-item-content {
padding: 12px 16px;
2016-08-04 17:49:36 +02:00
}
&:last-child {
2022-06-18 22:05:25 +02:00
// border-bottom: 1px solid var(--red-ui-primary-border-color);
2016-08-04 17:49:36 +02:00
}
}
}
.red-ui-palette-editor-tab {
2016-08-09 11:43:03 +02:00
position:absolute;
top:35px;
2016-08-09 11:43:03 +02:00
left:0;
right:0;
bottom:0
}
.red-ui-palette-editor-toolbar {
2022-06-18 22:05:25 +02:00
background: var(--red-ui-primary-background);
box-sizing: border-box;
padding: 8px 10px;
2022-06-18 22:05:25 +02:00
border-bottom: 1px solid var(--red-ui-primary-border-color);
text-align: right;
}
.red-ui-palette-module-shade-status {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-secondary-text-color);
}
.red-ui-palette-module-updated {
2016-08-09 11:43:03 +02:00
margin-left: 10px;
}
.red-ui-palette-module-link {
2016-08-09 11:43:03 +02:00
margin-left: 5px;
}
.red-ui-palette-module-description {
2016-08-09 11:43:03 +02:00
margin-left: 20px;
font-size: 0.9em;
2022-06-18 22:05:25 +02:00
color: var(--red-ui-secondary-text-color);
2016-08-09 11:43:03 +02:00
}
.red-ui-palette-module-link {
2016-08-09 11:43:03 +02:00
}
.red-ui-palette-module-set-button-group {
2016-08-04 17:49:36 +02:00
}
.red-ui-palette-module-content {
2016-08-04 17:49:36 +02:00
display: none;
padding: 10px 3px;
}
i.fa.red-ui-palette-module-node-chevron {
2016-08-04 17:49:36 +02:00
width: 8px;
margin-right: 0;
transform: rotate(0deg);
transition: transform 0.2s ease-in-out;
}
.expanded {
i.fa.red-ui-palette-module-node-chevron {
2016-08-04 17:49:36 +02:00
transform: rotate(90deg);
}
}
.red-ui-palette-module-set {
2022-06-18 22:05:25 +02:00
border:1px solid var(--red-ui-secondary-border-color);
2016-08-04 17:49:36 +02:00
border-radius: 0;
padding: 5px;
position: relative;
&:not(:last-child) {
border-bottom: none;
}
&:first-child {
border-top-right-radius: 2px;
border-top-left-radius: 2px;
}
&:last-child {
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
}
}
.red-ui-palette-module-type {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-secondary-text-color);
2016-08-04 17:49:36 +02:00
padding-left: 5px;
font-size: 0.9em;
@include enable-selection;
}
.red-ui-palette-module-type-swatch {
2016-08-04 17:49:36 +02:00
display: inline-block;
width: 12px;
height: 12px;
border-radius: 3px;
vertical-align: middle;
margin-right: 5px;
2022-06-18 22:05:25 +02:00
background: var(--red-ui-primary-background);
border: 1px dashed var(--red-ui-secondary-border-color);
2016-08-04 17:49:36 +02:00
}
.red-ui-palette-module-set-button-group {
2016-08-04 17:49:36 +02:00
position: absolute;
right: 4px;
top: 4px;
}
.red-ui-palette-module-set-disabled {
2022-06-18 22:05:25 +02:00
background: var(--red-ui-list-item-background-disabled);
.red-ui-palette-module-type {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-secondary-text-color-disabled-active);
2016-08-04 17:49:36 +02:00
}
}
.red-ui-palette-module-more {
2016-08-09 11:43:03 +02:00
padding: 0 !important;
margin-top: 10px;
margin-bottom: 10px;
2022-06-18 22:05:25 +02:00
background: var(--red-ui-tab-background-inactive);
2016-08-09 11:43:03 +02:00
a {
display: block;
text-align: center;
padding: 12px 8px;
2022-06-18 22:05:25 +02:00
color: var(--red-ui-text-color-code);
2016-08-09 11:43:03 +02:00
&:hover {
text-decoration: none;
2022-06-18 22:05:25 +02:00
background: var(--red-ui-tab-background-hover);
2016-08-09 11:43:03 +02:00
}
}
}
2016-08-04 17:49:36 +02:00
}
.red-ui-palette-module-meta {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-secondary-text-color);
2017-09-20 11:30:07 +02:00
position: relative;
&.disabled {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-secondary-text-color-disabled);
2017-09-20 11:30:07 +02:00
}
.fa {
width: 15px;
text-align: center;
margin-right: 5px;
}
}
.red-ui-palette-module-name {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-primary-text-color);
2017-09-20 11:30:07 +02:00
white-space: nowrap;
@include enable-selection;
}
.red-ui-palette-module-version, .red-ui-palette-module-updated, .red-ui-palette-module-link {
2017-09-20 11:30:07 +02:00
font-style:italic;
font-size: 0.8em;
@include enable-selection;
}
.red-ui-palette-module-button-group {
position: absolute;
right: 0;
bottom: 0;
a {
margin-left: 5px;
}
}
.red-ui-palette-module-meta .fa-warning {
2022-06-18 22:05:25 +02:00
color: var(--red-ui-text-color-warning);
}
ul.red-ui-palette-module-error-list {
display: inline-block;
list-style-type: none;
margin: 0;
font-size: 0.9em;
li {
border: none;
background: none;
}
}
.red-ui-palette-module-shade {
@include shade;
text-align: center;
padding-top: 20px;
}
#red-ui-palette-module-install-shade {
padding-top: 80px;
}
button.red-ui-palette-editor-upload-button {
padding: 0;
height: 25px;
margin-top: -1px;
input[type="file"] {
opacity: 0;
margin: 0;
height: 0;
width: 0;
}
.red-ui-settings-tabs-content & label {
margin: 0;
min-width: 0;
padding: 2px 8px;
}
form {
2022-03-30 08:20:39 +02:00
width: 0;
}
}
.red-ui-palette-editor-upload {
display: none;
position: absolute;
left: 0;
right: 0;
top: 44px;
padding: 20px;
2022-06-18 22:05:25 +02:00
background: var(--red-ui-secondary-background);
border-bottom: 1px var(--red-ui-secondary-border-color solid);
box-shadow: 1px 1px 4px var(--red-ui-shadow);
.placeholder-input {
width: calc(100% - 180px);
2020-08-26 11:37:21 +02:00
margin: 0;
}
}
.red-ui-palette-editor-upload-buttons {
float: right;
button {
margin-left: 10px;
}
}