Skip to content

Commit ef446fc

Browse files
committed
made menu look prettier
1 parent 227b683 commit ef446fc

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

components/css/MenuPanel.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.menu-panel {
2+
background:#222;
3+
}
4+
.menu-panel a {
5+
display:block;
6+
padding:8px;
7+
line-height:12px;
8+
background: #111;
9+
border-bottom:#aaa;
10+
text-decoration: none;
11+
}
12+
.menu-panel a:hover {
13+
background: #333;
14+
}

components/js/MenuPanel.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ var MenuPanel = new Class({
1717
this.parent(options||{});
1818
this.paper = R;
1919
this.bind(["svgExport","raphaelExport","save","load"]);
20-
var p = this.panel;
20+
var p = this.panel.addClass("menu-panel");
2121
p.adopt(
2222
new Element("a", {href: "svg.php", text: "Download SVG", events: {
2323
mousedown: this.bound.svgExport
2424
}}),
25-
new Element("a", {href: "raphael.php", text: "Download Raphael", events: {
25+
new Element("a", {href: "raphael.php", title:"Not working",text: "Download Raphael", events: {
2626
mousedown: this.bound.rapahelExport
2727
}}),
28-
new Element("a", {text: "Save", events: {
28+
new Element("a", {text: "Save", title:"Not working",events: {
2929
mousedown: this.bound.save
3030
}}),
31-
new Element("a", {text: "Load", events: {
31+
new Element("a", {text: "Load",title:"Not working", events: {
3232
mousedown: this.bound.load
3333
}})
3434
);

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<link rel='stylesheet' type='text/css' href="components/css/TabPanel.css" />
1515
<link rel='stylesheet' type='text/css' href="components/css/propretiesPanel.css" />
1616
<link rel='stylesheet' type='text/css' href="components/css/editorCanvas.css" />
17+
18+
<link rel='stylesheet' type='text/css' href="components/css/MenuPanel.css" />
1719
<link rel='stylesheet' type='text/css' href="components/css/ElementsPanel.css" />
1820
<link rel='stylesheet' type='text/css' href="components/css/TimePanel.css" />
1921
<link rel='stylesheet' type='text/css' href="css/codemirror.css" />

0 commit comments

Comments
 (0)