Skip to content

Commit

Permalink
v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris-B committed Jun 19, 2020
1 parent 99c2e4c commit b512aa7
Show file tree
Hide file tree
Showing 7 changed files with 2,779 additions and 1,486 deletions.
191 changes: 152 additions & 39 deletions src/css/nanogallery2.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* CSS for nanogallery2 - www.nanogallery2.nanostudio.org */
/* CSS for nanogallery2 - https://nanogallery2.nanostudio.org */

/**************************************/
/* nanogallery2 - main container */
Expand All @@ -25,6 +25,9 @@
-webkit-touch-callout: none;
}

.nGY2_body_scrollbar {
overflow: hidden;
}

/*******************************************/
/* NGY2 ICON FONT */
Expand Down Expand Up @@ -154,7 +157,7 @@

.nGY2Navigationbar .nGY2NavigationbarItem {
margin: 5px 2px;
padding: 5px 8px;
padding: 8px 10px;
white-space: nowrap;
cursor: pointer;
display: inline-block;
Expand Down Expand Up @@ -469,6 +472,79 @@
-o-box-sizing: border-box;
}



/* spinner by https://codepen.io/fox_hover/pen/YZxGed */
.nGY2 .nGY2GThumbnailLoaderDisplayed {
visibility: visible;
opacity: 0.8;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto; /* never change this value */
zoom: 1;
user-drag: none;
user-select: none;
-moz-user-select: none;
-webkit-user-drag: none;
-webkit-user-select: none;
-ms-user-select: none;
width: 40px;
height: 40px;
}

.nGY2 .nGY2GThumbnailLoaderDisplayed:before { /* bigger circle */
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
content: "";
display: block;
position: absolute;
border-width: 7px;
border-style: solid;
border-radius: 50%;
width: 24px;
height: 24px;
border-bottom-color: #000;
border-right-color: #000;
border-top-color: #888;
border-left-color: #888;
animation: nGY2-thumbnail-spinner-rotate-animation 1s linear 0s infinite;
}

.nGY2 .nGY2GThumbnailLoaderDisplayed:after { /* smaller circle */
content: "";
display: block;
position: absolute;
border-width: 4px;
border-style: solid;
border-radius: 50%;
width: 16px;
height: 16px;
border-bottom-color: #111;
border-right-color: #111;
border-top-color: #666;
border-left-color: #666;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
animation: nGY2-thumbnail-spinner-anti-rotate-animation 0.80s linear 0s infinite;
}
@keyframes nGY2-thumbnail-spinner-rotate-animation {
0% { transform: rotate(0deg);}
100% { transform: rotate(360deg);}
}
@keyframes nGY2-thumbnail-spinner-anti-rotate-animation {
0% { transform: rotate(0deg); }
100% { transform: rotate(-360deg); }
}

/**************************************/
/* GALLERY BOTTOM */
/**************************************/
Expand Down Expand Up @@ -604,21 +680,26 @@
text-align: left;
top: 50%;
left: 50%;
width: 50%;
padding: 15px 30px;
/*max-width: 630px;
min-width: 320px;*/
height: auto;
width: 50%;
background: #fff;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transform: translateX(-50%) translateY(-50%);
-moz-transform: translateX(-50%) translateY(-50%);
-ms-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
}

@media screen and (max-width: 992px) {
.nGY2PopupContent,
.nGY2PopupContentCenter,
.nGY2PopupContentLeft,
.nGY2PopupContentRight {
width: 95%;
padding: 5px 10px;
}
}

.nGY2PopupContentCenter {
text-align: center;
}
Expand Down Expand Up @@ -647,12 +728,7 @@
cursor: pointer;
display:block;
}
@media only screen and (max-device-width : 480px) {
.nGY2PopupContent {
width: 85% !important;
padding: 5px 10px !important;
}
}


/**************************************/
/* INFO */
Expand Down Expand Up @@ -725,15 +801,8 @@
/* background:url('loading.gif') no-repeat center; */
min-width:40px;
min-height:40px;
/*display:block;*/
/*position:relative;*/
position:absolute;
/*height:100%;*/
clear:both;
/* padding-top:5px;
padding-left:5px;
padding-right:5px;
padding-bottom:5px; */
/*
cursor: -webkit-zoom-out;
cursor: -moz-zoom-out;
Expand All @@ -749,6 +818,7 @@
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
overflow: hidden;
}
.nGY2 .nGY2ViewerMediaPan{
transform-origin: 50% 50% 0;
Expand Down Expand Up @@ -793,13 +863,17 @@
-webkit-user-drag: none;
-webkit-user-select: none;
-ms-user-select: none;
pointer-events: none;
padding: 0px;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
}

.nGY2 iframe.nGY2ViewerMedia {
/* allow pointer events for medias displayed in an IFRAME */
pointer-events: auto;
}
/* spinner by https://codepen.io/fox_hover/pen/YZxGed */
.nGY2 .nGY2ViewerMediaLoaderDisplayed {
visibility: visible;
Expand Down Expand Up @@ -900,17 +974,14 @@
}

