aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/textarea.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 /node_modules/montage/ui/textarea.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 'node_modules/montage/ui/textarea.reel')
-rwxr-xr-xnode_modules/montage/ui/textarea.reel/textarea.css36
-rwxr-xr-xnode_modules/montage/ui/textarea.reel/textarea.html15
-rwxr-xr-xnode_modules/montage/ui/textarea.reel/textarea.js29
3 files changed, 80 insertions, 0 deletions
diff --git a/node_modules/montage/ui/textarea.reel/textarea.css b/node_modules/montage/ui/textarea.reel/textarea.css
new file mode 100755
index 00000000..4164fdc9
--- /dev/null
+++ b/node_modules/montage/ui/textarea.reel/textarea.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-textarea {
8 width: 300px;
9 height: 100px;
10 line-height: 1em;
11 z-index: 1;
12 cursor: pointer;
13 background-color: hsl(0, 0%, 80%);
14 border: 1px solid hsl(0, 0%, 40%);
15 padding: 5px;
16 font-size: 1.0em;
17}
18
19.montage-textarea:focus {
20 background-color: hsl(0, 100%, 99%);
21 border: 2px solid hsl(0, 0%, 40%);
22}
23
24.montage-text-invalid {
25 border: 2px solid #E73525;
26 border-style: dashed;
27}
28
29.montage-error-text {
30 /*color: #E73525;
31 margin: 2px 0;
32 background-image: url(dialog_warning.png);
33 background-repeat: no-repeat;
34 padding: 5px 0 5px 32px;
35 */
36}
diff --git a/node_modules/montage/ui/textarea.reel/textarea.html b/node_modules/montage/ui/textarea.reel/textarea.html
new file mode 100755
index 00000000..850fe533
--- /dev/null
+++ b/node_modules/montage/ui/textarea.reel/textarea.html
@@ -0,0 +1,15 @@
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="textarea.css">
11</head>
12<body>
13
14</body>
15</html>
diff --git a/node_modules/montage/ui/textarea.reel/textarea.js b/node_modules/montage/ui/textarea.reel/textarea.js
new file mode 100755
index 00000000..44e5f0a5
--- /dev/null
+++ b/node_modules/montage/ui/textarea.reel/textarea.js
@@ -0,0 +1,29 @@
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/textarea.reel"
8 @requires montage/core/core
9 @requires montage/ui/editable-text
10*/
11var Montage = require("montage").Montage,
12 EditableText = require("ui/editable-text").EditableText;
13/**
14 @class module:"montage/ui/textarea.reel".TextArea
15 @classdesc TextArea component - multiline text field
16 @extends module:montage/ui/editable-text.EditableText
17*/
18exports.TextArea = Montage.create(EditableText, /** @lends module:"montage/ui/textarea.reel".TextArea# */{
19/**
20 Description TODO
21 @private
22*/
23 _drawSpecific: {
24 enumerable: false,
25 value: function() {
26 this.element.classList.add('montage-textarea');
27 }
28 }
29});