mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 19:30:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			505 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			CSS
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			505 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			CSS
		
	
	
		
			Executable File
		
	
	
	
	
| 
 | |
| /********************************************************** Widget ***/
 | |
| .browse-widget {
 | |
| 	display: inline-block;
 | |
| 	min-width: 300px;
 | |
| 	width: initial;
 | |
| 	padding: 5px;
 | |
| 	/*font-family: opensans, sans-serif;*/
 | |
| 
 | |
| 	background: gray;
 | |
| 	/*color: rgba(255,255,255,0.8);*/
 | |
| 	color: white;
 | |
| 
 | |
| 	/* XXX for some reason this does not work..
 | |
| 	transition: all 0.5s linear;
 | |
| 	*/
 | |
| }
 | |
| /*
 | |
| .browse-widget:not(:focus) {
 | |
| 	opacity: 0.8;
 | |
| }
 | |
| */
 | |
| .browse-widget .v-block {
 | |
| 	position: relative;
 | |
| 
 | |
| 	width: 100%;
 | |
| 	height: auto;
 | |
| 
 | |
| 	box-sizing: border-box;
 | |
| 
 | |
| 	overflow: hidden;
 | |
| }
 | |
| .browse-widget .v-block:not(:first-of-type) {
 | |
| 	border-top: 1px solid rgba(255, 255, 255, 0.3);
 | |
| }
 | |
| .browse-widget .v-block:empty {
 | |
| 	display: none;
 | |
| }
 | |
| 
 | |
| 
 | |
| /* editable... */
 | |
