Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move @media block #364

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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