diff options
author | Jose Antonio Marquez | 2012-02-02 18:00:45 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-02 18:00:45 -0800 |
commit | 04d89daed90c35a4393773ca2e2d0ac3a4c15cd4 (patch) | |
tree | d0041abc7379ef38b20cce148e5dea6f531b8569 /node_modules/montage/ui/bluemoon/button-group.reel | |
parent | 4d8306b638c53899403a4f0328c02bf1ab893e8f (diff) | |
parent | c630ead20487c3948fa36448d3e7d5f7b5cba782 (diff) | |
download | ninja-04d89daed90c35a4393773ca2e2d0ac3a4c15cd4.tar.gz |
Merge branch 'refs/heads/NinjaInternal' into FileIO
Conflicts:
.gitignore
js/ninja.reel/ninja.js
Diffstat (limited to 'node_modules/montage/ui/bluemoon/button-group.reel')
3 files changed, 214 insertions, 0 deletions
diff --git a/node_modules/montage/ui/bluemoon/button-group.reel/button-group.css b/node_modules/montage/ui/bluemoon/button-group.reel/button-group.css new file mode 100644 index 00000000..9491f3db --- /dev/null +++ b/node_modules/montage/ui/bluemoon/button-group.reel/button-group.css | |||
@@ -0,0 +1,111 @@ | |||
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 | .montage-button-group { | ||
7 | |||
8 | } | ||
9 | |||
10 | .montage-button-group.small > .montage-button, | ||
11 | .montage-button-group.small > .montage-button:before { | ||
12 | font-size: 12px; | ||
13 | border-radius: 16px; | ||
14 | padding: 1px 18px 0 18px; | ||
15 | height: 26px; | ||
16 | line-height: 26px; | ||
17 | } | ||
18 | |||
19 | .montage-button-group.small > .montage-button.submit, | ||
20 | .montage-button-group.small > .montage-button.cancel { | ||
21 | height: 21px; | ||
22 | line-height: 21px; | ||
23 | } | ||
24 | |||
25 | .montage-button-group.small > .montage-button.disabled, | ||
26 | .montage-button-group.small > .montage-button.disabled:before { | ||
27 | height: 28px; | ||
28 | line-height: 28px; | ||
29 | } | ||
30 | |||
31 | .montage-button-group.small > .montage-button.submit:before, | ||
32 | .montage-button-group.small > .montage-button.cancel:before { | ||
33 | height: 24px; | ||
34 | } | ||
35 | |||
36 | .montage-button-group > .montage-button.submit, | ||
37 | .montage-button-group > .montage-button.cancel { | ||
38 | height: 42px; | ||
39 | line-height: 42px; | ||
40 | } | ||
41 | |||
42 | .montage-button-group > .montage-button:not(:first-child):not(:last-child), | ||
43 | .montage-button-group > .montage-button.submit:not(:first-child):not(:last-child), | ||
44 | .montage-button-group > .montage-button.cancel:not(:first-child):not(:last-child), | ||
45 | .montage-button-group > .montage-button:not(:first-child):not(:last-child):before, | ||
46 | .montage-button-group > .montage-button:not(:first-child):not(:last-child):after { | ||
47 | border-radius: 0; | ||
48 | } | ||
49 | |||
50 | .montage-button-group > .montage-button:first-child:not(:last-child), | ||
51 | .montage-button-group > .montage-button.submit:first-child:not(:last-child), | ||
52 | .montage-button-group > .montage-button.cancel:first-child:not(:last-child), | ||
53 | .montage-button-group > .montage-button:first-child:not(:last-child):before, | ||
54 | .montage-button-group > .montage-button:first-child:not(:last-child):after { | ||
55 | border-top-right-radius: 0; | ||
56 | border-bottom-right-radius: 0; | ||
57 | } | ||
58 | |||
59 | .montage-button-group > .montage-button:last-child:not(:first-child), | ||
60 | .montage-button-group > .montage-button.submit:last-child:not(:first-child), | ||
61 | .montage-button-group > .montage-button.cancel:last-child:not(:first-child), | ||
62 | .montage-button-group > .montage-button:last-child:not(:first-child):before, | ||
63 | .montage-button-group > .montage-button:last-child:not(:first-child):after { | ||
64 | border-top-left-radius: 0; | ||
65 | border-bottom-left-radius: 0; | ||
66 | } | ||
67 | |||
68 | .montage-button-group > .montage-button:not(:first-child) { | ||
69 | margin-left: -3px; | ||
70 | } | ||
71 | |||
72 | /* Icon handling */ | ||
73 | |||
74 | .montage-button-group.small > .montage-button.text.icon > img, | ||
75 | .montage-button-group.small > .montage-button.submit.icon > img, | ||
76 | .montage-button-group.small > .montage-button.cancel.icon > img { | ||
77 | float: left; | ||
78 | margin-left: -4px; | ||
79 | margin-right: 4px; | ||
80 | margin-top: 0; | ||
81 | height: 20px; | ||
82 | width: 20px; | ||
83 | } | ||
84 | |||
85 | .montage-button-group.small > .montage-button.text.icon > img { | ||
86 | margin-top: 2px; | ||
87 | } | ||
88 | |||
89 | .montage-button-group.iconic > .montage-button.text.icon, | ||
90 | .montage-button-group.iconic > .montage-button.submit.icon, | ||
91 | .montage-button-group.iconic > .montage-button.cancel.icon { | ||
92 | text-indent: -9999px; | ||
93 | width: 26px; | ||
94 | padding-left: 14px; | ||
95 | padding-right: 14px; | ||
96 | } | ||
97 | |||
98 | .montage-button-group.small.iconic > .montage-button.text.icon, | ||
99 | .montage-button-group.small.iconic > .montage-button.submit.icon, | ||
100 | .montage-button-group.small.iconic > .montage-button.cancel.icon { | ||
101 | width: 20px; | ||
102 | padding-left: 10px; | ||
103 | padding-right: 10px; | ||
104 | } | ||
105 | |||
106 | .montage-button-group.iconic > .montage-button.text.icon > img, | ||
107 | .montage-button-group.iconic > .montage-button.submit.icon > img, | ||
108 | .montage-button-group.iconic > .montage-button.cancel.icon > img { | ||
109 | margin-left: 0; | ||
110 | margin-right: 0; | ||
111 | } | ||
diff --git a/node_modules/montage/ui/bluemoon/button-group.reel/button-group.html b/node_modules/montage/ui/bluemoon/button-group.reel/button-group.html new file mode 100644 index 00000000..4bda1401 --- /dev/null +++ b/node_modules/montage/ui/bluemoon/button-group.reel/button-group.html | |||
@@ -0,0 +1,26 @@ | |||
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> | ||
8 | <head> | ||
9 | <title></title> | ||
10 | <link rel="stylesheet" type="text/css" href="button-group.css"> | ||
11 | <script type="text/montage-serialization"> | ||
12 | { | ||
13 | "owner": { | ||
14 | "module": "montage/ui/bluemoon/button-group.reel", | ||
15 | "name": "ButtonGroup", | ||
16 | "properties": { | ||
17 | |||
18 | } | ||
19 | } | ||
20 | } | ||
21 | </script> | ||
22 | |||
23 | </head> | ||
24 | <body> | ||
25 | </body> | ||
26 | </html> | ||
diff --git a/node_modules/montage/ui/bluemoon/button-group.reel/button-group.js b/node_modules/montage/ui/bluemoon/button-group.reel/button-group.js new file mode 100644 index 00000000..6f69744f --- /dev/null +++ b/node_modules/montage/ui/bluemoon/button-group.reel/button-group.js | |||
@@ -0,0 +1,77 @@ | |||
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 | /** | ||
7 | @module "montage/ui/bluemoon/button-group.reel" | ||
8 | @requires montage/core/core | ||
9 | @requires "ui/component-group.reel" | ||
10 | */ | ||
11 | var Montage = require("montage").Montage, | ||
12 | ComponentGroup = require("ui/component-group.reel").ComponentGroup; | ||
13 | |||
14 | /** | ||
15 | @class module:"montage/ui/bluemoon/button-group.reel".ButtonGroup | ||
16 | @classdesc A group of buttons, displayed "pill" style. | ||
17 | @extends module:montage/ui/component.Component | ||
18 | */ | ||
19 | var ButtonGroup = exports.ButtonGroup = Montage.create(ComponentGroup, /** @lends module:"montage/ui/bluemoon/button-group.reel".ButtonGroup */ { | ||
20 | /** | ||
21 | Description TODO | ||
22 | @type {Boolean} | ||
23 | @default true | ||
24 | */ | ||
25 | hasTemplate: { | ||
26 | value: true | ||
27 | }, | ||
28 | |||
29 | /** | ||
30 | Description TODO | ||
31 | @private | ||
32 | */ | ||
33 | _iconic: { | ||
34 | value: false | ||
35 | }, | ||
36 | |||
37 | /** | ||
38 | Sets wether or not to hide button text for buttons with icons. | ||
39 | @type {Function} | ||
40 | @default {Boolean} false | ||
41 | */ | ||
42 | iconic: { | ||
43 | get: function() { | ||
44 | return this._iconic; | ||
45 | }, | ||
46 | set: function(value) { | ||
47 | if (this._iconic !== value) { | ||
48 | this._iconic = value; | ||
49 | this.needsDraw = true; | ||
50 | } | ||
51 | } | ||
52 | }, | ||
53 | |||
54 | /** | ||
55 | Description TODO | ||
56 | @function | ||
57 | */ |