aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style-sheet.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel/style-sheet.reel')
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.css136
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.html127
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.js250
3 files changed, 513 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
new file mode 100644
index 00000000..1d26b041
--- /dev/null
+++ b/js/panels/css-panel/style-sheet.reel/style-sheet.css
@@ -0,0 +1,136 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */
6.style-sheet-container {
7 border-bottom: 1px solid #505050;
8 display: -webkit-box;
9 -webkit-box-orient: horizontal;
10 padding: 4px 0 3px;
11 white-space: nowrap;
12 position: relative;
13}
14.style-sheet-container > * {
15 -webkit-box-flex: 1;
16 display:-webkit-box;
17}
18.style-sheet-container input[type="checkbox"] {
19 margin-right: 8px;
20 position: relative;
21 -webkit-box-flex: 0;
22}
23.ss-icon {
24 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89%2BbN%2FrXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz%2FSMBAPh%2BPDwrIsAHvgABeNMLCADATZvAMByH%2Fw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X23qdOo8%2FpPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb%2F1tWeOT3dvfN6b%2FfF9%2FXfFt1%2Bcif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v%2B3Njv3H9qwHeg89HcR%2FcGhYPP%2FpH1jw9DBY%2BZj8uGDYbrnjg%2BOTniP3L96fynQ89kzyaeF%2F6i%2FsuuFxYvfvjV69fO0ZjRoZfyl5O%2FbXyl%2FerA6xmv28bCxh6%2ByXgzMV70VvvtwXfcdx3vo98PT%2BR8IH8o%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%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jM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37.style-sheet-container span {
38 min-width: 50px;
39 overflow: hidden;
40 padding: 2px 0;
41 text-overflow: ellipsis;
42 white-space: nowrap;
43}
44.style-sheet-container label {
45 -webkit-box-flex: 0;
46 margin: 0 5px;
47 padding: 2px 0;
48}
49.style-sheet-container input[type="text"] {
50 min-width: 30px;
51 -webkit-box-flex: 1;
52 margin-right: 25px;
53}
54
55/* style sheet edit view */
56
57.style-sheet-container .ss-edit-button {
58 /* TODO: Use sass to minimize image redundancies */
59 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpDQk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HUV6Gdi50%2BnUqaWxXC6FfD7%2FDQXNZvMtXdZyOBw6IUtw%2FwQYACT6GJDDh744AAAAAElFTkSuQmCC);
60 background-repeat: no-repeat;
61 background-position: center center;
62 cursor: pointer;
63 padding: 0;
64 width: 24px;
65 height: 100%;
66 opacity: 1;
67 position: absolute;
68 left: -24px;
69 -webkit-transition: background-color .55s cubic-bezier(.44,.19,0,.99);
70 border-width: 0 0 0 1px;
71 border-style: none none none solid;
72 border-color: rgba(80, 80, 80, 0);
73 opacity: .7;
74}
75.style-sheet-container button:hover {
76 opacity: 1;
77}
78.style-sheet-container button:focus {
79 outline: 0 none;
80 box-shadow: none;
81}
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}
86.style-sheet-edit {
87 display: -webkit-box;
88 -webkit-box-orient: horizontal;
89 position: absolute;
90 top: 0;
91 right: 0;
92 margin-right: -100%;
93 height: 100%;
94 width: 100%;
95 -webkit-transition-property: -webkit-transform, background-color;
96 -webkit-transition-duration: .55s;
97 -webkit-transition-timing-function: cubic-bezier(.44,.19,0,.99);
98}
99.style-sheet-edit.expanded .ss-edit-button {
100 background-color: #363636;
101 border-color: rgba(80, 80, 80, 1);
102 -webkit-box-flex: 0;
103 opacity: 1;
104}
105
106.style-sheet-edit.expanded {
107 background-color: #363636;
108}
109.style-sheet-edit button.nj-skinned {
110 -webkit-box-flex: .2;
111 height: 20px;
112 padding: 2px 10px;
113 margin-left: 9px;
114 margin-right: -4px;
115 top: 2px;
116 max-width: 40px;
117 position: relative;
118 text-transform: capitalize;
119 font-size: 10px;
120}
121.style-sheet-edit .ss-delete-button {
122 background: -webkit-linear-gradient(top, rgba(91,57,56,1) 0%,rgba(53,35,35,1) 100%);
123}
124.style-sheet-edit button.ss-disable-button {
125 /*position: absolute;*/
126 /*right: 25px;*/
127 margin-right: 25px;
128}
129
130.default-style-sheet > span {
131 font-weight: bold;
132}
133
134.ss-invisible {
135 display: none;
136} \ 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
new file mode 100644
index 00000000..ca24487d
--- /dev/null
+++ b/js/panels/css-panel/style-sheet.reel/style-sheet.html
@@ -0,0 +1,127 @@
1<!DOCTYPE html>
2<!-- <copyright>
3This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
5(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
6</copyright> -->
7<html lang="en">
8<head>
9 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
10 <link href="style-sheet.css" rel="stylesheet" type="text/css">
11 <script type="text/montage-serialization">
12 {
13 "owner": {
14 "module" : "js/panels/css-panel/style-sheet.reel",
15 "name" : "StyleSheet",
16 "properties" : {
17 "element" : {"#" : "style-sheet-container"},
18 "nameText": {"@": "name"},
19 "mediaInput": {"@": "mediaInput"},
20 "editButton": {"@": "editButton"},
21 "editView": {"#": "style-sheet-edit"},
22 "disableButton": {"@": "disableButton"},
23 "importButton": {"@": "importButton"},
24 "deleteButton": {"@": "deleteButton"}
25 }
26 },
27 "name": {
28 "module": "montage/ui/dynamic-text.reel",
29 "name": "DynamicText",
30 "properties": {
31 "element": {"#": "sheet-name"},
32 "identifier": "nameText",
33 "defaultText": "Style sheet"
34 },
35 "bindings": {
36 "value": {
37 "boundObject": {"@": "owner"},
38 "boundObjectPropertyPath": "name",
39 "onewway": true
40 }
41 }
42 },
43 "mediaInput": {
44 "module": "js/components/textfield.reel",
45 "name": "TextField",
46 "properties": {
47 "element": {"#": "media-input"}
48 }
49 },
50 "editButton": {
51 "module": "montage/ui/button.reel",