aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel')
-rw-r--r--js/panels/css-panel/css-panel-container.js15
-rw-r--r--js/panels/css-panel/css-panel.reel/css-panel.css60
-rw-r--r--js/panels/css-panel/css-panel.reel/css-panel.html62
-rw-r--r--js/panels/css-panel/css-panel.reel/css-panel.js19
-rw-r--r--js/panels/css-panel/css-style.reel/css-style.css187
-rw-r--r--js/panels/css-panel/css-style.reel/css-style.html103
-rw-r--r--js/panels/css-panel/css-style.reel/css-style.js413
-rw-r--r--js/panels/css-panel/declaration.reel/declaration.css15
-rw-r--r--js/panels/css-panel/declaration.reel/declaration.html58
-rw-r--r--js/panels/css-panel/declaration.reel/declaration.js218
-rw-r--r--js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.css69
-rw-r--r--js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.html110
-rw-r--r--js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js148
-rw-r--r--js/panels/css-panel/rule-list-container.reel/rule-list-container.html51
-rw-r--r--js/panels/css-panel/rule-list-container.reel/rule-list-container.js173
-rw-r--r--js/panels/css-panel/rule-list.reel/rule-list.css26
-rw-r--r--js/panels/css-panel/rule-list.reel/rule-list.html26
-rw-r--r--js/panels/css-panel/rule-list.reel/rule-list.js192
-rw-r--r--js/panels/css-panel/style-declaration.reel/style-declaration.css13
-rw-r--r--js/panels/css-panel/style-declaration.reel/style-declaration.html75
-rw-r--r--js/panels/css-panel/style-declaration.reel/style-declaration.js296
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.css141
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.html127
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.js271
-rw-r--r--js/panels/css-panel/style-sheets-view.reel/style-sheets-view.css53
-rw-r--r--js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html134
-rw-r--r--js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js215
-rw-r--r--js/panels/css-panel/style-shorthand.reel/style-shorthand.css41
-rw-r--r--js/panels/css-panel/style-shorthand.reel/style-shorthand.html174
-rw-r--r--js/panels/css-panel/style-shorthand.reel/style-shorthand.js58
-rw-r--r--js/panels/css-panel/style.reel/style.css187
-rw-r--r--js/panels/css-panel/style.reel/style.html103
-rw-r--r--js/panels/css-panel/style.reel/style.js429
-rw-r--r--js/panels/css-panel/styles-view-container.reel/styles-view-container.css33
-rw-r--r--js/panels/css-panel/styles-view-container.reel/styles-view-container.html91
-rw-r--r--js/panels/css-panel/styles-view-container.reel/styles-view-container.js185
-rw-r--r--js/panels/css-panel/styles-view-delegate.js286
37 files changed, 4857 insertions, 0 deletions
diff --git a/js/panels/css-panel/css-panel-container.js b/js/panels/css-panel/css-panel-container.js
new file mode 100644
index 00000000..6110c999
--- /dev/null
+++ b/js/panels/css-panel/css-panel-container.js
@@ -0,0 +1,15 @@
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
7var Montage = require("montage/core/core").Montage;
8var PanelBase = require("js/panels/PanelBase").PanelBase;
9var Content = require("js/panels/css-panel/css-panel.reel").CSSPanelNew;
10
11exports.CSSPanelContainer = Montage.create(PanelBase, {
12 panelName : { value: "CSS Panel" },
13 minHeight : { value: 200 },
14 content : { value: Content }
15}); \ No newline at end of file
diff --git a/js/panels/css-panel/css-panel.reel/css-panel.css b/js/panels/css-panel/css-panel.reel/css-panel.css
new file mode 100644
index 00000000..8ef5ec27
--- /dev/null
+++ b/js/panels/css-panel/css-panel.reel/css-panel.css
@@ -0,0 +1,60 @@
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.css-panel {
7 color: #FFF;
8 display: -webkit-box;
9 height: 100%;
10 -webkit-box-orient: vertical;
11}
12.css-panel > h3 {
13 background-color: #333;
14 border-top: 1px solid #3D3D3D;
15 color: #FFF;
16 cursor: default;
17 font-size: 12px;
18 font-weight: normal;
19 height: 16px;
20 margin: 0;
21 padding: 4px 0 2px 10px;
22 vertical-align: top;
23 -webkit-box-flex: 0;
24 -webkit-user-select: none;
25}
26.css-panel .selection-name:before, .css-panel .document-name:before {
27 content:" - "
28}
29.css-panel .no-styles.selection-name, .css-panel .no-document.document-name {
30 display: none;
31}
32
33.css-panel .style-sheets-view-container {
34 display: -webkit-box;
35 min-height: 41px;
36 -webkit-box-flex: 0;
37 -webkit-box-orient: vertical;
38}
39.css-panel .styles-view-container {
40 display: -webkit-box;
41 -webkit-box-flex: 1;
42 -webkit-box-orient: vertical;
43}
44.panel-message {
45 background-color: rgba(255,255,255, 0.1);
46 border: 1px dashed rgba(255,255,255, 0.2);
47 border-radius: 4px;
48 color: #CCC;
49 font-size: 11px;
50 font-weight: normal;
51 margin: 0 8px;
52 padding: 5px;
53 position: relative;
54 text-shadow: 1px 1px 0px #333;
55 text-align: center;
56 top: 8px;
57 -webkit-box-flex: 0;
58}
59
60
diff --git a/js/panels/css-panel/css-panel.reel/css-panel.html b/js/panels/css-panel/css-panel.reel/css-panel.html
new file mode 100644
index 00000000..5bc5c87d
--- /dev/null
+++ b/js/panels/css-panel/css-panel.reel/css-panel.html
@@ -0,0 +1,62 @@
1<!DOCTYPE html>
2<!-- <copyright>
3This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4No 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 lang="en">
8<head>
9 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
10 <link rel="stylesheet" href="css-panel.css" type="text/css">
11 <script type="text/montage-serialization">
12 {
13 "owner": {
14 "module" : "js/panels/css-panel/css-panel.reel",
15 "name" : "CSSPanelNew",
16 "properties" : {
17 "element" : {"#" : "container"},
18 "styleSheetsView": {"@": "styleSheetsView"}
19 }
20 },
21
22 "styleSheetsView": {
23 "module" : "js/panels/css-panel/style-sheets-view.reel",
24 "name": "StyleSheetsView",
25 "properties": {
26 "element": {"#": "style-sheet-view" },
27 "documentNameLabel": {"#": "document-name" }
28 }
29 },
30 "stylesViewContainer": {
31 "module" : "js/panels/css-panel/styles-view-container.reel",
32 "name": "StylesViewContainer",
33 "properties": {
34 "element": {"#": "styles-view-container" },
35 "selectionName": {"@": "selectionName" }
36 }
37 },
38 "selectionName" : {
39 "prototype": "montage/ui/dynamic-text.reel",
40 "properties": {
41 "element": {"#":"selection-name"}
42 },
43 "bindings": {
44 "value" : {
45 "boundObject": {"@": "stylesViewContainer"},
46 "boundObjectPropertyPath": "selectionNameLabelText",
47 "oneway": true
48 }
49 }
50 }
51 }
52 </script>
53</head>
54<body>
55<section id="container" class="css-panel">
56 <h3>Style Sheets <span data-montage-id="document-name" class="document-name"></span></h3>
57 <div id="style-sheet-view"></div>
58 <h3>Styles <span data-montage-id="selection-name" class="selection-name"></span></h3>
59 <div id="styles-view-container"></div>
60</section>
61</body>
62</html> \ No newline at end of file
diff --git a/js/panels/css-panel/css-panel.reel/css-panel.js b/js/panels/css-panel/css-panel.reel/css-panel.js
new file mode 100644
index 00000000..4a2062af
--- /dev/null
+++ b/js/panels/css-panel/css-panel.reel/css-panel.js
@@ -0,0 +1,19 @@
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