145 lines
2.7 KiB
CSS
145 lines
2.7 KiB
CSS
liebs-picker-grid-modal,
|
|
liebs-picker-zoom-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-grid-modal:focus,
|
|
liebs-picker-zoom-modal:focus {
|
|
outline: none;
|
|
}
|
|
|
|
liebs-picker-grid-modal header,
|
|
liebs-picker-zoom-modal header {
|
|
width: 100%;
|
|
margin-bottom: 20px;
|
|
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
liebs-picker-grid-modal h1,
|
|
liebs-picker-zoom-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-zoom-modal header > div:last-child {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
}
|
|
|
|
liebs-picker-zoom-modal header > div:last-child > div:not(:last-child) {
|
|
margin-right: 40px;
|
|
}
|
|
|
|
liebs-picker-grid-modal header button,
|
|
liebs-picker-zoom-modal header button {
|
|
width: 100px;
|
|
height: 36px;
|
|
vertical-align: center;
|
|
}
|
|
|
|
liebs-picker-grid-modal header button:disabled,
|
|
liebs-picker-zoom-modal header button:disabled {
|
|
opacity: var(--p-disabled-opacity);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
liebs-picker-grid-modal content,
|
|
liebs-picker-zoom-modal content {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
height: 100%;
|
|
max-height: 100%;
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
liebs-picker-grid-modal.first-layout content,
|
|
liebs-picker-zoom-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-radius: 4px;
|
|
border: 2px solid transparent;
|
|
}
|
|
|
|
liebs-picker-image .overlay {
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
right: 2px;
|
|
bottom: 2px;
|
|
border-radius: 4px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
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;
|
|
}
|