2015-06-20 14:28:33 +03:00
|
|
|
|
2015-06-20 20:51:43 +03:00
|
|
|
/********************************************************** Widget ***/
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget {
|
2015-06-20 14:28:33 +03:00
|
|
|
display: inline-block;
|
|
|
|
|
min-width: 300px;
|
|
|
|
|
width: initial;
|
|
|
|
|
padding: 5px;
|
|
|
|
|
font-family: sans-serif;
|
2015-06-20 20:51:43 +03:00
|
|
|
|
|
|
|
|
background: gray;
|
|
|
|
|
/*color: rgba(255,255,255,0.8);*/
|
|
|
|
|
color: white;
|
2015-06-20 14:28:33 +03:00
|
|
|
}
|
|
|
|
|
/*
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget:not(:focus) {
|
2015-06-20 14:28:33 +03:00
|
|
|
opacity: 0.8;
|
|
|
|
|
}
|
|
|
|
|
*/
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .v-block {
|
2015-06-20 14:28:33 +03:00
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .v-block:not(:first-of-type) {
|
2015-06-20 20:51:43 +03:00
|
|
|
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
2015-06-20 14:28:33 +03:00
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .v-block:empty {
|
2015-06-20 14:28:33 +03:00
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-06-20 20:51:43 +03:00
|
|
|
/************************************************************ Path ***/
|
2015-06-20 14:28:33 +03:00
|
|
|
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path {
|
2015-06-20 14:28:33 +03:00
|
|
|
padding: 5px;
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
padding-right: 10px;
|
|
|
|
|
white-space: nowrap;
|
2015-06-22 05:57:15 +03:00
|
|
|
padding-right: 30px;
|
2015-06-20 20:51:43 +03:00
|
|
|
|
2015-06-26 14:40:41 +03:00
|
|
|
|
|
|
|
|
/* XXX need a way to make this automatic and depend on .browser
|
|
|
|
|
setup to avoid multiple scrollbars and the need to manually
|
|
|
|
|
dive into the configuration to change the container size
|
|
|
|
|
limits
|
|
|
|
|
*/
|
2015-09-14 14:46:19 +03:00
|
|
|
max-width: 80vh;
|
2015-06-26 14:40:41 +03:00
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
/* XXX not sure about this... */
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path::-webkit-scrollbar {
|
2015-06-26 14:40:41 +03:00
|
|
|
width: 5px;
|
|
|
|
|
height: 5px;
|
2015-06-20 20:51:43 +03:00
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path:hover {
|
2015-06-20 20:51:43 +03:00
|
|
|
opacity: 1;
|
2015-06-20 14:28:33 +03:00
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path:empty {
|
2015-06-20 14:28:33 +03:00
|
|
|
display: block;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget:not(.flat) .path:not([contenteditable]):before {
|
2015-06-20 14:28:33 +03:00
|
|
|
content: "/";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path .dir {
|
2015-06-20 14:28:33 +03:00
|
|
|
display: inline-block;
|
|
|
|
|
cursor: pointer;
|
2015-06-26 14:40:41 +03:00
|
|
|
|
|
|
|
|
opacity: 0.8;
|
2015-06-20 14:28:33 +03:00
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path .dir:after {
|
2015-06-20 14:28:33 +03:00
|
|
|
content: "/";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path .dir:hover ~ .dir {
|
2015-06-20 14:28:33 +03:00
|
|
|
opacity: 0.2;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path .dir.cur {
|
2015-06-20 14:28:33 +03:00
|
|
|
opacity: 0.5;
|
|
|
|
|
cursor: text;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path .dir.cur:after {
|
2015-06-20 14:28:33 +03:00
|
|
|
content: "";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path .dir.cur:hover {
|
2015-06-20 14:28:33 +03:00
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path .dir.cur[contenteditable] {
|
2015-06-22 05:57:15 +03:00
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path .dir.cur:empty:not([contenteditable]) {
|
2015-06-20 14:28:33 +03:00
|
|
|
position: relative;
|
|
|
|
|
width: 50px;
|
|
|
|
|
height: 12px;
|
|
|
|
|
background: transparent;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path .dir.cur:empty:hover:not([contenteditable]) {
|
2015-06-20 14:28:33 +03:00
|
|
|
opacity: 0.6;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .path .dir.cur:empty:hover:not([contenteditable]):after {
|
2015-06-20 14:28:33 +03:00
|
|
|
content: "______";
|
|
|
|
|
border: dashed white 1px;
|
|
|
|
|
cursor: text;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-06-20 20:51:43 +03:00
|
|
|
/************************************************************ List ***/
|
|
|
|
|
|
2015-06-20 14:28:33 +03:00
|
|
|
/* XXX need to make this resizable up but only to a certain size (~80vh) */
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list {
|
2015-06-20 14:28:33 +03:00
|
|
|
/* XXX need a way to make this automatic and depend on .browser
|
2015-06-26 14:40:41 +03:00
|
|
|
setup to avoid multiple scrollbars and the need to manually
|
|
|
|
|
dive into the configuration to change the container size
|
|
|
|
|
limits
|
2015-06-20 14:28:33 +03:00
|
|
|
*/
|
2015-09-09 17:24:41 +03:00
|
|
|
max-height: 80vh;
|
2015-06-20 14:28:33 +03:00
|
|
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
}
|
|
|
|
|
/*
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list:before {
|
2015-06-27 02:34:52 +03:00
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 40px;
|
|
|
|
|
top: 1px;
|
|
|
|
|
left: 0px;
|
|
|
|
|
background: linear-gradient(to top, rgba(128, 128, 128, 0), rgba(128, 128, 128, 1));
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list:after {
|
2015-06-27 02:34:52 +03:00
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 40px;
|
|
|
|
|
bottom: 0px;
|
|
|
|
|
left: 0px;
|
|
|
|
|
background: linear-gradient(to bottom, rgba(128, 128, 128, 0), rgba(128, 128, 128, 1));
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
/*
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list:empty {
|
2015-06-20 14:28:33 +03:00
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
*/
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div {
|
2015-06-20 14:28:33 +03:00
|
|
|
padding: 5px;
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
padding-right: 10px;
|
|
|
|
|
cursor: pointer;
|
2015-06-20 20:51:43 +03:00
|
|
|
|
|
|
|
|
opacity: 0.7;
|
2015-06-26 14:40:41 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* XXX need a way to make this automatic and depend on .browser
|
|
|
|
|
setup to avoid multiple scrollbars and the need to manually
|
|
|
|
|
dive into the configuration to change the container size
|
|
|
|
|
limits
|
|
|
|
|
*/
|
2015-09-14 14:46:19 +03:00
|
|
|
max-width: 80vh;
|
2015-06-26 14:40:41 +03:00
|
|
|
overflow: hidden;
|
2015-06-20 14:28:33 +03:00
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget:not(.flat) .list div:not(.not-traversable):after {
|
2015-06-21 04:15:54 +03:00
|
|
|
content: "/";
|
|
|
|
|
}
|
2015-06-20 14:28:33 +03:00
|
|
|
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget:focus .list div.selected,
|
|
|
|
|
.browse-widget .path .dir:hover,
|
|
|
|
|
.browse-widget .list div:hover {
|
2015-06-20 20:51:43 +03:00
|
|
|
background: rgba(0, 0, 0, 0.05);
|
|
|
|
|
|
|
|
|
|
opacity: 0.9;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div.selected {
|
2015-06-20 20:51:43 +03:00
|
|
|
background: rgba(0, 0, 0, 0.08);
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget:focus .list div.selected {
|
2015-06-20 20:51:43 +03:00
|
|
|
background: rgba(0, 0, 0, 0.08);
|
|
|
|
|
box-shadow: rgba(0, 0, 0, 0.2) 0.1em 0.1em 0.2em;
|
|
|
|
|
|
|
|
|
|
opacity: 1;
|
2015-06-20 14:28:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* XXX need to make the next two different... */
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div.filtered-out {
|
2015-06-20 14:28:33 +03:00
|
|
|
opacity: 0.5;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget:not(.show-filtered-out) .list div.filtered-out {
|
2015-06-20 14:28:33 +03:00
|
|
|
display: none;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div.disabled {
|
2015-06-20 14:28:33 +03:00
|
|
|
opacity: 0.3;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-11 16:52:35 +03:00
|
|
|
/* numbers... */
|
|
|
|
|
/* XXX need to show this only on devices with keyboards... */
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div:before {
|
2015-07-11 16:52:35 +03:00
|
|
|
opacity: 0.3;
|
|
|
|
|
float: right;
|
|
|
|
|
font-size: small;
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget.filtering .list div:before {
|
2015-07-11 17:42:15 +03:00
|
|
|
display: none;
|
|
|
|
|
}
|
2015-07-11 16:52:35 +03:00
|
|
|
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div:nth-of-type(1):before {
|
2015-07-11 16:52:35 +03:00
|
|
|
content: "1";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div:nth-of-type(2):before {
|
2015-07-11 16:52:35 +03:00
|
|
|
content: "2";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div:nth-of-type(3):before {
|
2015-07-11 16:52:35 +03:00
|
|
|
content: "3";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div:nth-of-type(4):before {
|
2015-07-11 16:52:35 +03:00
|
|
|
content: "4";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div:nth-of-type(5):before {
|
2015-07-11 16:52:35 +03:00
|
|
|
content: "5";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div:nth-of-type(6):before {
|
2015-07-11 16:52:35 +03:00
|
|
|
content: "6";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div:nth-of-type(7):before {
|
2015-07-11 16:52:35 +03:00
|
|
|
content: "7";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div:nth-of-type(8):before {
|
2015-07-11 16:52:35 +03:00
|
|
|
content: "8";
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.browse-widget .list div:nth-of-type(9):before {
|
2015-07-11 16:52:35 +03:00
|
|
|
content: "9";
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-20 20:51:43 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************** Theaming ***/
|
|
|
|
|
|
|
|
|
|
/* Light */
|
2015-09-07 18:51:42 +03:00
|
|
|
.light .browse-widget {
|
2015-06-20 20:51:43 +03:00
|
|
|
background: white;
|
|
|
|
|
color: rgba(0, 0, 0, 0.8);
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.light .browse-widget .v-block:not(:first-of-type) {
|
2015-06-20 20:51:43 +03:00
|
|
|
border-top: 1px solid rgba(0, 0, 0, 0.2);
|
2015-06-20 14:28:33 +03:00
|
|
|
}
|
|
|
|
|
|
2015-06-20 20:51:43 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Dark */
|
2015-09-07 18:51:42 +03:00
|
|
|
.dark .browse-widget {
|
2015-06-20 20:51:43 +03:00
|
|
|
background: #0a0a0a;
|
|
|
|
|
color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
}
|
|
|
|
|
/* XXX can we make this simpler??? */
|
2015-09-07 18:51:42 +03:00
|
|
|
.dark .browse-widget:focus .list div.selected,
|
|
|
|
|
.dark .browse-widget .path .dir:hover,
|
|
|
|
|
.dark .browse-widget .list div:hover {
|
2015-06-20 20:51:43 +03:00
|
|
|
background: rgba(255, 255, 255, 0.08);
|
|
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.dark .browse-widget .list div.selected {
|
2015-06-20 20:51:43 +03:00
|
|
|
background: rgba(255, 255, 255, 0.1);
|
2015-06-20 14:28:33 +03:00
|
|
|
}
|
2015-09-07 18:51:42 +03:00
|
|
|
.dark .browse-widget:focus .list div.selected {
|
2015-06-20 20:51:43 +03:00
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************************************************/
|