Skip to content

Commit

Permalink
Fixes #3 - Add some transitions and markers for hover-state on nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kumar Harsh committed Aug 14, 2013
1 parent 50eaeae commit 99124fe
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
12 changes: 6 additions & 6 deletions bootstrap-combined.min.css

Large diffs are not rendered by default.

18 changes: 15 additions & 3 deletions less/bootstrap-tree.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@
height: 100%;
top: 0;
width: 1px;
.transition("border-color 0.1s ease 0.1s");
}
&::after {
border-top: 1px solid @grayLight;
height: 20px;
top: 13px;
width: 23px;
.transition("border-color 0.1s ease 0.1s");
}
span {
-moz-border-radius: 5px;
Expand All @@ -48,13 +50,23 @@
line-height: 14px;
padding: 2px 4px;
text-decoration: none;
.transition(~"color 0.2s ease 0.1s, background-color 0.2s ease 0.1s, border-color 0.3s ease 0.2s");
}
&.parent_li > span {
cursor: pointer;
/*Time for some hover effects*/
&:hover, &:hover+ul li span {
background: @grayLighter;
border: 1px solid @gray;
&:hover {
background-color: darken(@orange, 5%);
border: 1px solid darken(@orange, 10%);
color: #fff;
}
&:hover+ul li {
&::after { border-top-color: @orange; }
&::before { border-left-color: @orange; }
}
&:hover+ul li span {
background: lighten(@orange, 35%);
border: 1px solid lighten(@orange, 10%);
color: #000;
}
}
Expand Down
2 changes: 1 addition & 1 deletion less/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

/* custom settings that deviate from Bootstrap's default values; set *after* the bootstrap imports */
@iconSpritePath: "//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/img/glyphicons-halflings.png";
@iconWhiteSpritePath: "//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/img/glyphicons-halflings-white.png";
@iconWhiteSpritePath: "//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/img/glyphicons-halflings-white.png";

0 comments on commit 99124fe

Please sign in to comment.