metro-explorer
Version:
File explorer in JS
202 lines (199 loc) • 4 kB
text/stylus
.explorer {
position: absolute;
}
.explorer *, .explorer *::before, .explorer *::after {
box-sizing: content-box;
}
.file {
background-color: #e8e8e8;
border: 1px solid darkgray;
height: 140px;
margin: 5px;
width: 120px;
z-index: 20;
}
.moveToTooltip{
background-color:white;
left: 103%;
top: -192%;
display: none;
position: relative;
opacity: .95;
border-radius: 4px;
color: blue;
white-space: nowrap;
}
.iconBorder{
border: 2px solid white;
-moz-border-radius: 40px; /* Para Firefox */
-webkit-border-radius: 40px; /*Para Safari e Chrome */
border-radius: 40px; /* Para Opera 10.5+*/
background-color: #1B6EAE;
width: 80px;
height: 80px;
}
.field {
border: 0 dashed gray;
height: 150px;
margin: 5px;
position: absolute;
width: 130px;
z-index: 10;
}
.newFileHelper {
border: 1px solid white;
float: left;
height: 140px;
margin: 5px -129px 5px 4px;
width: 120px;
}
.inputFileName {
background-color: #e8e8e8;
border: medium none;
color: black;
cursor: default;
height: 40px;
width: 117px;
}
.contextMenu{
background-color: white;
border: 2px solid gray;
height: auto;
width: auto;
min-width: 130px;
max-width: 180px;
z-index: 9999;
}
.contextMenuFile {
@extend .contextMenu;
position: relative;
}
.contextMenuFolder {
@extend .contextMenu;
position: relative;
}
.contextMenuVoid {
@extend .contextMenu;
position: absolute;
}
.baseDialog {
background-color: white;
border: 2px solid gray;
display: none;
overflow-x: hidden;
overflow-y: auto;
position: absolute;
z-index: 9999;
}
.baseDialogContent{
padding-top:20px ;
padding-bottom:20px ;
}
._selected {
background-color: blue;
box-sizing: inherit;
height: 140px;
top: -126px;
position: relative;
width: 120px;
}
.contextMenuOption {
padding: 10px ;
}
.contextMenuOption:hover {
background-color: gray;
color: white;
}
.disabledContextMenuOption {
background-color: white ;
color: #c8c8c8 ;
cursor: default ;
font-style: italic ;
}
.explorerButton {
background-color: #1b58b8;
border: 3px solid white;
color: white;
font-weight: bold;
height: 45px;
padding: 10px;
text-align: center;
width: 170px;
}
.explorerButton:hover {
opacity: 0.7;
}
.explorerButtonDisabled {
background-color: darkgray ;
cursor: default;
}
.explorerButtonDisabled:hover {
background-color: darkgray ;
opacity: 1 ;
}
.explorerInput {
height: 30px;
}
.onLeft {
float: left;
}
.onRight {
float: right;
}
.transferEffect {
border: 1px solid gray;
}
.handCursor {
cursor: pointer;
}
.bold {
font-weight: bold;
}
for $num in (4 6 8 9 98)
.opacity{$num}{
opacity: $num > 10 ? ($num / 100) : ($num / 10)
}
.gray {
color: gray;
}
.white {
color: white;
}
for $num in (8 10 11 12 14 16 18 30 40 45 50)
.ft{$num}{
font-size: unit($num, 'pt');
}
for $pos in (center justify left)
.txt{$pos}{
text-align: $pos;
}
.txtmargin {
padding: 2px 7px;
}
.displayNone {
display: none;
}
.center {
margin: 0 auto ;
}
for $radius in (10 20)
.radius$radius{
border-radius: unit($radius, 'px');
}
.closeBaseDialog {
background: rgba(0, 0, 0, 0) url("../icons/close-base-dialog.png") no-repeat scroll 0 0;
height: 32px;
position: relative;
width: 32px;
z-index: 9999;
}
.closeBaseDialog:hover {
opacity: 0.4;
}
.quickAccessLink {
color: #23649d;
}
.quickAccessLink:hover {
background-color: #23649d;
color: white;
}