.liebs-picker-modal { position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; z-index: 10000; color: #fff; background-color: rgba(0, 0, 0, 0.9); padding: 20px; display: flex; flex-flow: column nowrap; } .liebs-picker-modal:focus { outline: none; } .liebs-picker-modal header { width: 100%; margin-bottom: 20px; display: flex; flex-flow: row wrap; align-items: center; gap: 10px 40px; } .liebs-picker-modal .spacer { flex-grow: 1; } .liebs-picker-modal h1 { font-size: 16px; flex-grow: 0; } liebs-picker-zoom-modal h1 + span { padding-left: 20px; font-size: 16px; color: #999; flex-grow: 1; } .liebs-picker-modal header button { min-width: 100px; max-width: 180px; height: 36px; } .liebs-picker-modal header .toggle-switch { height: 36px; display: flex; align-items: center; } .liebs-picker-modal header .toggle-switch label { margin-left:5px } .liebs-picker-modal header button:disabled { opacity: var(--p-disabled-opacity); cursor: not-allowed; } .liebs-picker-modal content { width: 100%; max-width: 100%; height: 100%; max-height: 100%; overflow: hidden; display: flex; justify-content: center; align-items: center; } .liebs-picker-modal.first-layout content { opacity: 0; } liebs-picker-grid-modal .image-list { max-width: 100%; max-height: 100%; overflow: hidden; display: grid; justify-content: space-evenly; align-items: center; } liebs-picker-zoom-modal header .first-button { width: 40px; } liebs-picker-zoom-modal header .last-button { width: 40px; } liebs-picker-zoom-modal header .prev-button { transform: scale(-1, 1) } liebs-picker-image { position: relative; display: block; width: 100%; height: 100%; cursor: pointer; } liebs-picker-image img { display: block; width: 100%; height: 100%; object-fit: contain; border: 2px solid transparent; border-radius: 4px; } liebs-picker-image .overlay { position: absolute; top: 2px; left: 2px; right: 2px; bottom: 2px; border-radius: 4px; pointer-events: none; } liebs-picker-image:focus { outline: none; } liebs-picker-image:focus .overlay { border: 2px solid #0cf; } liebs-picker-image:hover .overlay { box-shadow: inset 0 0 20px 4px #fff; } liebs-picker-image[data-selected="yes"] .overlay { box-shadow: inset 0 0 20px 4px #090; } liebs-picker-image[data-selected="yes"]:hover .overlay { box-shadow: inset 0 0 20px 4px #0F0; } liebs-picker-image[data-unwanted="yes"] img { filter: grayscale(1) brightness(0.1); } liebs-picker-image[data-unwanted="yes"]:hover .overlay { box-shadow: none !important; } liebs-picker-image .actions { position: absolute; top: 10px; right: 10px; opacity: 0; transition: 1s opacity ease-out; color: #000; background-color: rgba(0, 0, 0, 0.2); border: none; border-radius: 4px; } liebs-picker-image[data-unwanted="yes"] .actions { color: #fff; background-color: rgba(255, 255, 255, 0.2); } liebs-picker-image .actions:hover { opacity: 0.8; transition-duration: 250ms; } liebs-picker-image .actions button { display: flex; justify-content: center; align-items: center; width: 42px; height: 38px; background: none; border: 2px solid transparent; border-radius: 4px; cursor: pointer; } .picker-locked liebs-picker-image .actions { display: none; } liebs-picker-bbox { position: absolute; top: 0px; left: 0px; bottom:100px; right: 100px; display: flex; justify-content: center; align-items: flex-start; color: #0F0; background-color: rgba(0,128,0,0.2); border-radius: 8px; border: 2px solid #008000; text-align: center; pointer-events: all; user-select: none; } liebs-picker-bbox:hover { background-color: rgba(128,255,128,0.3); } liebs-picker-image[data-unwanted="yes"] liebs-picker-bbox { opacity: 0.1 } liebs-picker-bbox > .label { position: absolute; bottom: 4px; white-space: nowrap; background-color: rgba(0,128,0,0.8); } .liebs-picker-modal:not(.segs-controls) .segs-control { display: none; } .liebs-picker-modal .hide-segments liebs-picker-bbox-overlay { display: none; } /* CSS switch by TimTrayler. https://uiverse.io/TimTrayler/quiet-swan-35 */ .liebs-picker-modal .switch { --secondary-container: #3a4b39; --primary: #84da89; font-size: 17px; position: relative; display: inline-block; width: 3.7em; height: 1.8em; } .liebs-picker-modal .switch input { display: none; opacity: 0; width: 0; height: 0; } .liebs-picker-modal .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #313033; transition: .2s; border-radius: 30px; } .liebs-picker-modal .slider:before { position: absolute; content: ""; height: 1.4em; width: 1.4em; border-radius: 20px; left: 0.2em; bottom: 0.2em; background-color: #aeaaae; transition: .4s; } .liebs-picker-modal input:checked + .slider::before { background-color: var(--primary); } .liebs-picker-modal input:checked + .slider { background-color: var(--secondary-container); } .liebs-picker-modal input:focus + .slider { box-shadow: 0 0 1px var(--secondary-container); } .liebs-picker-modal input:checked + .slider:before { transform: translateX(1.9em); }