mirror of
https://github.com/Febbweiss/filebrowser-durandal-widget.git
synced 2026-03-05 06:35:49 +00:00
init
This commit is contained in:
59
style/filebrowser.less
Normal file
59
style/filebrowser.less
Normal file
@@ -0,0 +1,59 @@
|
||||
@import "../lib/lesshat/build/lesshat.less";
|
||||
|
||||
.filebrowser {
|
||||
width: 300px;
|
||||
height: 500px;
|
||||
|
||||
|
||||
position: relative;
|
||||
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
//http://codepen.io/joshnh/pen/Hkqxu
|
||||
//http://codepen.io/tevko/pen/DdsnK
|
||||
.folder {
|
||||
|
||||
& > label {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
& input[type=checkbox] {
|
||||
opacity: 0;
|
||||
|
||||
& + ul > li {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:checked + ul > li {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ul {
|
||||
&.tree-file {
|
||||
list-style-type: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
};
|
||||
|
||||
.folder > span,
|
||||
.file > span {
|
||||
|
||||
.user-select(none);
|
||||
|
||||
&.select {
|
||||
font-weight: bold;
|
||||
}
|
||||
};
|
||||
|
||||
#fileBrowserContextMenu {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.validationMessage {
|
||||
color: red;
|
||||
}
|
||||
Reference in New Issue
Block a user