1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Some scss tidy up

This commit is contained in:
Nick O'Leary 2015-04-13 00:11:32 +01:00
parent c9d2d301aa
commit dcd579b5e3
4 changed files with 59 additions and 46 deletions

View File

@ -14,6 +14,20 @@
* limitations under the License. * limitations under the License.
**/ **/
$activeButton: #121212;
$deployButton: #8C101C;
$deployButtonHover: #6E0A1E;
$deployButtonActive: #4C0A17;
$deployDisabledButton: #444;
$deployDisabledButtonHover: #555;
$deployDisabledButtonActive: #444;
$headerMenuBackground: #121212;
$headerMenuItemHover: #323232;
$headerMenuItemDivider: #464646;
#header { #header {
position: absolute; position: absolute;
top: 0; top: 0;
@ -68,7 +82,7 @@ span.logo img {
text-align: center; text-align: center;
line-height: 40px; line-height: 40px;
display: inline-block; display: inline-block;
font-size: 14px; font-size: 20px;
padding: 0px 12px; padding: 0px 12px;
text-decoration: none; text-decoration: none;
color: #C7C7C7; color: #C7C7C7;
@ -78,36 +92,36 @@ span.logo img {
border-right: 2px solid #000; border-right: 2px solid #000;
} }
#header .button:not(.disabled):hover { #header .button:not(.disabled):hover {
border-color: #323232; border-color: $headerMenuItemHover;
} }
#btn-deploy { #btn-deploy {
background: #8C101C; /*#d24741;*/ background: $deployButton;
color: #eee !important; color: #eee !important;
} }
#btn-deploy + a { #btn-deploy + a {
background: #8C101C; /*#BA403B;*/ background: $deployButton;
color: #eee; color: #eee;
} }
#btn-deploy + a:hover { #btn-deploy + a:hover {
background: #6E0A1E; /*#AD3C38;*/ background: $deployButtonHover;
color: #eee; color: #eee;
} }
#btn-deploy + a:active { #btn-deploy + a:active {
background: #4C0A17; /*#aa1f19;*/ background: $deployButtonActive;
color: #ccc; color: #ccc;
} }
span.deploy-button-group.open > #btn-deploy + a { span.deploy-button-group.open > #btn-deploy + a {
background: #121212 !important; background: $activeButton !important;
} }
#btn-deploy:not(.disabled):hover { #btn-deploy:not(.disabled):hover {
background: #6E0A1E; /*#ca3f39;*/ background: $deployButtonHover;
} }
#btn-deploy:not(.disabled):active { #btn-deploy:not(.disabled):active {
background: #4C0A17 /*#aa1f19*/ !important; background: $deployButtonActive !important;
} }
#btn-deploy:not(.disabled):active { #btn-deploy:not(.disabled):active {
color: #ccc !important; color: #ccc !important;
@ -115,27 +129,26 @@ span.deploy-button-group.open > #btn-deploy + a {
#btn-deploy.disabled { #btn-deploy.disabled {
cursor: default; cursor: default;
background: #444; background: $deployDisabledButton;
color: #999 !important; color: #999 !important;
} }
#btn-deploy.disabled + a { #btn-deploy.disabled + a {
background: #444; background: $deployDisabledButton;
color: #ddd; color: #ddd;
} }
#btn-deploy.disabled + a:hover { #btn-deploy.disabled + a:hover {
background: #555; background: $deployDisabledButtonHover;
color: #ddd; color: #ddd;
} }
#btn-deploy.disabled + a:active { #btn-deploy.disabled + a:active {
background: #444; background: $deployDisabledButton;
color: #ddd; color: #ddd;
} }
span.deploy-button-group.open > #btn-deploy.disabled + a { span.deploy-button-group.open > #btn-deploy.disabled + a {
background: #121212 !important; background: $activeButton !important;
} }
#btn-deploy img { #btn-deploy img {
margin-right: 8px; margin-right: 8px;
} }
@ -147,7 +160,7 @@ span.deploy-button-group.open > #btn-deploy.disabled + a {
display: inline-block; display: inline-block;
margin: auto 15px; margin: auto 15px;
vertical-align: middle; vertical-align: middle;
background: #555; background: $deployDisabledButtonHover;
clear: both; clear: both;
} }
.button-group > a { .button-group > a {
@ -160,26 +173,21 @@ span.deploy-button-group.open > #btn-deploy.disabled + a {
color: #ccc; color: #ccc;
margin: 0; margin: 0;
} }
.button-group > a:last-child {
}
#header .button {
font-size: 20px !important;
}
#header .button:active, #header .button.active { #header .button:active, #header .button.active {
background: #121212; background: $activeButton;
} }
#header .button:focus { #header .button:focus {
outline: none; outline: none;
} }
#header li.open .button { #header li.open .button {
background: #121212; background: $activeButton;
border-color: #121212; border-color: $activeButton;
} }
#header ul.dropdown-menu { #header ul.dropdown-menu {
background: #121212; background: $headerMenuBackground;
width: 250px !important; width: 250px !important;
margin-top: 0; margin-top: 0;
} }
@ -219,12 +227,12 @@ span.deploy-button-group.open > #btn-deploy.disabled + a {
#header ul.dropdown-menu > li:hover > a, #header ul.dropdown-menu > li:hover > a,
#header ul.dropdown-menu > li:focus > a { #header ul.dropdown-menu > li:focus > a {
background: #323232 !important; background: $headerMenuItemHover !important;
} }
#header ul.dropdown-menu li.divider { #header ul.dropdown-menu li.divider {
background: #464646; background: $headerMenuItemDivider;
border-bottom-color: #323232; border-bottom-color: $headerMenuItemHover;
} }
#header ul.dropdown-menu li.disabled a { #header ul.dropdown-menu li.disabled a {
color: #666; color: #666;

