Browse files

remove unrelated styles from shrubbery.css

  • Loading branch information...
1 parent 7e0b1ff commit ed395b855390434f672a03ff77af53387d32826a @mislav committed May 7, 2008
Showing with 43 additions and 43 deletions.
  1. +5 −0 sample/index.html
  2. +37 −42 shrubbery.css
  3. +1 −1 shrubbery.js
View
5 sample/index.html
@@ -3,6 +3,11 @@
<head>
<title>Shrubbery demo</title>
<link rel="stylesheet" href="../shrubbery.css" type="text/css" media="screen" />
+ <style type="text/css">
+ body { margin:0; padding:1em 2em; font:small Verdana, sans-serif; background:white; max-width: 70em }
+ h1 { color: #222; }
+ h2 { color: #444; font-size: 1.3em; font-weight: normal }
+ </style>
<script type="text/javascript" src="../prototype.js"></script>
<script type="text/javascript" src="../shrubbery.js"></script>
<script type="text/javascript">
View
79 shrubbery.css
@@ -1,42 +1,37 @@
-/*html { background:silver; height:100%; overflow:auto; }*/
-body { margin:0; padding:1em 2em; font:small Verdana, sans-serif; background:white; max-width: 70em }
-h1 { color: #222; }
-h2 { color: #444; font-size: 1.3em; font-weight: normal }
-
-.adjacent-list { background:#ddd; border:1px solid #aaa; }
-.adjacent-list { height:10.3em; }
-.adjacent-list:after{content:".";display:block;height:0;clear:both;visibility:hidden;}
-
-.adjacent-list div.wrapper, .adjacent-list ol { height:100%; }
-.adjacent-list div.wrapper { width:200%; }
-.adjacent-list ol {
- background:white;
- list-style:none;
- padding:0; margin:0;
- float:left; overflow:auto;
- width: 12%;
-}
-.adjacent-list li { display:inline; white-space: nowrap }
-.adjacent-list span.parent { display:none; }
-.adjacent-list li.has-sublist a, .adjacent-list li.has-sublist span.class { background: #ffd; }
-.adjacent-list li.expand a, .adjacent-list li.expand span.class { background:gray; color:white; }
-.adjacent-list li.selected a, .adjacent-list li.selected span.class { background:crimson; color:white; }
-.adjacent-list a, .adjacent-list span.class {
- display:block;
- padding:0.2em 0.3em;
- color:black;
- text-decoration:none;
- cursor:pointer;
- position: relative;
-}
-.adjacent-list span.expand {
- display: block; position: absolute; top:0; right: 0;
- padding: 0 .2em;
- font: bold 1.3em Verdana, sans-serif;
- color: gray;
-}
-.adjacent-list li.expand span.expand { color: #444 }
-.adjacent-list li.selected span.expand { color: #eee }
-
-.adjacent-list span.class { color: #333; font-style: italic }
-.adjacent-list a:focus { outline:none; }
+.adjacent-list { background:#ddd; border:1px solid #aaa; }
+.adjacent-list { height:10.3em; }
+.adjacent-list:after{content:".";display:block;height:0;clear:both;visibility:hidden;}
+
+.adjacent-list div.wrapper, .adjacent-list ol { height:100%; }
+.adjacent-list div.wrapper { width:200%; }
+.adjacent-list ol {
+ background:white;
+ list-style:none;
+ padding:0; margin:0;
+ float:left; overflow:auto;
+ width: 12%;
+}
+.adjacent-list li { display:inline; white-space: nowrap }
+.adjacent-list span.parent { display:none; }
+.adjacent-list li.has-sublist a, .adjacent-list li.has-sublist span.item { background: #ffd; }
+.adjacent-list li.expand a, .adjacent-list li.expand span.item { background:gray; color:white; }
+.adjacent-list li.selected a, .adjacent-list li.selected span.item { background:crimson; color:white; }
+.adjacent-list a, .adjacent-list span.item {
+ display:block;
+ padding:0.2em 0.3em;
+ color:black;
+ text-decoration:none;
+ cursor:pointer;
+ position: relative;
+}
+.adjacent-list span.expand {
+ display: block; position: absolute; top:0; right: 0;
+ padding: 0 .2em;
+ font: bold 1.3em Verdana, sans-serif;
+ color: gray;
+}
+.adjacent-list li.expand span.expand { color: #444 }
+.adjacent-list li.selected span.expand { color: #eee }
+
+.adjacent-list span.item { color: #333; font-style: italic }
+.adjacent-list a:focus { outline:none; }
View
2 shrubbery.js
@@ -51,7 +51,7 @@ var Shrubbery = Class.create({
this.listSetup(li.sublist, level + 1);
- var item = li.down('a') || li.down('span.class')
+ var item = li.down('a') || li.down('span')
if (item) item.insert(' <span class="expand">&raquo;</span>')
}
}, this);

0 comments on commit ed395b8

Please sign in to comment.