diff options
Diffstat (limited to 'node_modules/montage/ui/select.reel')
-rw-r--r-- | node_modules/montage/ui/select.reel/select.css | 46 | ||||
-rw-r--r-- | node_modules/montage/ui/select.reel/select.html | 14 | ||||
-rw-r--r-- | node_modules/montage/ui/select.reel/select.js | 26 | ||||
-rw-r--r-- | node_modules/montage/ui/select.reel/select.png | bin | 0 -> 978 bytes |
4 files changed, 86 insertions, 0 deletions
diff --git a/node_modules/montage/ui/select.reel/select.css b/node_modules/montage/ui/select.reel/select.css new file mode 100644 index 00000000..9d6cc1cb --- /dev/null +++ b/node_modules/montage/ui/select.reel/select.css | |||
@@ -0,0 +1,46 @@ | |||
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-select { | ||
8 | -webkit-appearance: none; | ||
9 | -moz-appearance: none; | ||
10 | outline: none; | ||
11 | box-sizing: border-box; | ||
12 | font-size: 12px; | ||
13 | height: 2.5em; | ||
14 | padding: 0 2em 0 1em; | ||
15 | border-radius: 3px; | ||
16 | border: 1px solid #b3b3b3; | ||
17 | background: #f2f2f2 url(select.png) no-repeat right center; | ||
18 | cursor: pointer; | ||
19 | } | ||
20 | |||
21 | .montage-select:hover { | ||
22 | background-color: #fff; | ||
23 | } | ||
24 | |||
25 | .montage-select:active { | ||
26 | background-color: #e5e5e5; | ||
27 | } | ||
28 | |||
29 | .montage-select:focus { | ||
30 | border-color: #7f7f7f; | ||
31 | } | ||
32 | |||
33 | |||
34 | /* Multiple Select ------------------------------ */ | ||
35 | |||
36 | .montage-select[multiple] { | ||
37 | height: 5.5em; | ||
38 | cursor: default; | ||
39 | padding: 0 .5em; | ||
40 | } | ||
41 | |||
42 | .montage-select[multiple], | ||
43 | .montage-select[multiple]:hover, | ||
44 | .montage-select[multiple]:active { | ||
45 | background: #f2f2f2; | ||
46 | } \ No newline at end of file | ||
diff --git a/node_modules/montage/ui/select.reel/select.html b/node_modules/montage/ui/select.reel/select.html new file mode 100644 index 00000000..f942ad07 --- /dev/null +++ b/node_modules/montage/ui/select.reel/select.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="select.css"> | ||
11 | </head> | ||
12 | <body> | ||
13 | </body> | ||
14 | </html> \ No newline at end of file | ||
diff --git a/node_modules/montage/ui/select.reel/select.js b/node_modules/montage/ui/select.reel/select.js new file mode 100644 index 00000000..e6c7fad6 --- /dev/null +++ b/node_modules/montage/ui/select.reel/select.js | |||
@@ -0,0 +1,26 @@ | |||
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 */ | ||
7 | var Montage = require("montage").Montage, | ||
8 | Component = require("ui/component").Component, | ||
9 | NativeSelect = require("ui/native/select.reel").Select; | ||
10 | |||
11 | /** | ||
12 | * Select | ||
13 | */ | ||
14 | exports.Select = Montage.create(NativeSelect, { | ||
15 | |||
16 | hasTemplate: {value: true}, | ||
17 | |||
18 | didSetElement: { | ||
19 | value: function() { | ||
20 | NativeSelect.didSetElement.call(this); | ||
21 | this['class'] = (this['class'] || '') + ' montage-select'; | ||
22 | } | ||
23 | } | ||
24 | |||
25 | |||
26 | }); \ No newline at end of file | ||
diff --git a/node_modules/montage/ui/select.reel/select.png b/node_modules/montage/ui/select.reel/select.png new file mode 100644 index 00000000..3ab8d794 --- /dev/null +++ b/node_modules/montage/ui/select.reel/select.png | |||
Binary files differ | |||