.nGY2 .nGY2ViewerAreaPrevious {
transform: scaleY(1.5);
color: #fff;
display: block;
position: absolute;
Text-Shadow: #000000 1px 0px 0px, #000000 1px 1px 0px, #000000 1px -1px 0px, #000000 -1px 1px 0px, #000000 -1px 0px 0px, #000000 -1px -1px 0px, #000000 0px 1px 0px, #000000 0px -1px 0px;
/*background: rgba(0,0,0,0.2);*/
font-size: 2em;
top: 50%;
/*height:20px;*/
/*width:20px;*/
padding: 10px 0px 10px 1px;
padding: 10px 0px 10px 5px;
margin-top: -25px;
left: 0px;
text-align: left;
Expand All @@ -929,20 +1000,22 @@
}
.nGY2 .nGY2ViewerAreaPrevious > i {
margin-left: 0px;
font-weight: bold !important;
font-size: 2em;
Text-Shadow: #000000 1px 0px 0px, #000000 1px 1px 0px, #000000 1px -1px 0px, #000000 -1px 1px 0px, #000000 -1px 0px 0px, #000000 -1px -1px 0px, #000000 0px 1px 0px, #000000 0px -1px 0px;
background: rgba(0,0,0,0.2);
margin:0px !important;
}

.nGY2 .nGY2ViewerAreaNext {
transform: scaleY(1.5);
/*transform: scaleY(1);*/
color: #fff;
display: block;
position: absolute;
Text-Shadow: #000000 1px 0px 0px, #000000 1px 1px 0px, #000000 1px -1px 0px, #000000 -1px 1px 0px, #000000 -1px 0px 0px, #000000 -1px -1px 0px, #000000 0px 1px 0px, #000000 0px -1px 0px;
/*background: rgba(0,0,0,0.2);*/
font-size: 2em;
top: 50%;
/*height:20px;*/
/*width:20px;*/
padding: 10px 1px 10px 0px;
padding: 10px 5px 10px 0px;
margin-top: -25px;
right: 0px;
text-align: right;
Expand All @@ -961,6 +1034,11 @@
}
.nGY2 .nGY2ViewerAreaNext > i {
margin-right: 0px;
font-weight: bold !important;
font-size: 2em;
Text-Shadow: #000000 1px 0px 0px, #000000 1px 1px 0px, #000000 1px -1px 0px, #000000 -1px 1px 0px, #000000 -1px 0px 0px, #000000 -1px -1px 0px, #000000 0px 1px 0px, #000000 0px -1px 0px;
background: rgba(0,0,0,0.2);
margin:0px !important;
}

.nGY2 .toolbarContainer {
Expand All @@ -987,10 +1065,11 @@
.nGY2 .nGY2ViewerToolsTopLeft {
cursor:pointer;
color: #ddd;
background: rgba(0,0,0,0.2);
/* background: rgba(0,0,0,0.2); */
left: 5px;
top: 5px;
position:absolute;
text-shadow: -1px -1px 0 #444, 1px -1px 0 #444, -1px 1px 0 #444, 1px 1px 0 #444;
/*Text-Shadow: #000000 1px 0px 0px, #000000 1px 1px 0px, #000000 1px -1px 0px, #000000 -1px 1px 0px, #000000 -1px 0px 0px, #000000 -1px -1px 0px, #000000 0px 1px 0px, #000000 0px -1px 0px;*/
opacity:1;
transition: all 0.2s ease;
Expand All @@ -1001,10 +1080,11 @@
.nGY2 .nGY2ViewerToolsTopRight {
cursor: pointer;
color: #ddd;
background: rgba(0,0,0,0.2);
/* background: rgba(0,0,0,0.2); */
right: 5px;
top: 5px;
position:absolute;
text-shadow: -1px -1px 0 #444, 1px -1px 0 #444, -1px 1px 0 #444, 1px 1px 0 #444;
/* Text-Shadow: #000000 1px 0px 0px, #000000 1px 1px 0px, #000000 1px -1px 0px, #000000 -1px 1px 0px, #000000 -1px 0px 0px, #000000 -1px -1px 0px, #000000 0px 1px 0px, #000000 0px -1px 0px;*/
opacity:1;
transition: all 0.2s ease;
Expand All @@ -1014,11 +1094,12 @@
}

.nGY2 .toolbar .ngbt {
font-size:1.5em;
font-size:1.2em;
display: table-cell;
cursor:pointer;
padding: 2px 5px;
padding: 2px 8px;
vertical-align:middle;

}

.nGY2 .ngy2viewerToolAction {
Expand All @@ -1030,7 +1111,7 @@

.nGY2 .toolbar .pageCounter{
display: table-cell;
font-size:1em;
font-size:1.2em;
margin:auto;
vertical-align:middle;
overflow: hidden;
Expand All @@ -1048,19 +1129,46 @@
}

.nGY2 .toolbar .label .title{
font-size:1em;
font-size:1.2em;
margin:auto;
vertical-align:middle;
overflow: hidden;
}
.nGY2 .toolbar .label .description{
font-size:.8em;
font-size:0.9em;
display:table-row;
vertical-align:middle;
overflow: hidden;
color:#aaa;
color:#eee;
}

.nGY2 .nGY2viewerGallery {
overflow: hidden;
position: fixed;
display: none; /* by default, no gallery on lightbox */
opacity: 0;
bottom: 5px;
}
.nGY2 .nGY2viewerGallery .nGY2VThumbnailContainer{
overflow: hidden;
display: inline-block;
position: absolute;
top: 0px;
}
.nGY2 .nGY2viewerGallery .nGY2VThumbnail {
top: 0px;
padding: 0px;
border:1px solid #888;
position: absolute;
opacity: 1;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
overflow: hidden;
}
.nGY2 .nGY2viewerGallery .activeVThumbnail {
border:2px solid #fff;
}



Expand Down Expand Up @@ -1177,4 +1285,9 @@
@keyframes nanoGalleryLBarAnim {
0% { left:10%; }
100%{ left:90%; }
}


.NGY2ThumbnailLightbox {
cursor: pointer;
}
Loading

0 comments on commit b512aa7

Please sign in to comment.