Skip to content
Open
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
27 changes: 13 additions & 14 deletions src/featherlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ html.with-featherlight {
white-space: normal;
}

/* handling phones and small screens */
@media only screen and (max-width: 1024px) {
.featherlight .featherlight-content {
/* dimensions: maximize lightbox width for small screens */
margin-left: 0;
margin-right: 0;
max-height: 98%;

padding: 10px 10px 0;
border-bottom: 10px solid transparent;
}
}

/* contains the content */
.featherlight .featherlight-inner {
/* make sure its visible */
Expand Down Expand Up @@ -118,7 +131,6 @@ html.with-featherlight {
width: 100%;
}


.featherlight-iframe .featherlight-content {
/* removed the border for image croping since iframe is edge to edge */
border-bottom: 0;
Expand All @@ -137,19 +149,6 @@ html.with-featherlight {
box-sizing: border-box;
}

/* handling phones and small screens */
@media only screen and (max-width: 1024px) {
.featherlight .featherlight-content {
/* dimensions: maximize lightbox with for small screens */
margin-left: 0;
margin-right: 0;
max-height: 98%;

padding: 10px 10px 0;
border-bottom: 10px solid transparent;
}
}

/* hide non featherlight items when printing */
@media print {
html.with-featherlight > * > :not(.featherlight) {
Expand Down