From 8fe92b94ce5e1e2857d088752d94e19db7e3d8a8 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Sun, 17 Jun 2012 22:31:44 -0700 Subject: montage v11 merge into ninja Signed-off-by: Valerio Virgillito --- .../montage/ui/input-checkbox.reel/checkbox.png | Bin 0 -> 1087 bytes .../ui/input-checkbox.reel/input-checkbox.css | 36 +++++++++++++++++++++ .../ui/input-checkbox.reel/input-checkbox.html | 14 ++++++++ .../ui/input-checkbox.reel/input-checkbox.js | 25 ++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 node_modules/montage/ui/input-checkbox.reel/checkbox.png create mode 100644 node_modules/montage/ui/input-checkbox.reel/input-checkbox.css create mode 100644 node_modules/montage/ui/input-checkbox.reel/input-checkbox.html create mode 100644 node_modules/montage/ui/input-checkbox.reel/input-checkbox.js (limited to 'node_modules/montage/ui/input-checkbox.reel') diff --git a/node_modules/montage/ui/input-checkbox.reel/checkbox.png b/node_modules/montage/ui/input-checkbox.reel/checkbox.png new file mode 100644 index 00000000..8c0e3647 Binary files /dev/null and b/node_modules/montage/ui/input-checkbox.reel/checkbox.png differ diff --git a/node_modules/montage/ui/input-checkbox.reel/input-checkbox.css b/node_modules/montage/ui/input-checkbox.reel/input-checkbox.css new file mode 100644 index 00000000..eaf0b303 --- /dev/null +++ b/node_modules/montage/ui/input-checkbox.reel/input-checkbox.css @@ -0,0 +1,36 @@ +/* + This file contains proprietary software owned by Motorola Mobility, Inc.
+ No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +.montage-inputCheckbox { + -webkit-appearance: none; + -moz-appearance: none; + outline: none; + box-sizing: border-box; + font-size: 12px; + width: 1.5em; + height: 1.5em; + border-radius: 3px; + vertical-align: middle; + border: 1px solid #b3b3b3; + background: #f2f2f2; + cursor: pointer; +} + +.montage-inputCheckbox:hover { + background-color: #fff; +} + +.montage-inputCheckbox:active { + background-color: #e5e5e5; +} + +.montage-inputCheckbox:focus { + border-color: #7f7f7f; +} + +.montage-inputCheckbox:checked { + background: #f2f2f2 url(checkbox.png) no-repeat center; +} \ No newline at end of file diff --git a/node_modules/montage/ui/input-checkbox.reel/input-checkbox.html b/node_modules/montage/ui/input-checkbox.reel/input-checkbox.html new file mode 100644 index 00000000..ee40d568 --- /dev/null +++ b/node_modules/montage/ui/input-checkbox.reel/input-checkbox.html @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/node_modules/montage/ui/input-checkbox.reel/input-checkbox.js b/node_modules/montage/ui/input-checkbox.reel/input-checkbox.js new file mode 100644 index 00000000..47442dcf --- /dev/null +++ b/node_modules/montage/ui/input-checkbox.reel/input-checkbox.js @@ -0,0 +1,25 @@ +/* + This file contains proprietary software owned by Motorola Mobility, Inc.
+ No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ +/*global require,exports */ +var Montage = require("montage").Montage, + Component = require("ui/component").Component, + NativeInputCheckbox = require("ui/native/input-checkbox.reel").InputCheckbox; + +/** + * Input Checkbox + */ +exports.InputCheckbox = Montage.create(NativeInputCheckbox, { + + hasTemplate: {value: true}, + + didSetElement: { + value: function() { + NativeInputCheckbox.didSetElement.call(this); + this['class'] = (this['class'] || '') + ' montage-inputCheckbox'; + } + } + +}); \ No newline at end of file -- cgit v1.2.3