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

@@ -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;
}