1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/editor-client/src/sass/debug.scss

252 lines
6.7 KiB
SCSS
Raw Normal View History

2016-11-03 00:20:48 +01:00
/**
* Copyright JS Foundation and other contributors, http://js.foundation
2016-11-03 00:20:48 +01: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-debug-window {
padding:0;
margin:0;
2019-05-15 14:54:29 +02:00
background: $secondary-background;
2016-10-25 22:15:06 +02:00
line-height: 20px;
.red-ui-debug-msg-payload {
font-size: 14px;
}
}
.red-ui-debug-content {
2016-06-20 22:35:20 +02:00
position: absolute;
top: 43px;
bottom: 0px;
left:0px;
right: 0px;
overflow-y: scroll;
}
.red-ui-debug-filter-box {
2016-10-25 22:15:06 +02:00
position:absolute;
top: 42px;
left: 0px;
right: 0px;
z-index: 20;
2019-05-15 14:54:29 +02:00
background: $tertiary-background;
2016-10-25 22:15:06 +02:00
padding: 10px;
2019-05-15 14:54:29 +02:00
border-bottom: 1px solid $secondary-border-color;
box-shadow: 0 2px 6px $shadow;
2016-10-25 22:15:06 +02:00
}
.red-ui-debug-filter-row {
.red-ui-nodeList {
margin: 10px 0;
}
2016-10-25 22:15:06 +02:00
}
.red-ui-debug-msg {
position: relative;
2019-05-15 14:54:29 +02:00
border-bottom: 1px solid $debug-message-border;
border-left: 8px solid $debug-message-border;
border-right: 8px solid $debug-message-border;
2016-06-20 22:35:20 +02:00
padding: 2px;
&>.red-ui-debug-msg-meta .red-ui-debug-msg-tools {
2017-05-11 16:08:10 +02:00
display: none;
}
&.red-ui-debug-msg-hover {
2019-05-15 14:54:29 +02:00
border-right-color: $debug-message-border-hover;
&>.red-ui-debug-msg-meta .red-ui-debug-msg-tools {
display: inline-block;
}
}
}
.red-ui-debug-msg-row {
.red-ui-debug-msg-tools-pin {
display: none;
}
&.red-ui-debug-msg-row-pinned .red-ui-debug-msg-tools-pin {
display: inline-block;
}
&:hover {
2019-05-15 14:54:29 +02:00
background: $debug-message-background-hover;
&>.red-ui-debug-msg-tools {
.red-ui-debug-msg-tools-copy {
display: inline-block;
}
.red-ui-debug-msg-tools-pin {
display: inline-block;
2017-05-11 16:08:10 +02:00
}
.red-ui-debug-msg-tools-other {
display: inline-block;
}
2017-05-11 16:08:10 +02:00
}
}
}
.red-ui-debug-msg-meta .red-ui-debug-msg-tools {
2017-05-22 23:21:52 +02:00
.editor-button-small {
font-size: 11px;
}
}
.red-ui-debug-msg-tools {
2017-05-11 16:08:10 +02:00
.button-group:not(:last-child) {
margin-right: 3px;
}
.editor-button-small {
height: 16px;
line-height: 14px;
font-size: 8px;
border-radius: 1px;
padding: 0 3px;
min-width: 18px;
}
}
.red-ui-debug-msg-meta {
2019-05-15 14:54:29 +02:00
background: $debug-message-background;
font-size: 11px;
2019-05-15 14:54:29 +02:00
color: $secondary-text-color-inactive;
}
.red-ui-debug-msg-date {
2016-06-20 22:35:20 +02:00
padding: 1px 5px 1px 1px;
}
.red-ui-debug-msg-topic {
2016-06-20 22:35:20 +02:00
display: block;
2019-05-15 14:54:29 +02:00
color: $debug-message-text-color-meta;
2016-06-20 22:35:20 +02:00
}
.red-ui-debug-msg-name {
2016-06-20 22:35:20 +02:00
padding: 1px 5px;
2019-05-15 14:54:29 +02:00
color: $secondary-text-color-inactive;
2016-06-20 22:35:20 +02:00
}
.red-ui-debug-msg-tools {
position: absolute;
top: 3px;
right: 1px;
.red-ui-debug-msg-tools-copy {
2017-05-11 16:08:10 +02:00
display: none;
}
.red-ui-debug-msg-tools-other {
display: none;
}
}
.red-ui-debug-msg-payload {
2016-06-20 22:35:20 +02:00
display: block;
padding: 2px;
2019-05-15 14:54:29 +02:00
background: $debug-message-background;
font-family: $monospace-font;
font-size: 13px !important;
2016-06-20 22:35:20 +02:00
}
.red-ui-debug-msg-level-log {
2019-05-15 14:54:29 +02:00
border-left-color: $debug-message-border;
border-right-color: $debug-message-border;
2016-06-20 22:35:20 +02:00
}
.red-ui-debug-msg-level-30 {
2019-05-15 14:54:29 +02:00
border-left-color: $debug-message-border-warning;
border-right-color: $debug-message-border-warning;
2016-06-20 22:35:20 +02:00
}
.red-ui-debug-msg-level-20 {
2019-05-15 14:54:29 +02:00
border-left-color: $debug-message-border-error;
border-right-color: $debug-message-border-error;
2016-06-20 22:35:20 +02:00
}
.red-ui-debug-msg-object-entry {
position: relative;
2016-06-21 23:50:09 +02:00
padding-left: 15px;
2016-06-22 13:27:47 +02:00
}
.red-ui-debug-msg-element {
2019-05-15 14:54:29 +02:00
color: $debug-message-text-color;
2016-10-24 17:53:09 +02:00
line-height: 1.3em;
2016-06-21 23:50:09 +02:00
}
.red-ui-debug-msg-object-key {
2019-05-15 14:54:29 +02:00
color: $debug-message-text-color-object-key;
2016-06-21 23:50:09 +02:00
}
.red-ui-debug-msg-object-value {
2016-06-21 23:50:09 +02:00
}
.red-ui-debug-msg-object-handle {
2019-05-15 14:54:29 +02:00
color: $secondary-text-color;
2016-06-22 13:27:47 +02:00
font-size: 1em;
2016-06-21 23:50:09 +02:00
width: 1em;
text-align: center;
2016-06-22 13:27:47 +02:00
transition: transform 0.1s ease-in-out;
2016-06-21 23:50:09 +02:00
transform: rotate(90deg);
}
.red-ui-debug-msg-element:not(.red-ui-debug-msg-top-level)>.red-ui-debug-msg-expandable>.red-ui-debug-msg-object-handle {
margin-left: -1em;
}
.red-ui-debug-msg-object-entry>.red-ui-debug-msg-expandable>.red-ui-debug-msg-object-handle {
2016-06-22 13:27:47 +02:00
margin-left: -1em;
}
.red-ui-debug-msg-object-entry.collapsed>span>.red-ui-debug-msg-object-handle {
2016-06-22 13:27:47 +02:00
transform: rotate(0deg);
}
.red-ui-debug-msg-element.collapsed>span>.red-ui-debug-msg-object-handle {
2016-06-21 23:50:09 +02:00
transform: rotate(0deg);
}
.red-ui-debug-msg-object-entry.collapsed > .red-ui-debug-msg-object-entry {
2016-06-21 23:50:09 +02:00
display:none;
}
.red-ui-debug-msg-element.collapsed .red-ui-debug-msg-object-entry {
2016-06-22 13:27:47 +02:00
display:none;
}
.red-ui-debug-msg-element:not(.collapsed)>.red-ui-debug-msg-expandable>.red-ui-debug-msg-object-value>.red-ui-debug-msg-object-header {
2016-10-24 17:53:09 +02:00
display:none;
}
.red-ui-debug-msg-element.collapsed .red-ui-debug-msg-buffer-opts {
display: none;
}
.red-ui-debug-msg-element.collapsed .red-ui-debug-msg-object-type-header {
2016-10-24 17:53:09 +02:00
display:none;
}
.red-ui-debug-msg-object-entry pre {
font-family: $monospace-font;
font-size: 13px;
line-height: 1.2em;
2016-11-02 16:12:30 +01:00
margin: 0 0 0 -1em;
}
2016-06-22 13:27:47 +02:00
2019-05-15 14:54:29 +02:00
.red-ui-debug-msg-type-other { color: $debug-message-text-color-msg-type-other; }
.red-ui-debug-msg-type-string { color: $debug-message-text-color-msg-type-string; }
.red-ui-debug-msg-type-null { color: $debug-message-text-color-msg-type-null; font-style: italic;}
.red-ui-debug-msg-type-meta { color: $debug-message-text-color-msg-type-meta; font-style: italic;}
.red-ui-debug-msg-type-number { color: $debug-message-text-color-msg-type-number; };
.red-ui-debug-msg-type-number-toggle { cursor: pointer;}
2016-06-22 13:27:47 +02:00
.red-ui-debug-msg-row {
display: block;
padding: 4px 2px 2px;
position: relative;
&.red-ui-debug-msg-row-pinned {
2019-05-15 14:54:29 +02:00
background: $list-item-border-selected;
2017-05-11 16:08:10 +02:00
}
}
.red-ui-debug-msg-expandable {
2016-06-22 13:27:47 +02:00
cursor: pointer;
}
.red-ui-debug-msg-expandable:hover .red-ui-debug-msg-object-handle {
2019-05-15 14:54:29 +02:00
color:$secondary-text-color-hover;
2016-10-24 17:53:09 +02:00
}
2016-11-02 16:12:30 +01:00
2019-05-15 14:54:29 +02:00
.red-ui-debug-msg-buffer-opts {
2016-11-02 16:12:30 +01:00
margin-left: 5px;
}
2019-05-15 14:54:29 +02:00
.red-ui-debug-msg-buffer-raw > .red-ui-debug-msg-string-rows {
display: none;
}
.red-ui-debug-msg-buffer-string > .red-ui-debug-msg-array-rows {
display: none;
}
.red-ui-debug-msg-type-string-swatch {
display: inline-block;
width: 1.1em;
height: 0.9em;
vertical-align: middle;
border-radius: 3px;
margin: 0 4px;
}