Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

2l 2

Manav Rathi30c4a72e698f
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.css
index 2d364493f2..39d499d60d 100644
--- a/web/apps/photos/src/styles/photoswipe.css
+++ b/web/apps/photos/src/styles/photoswipe.css
@@ -190,13 +190,13 @@
}
/*
- Style the custom video controls we provide.
+ Style the custom video controls we provide.
- The media-controller itself is center positioned (shrinking if needed) by
- PhotoSwipe using the width and height of the video that we provide to it.
+ The media-controller itself is center positioned (shrinking if needed) by
+ PhotoSwipe using the width and height of the video that we provide to it.
- The controls are absolutely position at the bottom of the screen instead of
- being attached to the video.
+ The controls are absolutely position at the bottom of the screen instead of
+ being attached to the video.
*/
.pswp-ente .pswp__media-controls {
position: absolute;
@@ -207,10 +207,12 @@
/* Similar to our other controls */
--media-icon-color: rgba(255 255 255 / 0.8);
--media-font-family: "Inter Variable", sans-serif;
+ --media-control-background: transparent;
+ --media-control-hover-background: rgba(255 255 255 / 0.12);
}
/*
- Stack controls rows vertically.
+ Stack controls rows vertically.
*/
.pswp-ente .pswp__media-controls > div {
display: flex;
@@ -223,16 +225,7 @@ media-control-bar:not([mediacontroller]) {
}
media-control-bar {
- padding-inline: 4px;
-}
-
-media-control-bar:not(:first-child) {
- /* Background color the padding around the controls. Color is same as the
- --media-secondary-color that (transitively) gets used as the default
- background for the media chrome controls. */
- background-color: rgba(20 20 30 / 0.7);
- /** Reset the default background since we now provide our own. */
- --media-control-background: transparent;
+ padding-inline: 12px;
}
media-control-bar:last-child {
@@ -249,6 +242,12 @@ media-text-display {
flex-grow: 1;
}
+media-time-range {
+ --media-primary-color: red;
+ --media-control-hover-background: transparent;
+ --media-control-padding: 0px;
+}
+
/*
Hide specific controls when the user's browser doesn't support the feature
they trigger.