Caret/css/project.less

103 lines
1.6 KiB
Text
Raw Normal View History

2013-11-04 00:28:17 +00:00
.project {
@background: #444;
@foreground: white;
overflow-x: auto;
2013-11-04 00:28:17 +00:00
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;
2013-11-04 00:28:17 +00:00
&.show {
//display: block;
width: 200px;
padding: 4px 8px;
}
2013-11-07 06:01:05 +00:00
a {
display: block;
padding: 4px;
2013-11-07 06:01:05 +00:00
text-decoration: none;
color: inherit;
white-space: nowrap;
border-radius: 2px;
&:hover {
background: fade(@foreground, 10%);
}
&:active {
background: fade(@foreground, 15%);
}
&:focus {
outline: none;
}
}
2013-11-04 00:28:17 +00:00
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;
& > ul {
display: none;
padding-left: 6px;
2013-11-04 00:28:17 +00:00
}
&.expanded > ul {
display: block;
}
}
.directory {
color: darken(@foreground, 30%);
position: relative;
&:before {
2014-02-04 18:37:04 +00:00
content: ">";
position: absolute;
2014-02-04 18:37:04 +00:00
left: -5px;
opacity: .5;
display: inline-block;
2013-11-06 20:02:20 +00:00
transition: all .3s;
}
2014-02-04 18:37:04 +00:00
&:hover:before {
opacity: 1;
}
}
.root {
&:not(:first-child) {
border-top: 1px solid lighten(@background, 20%);
margin-top: 4px;
padding-top: 4px;
}
& > .directory {
font-weight: bold;
&:before {
content: none;
}
}
}
.expanded > .directory:before {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
2013-11-04 00:28:17 +00:00
}
}