Skip to content

Commit 35c5bce

Browse files
committed
feat: better css, wip hide vertical scrollbar in fullscreen mode
1 parent f613370 commit 35c5bce

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

dist/slideshow-gallery.scss

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,13 @@
6565
/* Caption Container - Now between image and thumbnails */
6666
.slideshow-caption-container {
6767
width: 100%;
68-
//background: linear-gradient(to bottom, #222222, #6f6f6f); /* Gradient: Black to Dark Gray */
6968
background: #222;
70-
color: #ddd; /* Light gray text */
69+
color: #ddd;
7170
text-align: center;
7271
padding: 10px;
7372
font: 14px / 1.5 sans-serif;
74-
//opacity: 0.8; /* Adjust opacity */
7573
}
7674

77-
7875
.slideshow-caption-container .lightbox-title {
7976
color: #fff;
8077
}
@@ -88,6 +85,7 @@
8885
overflow-x: auto;
8986
overflow-y: hidden;
9087
background-color: #222;
88+
padding: 10px 0;
9189
}
9290

9391
.slideshow-thumbnail-column {
@@ -98,7 +96,7 @@
9896

9997
.slideshow-thumbnail-column img {
10098
width: 100%;
101-
height: auto;
99+
height: 100px;
102100
object-fit: cover;
103101
opacity: 0.6;
104102
transition: opacity 0.3s;
@@ -108,19 +106,21 @@
108106
.slideshow-thumbnail-column img.active,
109107
.slideshow-thumbnail-column img:hover {
110108
opacity: 1;
109+
outline: 2px solid white;
111110
}
112111

113112
/* Fullscreen Mode */
114113
.slideshow-gallery.fullscreen {
115114
position: fixed;
116115
top: 0;
117116
left: 0;
118-
width: 100%;
119-
height: 100%;
117+
// width: 100vw;
118+
height: 100vh;
120119
z-index: 9999;
121120
background-color: black;
122121
display: flex;
123122
flex-direction: column;
123+
overflow: hidden;
124124
}
125125

126126
.slideshow-gallery.fullscreen .lightbox-current-index {
@@ -131,14 +131,18 @@
131131

132132
.slideshow-gallery.fullscreen .lightbox-viewport {
133133
flex-grow: 1;
134-
min-height: 0; /* Allow shrinking */
134+
min-height: 0;
135135
}
136136

137137
.slideshow-gallery.fullscreen .slideshow-lightbox-container {
138138
flex-grow: 1;
139139
overflow: hidden;
140140
}
141141

142+
.slideshow-gallery.fullscreen .slideshow-thumbnail-row {
143+
padding: 15px 0;
144+
}
145+
142146
/* Navigation Buttons */
143147
.slideshow-prev-button, .slideshow-next-button, .slideshow-fullscreen-button {
144148
position: absolute;
@@ -183,4 +187,4 @@ span.title-caption.additional-lines {
183187
font-weight: normal;
184188
font-size: 0.8em;
185189
opacity: 0.9;
186-
}
190+
}

0 commit comments

Comments
 (0)