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.css59
-rw-r--r--js/panels/css-panel/css-panel.reel/css-panel.html48
-rw-r--r--js/panels/css-panel/css-panel.reel/css-panel.js55
-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.js171
-rw-r--r--js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.css49
-rw-r--r--js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.html76
-rw-r--r--js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js91
-rw-r--r--js/panels/css-panel/rule-list-container.reel/rule-list-container.html45
-rw-r--r--js/panels/css-panel/rule-list-container.reel/rule-list-container.js137
-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.js99
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.css132
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.html134
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.js221
-rw-r--r--js/panels/css-panel/style-sheets-view.reel/style-sheets-view.css19
-rw-r--r--js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html103
-rw-r--r--js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js68
-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.css164
-rw-r--r--js/panels/css-panel/style.reel/style.html77
-rw-r--r--js/panels/css-panel/style.reel/style.js178
-rw-r--r--js/panels/css-panel/styles-view-container.reel/styles-view-container.css26
-rw-r--r--js/panels/css-panel/styles-view-container.reel/styles-view-container.html81
-rw-r--r--js/panels/css-panel/styles-view-container.reel/styles-view-container.js59
-rw-r--r--js/panels/css-panel/styles-view-mediator.js38
31 files changed, 2543 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..e525c08f
--- /dev/null
+++ b/js/panels/css-panel/css-panel.reel/css-panel.css
@@ -0,0 +1,59 @@
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 .style-sheets-view-container {
27 -webkit-box-flex: 0;
28 min-height: 41px;
29}
30.css-panel .styles-view-container {
31 -webkit-box-flex: 1;
32 display: -webkit-box;
33 -webkit-box-orient: vertical;
34}
35.panel-message {
36 background-color: rgba(255,255,255, 0.1);
37 border: 1px dashed rgba(255,255,255, 0.2);
38 border-radius: 4px;
39 color: #CCC;
40 font-size: 11px;
41 font-weight: normal;
42 margin: 0 8px;
43 padding: 5px;
44 position: relative;
45 text-shadow: 1px 1px 0px #333;
46 text-align: center;
47 top: 8px;
48 -webkit-box-flex: 0;
49}
50
51/* ------------------
52 Resizer
53 ------------------ */
54
55.sub-panel-resizer {
56 width: 100%;
57 height: 3px;
58 background-color: red;
59}
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..4be4d6dd
--- /dev/null
+++ b/js/panels/css-panel/css-panel.reel/css-panel.html
@@ -0,0 +1,48 @@
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 }
28 },
29 "stylesViewContainer": {
30 "module" : "js/panels/css-panel/styles-view-container.reel",
31 "name": "StylesViewContainer",
32 "properties": {
33 "element": {"#": "styles-view-container" }
34 }
35 }
36 }
37 </script>
38</head>
39<body>
40<section id="container" class="css-panel">
41 <h3>Style Sheets</h3>
42 <div id="style-sheet-view"></div>
43 <div data-montage-id="resizeBar" class="sub-panel-resizer"></div>
44 <h3>Styles</h3>
45 <div id="styles-view-container"></div>
46</section>
47</body>
48</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..21a466d5
--- /dev/null
+++ b/js/panels/css-panel/css-panel.reel/css-panel.js
@@ -0,0 +1,55 @@
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,
8 Component = require("montage/ui/component").Component;
9
10exports.CSSPanelNew = Montage.create(Component, {
11 _resizedHeight : {
12 value: null
13 },
14 isResizing : {
15 value: null
16 },
17 _height: {
18 value: null
19 },
20 height: {
21 get: function() {
22 return this._height;
23 },
24 set: function(val) {
25 if(this._height !== val) {
26 this._height = val;
27 this.needsDraw = true;
28 }
29 }
30 },
31
32
33 prepareForDraw : {
34 value: function() {
35 console.log("css panel : prepare for draw");
36 }
37 },
38 draw : {
39 value: function() {