diff options
Diffstat (limited to 'js/panels')
-rw-r--r-- | js/panels/css-panel/style-sheet.reel/style-sheet.css | 34 | ||||
-rw-r--r-- | js/panels/css-panel/style-sheet.reel/style-sheet.html | 57 | ||||
-rw-r--r-- | js/panels/css-panel/style-sheet.reel/style-sheet.js | 162 |
3 files changed, 220 insertions, 33 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 b64c1d69..9ea03be8 100644 --- a/js/panels/css-panel/style-sheet.reel/style-sheet.css +++ b/js/panels/css-panel/style-sheet.reel/style-sheet.css | |||
@@ -20,6 +20,20 @@ | |||
20 | position: relative; | 20 | position: relative; |
21 | -webkit-box-flex: 0; | 21 | -webkit-box-flex: 0; |
22 | } | 22 | } |
23 | .ss-icon { | ||
24 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89%2BbN%2FrXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz%2FSMBAPh%2BPDwrIsAHvgABeNMLCADATZvAMByH%2Fw%2FqQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf%2BbTAICd%2BJl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA%2Fg88wAAKCRFRHgg%2FP9eM4Ors7ONo62Dl8t6r8G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%2F2j5sfVT0Kf7kxmTk%2F8EA5jz%2FGMzLdsAAAAgY0hSTQAAeiUAAICDAAD5%2FwAAgOkAAHUwAADqYAAAOpgAABdvkl%2FFRgAAAKJJREFUeNrUU7ERwyAMfOU8BDUrxNukcCf3HsQ96SgyiqnwCq69xadKLtiYAqr8nQr%2BBNKLl5BEC25oRPMDXXJagek1FTXNj1lw%2FyFIfkNVuSwLc1BVMhKMTO50xwrGGGzbVikBwL7v2cRhGDA%2BRzp1cjlEp0689w1DPEip%2BsZSFx8Z1T7IdXUpwVp74kIIJ06SXViBfuyLRoouJkaS%2F1%2Bm9wA1r162GS72SwAAAABJRU5ErkJggg%3D%3D); | ||
25 | background-position: 0 1px; | ||
26 | background-repeat: no-repeat; | ||
27 | height: 15px; | ||
28 | margin-right: 4px; | ||
29 | width: 15px; | ||
30 | -webkit-box-flex: 0; | ||
31 | } | ||
32 | .ss-locked .ss-icon { | ||
33 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMCAYAAAC0qUeeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEMDA5RjUwNDc3Q0IxMUUxOThGODg2OTQ2NzQzQTM4QyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEMDA5RjUwNTc3Q0IxMUUxOThGODg2OTQ2NzQzQTM4QyI%2BIDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkQwMDlGNTAyNzdDQjExRTE5OEY4ODY5NDY3NDNBMzhDIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkQwMDlGNTAzNzdDQjExRTE5OEY4ODY5NDY3NDNBMzhDIi8%2BIDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY%2BIDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8%2B5IAEXQAAAD1JREFUeNpi%2FP%2F%2FPwMInD17FsLAAkxMTBhBNBMDCYAJn0kYihkZGRlAGF0hNg2MZ86c%2BU%2BRM0YVEwMAAgwAPiAMV%2F3dGHMAAAAASUVORK5CYII%3D); | ||
34 | background-position: center center; | ||
35 | background-repeat: no-repeat; | ||
36 | } | ||
23 | .style-sheet-container span { | 37 | .style-sheet-container span { |
24 | min-width: 50px; | 38 | min-width: 50px; |
25 | overflow: hidden; | 39 | overflow: hidden; |
@@ -65,8 +79,13 @@ | |||
65 | outline: 0 none; | 79 | outline: 0 none; |
66 | box-shadow: none; | 80 | box-shadow: none; |
67 | } | 81 | } |
68 | 82 | .style-sheet-container .ss-edit-button:active { | |
83 | -webkit-transition: -webkit-transform 3s cubic-bezier(.44,.19,0,.99); | ||
84 | -webkit-transform: rotate(360deg); | ||
85 | } | ||
69 | .style-sheet-edit { | 86 | .style-sheet-edit { |
87 | display: -webkit-box; | ||
88 | -webkit-box-orient: horizontal; | ||
70 | position: absolute; | 89 | position: absolute; |
71 | top: 0; | 90 | top: 0; |
72 | right: 0; | 91 | right: 0; |
@@ -80,17 +99,21 @@ | |||
80 | .style-sheet-edit.expanded .ss-edit-button { | 99 | .style-sheet-edit.expanded .ss-edit-button { |
81 | background-color: #363636; | 100 | background-color: #363636; |
82 | border-color: rgba(80, 80, 80, 1); | 101 | border-color: rgba(80, 80, 80, 1); |
102 | -webkit-box-flex: 0; | ||
83 | opacity: 1; | 103 | opacity: 1; |
84 | } | 104 | } |
105 | |||
85 | .style-sheet-edit.expanded { | 106 | .style-sheet-edit.expanded { |
86 | background-color: #363636; | 107 | background-color: #363636; |
87 | } | 108 | } |
88 | .style-sheet-edit button.nj-skinned { | 109 | .style-sheet-edit button.nj-skinned { |
110 | -webkit-box-flex: .2; | ||
89 | height: 20px; | 111 | height: 20px; |
90 | padding: 2px 10px; | 112 | padding: 2px 10px; |
91 | margin-left: 9px; | 113 | margin-left: 9px; |
92 | margin-right: -4px; | 114 | margin-right: -4px; |
93 | top: 2px; | 115 | top: 2px; |
116 | max-width: 40px; | ||
94 | position: relative; | 117 | position: relative; |
95 | text-transform: capitalize; | 118 | text-transform: capitalize; |
96 | font-size: 10px; | 119 | font-size: 10px; |
@@ -99,6 +122,11 @@ | |||
99 | background: -webkit-linear-gradient(top, rgba(91,57,56,1) 0%,rgba(53,35,35,1) 100%); | 122 | background: -webkit-linear-gradient(top, rgba(91,57,56,1) 0%,rgba(53,35,35,1) 100%); |
100 | } | 123 | } |
101 | .style-sheet-edit button.ss-disable-button { | 124 | .style-sheet-edit button.ss-disable-button { |
102 | position: absolute; | 125 | /*position: absolute;*/ |
103 | right: 25px; | 126 | /*right: 25px;*/ |
127 | margin-right: 25px; | ||
128 | } | ||
129 | |||
130 | .ss-invisible { | ||
131 | display: none; | ||
104 | } \ No newline at end of file | 132 | } \ No newline at end of file |
diff --git a/js/panels/css-panel/style-sheet.reel/style-sheet.html b/js/panels/css-panel/style-sheet.reel/style-sheet.html index 1c47ce3f..1820f780 100644 --- a/js/panels/css-panel/style-sheet.reel/style-sheet.html +++ b/js/panels/css-panel/style-sheet.reel/style-sheet.html | |||
@@ -15,11 +15,13 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
15 | "name" : "StyleSheet", | 15 | "name" : "StyleSheet", |
16 | "properties" : { | 16 | "properties" : { |
17 | "element" : {"#" : "style-sheet-container"}, | 17 | "element" : {"#" : "style-sheet-container"}, |
18 | "disableCheckbox": {"@": "disableCheckbox"}, | ||
19 | "nameText": {"@": "name"}, | 18 | "nameText": {"@": "name"}, |
20 | "mediaInput": {"@": "mediaInput"}, | 19 | "mediaInput": {"@": "mediaInput"}, |
21 | "editButton": {"@": "editButton"}, | 20 | "editButton": {"@": "editButton"}, |
22 | "editView": {"#": "style-sheet-edit"} | 21 | "editView": {"#": "style-sheet-edit"}, |
22 | "disableButton": {"@": "disableButton"}, | ||
23 | "importButton": {"@": "importButton"}, | ||
24 | "deleteButton": {"@": "deleteButton"} | ||
23 | } | 25 | } |
24 | }, | 26 | }, |
25 | "disableCheckbox": { | 27 | "disableCheckbox": { |
@@ -65,13 +67,56 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
65 | "listener": {"@": "owner"} | 67 | "listener": {"@": "owner"} |
66 | }] | 68 | }] |
67 | 69 | ||
70 | }, | ||
71 | "disableButton": { | ||
72 | "module": "montage/ui/button.reel", | ||
73 | "name": "Button", | ||
74 | "properties": { | ||
75 | "element": {"#": "disable-button"}, | ||
76 | "identifier": "disableButton", | ||
77 | "label": "Disable" | ||
78 | }, | ||
79 | "listeners": [{ | ||
80 | "type": "action", | ||
81 | "listener": {"@": "owner"} | ||
82 | }] | ||
83 | |||
84 | }, | ||
85 | "importButton": { | ||
86 | "module": "montage/ui/button.reel", | ||
87 | "name": "Button", | ||
88 | "properties": { | ||
89 | "element": {"#": "import-button"}, | ||
90 | "identifier": "importButton", | ||
91 | "label": "Import" | ||
92 | }, | ||
93 | "listeners": [{ | ||
94 | "type": "action", | ||
95 | "listener": {"@": "owner"} | ||
96 | }] | ||
97 | |||
98 | }, | ||
99 | "deleteButton": { | ||
100 | "module": "montage/ui/button.reel", | ||
101 | "name": "Button", | ||
102 | "properties": { | ||
103 | "element": {"#": "delete-button"}, | ||
104 | "identifier": "deleteButton", | ||
105 | "label": "Delete" | ||
106 | }, | ||
107 | "listeners": [{ | ||
108 | "type": "action", | ||
109 | "listener": {"@": "owner"} | ||
110 | }] | ||
111 | |||
68 | } | 112 | } |
69 | } | 113 | } |
70 | </script> | 114 | </script> |
71 | </head> | 115 | </head> |
72 | <body> | 116 | <body> |
73 | <div id="style-sheet-container" class="style-sheet-container"> | 117 | <div id="style-sheet-container" class="style-sheet-container"> |
74 | <div id="disable-checkbox"></div> | 118 | <div class="ss-icon"></div> |
119 | <!--<div id="disable-checkbox"></div>--> | ||
75 | <span id="sheet-name"></span> | 120 | <span id="sheet-name"></span> |
76 | <label>Media:</label> | 121 | <label>Media:</label> |
77 | <div id="media-input"></div> | 122 | <div id="media-input"></div> |
@@ -79,9 +124,9 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
79 | <div data-montage-id="style-sheet-edit" class="style-sheet-edit"> | 124 | <div data-montage-id="style-sheet-edit" class="style-sheet-edit"> |
80 | 125 | ||
81 | <button data-montage-id="edit-button" class="ss-edit-button"></button> | 126 | <button data-montage-id="edit-button" class="ss-edit-button"></button> |
82 | <button data-montage-id="delete-button" class="ss-delete-button nj-skinned">Delete</button> | 127 | <button data-montage-id="delete-button" class="ss-delete-button nj-skinned"></button> |
83 | <button data-montage-id="import-button" class="nj-skinned">Import</button> | 128 | <button data-montage-id="import-button" class="ss-import-button nj-skinned"></button> |
84 | <button data-montage-id="disable-button" class="ss-disable-button nj-skinned">Disable</button> | 129 | <button data-montage-id="disable-button" class="ss-disable-button nj-skinned"></button> |
85 | 130 | ||
86 | </div> | 131 | </div> |
87 | </div> | 132 | </div> |
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 4f9ad21f..9ad48a62 100644 --- a/js/panels/css-panel/style-sheet.reel/style-sheet.js +++ b/js/panels/css-panel/style-sheet.reel/style-sheet.js | |||
@@ -14,8 +14,6 @@ exports.StyleSheet = Montage.create(Component, { | |||
14 | 14 | ||
15 | willDraw : { | 15 | willDraw : { |
16 | value: function() { |