View File

@ -17,7 +17,9 @@
#palette { #palette {
position: absolute; position: absolute;
top: 5px; left:10px; bottom: 10px; top: 5px;
bottom: 10px;
left:10px;
background: #f3f3f3; background: #f3f3f3;
width: 170px; width: 170px;
text-align: center; text-align: center;
@ -29,13 +31,12 @@
display: none; display: none;
position: absolute; position: absolute;
top: 0; top: 0;
left:0;
right: 0; right: 0;
bottom: 35px; bottom: 35px;
left:0;
padding: 5px; padding: 5px;
overflow-y: auto; overflow-y: auto;
box-sizing:border-box; box-sizing:border-box;
-moz-box-sizing: border-box;
} }
.palette-spinner { .palette-spinner {
padding-top: 40px; padding-top: 40px;
@ -53,7 +54,6 @@
padding: 3px; padding: 3px;
border-top: 1px solid #999; border-top: 1px solid #999;
box-sizing:border-box; box-sizing:border-box;
-moz-box-sizing: border-box;
} }
#palette-search i.fa-search { #palette-search i.fa-search {
position: absolute; position: absolute;
@ -82,7 +82,6 @@
margin: 0px; margin: 0px;
height: 30px; height: 30px;
box-sizing:border-box; box-sizing:border-box;
-moz-box-sizing: border-box;
} }
#palette-search input:focus { #palette-search input:focus {

View File

@ -17,12 +17,13 @@
#sidebar { #sidebar {
width: 305px;
position: absolute; position: absolute;
right: 10px; top: 5px; bottom:10px; top: 5px;
right: 10px;
bottom: 10px;
width: 305px;
background: #fff; background: #fff;
box-sizing: border-box; box-sizing: border-box;
-moz-box-sizing: border-box;
@include component-border; @include component-border;
} }
@ -33,17 +34,22 @@
} }
#sidebar-content { #sidebar-content {
position: absolute;
top: 30px;
right: 0;
bottom: 1px;
left: 0px;
font-size: 1.2em; font-size: 1.2em;
overflow-y: auto; overflow-y: auto;
position: absolute;
top: 30px; left: 0px; right: 0; bottom: 1px;
} }
#sidebar-separator { #sidebar-separator {
position: absolute;
top: 5px;
right: 316px;
bottom:10px;
width: 15px; width: 15px;
background: url(images/grip.png) no-repeat 50% 50%; background: url(images/grip.png) no-repeat 50% 50%;
position: absolute;
right: 316px; top: 5px; bottom:10px;
cursor: col-resize; cursor: col-resize;
} }

View File

@ -14,10 +14,6 @@
* limitations under the License. * limitations under the License.
**/ **/
#workspace {
margin-left: 160px;
overflow: hidden;
}
#chart { #chart {
overflow: auto; overflow: auto;
@ -32,12 +28,16 @@
outline: none; outline: none;
} }
#workspace { #workspace {
position: absolute; position: absolute;
margin: 0; margin: 0;
top:5px; left:190px; bottom: 10px; right: 330px; top:5px;
left:190px;
bottom: 10px;
right: 330px;
overflow: hidden;
} }
#chart-zoom-controls { #chart-zoom-controls {
position: absolute; position: absolute;
bottom:30px; right: 350px; bottom:30px; right: 350px;