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/base.scss

277 lines
5.3 KiB
SCSS
Raw Normal View History

2019-05-02 18:03:42 +02:00
/**
* 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.
**/
body {
overflow: hidden;
}
.red-ui-editor {
font-size: $primary-font-size;
font-family: $primary-font;
2019-05-02 18:03:42 +02:00
padding: 0;
margin: 0;
background: $primary-background;
color: $primary-text-color;
2019-05-02 18:03:42 +02:00
line-height: 20px;
}
#red-ui-editor {
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
}
#red-ui-editor-node-configs {
display: none;
}
2019-05-02 18:03:42 +02:00
#red-ui-main-container {
position: absolute;
top:40px; left:0; bottom: 0; right:0;
overflow:hidden;
}
2019-05-07 15:46:44 +02:00
#red-ui-palette-shade, #red-ui-editor-shade, #red-ui-header-shade, #red-ui-sidebar-shade {
@include shade;
z-index: 2;
}
#red-ui-sidebar-shade {
left: -8px;
top: -1px;
bottom: -1px;
}
#red-ui-full-shade {
@include shade;
z-index: 15;
}
2019-05-15 14:54:29 +02:00
.red-ui-editor,
.red-ui-editor-dialog,
.red-ui-menu,
.red-ui-popover,
.red-ui-typedInput-options,
.red-ui-icon-picker {
a {
text-decoration: none;
color: $primary-text-color;
2019-05-15 14:54:29 +02:00
}
a:hover,
a:focus {
text-decoration: none;
color: $primary-text-color;
2019-05-15 14:54:29 +02:00
}
a:focus {
outline: 1px solid $form-input-focus-color;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
p {
margin: 0 0 10px;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
small {
font-size: 85%;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
strong {
font-weight: bold;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
em {
font-style: italic;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
cite {
font-style: normal;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
ul,
ol {
padding: 0;
margin: 0 0 10px 25px;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
ul ul,
ul ol,
ol ol,
ol ul {
margin-bottom: 0;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
li {
line-height: 20px;
}
dl {
margin-bottom: 20px;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
dt,
dd {
line-height: 20px;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
dt {
font-weight: bold;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
dd {
margin-left: 10px;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
hr {
margin: 20px 0;
border: 0;
border-top: 1px solid $tertiary-border-color;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
i.spinner {
display: inline-block;
width: 14px;
height: 14px;
line-height: 14px;
vertical-align: text-top;
margin-top: 0px;
background: url(images/spin.svg) no-repeat 50% 50%;
background-size: contain
}
2019-05-02 18:03:42 +02:00
.red-ui-font-code {
font-family: $monospace-font;
font-size: $primary-font-size;
color: $info-text-code-color;
white-space: nowrap;
}
2019-05-15 14:54:29 +02:00
code {
font-family: $monospace-font;
font-size: $primary-font-size;
padding: 0px;
margin: 1px;
color: $info-text-code-color;
white-space: nowrap;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
line-height: 20px;
word-break: break-all;
word-wrap: break-word;
white-space: pre-wrap;
background-color:$tertiary-background;
border: 1px solid $tertiary-border-color;
border-radius: 2px;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
pre code {
padding: 0;
color: inherit;
white-space: pre;
white-space: pre-wrap;
background-color: transparent;
border: 0;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
.pull-right {
float: right;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
.pull-left {
float: left;
}
.hide {
display: none;
}
.show {
display: block;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
img {
width: auto\9;
height: auto;
max-width: 100%;
vertical-align: middle;
border: 0;
-ms-interpolation-mode: bicubic;
}
2019-05-02 18:03:42 +02:00
2019-05-15 14:54:29 +02:00
blockquote {
padding: 0 0 0 15px;
margin: 0 0 20px;
border-left: 4px solid $secondary-border-color;
color: $secondary-text-color;
p {
font-size: 14px;
font-weight: inherit;
line-height: 1.25;
margin-bottom: 0;
}
2019-05-02 18:03:42 +02:00
}
2019-05-15 14:54:29 +02:00
table {
max-width: 100%;
background-color: transparent;
border-collapse: collapse;
border-spacing: 0;
}
2019-05-02 18:03:42 +02:00
}
2019-05-07 16:47:33 +02:00
.red-ui-component-spinner {
position: absolute;
top: 1px;
bottom: 1px;
left: 1px;
right: 1px;
text-align: center;
padding: 40px;
2019-05-15 14:54:29 +02:00
background: $secondary-background;
2019-05-07 16:47:33 +02:00
&:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
margin-right: -0.25em;
}
img {
display: inline-block;
vertical-align: middle;
width: 80px;
}
&.red-ui-component-spinner-sidebar {
2019-05-15 14:54:29 +02:00
background: $secondary-background;
2019-05-07 16:47:33 +02:00
padding:0;
img {
width: 40px;
}
}
&.projects-version-control-spinner-sidebar {
2019-05-15 14:54:29 +02:00
background: $secondary-background;
2019-05-07 16:47:33 +02:00
padding:0;
img {
width: 20px;
}
}
&.red-ui-component-spinner-contain {
padding: 0;
img {
width: auto;
height: 100%;
max-height: 50px;
}
}
}