-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e151c28
Showing
12 changed files
with
757 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# LeoMoon Lightbox | ||
## More Info / Download | ||
https://leomoon.com/downloads/web-apps/leomoon-lightbox/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" id="style-css" href="style.css" type="text/css" media="all" /> | ||
</head> | ||
<body> | ||
<h1>LeoMoon LightBox</h1> | ||
<p>Responsive CSS only minimal lightbox, to quickly preview article thumbnails.</p> | ||
<h2>Example with Links</h2> | ||
<p> | ||
<a href="#image1">Image 1</a> • | ||
<a href="#image2">Image 2</a> • | ||
<a href="#image3">Image 3</a> • | ||
<a href="#image4">Image 4</a> | ||
</p> | ||
<h2>Example with Thumbnails</h2> | ||
<p> | ||
<a href="#image1"><img src="img/image1_thumb.jpg" /></a> | ||
<a href="#image2"><img src="img/image2_thumb.jpg" /></a> | ||
<a href="#image3"><img src="img/image3_thumb.jpg" /></a> | ||
<a href="#image4"><img src="img/image4_thumb.jpg" /></a> | ||
</p> | ||
<!-- add the full size images --> | ||
<a href="#_" class="lmbox"> | ||
<div id="image1"><img src="img/image1.jpg"></div> | ||
<div id="image2"><img src="img/image2.jpg"></div> | ||
<div id="image3"><img src="img/image3.jpg"></div> | ||
<div id="image4"><img src="img/image4.jpg"></div> | ||
</a> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.lmbox div { | ||
visibility: hidden; | ||
position: fixed; | ||
z-index: 75; | ||
text-align: center; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.lmbox div:before { | ||
content: ''; | ||
position: fixed; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
z-index: 74; | ||
background-color: rgba(0, 0, 0, 0); | ||
transition: all 0.5s; | ||
} | ||
|
||
.lmbox div img { | ||
position: absolute; | ||
z-index: 77; | ||
max-width: 100%; | ||
max-height: 100%; | ||
margin-left: -9999px; | ||
opacity: 0; | ||
transition-property: opacity; | ||
transition-duration: 0.5s, 0.2s; | ||
transition-timing-function: ease-in-out, ease-out; | ||
} | ||
|
||
.lmbox div:target { | ||
visibility: visible; | ||
} | ||
|
||
.lmbox div:target:before { | ||
background-color: rgba(0, 0, 0, 0.9); | ||
} | ||
|
||
.lmbox div:target img { | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
margin-left: 0px; | ||
opacity: 1; | ||
} |