aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEric Guzman2012-05-21 09:39:11 -0700
committerEric Guzman2012-05-21 09:39:11 -0700
commitfbdfb46071c5f1c081f3703ddf35ef009decf167 (patch)
tree9a6665c278edfb20f2f22fa3e45c6e807fd53186 /js
parenta8e97144c832e355de7f8177ce38644119248e87 (diff)
downloadninja-fbdfb46071c5f1c081f3703ddf35ef009decf167.tar.gz
Style sheet - Added disabled style to sheet item
Diffstat (limited to 'js')
-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