Caret/css/project.less
2013-11-21 10:18:43 -08:00

77 lines
No EOL
1.2 KiB
Text

.project {
@background: #444;
@foreground: white;
overflow-x: auto;
overflow-y: auto;
box-shadow: inset 4px 4px 16px rgba(0, 0, 0, .4);
background: @background;
flex-shrink: 0;
transition: width .3s;
//display: none;
width: 0px;
&.show {
//display: block;
width: 200px;
padding: 4px 8px;
}
a {
text-decoration: none;
color: inherit;
white-space: nowrap;
}
a:focus {
outline: none;
}
ul {
margin: 0;
padding: 0;
list-style-type: none;
}
li {
color: @foreground;
text-shadow: -1px -1px 1px rgba(0, 0, 0, .2);
white-space: no-wrap;
padding: 4px 0px;
& > ul {
display: none;
padding-left: 6px;
}
&.expanded > ul {
display: block;
}
}
.directory {
color: darken(@foreground, 30%);
position: relative;
&:before {
content: "▶";
position: absolute;
left: -10px;
font-size: 75%;
opacity: .5;
display: inline-block;
transition: all .3s;
}
}
.root > .directory:before {
content: none;
}
.expanded > .directory:before {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
}