Namespace all header css

This commit is contained in:
Nick O'Leary
2019-04-30 23:38:54 +01:00
parent 5866dad79a
commit 126a42056d
10 changed files with 239 additions and 245 deletions

View File

@@ -532,7 +532,7 @@ var RED = (function() {
RED.comms.connect();
$("#main-container").show();
$(".header-toolbar").show();
$(".red-ui-header-toolbar").show();
loadNodeList();
}

View File

@@ -62,7 +62,7 @@ RED.deploy = (function() {
'</span>'+
'</a>'+
'<a id="btn-deploy-options" data-toggle="dropdown" class="deploy-button" href="#"><i class="fa fa-caret-down"></i></a>'+
'</span></li>').prependTo(".header-toolbar");
'</span></li>').prependTo(".red-ui-header-toolbar");
RED.menu.init({id:"btn-deploy-options",
options: [
{id:"deploymenu-item-full",toggle:"deploy-type",icon:"red/images/deploy-full.png",label:RED._("deploy.full"),sublabel:RED._("deploy.fullDesc"),selected: true, onselect:function(s) { if(s){changeDeploymentType("full")}}},
@@ -90,7 +90,7 @@ RED.deploy = (function() {
'<img src="red/images/spin.svg"/>'+
'</span>'+
'</a>'+
'</span></li>').prependTo(".header-toolbar");
'</span></li>').prependTo(".red-ui-header-toolbar");
}
$('#btn-deploy').on("click", function(event) {
@@ -271,7 +271,7 @@ RED.deploy = (function() {
var deployWasEnabled = !$("#btn-deploy").hasClass("disabled");
$("#btn-deploy").addClass("disabled");
deployInflight = true;
$("#header-shade").show();
$("#red-ui-header-shade").show();
$("#editor-shade").show();
$("#red-ui-palette-shade").show();
$("#red-ui-sidebar-shade").show();
@@ -306,7 +306,7 @@ RED.deploy = (function() {
setTimeout(function() {
$(".deploy-button-content").css('opacity',1);
$(".deploy-button-spinner").hide();
$("#header-shade").hide();
$("#red-ui-header-shade").hide();
$("#editor-shade").hide();
$("#red-ui-palette-shade").hide();
$("#red-ui-sidebar-shade").hide();
@@ -422,7 +422,7 @@ RED.deploy = (function() {
}
deployInflight = true;
$("#header-shade").show();
$("#red-ui-header-shade").show();
$("#editor-shade").show();
$("#red-ui-palette-shade").show();
$("#red-ui-sidebar-shade").show();
@@ -492,7 +492,7 @@ RED.deploy = (function() {
setTimeout(function() {
$(".deploy-button-content").css('opacity',1);
$(".deploy-button-spinner").hide();
$("#header-shade").hide();
$("#red-ui-header-shade").hide();
$("#editor-shade").hide();
$("#red-ui-palette-shade").hide();
$("#red-ui-sidebar-shade").hide();

View File

@@ -267,7 +267,7 @@ RED.notifications = (function() {
'<a id="btn-notifications" class="button" href="#">'+
'<i class="fa fa-warning"></i>'+
'</a>'+
'</li>').prependTo(".header-toolbar").hide();
'</li>').prependTo(".red-ui-header-toolbar").hide();
$('#btn-notifications').on("click", function() {
showPersistent();
})

View File

@@ -2226,13 +2226,13 @@ RED.projects = (function() {
resizable: false,
open: function(e) {
$(this).parent().find(".ui-dialog-titlebar-close").hide();
// $("#header-shade").show();
// $("#red-ui-header-shade").show();
// $("#editor-shade").show();
// $("#red-ui-palette-shade").show();
// $("#red-ui-sidebar-shade").show();
},
close: function(e) {
// $("#header-shade").hide();
// $("#red-ui-header-shade").hide();
// $("#editor-shade").hide();
// $("#red-ui-palette-shade").hide();
// $("#red-ui-sidebar-shade").hide();

View File

@@ -254,7 +254,7 @@ RED.search = (function() {
}
if (!visible) {
RED.keyboard.add("*","escape",function(){hide()});
$("#header-shade").show();
$("#red-ui-header-shade").show();
$("#editor-shade").show();
$("#red-ui-palette-shade").show();
$("#red-ui-sidebar-shade").show();
@@ -275,7 +275,7 @@ RED.search = (function() {
if (visible) {
RED.keyboard.remove("escape");
visible = false;
$("#header-shade").hide();
$("#red-ui-header-shade").hide();
$("#editor-shade").hide();
$("#red-ui-palette-shade").hide();
$("#red-ui-sidebar-shade").hide();
@@ -299,7 +299,7 @@ RED.search = (function() {
$("#header-shade").on('mousedown',hide);
$("#red-ui-header-shade").on('mousedown',hide);
$("#editor-shade").on('mousedown',hide);
$("#red-ui-palette-shade").on('mousedown',hide);
$("#red-ui-sidebar-shade").on('mousedown',hide);

View File

@@ -115,7 +115,7 @@ RED.tray = (function() {
}
function finishBuild() {
$("#header-shade").show();
$("#red-ui-header-shade").show();
$("#editor-shade").show();
$("#red-ui-palette-shade").show();
$(".red-ui-sidebar-shade").show();
@@ -267,7 +267,7 @@ RED.tray = (function() {
done();
}
if (stack.length === 0) {
$("#header-shade").hide();
$("#red-ui-header-shade").hide();
$("#editor-shade").hide();
$("#red-ui-palette-shade").hide();
$(".red-ui-sidebar-shade").hide();

View File

@@ -214,7 +214,7 @@ RED.user = (function() {
if (!RED.settings.editorTheme || !RED.settings.editorTheme.hasOwnProperty("userMenu")) {
var userMenu = $('<li><a id="btn-usermenu" class="button hide" data-toggle="dropdown" href="#"></a></li>')
.prependTo(".header-toolbar");
.prependTo(".red-ui-header-toolbar");
if (RED.settings.user.image) {
$('<span class="user-profile"></span>').css({
backgroundImage: "url("+RED.settings.user.image+")",