mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
More ui redesign
This commit is contained in:
25
editor/sass/colors.scss
Normal file
25
editor/sass/colors.scss
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Copyright 2015 IBM Corp.
|
||||
*
|
||||
* 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.
|
||||
**/
|
||||
|
||||
$form-placeholder-color: #bbbbbb;
|
||||
|
||||
$form-text-color: #444;
|
||||
$form-input-focus-color: rgba(85,150,230,0.8);
|
||||
$form-input-border-color: #ccc;
|
||||
|
||||
$node-selected-color: #5596E6; // #ff7f0e
|
||||
|
||||
$primary-border-color: #bbbbbb;
|
@@ -29,6 +29,7 @@
|
||||
|
||||
.form-row {
|
||||
clear: both;
|
||||
color: $form-text-color;
|
||||
margin-bottom:10px;
|
||||
}
|
||||
.form-row label {
|
||||
@@ -73,4 +74,3 @@ button.input-append-right {
|
||||
font-size: 14px !important;
|
||||
font-family: monospace !important;
|
||||
}
|
||||
|
||||
|
@@ -155,7 +155,7 @@
|
||||
}
|
||||
.node_selected {
|
||||
stroke-width: 2;
|
||||
stroke: #ff7f0e !important;
|
||||
stroke: $node-selected-color !important;
|
||||
}
|
||||
.node_highlighted {
|
||||
stroke: #dd1616;
|
||||
@@ -176,14 +176,14 @@
|
||||
}
|
||||
|
||||
.drag_line {
|
||||
stroke: #ff7f0e;
|
||||
stroke: $node-selected-color;
|
||||
stroke-width: 4;
|
||||
fill: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.drag_line_hidden {
|
||||
stroke: #ff7f0e;
|
||||
stroke: $node-selected-color;
|
||||
stroke-width: 0;
|
||||
pointer-events: none;
|
||||
fill: none;
|
||||
@@ -218,7 +218,7 @@
|
||||
}
|
||||
|
||||
g.link_selected path.link_line {
|
||||
stroke: #ff7f0e;
|
||||
stroke: $node-selected-color;
|
||||
}
|
||||
g.link_unknown path.link_line {
|
||||
stroke: #f00;
|
||||
|
1048
editor/sass/forms.scss
Normal file
1048
editor/sass/forms.scss
Normal file
File diff suppressed because it is too large
Load Diff
@@ -37,13 +37,13 @@
|
||||
}
|
||||
.ui-dialog .ui-dialog-titlebar {
|
||||
padding: 10px;
|
||||
background: #f0f0f0;
|
||||
background: #f3f3f3;
|
||||
border: none;
|
||||
border-bottom: 2px solid #888;
|
||||
border-bottom: 1px solid #999;
|
||||
border-radius: 0;
|
||||
}
|
||||
.ui-corner-all {
|
||||
border-radius: 2px;
|
||||
border-radius: 1px;
|
||||
}
|
||||
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
|
||||
background: #f3f3f3;
|
||||
|
@@ -23,6 +23,6 @@
|
||||
}
|
||||
|
||||
@mixin component-border {
|
||||
border: 1px solid #999;
|
||||
border: 1px solid $primary-border-color;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
@@ -32,7 +32,7 @@
|
||||
position: absolute;
|
||||
top: 35px;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
bottom: 0px;
|
||||
left:0;
|
||||
padding: 0;
|
||||
overflow-y: auto;
|
||||
@@ -52,7 +52,7 @@
|
||||
text-align: center;
|
||||
height: 35px;
|
||||
padding: 3px;
|
||||
border-bottom: 1px solid #999;
|
||||
border-bottom: 1px solid $primary-border-color;
|
||||
box-sizing:border-box;
|
||||
}
|
||||
#palette-search i {
|
||||
@@ -126,6 +126,7 @@
|
||||
clear: both;
|
||||
}
|
||||
.palette_label {
|
||||
font-size: 13px;
|
||||
margin: 4px 0 4px 28px;
|
||||
line-height: 20px;
|
||||
overflow: hidden;
|
||||
@@ -137,7 +138,6 @@
|
||||
|
||||
.palette_node {
|
||||
cursor:move;
|
||||
font-size:13px;
|
||||
background: #ddd;
|
||||
margin: 10px auto;
|
||||
height: 25px;
|
||||
@@ -150,7 +150,7 @@
|
||||
position: relative;
|
||||
}
|
||||
.palette_node:hover {
|
||||
border-color: #ff7f0e;
|
||||
border-color: $node-selected-color;
|
||||
background-color: #eee;
|
||||
}
|
||||
.palette_port {
|
||||
|
@@ -14,8 +14,6 @@
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
|
||||
|
||||
#sidebar {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
@@ -49,12 +47,12 @@
|
||||
top: 5px;
|
||||
right: 316px;
|
||||
bottom:10px;
|
||||
width: 15px;
|
||||
width: 10px;
|
||||
background: url(images/grip.png) no-repeat 50% 50%;
|
||||
cursor: col-resize;
|
||||
}
|
||||
|
||||
.sidebar-closed > #sidebar { display: none; }
|
||||
.sidebar-closed > #sidebar-separator { right: 0px !important; }
|
||||
.sidebar-closed > #workspace { right: 15px !important; }
|
||||
.sidebar-closed > #chart-zoom-controls { right: 35px !important; }
|
||||
.sidebar-closed > #workspace { right: 10px !important; }
|
||||
.sidebar-closed > #chart-zoom-controls { right: 30px !important; }
|
||||
|
@@ -14,8 +14,11 @@
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
@import "colors";
|
||||
@import "mixins";
|
||||
|
||||
@import "forms";
|
||||
|
||||
@import "jquery";
|
||||
@import "bootstrap";
|
||||
|
||||
@@ -44,7 +47,7 @@
|
||||
|
||||
|
||||
body {
|
||||
font: 13px "Helvetica" !important;
|
||||
font: 14px "Helvetica" !important;
|
||||
padding-top: 100px;
|
||||
background: #f3f3f3;
|
||||
}
|
||||
|
@@ -56,22 +56,23 @@ div.node-info {
|
||||
text-decoration: none;
|
||||
}
|
||||
.node-help {
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
line-height: 1.5em;
|
||||
h1 {
|
||||
font-weight: normal;
|
||||
font-size: 1.953em;
|
||||
font-size: 23px;
|
||||
margin: 8px auto;
|
||||
}
|
||||
h2 {
|
||||
font-weight: normal;
|
||||
font-size: 1.563em;
|
||||
font-size: 16px;
|
||||
margin: 8px auto;
|
||||
}
|
||||
h3,
|
||||
h4,
|
||||
h5 {
|
||||
font-weight: normal;
|
||||
font-size: 1.25em;
|
||||
font-size: 14px;
|
||||
margin: 8px auto;
|
||||
}
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ ul.red-ui-tabs {
|
||||
display: block;
|
||||
height: 35px;
|
||||
box-sizing:border-box;
|
||||
border-bottom: 1px solid #999;
|
||||
border-bottom: 1px solid $primary-border-color;
|
||||
background: #fff;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
@@ -31,16 +31,16 @@ ul.red-ui-tabs {
|
||||
}
|
||||
|
||||
ul.red-ui-tabs li {
|
||||
box-sizing:border-box;
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
border-left: 1px solid #999;
|
||||
border-top: 1px solid #999;
|
||||
border-right: 1px solid #999;
|
||||
border-bottom: 1px solid #999;
|
||||
border-left: 1px solid $primary-border-color;
|
||||
border-top: 1px solid $primary-border-color;
|
||||
border-right: 1px solid $primary-border-color;
|
||||
border-bottom: 1px solid $primary-border-color;
|
||||
background: #f3f3f3;
|
||||
margin: 3px 3px 0 3px;
|
||||
height: 32px;
|
||||
line-height: 24px;
|
||||
line-height: 29px;
|
||||
max-width: 200px;
|
||||
width: 14%;
|
||||
overflow: hidden;
|
||||
@@ -49,7 +49,7 @@ ul.red-ui-tabs li {
|
||||
|
||||
ul.red-ui-tabs li a.red-ui-tab-label {
|
||||
display: block;
|
||||
padding: 3px 12px;
|
||||
padding-left: 12px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
color: #666;
|
||||
|
@@ -35,7 +35,7 @@
|
||||
top:0px;
|
||||
left:179px;
|
||||
bottom: 10px;
|
||||
right: 330px;
|
||||
right: 326px;
|
||||
overflow: hidden;
|
||||
@include component-border;
|
||||
}
|
||||
@@ -60,8 +60,8 @@
|
||||
right: 0;
|
||||
height: 34px;
|
||||
width: 28px;
|
||||
border-bottom: 1px solid #999;
|
||||
border-left: 1px solid #999;
|
||||
border-bottom: 1px solid $primary-border-color;
|
||||
border-left: 1px solid $primary-border-color;
|
||||
}
|
||||
|
||||
#btn-workspace-add-tab {
|
||||
|
@@ -14,13 +14,12 @@
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
|
||||
|
||||
#workspace-toolbar {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
top: 35px;
|
||||
left:0;
|
||||
right: 20px;
|
||||
padding: 7px;
|
||||
border-bottom-right-radius: 5px;
|
||||
background: #f3f3f3;
|
||||
|
Reference in New Issue
Block a user