aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/input-radio.reel
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-20 16:48:34 -0700
committerJose Antonio Marquez2012-06-20 16:48:34 -0700
commit4eff115126ab946c5852d787fd596e07b156c9a5 (patch)
treef7d45b260f2fb5ba5dc4d1879076ca032d5ae2e6 /node_modules/montage/ui/input-radio.reel
parent7615da5c6ba54bd082eac4b8a6d9196084e5c590 (diff)
parent392a559e90357d48c910a07617261483b2b45476 (diff)
downloadninja-4eff115126ab946c5852d787fd596e07b156c9a5.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into Color
Diffstat (limited to 'node_modules/montage/ui/input-radio.reel')
-rw-r--r--node_modules/montage/ui/input-radio.reel/input-radio.css36
-rw-r--r--node_modules/montage/ui/input-radio.reel/input-radio.html14
-rw-r--r--node_modules/montage/ui/input-radio.reel/input-radio.js25
-rw-r--r--node_modules/montage/ui/input-radio.reel/radio.pngbin0 -> 1015 bytes
4 files changed, 75 insertions, 0 deletions
diff --git a/node_modules/montage/ui/input-radio.reel/input-radio.css b/node_modules/montage/ui/input-radio.reel/input-radio.css
new file mode 100644
index 00000000..71b49375
--- /dev/null
+++ b/node_modules/montage/ui/input-radio.reel/input-radio.css
@@ -0,0 +1,36 @@
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.montage-inputRadio {
8 -webkit-appearance: none;
9 -moz-appearance: none;
10 outline: none;
11 box-sizing: border-box;
12 vertical-align: middle;
13 font-size: 12px;
14 width: 1.5em;
15 height: 1.5em;
16 border-radius: 1em;
17 border: 1px solid #b3b3b3;
18 background: #f2f2f2;
19 cursor: pointer;
20}
21
22.montage-inputRadio:hover {
23 background-color: #fff;
24}
25
26.montage-inputRadio:active {
27 background-color: #e5e5e5;
28}
29
30.montage-inputRadio:focus {
31 border-color: #7f7f7f;
32}
33
34.montage-inputRadio:checked {
35 background: #f2f2f2 url(radio.png) no-repeat center;
36} \ No newline at end of file
diff --git a/node_modules/montage/ui/input-radio.reel/input-radio.html b/node_modules/montage/ui/input-radio.reel/input-radio.html
new file mode 100644
index 00000000..f9c675b9
--- /dev/null
+++ b/node_modules/montage/ui/input-radio.reel/input-radio.html
@@ -0,0 +1,14 @@
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 <meta charset="utf-8">
10 <link rel="stylesheet" href="input-radio.css">
11</head>
12<body>
13</body>
14</html> \ No newline at end of file
diff --git a/node_modules/montage/ui/input-radio.reel/input-radio.js b/node_modules/montage/ui/input-radio.reel/input-radio.js
new file mode 100644
index 00000000..66cd9036
--- /dev/null
+++ b/node_modules/montage/ui/input-radio.reel/input-radio.js
@@ -0,0 +1,25 @@
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/*global require,exports */
7var Montage = require("montage").Montage,
8 Component = require("ui/component").Component,
9 NativeInputRadio = require("ui/native/input-radio.reel").InputRadio;
10
11/**
12 * Input Radio
13 */
14exports.InputRadio = Montage.create(NativeInputRadio, {
15
16 hasTemplate: {value: true},
17
18 didSetElement: {
19 value: function() {
20 NativeInputRadio.didSetElement.call(this);
21 this['class'] = (this['class'] || '') + ' montage-inputRadio';
22 }
23 }
24
25}); \ No newline at end of file
diff --git a/node_modules/montage/ui/input-radio.reel/radio.png b/node_modules/montage/ui/input-radio.reel/radio.png
new file mode 100644
index 00000000..30975c54
--- /dev/null
+++ b/node_modules/montage/ui/input-radio.reel/radio.png
Binary files differ