Skip to content

Commit c16dd63

Browse files
committed
Imrpovements on the wiring editor CSS and the logicGates example
1 parent 070f147 commit c16dd63

29 files changed

+288
-103
lines changed

VERSION.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
To get the latest version, please visit http://javascript.neyric.com/wireit
33
---------------------------------------------------------------------------
44

5+
Version 0.6.0
6+
Not released yet
7+
8+
Changeset:
9+
10+
* WiringEditor:
11+
* AccordionView on left panel for module categories
12+
* Toolbar
13+
14+
* Wires:
15+
* Label for wires (beta)
16+
17+
----------------------------------------------------
18+
519
Version 0.5.0
620
August 10, 2009
721

backend/php/WiringEditor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public function saveWiring($language, $name, $working) {
5858
}
5959

6060
public function listWirings($language) {
61-
$query = sprintf("SELECT * from wirings WHERE `language`='%s'", mysql_real_escape_string($language) );
61+
62+
$query = sprintf("SELECT * from wirings WHERE `language`='%s'", $language );
6263
$wirings = $this->queryToArray( $query );
6364
return $wirings;
6465
}

css/WireItEditor.css

Lines changed: 51 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@ body {
66
}
77

88

9+
/* YUI layout */
10+
.yui-skin-sam .yui-layout .yui-layout-hd {
11+
background-position: 0 -1300px;
12+
}
13+
.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd h2 {
14+
color: black;
15+
}
16+
/* Accordion View */
17+
.yui-skin-sam .yui-accordionview li.yui-accordion-panel a.yui-accordion-toggle.active {
18+
border-left: 0;
19+
border-right: 0;
20+
border-color: #808080;
21+
color: black;
22+
background-position: 0 -1300px;
23+
}
24+
.yui-skin-sam .yui-accordionview li.yui-accordion-panel a.yui-accordion-toggle {
25+
font-size: 13px;
26+
height: 13px;
27+
}
28+
.yui-skin-sam .yui-accordionview li.yui-accordion-panel a.yui-accordion-toggle.active:hover {
29+
background-position: 0 -1500px;
30+
}
31+
32+
933
/**
1034
* TOP
1135
*/
@@ -21,17 +45,24 @@ body {
2145
#top .logo {
2246
/*font-family: cursive;
2347
color: #3366CC;*/
24-
font-size: 30px;
48+
height: 25px;
49+
font-size: 16px; /*30px;*/
2550
font-weight: bold;
2651
padding-left: 10px;
2752
padding-top: 4px;
53+
54+
border-bottom: 1px solid #808080;
55+
background: transparent url(../lib/yui/assets/skins/sam/sprite.png) repeat-x scroll 0 -1300px;
2856
}
2957

3058
/* Toolbar */
3159
#toolbar {
32-
position: absolute;
60+
/*position: absolute;
3361
top: 10px;
34-
left: 300px;
62+
left: 300px;*/
63+
width: 100%;
64+
height: 23px;
65+
position: relative;
3566
}
3667

3768
#toolbar .yui-button {
@@ -68,9 +99,9 @@ body {
6899
div.savedStatus {
69100
color:orange;
70101
font-size:27pt;
71-
left:650px;
102+
left:400px;
72103
position:absolute;
73-
top:10px;
104+
/*top:10px;*/
74105
}
75106

76107
/**
@@ -88,17 +119,23 @@ div.savedStatus {
88119

89120
.WiringEditor-module {
90121
cursor: move;
91-
background-color: #AADDDD;
92-
margin: 5px;
122+
/*background-color: #AADDDD;*/
123+
margin: 1px;
93124
padding: 2px;
94125
font-size: 9pt;
95126
-moz-border-radius: 2px;
96-
height: 16px;
127+
/*height: 16px;*/
97128
text-align: left;
129+
130+
background-color:#F6F6F6;
131+
border:1px solid #F1F1F1;
98132
}
99133

100134
#left .WiringEditor-module:hover {
101-
color: red;
135+
/*color: red;*/
136+
137+
background-color:#DDECFE;
138+
border:1px solid #C3DAF9;
102139
}
103140

104141
.WiringEditor-module img {
@@ -132,12 +169,16 @@ div.savedStatus {
132169
}
133170

134171
#layerMap {
135-
width: 80%;
172+
/*width: 80%;*/
173+
width: 100%;
136174
}
137175

138176
#layerMap canvas.WireIt-LayerMap {
139177
position: relative;
140178
/*width: 250px; Don't put any width or it breaks the layerMap */
179+
180+
border: 0;
181+
width: 100%;
141182
}
142183

143184
#propertiesForm div.inputEx-Group div.inputEx-label {
6 KB
Binary file not shown.

examples/logicGates/images/A.png

-1.05 KB
Binary file not shown.

examples/logicGates/images/B.png

-993 Bytes
Binary file not shown.

examples/logicGates/images/C.png

-1.06 KB
Binary file not shown.
2.89 KB
Loading
2.96 KB
Loading
-55 Bytes
Loading

0 commit comments

Comments
 (0)