Move all CSS into SCSS files for consistency and ease of colour maintenance etc. Fixes #2927

This commit is contained in:
Aditya Toshniwal
2018-09-04 11:24:51 +01:00
committed by Dave Page
parent 61f00a0cbb
commit 82c9cca683
76 changed files with 1956 additions and 1897 deletions

View File

@@ -13,6 +13,6 @@
background-size: 20px !important;
align-content: center;
vertical-align: middle;
border-radius: 10px
border-radius: 10px;
height: 1.3em;
}

View File

@@ -4,9 +4,7 @@ define('pgadmin.node.table_partition_utils', [
], function(gettext, $, _, Backbone, pgBrowser, Backform, Backgrid) {
Backgrid.PartitionRow = Backgrid.Row.extend({
modelDuplicateColor: 'lightYellow',
modelUniqueColor: '#fff',
modelDuplicateClass: 'bg-model-duplicate',
initialize: function () {
Backgrid.Row.prototype.initialize.apply(this, arguments);
@@ -34,10 +32,10 @@ define('pgadmin.node.table_partition_utils', [
},
modelDuplicate: function() {
$(this.el).removeClass('new');
this.el.style.backgroundColor = this.modelDuplicateColor;
$(this.el).addClass(this.modelDuplicateClass);
},
modelUnique: function() {
this.el.style.backgroundColor = this.modelUniqueColor;
$(this.el).removeClass(this.modelDuplicateClass);
},
});

View File

@@ -69,9 +69,7 @@ define([
* variable name.
*/
var VariableRow = Backgrid.Row.extend({
modelDuplicateColor: 'lightYellow',
modelUniqueColor: '#fff',
modelDuplicateClass: 'bg-model-duplicate',
initialize: function () {
Backgrid.Row.prototype.initialize.apply(this, arguments);
@@ -101,10 +99,10 @@ define([
},
modelDuplicate: function() {
$(this.el).removeClass('new');
this.el.style.backgroundColor = this.modelDuplicateColor;
$(this.el).addClass(this.modelDuplicateClass);
},
modelUnique: function() {
this.el.style.backgroundColor = this.modelUniqueColor;
$(this.el).removeClass(this.modelDuplicateClass);
},
});

View File

@@ -0,0 +1,3 @@
.bg-model-duplicate {
@extend .bg-warning-light;
}