aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-16 13:15:27 -0700
committerValerio Virgillito2012-07-16 13:15:27 -0700
commitfe1e956b527c2cf4ecf10645810f3ff750e9e522 (patch)
tree2cde04bfd925092c30cedabebad2d247c69c373d /js/components/layout
parent289e821c819d0fded21b97ec6e4ed27dd6f30ab4 (diff)
parent156f15cec3203528a78783d075d4b8f1eb40c06d (diff)
downloadninja-fe1e956b527c2cf4ecf10645810f3ff750e9e522.tar.gz
Merge branch 'refs/heads/master' into v0.7.1
Diffstat (limited to 'js/components/layout')
-rwxr-xr-xjs/components/layout/bread-crumb-button.reel/bread-crumb-button.css76
-rwxr-xr-xjs/components/layout/bread-crumb-button.reel/bread-crumb-button.html76
-rwxr-xr-xjs/components/layout/bread-crumb-button.reel/bread-crumb-button.js63
-rwxr-xr-xjs/components/layout/bread-crumb.reel/bread-crumb.css10
-rwxr-xr-xjs/components/layout/bread-crumb.reel/bread-crumb.html17
-rwxr-xr-xjs/components/layout/bread-crumb.reel/bread-crumb.js2
-rwxr-xr-xjs/components/layout/document-bar.reel/document-bar.css92
-rwxr-xr-xjs/components/layout/document-bar.reel/document-bar.html124
8 files changed, 368 insertions, 92 deletions
diff --git a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css
new file mode 100755
index 00000000..5b5c244d
--- /dev/null
+++ b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.css
@@ -0,0 +1,76 @@
1/* <copyright>
2Copyright (c) 2012, Motorola Mobility LLC.
3All Rights Reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions are met:
7
8* Redistributions of source code must retain the above copyright notice,
9 this list of conditions and the following disclaimer.
10
11* Redistributions in binary form must reproduce the above copyright notice,
12 this list of conditions and the following disclaimer in the documentation
13 and/or other materials provided with the distribution.
14
15* Neither the name of Motorola Mobility LLC nor the names of its
16 contributors may be used to endorse or promote products derived from this
17 software without specific prior written permission.
18
19THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29POSSIBILITY OF SUCH DAMAGE.
30</copyright> */
31
32.breadcrumbComp {
33 float: left;
34 margin: 3px -10px 0 0;
35}
36
37.breadcrumbButton {
38 color: #FFF;
39 float: left;
40 background: rgb(80, 80, 80);
41 border: none;
42 padding: 0 8px 0 14px;
43 height: 20px;
44 margin: 0;
45 border-top: 1px solid rgb(60, 60, 60);
46 border-left: 1px solid rgb(60, 60, 60);
47 border-bottom: 1px solid rgb(60, 60, 60);
48 cursor: pointer;
49 text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
50 font-size: 11px;
51}
52
53.breadcrumbButton:active, .breadcrumbButton:hover, .breadcrumbButton:focus {
54 -webkit-box-shadow: none !important;
55 outline: none !important;
56}
57
58.breadcrumbTipMask
59{
60 display: block;
61 width: 11px;
62 height: 20px;
63 float: left;
64 overflow: hidden;
65}
66
67.breadcrumbTip {
68 display: block;
69 width: 14px;
70 height: 14px;
71 margin: 3px 0 0 -7px;
72 -webkit-transform: rotate(45deg);
73 background: rgb(80, 80, 80);
74 border-top: 1px solid rgb(60, 60, 60);
75 border-right: 1px solid rgb(60, 60, 60);
76} \ No newline at end of file
diff --git a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html
new file mode 100755
index 00000000..596975de
--- /dev/null
+++ b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.html
@@ -0,0 +1,76 @@
1<!DOCTYPE html>
2<!-- <copyright>
3Copyright (c) 2012, Motorola Mobility LLC.
4All Rights Reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8
9* Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11
12* Redistributions in binary form must reproduce the above copyright notice,
13 this list of conditions and the following disclaimer in the documentation
14 and/or other materials provided with the distribution.
15
16* Neither the name of Motorola Mobility LLC nor the names of its
17 contributors may be used to endorse or promote products derived from this
18 software without specific prior written permission.
19
20THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30POSSIBILITY OF SUCH DAMAGE.
31</copyright> -->
32<html lang="en">
33 <head>
34 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
35 <link rel="stylesheet" type="text/css" href="bread-crumb-button.css">
36
37
38 <script type="text/montage-serialization">
39 {
40 "owner": {
41 "prototype": "js/components/layout/bread-crumb-button.reel",
42 "properties": {
43 "element": {"#": "breadcrumb_container"}
44
45 }
46 },
47
48 "breadCrumbButton": {
49 "prototype": "montage/ui/native/button.reel",
50 "properties": {
51 "element": {"#": "breadcrumb_button"}
52 },
53 "listeners": [
54 {
55 "type": "action",
56 "listener": {"@": "owner"}
57 }
58 ],
59 "bindings": {
60 "label": {"<-": "@owner.label"},
61 "value": {"<-": "@owner.value"}
62 }
63 }
64 }
65 </script>
66
67 </head>
68 <body>
69
70 <div data-montage-id="breadcrumb_container" class="breadcrumbComp">
71 <button data-montage-id="breadcrumb_button" class="breadcrumbButton"></button>
72 <span class="breadcrumbTipMask"><span class="breadcrumbTip"></span></span>
73 </div>
74
75 </body>
76</html>
diff --git a/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js
new file mode 100755
index 00000000..89df2fa0
--- /dev/null
+++ b/js/components/layout/bread-crumb-button.reel/bread-crumb-button.js
@@ -0,0 +1,63 @@
1/* <copyright>
2Copyright (c) 2012, Motorola Mobility LLC.
3All Rights Reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions are met:
7
8* Redistributions of source code must retain the above copyright notice,
9 this list of conditions and the following disclaimer.
10
11* Redistributions in binary form must reproduce the above copyright notice,
12 this list of conditions and the following disclaimer in the documentation
13 and/or other materials provided with the distribution.
14
15* Neither the name of Motorola Mobility LLC nor the names of its
16 contributors may be used to endorse or promote products derived from this
17 software without specific prior written permission.
18
19THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29POSSIBILITY OF SUCH DAMAGE.
30</copyright> */
31