| .browse-widget [contenteditable] {
 | |
| 	min-width: 2px;
 | |
| 	min-height: 2px;
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 | |
| /************************************************************ Path ***/
 | |
| 
 | |
| .browse-widget .path {
 | |
| 	position: relative;
 | |
| 
 | |
| 	padding: 5px;
 | |
| 	padding-left: 10px;
 | |
| 	padding-right: 10px;
 | |
| 	white-space: nowrap;
 | |
| 	padding-right: 30px;
 | |
| 
 | |
| 
 | |
| 	/* 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
 | |
| 	*/
 | |
| 	max-width: 80vh;
 | |
| 	overflow: auto;
 | |
| }
 | |
| 
 | |
| /* path scroll shadow... */
 | |
| .browse-widget .path:not(:hover).scrolling {
 | |
| 	mix-blend-mode: overlay;
 | |
| }
 | |
| .browse-widget .path:not(:hover).scrolling:after {
 | |
| 	position: fixed;
 | |
| 	content: " ";
 | |
| 	top: 0px;
 | |
| 	left: 0px;
 | |
| 	width: 100%;
 | |
| 	height: 100%;
 | |
| }
 | |
| .browse-widget .path:not(:hover).scrolling.left:not(.right):after {
 | |
| 	background: linear-gradient(90deg, gray, transparent 15%);
 | |
| }
 | |
| .browse-widget .path:not(:hover).scrolling.right:not(.left):after {
 | |
| 	background: linear-gradient(90deg, transparent 85%, gray);
 | |
| }
 | |
| .browse-widget .path:not(:hover).scrolling.left.right:after {
 | |
| 	background: linear-gradient(90deg, gray, transparent 15%, transparent 85%, gray);
 | |
| }
 | |
| 
 | |
| /* XXX not sure about this... */
 | |
| .browse-widget .path::-webkit-scrollbar {
 | |
| 	width: 5px;
 | |
| 	height: 5px;
 | |
| }
 | |
| .browse-widget .path:hover {
 | |
| 	opacity: 1;
 | |
| }
 | |
| .browse-widget .path:empty {
 | |
| 	display: block;
 | |
| }
 | |
| .browse-widget:not(.flat) .path:not([contenteditable]):before {
 | |
| 	content: attr(prefix);
 | |
| }
 | |
| .browse-widget .path .dir {
 | |
| 	display: inline-block;
 | |
| 	cursor: pointer;
 | |
| 
 | |
| 	opacity: 0.8;
 | |
| }
 | |
| .browse-widget .path .dir:after {
 | |
| 	content: "/";
 | |
| }
 | |
| .browse-widget .path .dir:hover ~ .dir {
 | |
| 	opacity: 0.2;
 | |
| }
 | |
| .browse-widget .path .dir.cur {
 | |
| 	opacity: 0.5;
 | |
| 	cursor: text;
 | |
| }
 | |
| .browse-widget .path .dir.cur:after {
 | |
| 	content: "";
 | |
| }
 | |
| .browse-widget .path .dir.cur:hover {
 | |
| 	opacity: 1;
 | |
| }
 | |
| .browse-widget .path .dir.cur[contenteditable] {
 | |
| 	opacity: 1;
 | |
| }
 | |
| .browse-widget .path .dir.cur:empty:not([contenteditable]) {
 | |
| 	position: relative;
 | |
| 	width: 50px;
 | |
| 	height: 12px;
 | |
| 	background: transparent;
 | |
| 	opacity: 0;
 | |
| }
 | |
| .browse-widget .path .dir.cur:empty:hover:not([contenteditable]) {
 | |
| 	opacity: 0.6;
 | |
| }
 | |
| .browse-widget .path .dir.cur:empty:hover:not([contenteditable]):after {
 | |
| 	content: "______";
 | |
| 	border: dashed white 1px;
 | |
| 	cursor: text;
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 | |
| /************************************************************ List ***/
 | |
| 
 | |
| /* XXX need to make this resizable up but only to a certain size (~80vh) */
 | |
| .browse-widget .list {
 | |
| 	/* 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
 | |
| 	*/
 | |
| 	max-height: 80vh;
 | |
| 
 | |
| 	overflow-y: auto;
 | |
| 	overflow-x: hidden;
 | |
| 
 | |
| 	will-change: scroll-position;
 | |
| }
 | |
| /*
 | |
| .browse-widget .list:before {
 | |
| 	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));
 | |
| }
 | |
| .browse-widget .list:after {
 | |
| 	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));
 | |
| }
 | |
| */
 | |
| /*
 | |
| .browse-widget .list:empty {
 | |
| 	display: block;
 | |
| }
 | |
| */
 | |
| /* XXX this is not used because it will mess up numbering and some actions...
 | |
|  * 	...need a more thorough avoidance of non-visible elements...
 | |
| .browse-widget.disabled-hidden:not(.flat) .list div.disabled,
 | |
| .browse-widget.not-traversable-hidden:not(.flat) .list div.not-traversable {
 | |
| 	display: none;
 | |
| }
 | |
| */
 | |
| .browse-widget .list .text {
 | |
| 	display: inline-block;
 | |
| 	float:left;
 | |
| }
 | |
| .browse-widget .list .button-container {
 | |
| 	display: inline-block;
 | |
| 	float: right;
 | |
| 	white-space: nowrap;
 | |
| }
 | |
| .browse-widget .list .button {
 | |
| 	display: inline-block;
 | |
| 	float:right;
 | |
| 	opacity: 0.5;
 | |
| 	padding-left: 10px;
 | |
| 	padding-right: 10px;
 | |
| 	box-sizing: border-box;
 | |
| 
 | |
| 	/*border: solid 1px rgba(255,255,255, 0.3);*/
 | |
| }
 | |
| .browse-widget .list .button:hover {
 | |
| 	opacity: 0.9;
 | |
| 	background-color: rgba(0, 0, 0, 0.2);
 | |
| }
 | |
| .browse-widget .list .button.blank {
 | |
| 	opacity: 0;
 | |
| }
 | |
| .browse-widget .list .item {
 | |
| 	padding: 5px;
 | |
| 	padding-left: 15px;
 | |
| 	padding-right: 15px;
 | |
| 	cursor: pointer;
 | |
| 
 | |
| 	/* 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
 | |
| 	*/
 | |
| 	max-width: 80vh;
 | |
| 
 | |
| 	opacity: 0.7;
 | |
| 
 | |
| 	/*white-space: nowrap;*/
 | |
| 	overflow: hidden;
 | |
| }
 | |
| .browse-widget .list .item[count]:after {
 | |
| 	display: inline-block;
 | |
| 
 | |
| 	content: "(" attr(count) ")";
 | |
| 
 | |
| 	float: right;
 | |
| 	margin-right: 10px;
 | |
| 	margin-left: 5px;
 | |
| 
 | |
| 	opacity: 0.4;
 | |
| }
 | |
| /* highlight seach... */
 | |
| .browse-widget .list .item .text b {
 | |
| 	background-color: rgba(0, 0, 255, 0.5);
 | |
| }
 | |
| .browse-widget .list .item.strike-out .text {
 | |
| 	text-decoration: line-through;
 | |
| 	opacity: 0.3;
 | |
| }
 | |
| .browse-widget .list .item.highlighted .text {
 | |
| 	font-style: italic;
 | |
| 	font-weight: bold;
 | |
| }
 | |
| .browse-widget .list .item.highlighted .text:last-child:after {
 | |
| 	content: ' *';
 | |
| }
 | |
| .browse-widget:not(.flat) .list div:not(.not-traversable) .text:after {
 | |
| 	content: "/";
 | |
| }
 | |
| 
 | |
| .browse-widget .list .item.selected:focus,
 | |
| .browse-widget .list .item.selected :focus,
 | |
| .browse-widget:focus .list .item.selected,
 | |
| .browse-widget .path>.dir:hover,
 | |
| .browse-widget .list .item:hover {
 | |
| 	background: rgba(0, 0, 0, 0.05);
 | |
| 
 | |
| 	opacity: 0.9;
 | |
| }
 | |
| .browse-widget .list .item.selected {
 | |
| 	background: rgba(0, 0, 0, 0.08);
 | |
| }
 | |
| .browse-widget .list .item.selected:focus,
 | |
| .browse-widget .list .item.selected :focus,
 | |
| .browse-widget:focus .list .item.selected {
 | |
| 	background: rgba(0, 0, 0, 0.08);
 | |
| 	box-shadow: rgba(0, 0, 0, 0.2) 0.1em 0.1em 0.2em; 
 | |
| 
 | |
| 	opacity: 1;
 | |
| }
 | |
| 
 | |
| /* XXX need to make the next two different...  */
 | |
| .browse-widget .list .item.filtered-out {
 | |
| 	opacity: 0.5;
 | |
| }
 | |
| .browse-widget:not(.show-filtered-out) .list .item.filtered-out {
 | |
| 	display: none;	
 | |
| }
 | |
| .browse-widget .list .item.disabled {
 | |
| 	opacity: 0.3;
 | |
| }
 | |
| .browse-widget .list .item.empty-msg,
 | |
| .browse-widget .list .item.hidden {
 | |
| 	font-style: italic;
 | |
| }
 | |
| 
 | |
| 
 | |
| /* numbers... */
 | |
| /* XXX need to show this only on devices with keyboards... */
 | |
| .browse-widget .list .item:before {
 | |
| 	opacity: 0.3;
 | |
| 	float: left;
 | |
| 	font-size: small;
 | |
| }
 | |
| .browse-widget.filtering .list .item:before {
 | |
| 	display: none;
 | |
| }
 | |
| 
 | |
| .browse-widget .list .item:before {
 | |
| 	width: 12px;
 | |
| 	margin-left: -15px;
 | |
| }
 | |
| 
 | |
| /* XXX use :nth-match(..) ass soon as it gets enough support... */
 | |
| .browse-widget:not(.no-item-numbers) .list .item:not(.heading):before {
 | |
| 	content: attr(shortcut-number);
 | |
| }
 | |
| 
 | |
| /* XXX these are messed up with groups, use :nth-match(..) ass soon as it gets enough support... */
 | |
| /*
 | |
| .browse-widget:not(.no-item-numbers) .list .item:nth-of-type(1):before {
 | |
| 	content: "1";
 | |
| }
 | |
| .browse-widget:not(.no-item-numbers) .list .item:nth-of-type(2):before {
 | |
| 	content: "2";
 | |
| }
 | |
| .browse-widget:not(.no-item-numbers) .list .item:nth-of-type(3):before {
 | |
| 	content: "3";
 | |
| }
 | |
| .browse-widget:not(.no-item-numbers) .list .item:nth-of-type(4):before {
 | |
| 	content: "4";
 | |
| }
 | |
| .browse-widget:not(.no-item-numbers) .list .item:nth-of-type(5):before {
 | |
| 	content: "5";
 | |
| }
 | |
| .browse-widget:not(.no-item-numbers) .list .item:nth-of-type(6):before {
 | |
| 	content: "6";
 | |
| }
 | |
| .browse-widget:not(.no-item-numbers) .list .item:nth-of-type(7):before {
 | |
| 	content: "7";
 | |
| }
 | |
| .browse-widget:not(.no-item-numbers) .list .item:nth-of-type(8):before {
 | |
| 	content: "8";
 | |
| }
 | |
| .browse-widget:not(.no-item-numbers) .list .item:nth-of-type(9):before {
 | |
| 	content: "9";
 | |
| }
 | |
| .browse-widget:not(.no-item-numbers) .list .item:nth-of-type(10):before {
 | |
| 	content: "0";
 | |
| }
 | |
| */
 | |
| 
 | |
| .browse-widget .list hr.separator {
 | |
| 	opacity: 0.3;
 | |
| }
 | |
| 
 | |
| 
 | |
| /* hide first/last separators... */
 | |
| .browse-widget .list hr.separator:first-child,
 | |
| .browse-widget .list hr.separator:last-child {
 | |
| 	display: none;
 | |
| }
 | |
| 
 | |
| 
 | |
| /* Action... */
 | |
| .browse-widget .list .action {
 | |
| 	margin-top: 0.2em;
 | |
| 	border-top: solid 1px rgba(255,255,255, 0.2);
 | |
| }
 | |
| .browse-widget .list .action .text {
 | |
| 	font-style: italic;
 | |
| }
 | |
| /* do not show top border if after another action or separator... */
 | |
| .browse-widget .list .action:first-child,
 | |
| .browse-widget .list .action+.action,
 | |
| .browse-widget .list .heading+.action,
 | |
| .browse-widget .list .separator+.action {
 | |
| 	border-top: none;
 | |
| }
 | |
| 
 | |
| 
 | |
| /* Heading... */
 | |
| .browse-widget .list .heading {
 | |
| 	color: white;
 | |
| 	font-weight: bold;
 | |
| 	background: rgba(0, 0, 0, 0.5);
 | |
| }
 | |
| .browse-widget .list .heading:not(:first-child) {
 | |
| 	margin-top: 0.5em;
 | |
| }
 | |
| .browse-widget .list .heading span:first-child {
 | |
| 	margin-left: -0.5em;
 | |
| }
 | |
| /* doc */
 | |
| .browse-widget .list .heading[doc]:after {
 | |
| 	display: block;
 | |
| 	content: attr(doc);
 | |
| 
 | |
| 	white-space: pre;
 | |
| 	font-size: small;
 | |
| 	font-style: italic;
 | |
| 
 | |
| 	margin-top: 2em;
 | |
| 
 | |
| 	opacity: 0.5;
 | |
| }
 | |
| .browse-widget .list .item.heading:hover {
 | |
| 	background: rgba(0, 0, 0, 0.6);
 | |
| }
 | |
| .browse-widget .list .item.heading.selected {
 | |
| 	background: rgba(0, 0, 0, 0.7);
 | |
| }
 | |
| /* dark theme... */
 | |
| .dark .browse-widget .list .heading {
 | |
| 	background: rgba(255, 255, 255, 0.1);
 | |
| }
 | |
| 
 | |
| 
 | |
| /* Show item part on hover... */
 | |
| .browse-widget .list .item .show-on-hover {
 | |
| 	opacity: 0;
 | |
| }
 | |
| .browse-widget .list .item:hover .show-on-hover {
 | |
| 	opacity: inherit;
 | |
| }
 | |
| 
 | |
| /* Show item part on select... */
 | |
| .browse-widget .list .item .show-on-select {
 | |
| 	opacity: 0;
 | |
| }
 | |
| .browse-widget .list .selected .show-on-select {
 | |
| 	opacity: inherit;
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| /****************************************************** Cloud List ***/
 | |
| 
 | |
| .browse-widget.cloud-view .list .item {
 | |
| 	display: inline-block;
 | |
| 	border-radius: 10px;
 | |
| }
 | |
| 
 | |
| .browse-widget.cloud-view .list hr.separator {
 | |
| 	display: block;
 | |
| }
 | |
| 
 | |
| .browse-widget.cloud-view .list .item .text:first-child:before {
 | |
| 	content: "";
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 | |
| /******************************************************** Theaming ***/
 | |
| 
 | |
| /* Light */
 | |
| .light .browse-widget {
 | |
| 	background: white;
 | |
| 	color: rgba(0, 0, 0, 0.8);
 | |
| }
 | |
| .light .browse-widget .v-block:not(:first-of-type) {
 | |
| 	border-top: 1px solid rgba(0, 0, 0, 0.2);
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 | |
| /* Dark */
 | |
| .dark .browse-widget {
 | |
| 	background: #0a0a0a;
 | |
| 	color: rgba(255, 255, 255, 0.8);
 | |
| }
 | |
| /* XXX can we make this simpler??? */
 | |
| .dark .browse-widget .list div.selected:focus,
 | |
| .dark .browse-widget .list div.selected :focus,
 | |
| .dark .browse-widget:focus .list div.selected,
 | |
| .dark .browse-widget .path .dir:hover,
 | |
| .dark .browse-widget .list div:hover {
 | |
| 	background: rgba(255, 255, 255, 0.08);
 | |
| }
 | |
| .dark .browse-widget .list div.selected {
 | |
| 	background: rgba(255, 255, 255, 0.1);
 | |
| }
 | |
| .dark .browse-widget .list div.selected:focus,
 | |
| .dark .browse-widget .list div.selected :focus,
 | |
| .dark .browse-widget:focus .list div.selected {
 | |
| 	background: rgba(255, 255, 255, 0.1);
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 | |
| /*********************************************************************/
 |