aboutsummaryrefslogtreecommitdiff
path: root/js/components/popup.reel
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/components/popup.reel
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/components/popup.reel')
-rw-r--r--js/components/popup.reel/compass_app_log.txt48
-rwxr-xr-xjs/components/popup.reel/config.rb9
-rw-r--r--js/components/popup.reel/css/popup.css43
-rwxr-xr-xjs/components/popup.reel/css/popup.scss52
-rw-r--r--js/components/popup.reel/popup.html37
-rw-r--r--js/components/popup.reel/popup.js245
6 files changed, 434 insertions, 0 deletions
diff --git a/js/components/popup.reel/compass_app_log.txt b/js/components/popup.reel/compass_app_log.txt
new file mode 100644
index 00000000..8a3fb984
--- /dev/null
+++ b/js/components/popup.reel/compass_app_log.txt
@@ -0,0 +1,48 @@
12011-06-28 18:13:06 create css/popup.css
22011-06-28 18:13:12 identical css/popup.css
32011-06-28 18:14:08 overwrite css/popup.css
42011-06-28 18:14:20 overwrite css/popup.css
52011-06-28 18:14:29 overwrite css/popup.css
62011-06-28 18:17:23 overwrite css/popup.css
72011-06-28 18:17:27 overwrite css/popup.css
82011-06-28 18:17:56 overwrite css/popup.css
92011-06-28 18:18:09 overwrite css/popup.css
102011-06-28 18:20:30 overwrite css/popup.css
112011-06-28 18:22:35 overwrite css/popup.css
122011-06-28 18:24:12 overwrite css/popup.css
132011-06-28 18:24:23 overwrite css/popup.css
142011-06-28 18:24:33 overwrite css/popup.css
152011-06-28 18:25:17 overwrite css/popup.css
162011-06-28 18:26:21 overwrite css/popup.css
172011-06-28 18:26:33 overwrite css/popup.css
182011-06-28 18:26:42 overwrite css/popup.css
192011-06-28 18:26:57 overwrite css/popup.css
202011-06-28 18:29:57 overwrite css/popup.css
212011-06-28 18:30:14 overwrite css/popup.css
222011-06-28 18:30:23 overwrite css/popup.css
232011-06-28 18:30:48 overwrite css/popup.css
242011-06-28 18:31:03 overwrite css/popup.css
252011-06-29 10:18:31 overwrite css/popup.css
262011-06-29 10:18:47 overwrite css/popup.css
272011-06-29 10:37:19 overwrite css/popup.css
282011-06-29 10:40:29 overwrite css/popup.css
292011-06-29 10:45:37 overwrite css/popup.css
302011-06-29 10:45:53 identical css/popup.css
312011-06-29 10:46:52 overwrite css/popup.css
322011-06-29 10:47:02 identical css/popup.css
332011-06-29 13:30:47 overwrite css/popup.css
342011-06-29 13:31:14 overwrite css/popup.css
352011-12-20 17:06:48 overwrite css/popup.css
362011-12-22 11:29:15 overwrite css/popup.css
372011-12-22 11:29:24 identical css/popup.css
382011-12-22 11:30:05 overwrite css/popup.css
392011-12-22 11:30:33 overwrite css/popup.css
402011-12-22 11:30:51 overwrite css/popup.css
412011-12-22 11:32:30 overwrite css/popup.css
422011-12-22 11:33:06 overwrite css/popup.css
432011-12-22 11:33:12 overwrite css/popup.css
442011-12-22 11:33:32 identical css/popup.css
452011-12-22 11:33:36 overwrite css/popup.css
462011-12-22 11:34:48 overwrite css/popup.css
472012-01-26 11:42:18 overwrite css/popup.css
482012-01-26 11:42:20 overwrite css/popup.css
diff --git a/js/components/popup.reel/config.rb b/js/components/popup.reel/config.rb
new file mode 100755
index 00000000..9b55af19
--- /dev/null
+++ b/js/components/popup.reel/config.rb
@@ -0,0 +1,9 @@
1# Require any additional compass plugins here.
2# Set this to the root of your project when deployed:
3http_path = "/"
4css_dir = "css"
5sass_dir = "css"
6images_dir = "img"
7javascripts_dir = "../"
8# To enable relative paths to assets via compass helper functions. Uncomment:
9# relative_assets = true
diff --git a/js/components/popup.reel/css/popup.css b/js/components/popup.reel/css/popup.css
new file mode 100644
index 00000000..9eb91760
--- /dev/null
+++ b/js/components/popup.reel/css/popup.css
@@ -0,0 +1,43 @@
1@charset "UTF-8";
2/* <copyright>
3 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4 No 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/* line 12, popup.scss */
8.default_popup {
9 position: absolute;
10 width: auto;
11 float: left;
12 font-family: 'Droid Sans', sans-serif;
13 color: #FFF;
14 background: #494949;
15 border: 1px solid #292929;
16 border-radius: 8px;
17 padding: 8px;
18 box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
19 pointerEvents: auto;
20}
21
22/* line 32, popup.scss */
23.default_popup .content {
24 overflow: auto;
25 float: left;
26}
27
28/* line 38, popup.scss */
29.default_popup .tooltip {
30 position: absolute;
31 overflow: hidden;
32}
33
34/* line 44, popup.scss */
35.default_popup .tooltip span {
36 -webkit-transform: rotate(45deg);
37 width: 12px;
38 height: 12px;
39 margin: 3px;
40 display: block;
41 background: #494949;
42 border: 1px solid #292929;
43}
diff --git a/js/components/popup.reel/css/popup.scss b/js/components/popup.reel/css/popup.scss
new file mode 100755
index 00000000..782165a4
--- /dev/null
+++ b/js/components/popup.reel/css/popup.scss
@@ -0,0 +1,52 @@
1@charset "UTF-8";
2/* <copyright>
3 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4 No 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
8$grey_dark: #292929;
9$grey_light: #494949;
10
11.default_popup
12{
13 //MUST HAVE TO ALLOW FOR SIZE AJUSTMENTS
14 position: absolute;
15 width: auto;
16 float: left;
17
18 //TEXT STYLES
19 font-family: 'Droid Sans', sans-serif;
20 color: #FFF;
21
22 //BACKGROUND AND CONTAINER
23 background: $grey_light;
24 border: 1px solid $grey_dark;
25 border-radius: 8px;
26 padding: 8px;
27 box-shadow: 0px 0px 8px rgba(0, 0, 0, .8);
28 pointerEvents: auto;
29}
30
31.default_popup .content
32{
33 overflow: auto;
34 float: left;
35}
36
37.default_popup .tooltip
38{
39 position: absolute;
40 overflow: hidden;
41}
42
43.default_popup .tooltip span
44{
45 -webkit-transform:rotate(45deg);
46 width: 12px;
47 height: 12px;
48 margin: 3px;
49 display: block;
50 background: $grey_light;
51 border: 1px solid $grey_dark;
52} \ No newline at end of file
diff --git a/js/components/popup.reel/popup.html b/js/components/popup.reel/popup.html
new file mode 100644
index 00000000..b6f147aa
--- /dev/null
+++ b/js/components/popup.reel/popup.html
@@ -0,0 +1,37 @@
1<!DOCTYPE html>
2<!-- <copyright>
3 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4 No 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
10 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
11
12 <link rel="stylesheet" type="text/css" href="css/popup.css">
13
14 <script type="text/montage-serialization">
15 {
16 "owner": {
17 "module": "js/components/Popup.reel",
18 "name": "Popup",
19 "properties": {
20 "element": {"#": "default_popup"}
21 }
22 }
23 }
24 </script>
25
26 </head>
27
28 <body>
29
30 <div id="default_popup" class="default_popup">
31 <div class="tooltip"><span/></div>
32 <div class="content"></div>
33 </div>
34
35 </body>
36
37</html> \ No newline at end of file
diff --git a/js/components/popup.reel/popup.js b/js/components/popup.reel/popup.js
new file mode 100644
index 00000000..ae483ea9
--- /dev/null
+++ b/js/components/popup.reel/popup.js
@@ -0,0 +1,245 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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
7////////////////////////////////////////////////////////////////////////
8//
9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component;
11////////////////////////////////////////////////////////////////////////
12//Exporting as Popup
13exports.Popup = Montage.create(Component, {
14 ////////////////////////////////////////////////////////////////////
15 //
16 hasTemplate: {
17 value: true
18 },
19 ////////////////////////////////////////////////////////////////////
20 //
21 _content: {