aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel')
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.css4
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.js7
2 files changed, 11 insertions, 0 deletions
diff --git a/js/panels/css-panel/style-sheet.reel/style-sheet.css b/js/panels/css-panel/style-sheet.reel/style-sheet.css
index 2e72cd9c..44de29eb 100644
--- a/js/panels/css-panel/style-sheet.reel/style-sheet.css
+++ b/js/panels/css-panel/style-sheet.reel/style-sheet.css
@@ -136,6 +136,10 @@
136 color: #A33939; 136 color: #A33939;
137} 137}
138 138
139.ss-disabled {
140 opacity: .65;
141}
142
139.ss-invisible { 143.ss-invisible {
140 display: none; 144 display: none;
141} \ No newline at end of file 145} \ No newline at end of file
diff --git a/js/panels/css-panel/style-sheet.reel/style-sheet.js b/js/panels/css-panel/style-sheet.reel/style-sheet.js
index 7afe977f..98e20b2c 100644
--- a/js/panels/css-panel/style-sheet.reel/style-sheet.js
+++ b/js/panels/css-panel/style-sheet.reel/style-sheet.js
@@ -55,6 +55,12 @@ exports.StyleSheet = Montage.create(Component, {
55 this.nameText.element.classList.remove('ss-dirty'); 55 this.nameText.element.classList.remove('ss-dirty');
56 } 56 }
57 57
58 if(this.disabled) {
59 this.element.classList.add('ss-disabled');
60 } else {
61 this.element.classList.remove('ss-disabled');
62 }
63
58 } 64 }
59 }, 65 },
60 66
@@ -182,6 +188,7 @@ exports.StyleSheet = Montage.create(Component, {
182 this.disableButton.label = label; 188 this.disableButton.label = label;
183 189
184 this._disabled = disable; 190 this._disabled = disable;
191 this.needsDraw = true;
185 } 192 }
186 }, 193 },
187 194