Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added news/345.bugfix
Binary file not shown.
68 changes: 35 additions & 33 deletions src/plone/staticresources/static/plone-fullscreen/fullscreen.css
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@

.zoomable{
cursor: pointer;
}
.zoomable:fullscreen {
width: 100%;
display: grid;
grid-template-rows: auto;
}
.zoomable:fullscreen img {
margin: 0;
position: fixed;
top: 0;
width: 100%;
height: 100%;
min-width: 0;
max-width: none;
min-height: 0;
max-height: none;
box-sizing: border-box;
object-fit: contain;
transform: none;
}
.zoomable:fullscreen figcaption{
color: white;
width: 100%;
display: block;
position: fixed;
bottom: 0;
padding: 0.5em max(50% - 380px, 1em);
font-size: 1.2em;
text-align: center;
background-color: rgba(0, 0, 0, 0.377);
}
@media screen {
.zoomable{
cursor: pointer;
}
.zoomable:fullscreen {
width: 100%;
display: grid;
grid-template-rows: auto;
}
.zoomable:fullscreen img {
margin: 0;
position: fixed;
top: 0;
width: 100%;
height: 100%;
min-width: 0;
max-width: none;
min-height: 0;
max-height: none;
box-sizing: border-box;
object-fit: contain;
transform: none;
}
.zoomable:fullscreen figcaption{
color: white;
width: 100%;
display: block;
position: fixed;
bottom: 0;
padding: 0.5em max(50% - 380px, 1em);
font-size: 1.2em;
text-align: center;
background-color: rgba(0, 0, 0, 0.377);
}
}