aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Materials/materials-popup.reel
diff options
context:
space:
mode:
authormqg7342012-02-21 16:49:11 -0800
committermqg7342012-02-21 16:49:11 -0800
commitd2f4d5e5f6742d53b6324d585a700566f73c992a (patch)
tree8a3de8de6dc5ac5f6f3f0795d00a7d2d788374d7 /js/panels/Materials/materials-popup.reel
parentabf78e2d7a97d295ce5a1c425fd359d47379137e (diff)
downloadninja-d2f4d5e5f6742d53b6324d585a700566f73c992a.tar.gz
Updated Materials Library and Materials Editor Popup to work with latest version of Montage.
We had to change our css to not use id's. Also, updated the popup to use Montage's Popup component. It looks like bump material has a bug. So loading that material results in a runtime error.
Diffstat (limited to 'js/panels/Materials/materials-popup.reel')
-rwxr-xr-xjs/panels/Materials/materials-popup.reel/materials-popup.css131
-rwxr-xr-xjs/panels/Materials/materials-popup.reel/materials-popup.html18
-rwxr-xr-xjs/panels/Materials/materials-popup.reel/materials-popup.js47
3 files changed, 49 insertions, 147 deletions
diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.css b/js/panels/Materials/materials-popup.reel/materials-popup.css
index 299dc5f9..89233c64 100755
--- a/js/panels/Materials/materials-popup.reel/materials-popup.css
+++ b/js/panels/Materials/materials-popup.reel/materials-popup.css
@@ -6,24 +6,22 @@
6 </copyright> */ 6 </copyright> */
7 7
8.materials_popup { 8.materials_popup {
9 font-size: 12px; 9 width:400px;
10 text-shadow: 1px 1px 1px #000; 10 font-size: 12px;
11 overflow: hidden; 11 overflow: hidden;
12} 12 background: #494949;
13 13 color: white;
14.materials_popup a:hover {
15 color: #CCC;
16} 14}
17 15
18.materials_popup hr { 16.materials_popup hr {
19 float: left; 17 float: left;
20 clear: both; 18 clear: both;
21 width: 100%; 19 width: 100%;
22 display: block; 20 display: block;
23 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.5, #1d1d1d), color-stop(0.75, #424242)); 21 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.5, #1d1d1d), color-stop(0.75, #424242));
24 border: none; 22 border: none;
25 height: 2px; 23 height: 2px;
26 margin: 4px 0px 4px 0px; 24 margin: 4px 0px 4px 0px;
27} 25}
28 26
29#mp_title { 27#mp_title {
@@ -36,127 +34,46 @@
36 text-align: center; 34 text-align: center;
37} 35}
38 36
39#mp_maps div div, 37.mp_property
40#mp_maps div div:focus, 38{
41#mp_maps div input, 39 height:40px;
42#mp_maps div input:focus {
43 margin: 0px 0px 2px 0px;
44} 40}
45 41
46#mp_properties_labels, 42.mp_property > .prop-label
47#mp_maps_labels { 43{
48 display:block;
49 float: left; 44 float: left;
50 width:86px; 45 /*width:86px;*/
51 margin: 0px 8px 2px 5px; 46 margin: 0px 8px 2px 5px;
52 font-family: 'Droid Sans', sans-serif;
53 font-size: 12px;
54} 47}
55 48
56#mp_properties_labels div, 49.mp_property > .prop-controller
57#mp_maps_labels div { 50{
58 float: right; 51 float: right;
59 clear: left; 52 clear: left;
60 width: auto; 53 width: auto;
61 margin: 0px 0px 3px 0px; 54 margin: 0px 0px 3px 0px;
62} 55}
63 56
64#mp_maps_labels div { 57.mp_buttons {
65 margin: 2px 0px 3px 0px !important;
66}
67
68#mp_properties_labels div {
69 margin: 6px 0px 6px 0px !important;
70}
71
72#mp_properties_colors
73{
74 float:left;
75 width: 24px;
76 margin: 0px -8px 0px 10px;
77}
78
79#mp_properties_colors button {
80 width: 22px;
81 height: 22px;
82 margin: 2px 0;
83}
84
85#mp_properties_colors input.hottext {
86 background: none;
87 float: right;
88 margin: 4px 0px;
89 padding: 0px;
90 width: 23px;
91 color: #FFF;
92 text-shadow: 1px 1px 1px #000;
93 font-family: 'Droid Sans', sans-serif;
94 font-size: 11px;
95 text-align: center;
96}
97
98#mp_properties_colors input.hottextInput {
99 background: #FFF;
100 color: #000;
101 text-shadow: none;
102 border: 1px solid #333;
103 margin: 3px -2px 5px 1px;
104 padding: 1px;
105 text-decoration: none;
106 outline: none;
107}
108
109#mp_maps_inputs
110{
111 float: left;
112 width: auto;
113}
114
115#mp_maps_inputs input {
116 float:left;
117 clear:both;
118 width: 100px;
119 background: #555;
120 border: 1px solid #333;
121 color: #FFF;
122 padding: 1px 0px 1px 0px;
123 margin: 0px 0px 0px 10px;
124 text-decoration: none !important;
125 text-shadow: 1px 1px 1px #000;
126 font-family: 'Droid Sans', sans-serif;
127 font-size: 11px;
128 letter-spacing: 1px;
129}
130
131#mp_maps_inputs input:focus {
132 outline: none;
133 margin: -1px 0px -1px 10px;
134 background: #FFF;
135 color: #000;
136 text-shadow: none;
137}
138
139
140#mp_buttons {
141 clear:both; 58 clear:both;
142 float: left; 59 float: left;
143 margin: 0px -4px 0px 4px; 60 margin: 0px -4px 0px 4px;
144 width: 97%; 61 width: 97%;
145} 62}
146 63
147#mp_buttons button { 64.mp_buttons button {
148 height: 22px; 65 height: 22px;
149 overflow: hidden; 66 overflow: hidden;
150 display: block; 67 display: block;
151 cursor: pointer; 68 cursor: pointer;
152} 69}
153 70
154#mp_cancel_btn { 71.mp_buttons .mp_cancel_btn {
155 float: left; 72 float: left;
156 width: 60px; 73 width: 60px;
157} 74}
158 75
159#mp_ok_btn { 76.mp_buttons .mp_ok_btn {
160 float: right; 77 float: right;
161 width: 30px; 78 width: 30px;
162} \ No newline at end of file 79} \ No newline at end of file
diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.html b/js/panels/Materials/materials-popup.reel/materials-popup.html
index bac69f25..de4f98c1 100755
--- a/js/panels/Materials/materials-popup.reel/materials-popup.html
+++ b/js/panels/Materials/materials-popup.reel/materials-popup.html
@@ -30,7 +30,7 @@
30 } 30 }
31 }, 31 },
32 "eventDelegator": { 32 "eventDelegator": {
33 "module": "montage/event/action-event-listener", 33 "module": "montage/core/event/action-event-listener",
34 "name": "ActionEventListener", 34 "name": "ActionEventListener",
35 "properties": { 35 "properties": {
36 "handler": {"@": "owner"}, 36 "handler": {"@": "owner"},
@@ -38,7 +38,7 @@
38 } 38 }
39 }, 39 },
40 "propControl1": { 40 "propControl1": {
41 "module": "js/components/ui/property-control",