refactor progress
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
}
|
||||
|
||||
.mediaContainer img,
|
||||
.mediaContainer video,
|
||||
.mediaContainer canvas,
|
||||
.mediaContainer picture,
|
||||
.mediaContainer svg {
|
||||
@@ -46,6 +45,14 @@
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.mediaContainer video {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.transformWrapper {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
@@ -82,15 +89,16 @@
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.controlButton:focus-visible {
|
||||
outline: 2px solid var(--brand-primary);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.controlButton:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
@media (pointer: coarse), (max-width: 767px) {
|
||||
.controlButton:active {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.controlButtonDefault {
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
@@ -196,7 +204,7 @@
|
||||
.controlsBox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.125rem;
|
||||
gap: 0.5rem;
|
||||
pointer-events: auto;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -245,6 +253,8 @@
|
||||
}
|
||||
|
||||
.modalContentInner {
|
||||
--media-content-inner-gap: 0.75rem;
|
||||
--media-content-inner-padding: var(--media-content-padding, 1rem);
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -253,15 +263,15 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
gap: 0.75rem;
|
||||
padding: var(--media-content-padding, 1rem);
|
||||
gap: var(--media-content-inner-gap);
|
||||
padding: var(--media-content-inner-padding);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.modalContentInner {
|
||||
padding: 0.5rem;
|
||||
gap: 0.5rem;
|
||||
--media-content-inner-gap: 0;
|
||||
--media-content-inner-padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -325,13 +335,38 @@
|
||||
.headerControls {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
gap: 0.375rem;
|
||||
gap: 0.75rem;
|
||||
margin-left: auto;
|
||||
flex-shrink: 0;
|
||||
pointer-events: none;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.headerControls {
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.mobileTopBarControls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.mobileTopBarControls .controlButton {
|
||||
pointer-events: auto;
|
||||
background: transparent;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.mobileTopBarControls .controlButton:hover {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.actionControlsBox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -349,7 +384,7 @@
|
||||
.closeControlBox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0.25rem 0.375rem;
|
||||
padding: 0.25rem;
|
||||
border-radius: var(--radius-lg);
|
||||
background-color: var(--background-textarea);
|
||||
border: 1px solid var(--background-modifier-accent);
|
||||
@@ -357,6 +392,7 @@
|
||||
pointer-events: auto;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
aspect-ratio: 1 / 1;
|
||||
}
|
||||
|
||||
.mediaArea {
|
||||
@@ -365,7 +401,10 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--media-content-padding, 1rem);
|
||||
padding-top: calc(var(--media-top-overlay-height, 48px) + var(--media-overlay-gap, 8px));
|
||||
padding-bottom: calc(var(--media-bottom-overlay-height, 48px) + var(--media-overlay-gap, 8px));
|
||||
padding-left: var(--media-side-overlay-width, 0px);
|
||||
padding-right: var(--media-side-overlay-width, 0px);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
@@ -378,16 +417,16 @@
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.mediaAreaZoomed {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.mediaArea {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.mediaAreaZoomed {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.desktopViewerContainer {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
@@ -446,7 +485,7 @@
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--media-content-padding, 1rem);
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@@ -458,9 +497,11 @@
|
||||
|
||||
.nonZoomContentInner {
|
||||
pointer-events: auto;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
@@ -487,21 +528,35 @@
|
||||
color: white;
|
||||
}
|
||||
|
||||
.thumbnailCarousel {
|
||||
.thumbnailCarouselWrapper {
|
||||
position: absolute;
|
||||
bottom: var(--media-content-padding, 1rem);
|
||||
bottom: calc(var(--media-content-padding, 1rem) * 0.65);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
padding: 0.25rem;
|
||||
border-radius: var(--radius-md);
|
||||
background-color: transparent;
|
||||
backdrop-filter: none;
|
||||
padding: 0.35rem 0.4rem;
|
||||
pointer-events: auto;
|
||||
max-width: min(960px, 94vw);
|
||||
overflow-x: auto;
|
||||
box-shadow: none;
|
||||
max-width: min(760px, 90vw);
|
||||
width: auto;
|
||||
overflow: hidden;
|
||||
background-clip: padding-box;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.thumbnailCarouselScroller {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.thumbnailCarousel {
|
||||
display: flex;
|
||||
width: auto;
|
||||
min-width: max-content;
|
||||
gap: 1px;
|
||||
padding: 0.125rem;
|
||||
margin: 0;
|
||||
border-radius: 0.5rem;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.thumbnailButton {
|
||||
@@ -509,38 +564,37 @@
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
border-radius: 0.5rem;
|
||||
border-radius: 0;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.thumbnailButton:focus-visible {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.thumbnailImageWrapper {
|
||||
position: relative;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 0.5rem;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 0;
|
||||
overflow: hidden;
|
||||
background-color: var(--background-primary);
|
||||
opacity: 0.7;
|
||||
background-color: var(--background-secondary);
|
||||
filter: grayscale(0.25) brightness(0.7);
|
||||
opacity: 0.55;
|
||||
transition:
|
||||
opacity 140ms ease,
|
||||
box-shadow 140ms ease;
|
||||
opacity 150ms ease,
|
||||
filter 150ms ease;
|
||||
}
|
||||
|
||||
.thumbnailButton:hover .thumbnailImageWrapper,
|
||||
.thumbnailButton:focus-visible .thumbnailImageWrapper {
|
||||
opacity: 1;
|
||||
box-shadow:
|
||||
0 0 0 2px var(--background-tertiary),
|
||||
0 10px 28px rgb(0 0 0 / 0.35);
|
||||
.thumbnailImageWrapperFirst {
|
||||
border-top-left-radius: 0.375rem;
|
||||
border-bottom-left-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.thumbnailImageWrapperLast {
|
||||
border-top-right-radius: 0.375rem;
|
||||
border-bottom-right-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.thumbnailButtonSelected .thumbnailImageWrapper {
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 0 2px var(--brand-primary);
|
||||
filter: none;
|
||||
}
|
||||
|
||||
.thumbnailImage {
|
||||
@@ -572,16 +626,82 @@
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.thumbnailBadge {
|
||||
.floatingNavButtonLeft,
|
||||
.floatingNavButtonRight {
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
bottom: 8px;
|
||||
padding: 2px 5px;
|
||||
border-radius: 9999px;
|
||||
background-color: rgb(0 0 0 / 0.65);
|
||||
color: white;
|
||||
font-size: 0.625rem;
|
||||
line-height: 0.875rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
z-index: 100;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.floatingNavButtonLeft {
|
||||
left: 12px;
|
||||
}
|
||||
|
||||
.floatingNavButtonRight {
|
||||
right: 12px;
|
||||
}
|
||||
|
||||
.floatingNavButton {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 9999px;
|
||||
background-color: var(--background-textarea);
|
||||
border: 1px solid var(--background-modifier-accent);
|
||||
box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background-color 150ms ease,
|
||||
color 150ms ease,
|
||||
transform 150ms ease,
|
||||
opacity 150ms ease;
|
||||
}
|
||||
|
||||
.floatingNavButton:hover {
|
||||
background-color: var(--background-secondary-alt);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.floatingNavButton:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.floatingNavButtonDisabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.floatingNavButtonDisabled:hover {
|
||||
background-color: var(--background-textarea);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.floatingNavButtonDisabled:active {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.klipyAttribution {
|
||||
position: absolute;
|
||||
bottom: var(--media-content-padding, 1rem);
|
||||
right: var(--media-content-padding, 1rem);
|
||||
z-index: 50;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: var(--radius-lg);
|
||||
background-color: var(--background-textarea);
|
||||
border: 1px solid var(--background-modifier-accent);
|
||||
box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.klipyAttribution svg {
|
||||
height: 16px;
|
||||
width: auto;
|
||||
color: var(--text-primary-muted);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user