mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Move all CSS into SCSS files for consistency and ease of colour maintenance etc. Fixes #2927
This commit is contained in:
committed by
Dave Page
parent
61f00a0cbb
commit
82c9cca683
@@ -13,6 +13,6 @@
|
||||
background-size: 20px !important;
|
||||
align-content: center;
|
||||
vertical-align: middle;
|
||||
border-radius: 10px
|
||||
border-radius: 10px;
|
||||
height: 1.3em;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
.bg-model-duplicate {
|
||||
@extend .bg-warning-light;
|
||||
}
|
||||
Reference in New Issue
Block a user