PageRenderTime 80ms CodeModel.GetById 8ms app.highlight 67ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/plugins/gallery-by-supsystic/src/GridGallery/Galleries/assets/css/photobox.css

https://gitlab.com/vovanduc/dainghia
CSS | 175 lines | 134 code | 30 blank | 11 comment | 0 complexity | 3c020e6dd686d963850f41644fd05fa5 MD5 | raw file
  1#pbOverlay.show{ opacity:1; pointer-events:auto; }
  2#pbOverlay{
  3	opacity:0; overflow:hidden; width:100%; height:100%; position:fixed; z-index:9999; left:0; top:0; text-align:center; pointer-events:none;
  4	-moz-user-select:none;
  5	background:rgba(0,0,0,0.90);
  6	// background:radial-gradient(rgba(0,0,0,.6) 0%, rgba(0,0,0,.9) 100%);
  7	-webkit-transform:translate3d(0px, 0px, 0px);
  8	-ms-transition:opacity 300ms ease;
  9	transition:opacity 300ms ease;
 10}
 11#pbOverlay.msie{ background-color:rgba(0,0,0,.6); }
 12.msie.pbLoading .pbWrapper{ background:url('../images/loading.gif') no-repeat center center; }
 13
 14@keyframes pbLoaderFrames{ 50%{ height:5px; } }
 15@-webkit-keyframes pbLoaderFrames{ 50%{ height:5px; } }
 16
 17.pbLoader{ display:none; width:100px; height:100px; position:absolute; z-index:999; top:0; left:0; right:0; bottom:0; margin:auto; text-align:center; border-radius:100%; box-shadow:15px 32px 60px -20px #FFF inset, 1px 1px 3px 1px #FFF inset, 0 0 20px; transition:0.3s; }
 18.thumbs .pbLoader{ -webkit-transform:translateY(-50px); transform:translateY(-50px); }
 19.pbLoading:not(.msie):not(.error) .pbLoader{ display:block; }
 20	.pbLoader b{ display:inline-block; vertical-align:middle; margin:0 2px; width:8px; height:60px; border-radius:5px; background:rgba(255,255,255,0.8); box-shadow:0 0 10px rgba(0,0,0,0.5); -webkit-animation:.9s pbLoaderFrames infinite linear; animation:.9s pbLoaderFrames infinite linear; }
 21	.pbLoader b:nth-child(2){ -webkit-animation-delay:.3s; animation-delay:.3s; }
 22	.pbLoader b:nth-child(3){ -webkit-animation-delay:.6s; animation-delay:.6s; }
 23
 24.mobile.pbLoading .pbLoader{ transform:none; transition:0s; }
 25
 26.pbWrapper:after,
 27#pbCaption .pbThumbs ul:after,
 28#pbOverlay .prevNext:after,
 29#pbOverlay .pbLoader:before{ content:""; display:inline-block; height:100%; margin-right:-0.25em; vertical-align:middle; }
 30
 31/* Animation when image was not loaded */
 32@keyframes deadImage{ 50%{ text-shadow:0 0 25px rgba(255,255,255,.5); transform:scale(0.85); } }
 33@-webkit-keyframes deadImage{ 50%{ text-shadow:0 0 25px rgba(255,255,255,.5); -webkit-transform:scale(0.85); } }
 34
 35.pbWrapper{ -moz-box-sizing:border-box; box-sizing:border-box; transform:rotate(0deg); vertical-align:middle; height:100%; perspective:1200px; -webkit-perspective:1200px; position:relative; transition:0.2s; }
 36.video > .pbWrapper{ z-index:11; display:inline-block; }
 37	/*#pbOverlay.error .pbWrapper{ display:inline-block; width:100%; }*/
 38	.pbLoading .pbWrapper{ display:inline-block\9; width:100%; } /* ie8+9 hack */
 39	.pbWrapper:before{ content:'\2716'; color:transparent; text-shadow:0 2px 35px rgba(255,255,255,0); font-size:0; vertical-align:middle; cursor:default; transition:text-shadow .7s ease-out; }
 40	.error .pbWrapper:before{ font-size:22em; text-shadow:0 0 0 #FFF; -webkit-animation:2s 1s deadImage infinite linear; animation:2s 1s deadImage infinite linear; }
 41	.thumbs .pbWrapper{ padding:0; margin:0; }
 42	.error .pbWrapperr img{ width:0; }
 43
 44	.pbWrapper > div{ display:none; width:624px; height:351px; vertical-align:middle; border-radius:5px; background:rgba(0,0,0,0.5); }
 45	.video > .pbWrapper > div{ display:inline-block; }
 46	#pbOverlay iframe, #pbOverlay embed, #pbOverlay object{ display:block; width:100%; height:100%; opacity:1; transition:0.5s; }
 47	.pbWrapper .hide iframe{ opacity:0; }
 48
 49	.pbWrapper > div,
 50	.pbWrapper > img{
 51		-ms-transition:.3s .5s ease-out;
 52		transition:.8s .5s cubic-bezier(0.1, 0.87, 0.48, 1);
 53
 54		-webkit-transform:none;
 55		-ms-transform:none;
 56		transform:none;
 57
 58		-webkit-backface-visibility:hidden;
 59		box-shadow:0 0 20px #000;
 60	}
 61
 62	/* FOR MOBILE */
 63	.mobile.show .pbWrapper > div,
 64	.mobile.show .pbWrapper > img{
 65		transition:30ms;
 66	}
 67
 68
 69	.pbWrapper > *, .hide .pbWrapper > .prepare{ opacity:1; vertical-align:middle; transform:scale(0) rotateX(80deg); -webkit-transform:scale(0) rotateX(80deg); -ms-transform:scale(0) rotateX(80deg); border-radius:6px; border:none; max-height:95%; max-width:100%; }
 70	.on .pbWrapper > *{ transition-delay:0s; -ms-transition-delay:0s; }
 71	.pbWrapper .zoomable{ -ms-transition:0s; -webkit-transition:0s; transition:0s; position:relative; z-index:9; }
 72	.hide .pbWrapper > *{ -webkit-transform:scale(1.2); transform:scale(1.2); transform:none\9; opacity:0; -ms-transition:.4s ease-in; transition:.4s ease-in; }
 73
 74/*-- close button --*/
 75#pbCloseBtn, #pbAutoplayBtn{ position:absolute; top:-50px; right:-50px; z-index:999; display:block; padding:0 0 20px 20px; text-align:center; cursor:pointer; color:#FFF; transition:.3s .3s ease-out; }
 76.hide #pbCloseBtn{ top:-50px; right:-50px; }
 77.on #pbCloseBtn{ top:-2px; right:-2px; }
 78
 79#pbCloseBtn:before{ content:'\00D7'; font:bold 1em/1 arial; }
 80#pbCloseBtn:before, #pbAutoplayBtn:before{ display:inline-block; height:35px; width:35px; padding:8px 8px 12px 12px; font-size:2em; opacity:0.8; vertical-align:middle; background:rgba(255,255,255,0.2); border-radius:0 0 0 70px; transition:0.1s ease-out; }
 81#pbCloseBtn:hover:before{ padding:15px 10px 24px 24px; background:rgba(255,100,100,.4); }
 82
 83/*-- autoplay controller --*/
 84#pbAutoplayBtn{ display:none; right:auto; left:-50px; padding:0; width:50px; height:50px; font-size:13px; }
 85.hasAutoplay #pbAutoplayBtn{ display:block; }
 86#pbAutoplayBtn:hover{ width:60px; height:60px; }
 87.on #pbAutoplayBtn{ top:0px; left:0px; transition:.1s ease-out; }
 88	#pbAutoplayBtn:before{ content:'\2016'; width:100%; height:100%; border-radius:0 0 70px 0; font-weight:bold; padding:0; text-indent:-6px; line-height:1.6; }
 89	#pbAutoplayBtn:active:before{ text-shadow:0 0 3px #FFF, 0 0 6px #FFF; }
 90	#pbAutoplayBtn.play:before{ content:'\25BA'; }
 91
 92	#pbAutoplayBtn .pbProgress{ display:none\9; width:100%; height:100%; overflow:hidden; position:absolute; padding:6px; top:0; left:0; opacity:0.2; transform:rotateZ(0deg); -webkit-transform:rotateZ(0deg); -ms-transform:rotateZ(0deg); -webkit-transform-origin:0 0; -ms-transform-origin:0 0; transform-origin:0 0; -webkit-transition:0.3s; -ms-transition:0.3s; transition:0.3s; }
 93	.mobile #pbAutoplayBtn .pbProgress{ -webkit-transition:0s; -ms-transition:0s; transition:0s; }
 94	#pbAutoplayBtn.playing .pbProgress{ -webkit-transform:rotateZ(90deg); -ms-transform:rotateZ(90deg); transform:rotateZ(90deg); }
 95	#pbAutoplayBtn .pbProgress:before{ content:''; position:absolute; right:0; bottom:0; width:200%; height:200%; border-radius:50%; box-shadow:0 0 0 8px #FFF inset; }
 96
 97#pbCaption, .hide #pbCaption{ position:absolute; z-index:999; margin-bottom:5px; bottom:-120px; width:100%; overflow:hidden; transition:.4s; }
 98.show.on #pbCaption{ bottom:0; transition-delay:.5s; }
 99	#pbOverlay.thumbs #pbCaption label{ display:block; }
100	#pbCaption label{ display:none; position:relative; z-index:1; top:-5px; float:right; width:60px; margin-right:10px; color:#FFF; opacity:0.3; transition:0.2s; cursor:pointer; }
101	#pbCaption label:after{ content:'\2589'; text-align:right; letter-spacing:2px; text-shadow:-1em 0 0 rgba(255,255,255,0.5), 1em 0 0 rgba(255,255,255,0.5); }
102	#pbCaption label:hover{ opacity:1; }
103	#pbCaption .title, #pbCaption .counter{ display:inline-block; color:#FFF; margin:0 6px; }
104	#pbCaption .counter{ display:none; opacity:.55; }
105	.hasCounter #pbCaption .counter{ display:inline-block; }
106	.pbCaptionText{ transition:.3s; opacity:0.9; font-weight:bold; font-size:.9em; text-shadow:1px 1px 1px rgba(0,0,0,.5); padding-left:60px; } /* padding-left from <label> */
107	.pbCaptionText.change{ -webkit-transform:translateY(25px); transform:translateY(25px); opacity:0; }
108
109.mobile #pbCaption label{ display:none; z-index:-1; color:red; }
110.mobile .pbCaptionText{ padding:0; }
111
112/* hide thumbnails */
113#pbThumbsToggler:checked ~ #pbCaption .pbThumbs{ margin:0; }
114#pbThumbsToggler:checked ~ .pbWrapper{ margin-top:-50px; padding:50px 0; }
115
116.pbThumbs{ display:none; transition:0.35s; -webkit-overflow-scrolling:touch; }
117.thumbs .pbThumbs{ display:block; width:100%; padding:5px 0 2px; margin-bottom:-100px; overflow:hidden; }
118.mobile .pbThumbs{ overflow:auto; }
119.pbThumbs:hover{ clear:both; }
120	.pbThumbs ul{ display:inline-block; position:relative; list-style:none; height:80px; padding:0 5px; margin:0; white-space:pre; transition:.2s; }
121	.pbThumbs ul:after{ vertical-align:bottom; }
122		.pbThumbs li{ display:inline-block; vertical-align:bottom; height:70%; opacity:.6; text-align:center; position:relative; transition:.15s; }
123		.pbThumbs li.active{ height:100%; opacity:1; }
124		.pbThumbs li:hover{ height:100%; opacity:1; }
125		.pbThumbs li.video::before{ content:'\25BA'; color:#FFF; font-size:20px; height:20px; width:20px; line-height:0.9; position:absolute; bottom:4px; left:7px; background:rgba(0,0,0,0.4); box-shadow:0 0 0 3px rgba(0,0,0,0.4); border-radius:0 3px 0 0; pointer-events:none; }
126			.pbThumbs a{ height:100%; padding:0 2px; display:block; -moz-user-select:none; }
127			.pbThumbs li:hover a{  }
128				.pbThumbs img{ height:96%; min-height:95.9%; border:2px solid #FFF; max-width:none; border-radius:0; transition:0.15s; }
129				.pbThumbs li:hover img{ min-height:96%; } /* fix a bug in Chrome and Opera */
130				.pbThumbs li.fast a img{ transition:none; }
131				.pbThumbs li.active a img{ border-color:#D8FF16; min-height:96%; }
132
133#pbOverlay .prevNext{ display:none; background:rgba(0,0,0,0); position:absolute; z-index:10; height:100%; width:35%; padding:80px 0; opacity:0; box-sizing:border-box; -moz-box-sizing:border-box; top:0; transition:.2s ease-out; text-shadow:0 0 12px #000, 0 0 10px #FFF; user-select:none; cursor:pointer; }
134#pbOverlay.hasArrows .prevNext{ display:block; }
135#pbOverlay .prevNext.hide{ display:none; }
136#pbOverlay.on .prevNext:hover{ opacity:.5; }
137#pbOverlay.on .prevNext:active{ transition:80ms; opacity:1; text-shadow:0 0 16px #FFF, 0 0 10px #000; }
138	.prevNext b{ display:inline-block; vertical-align:middle; transition:.2s ease-in; }
139	.prevNext:hover b{ transition:.2s cubic-bezier(0.095, 0.870, 0.485, 0.985); }
140	#pbPrevBtn b{ transform:scale(.4) translateX(350px); -webkit-transform:scale(.4) translateX(350px); }
141	#pbNextBtn b{ transform:scale(.4) translateX(-350px); -webkit-transform:scale(.4) translateX(-350px); }
142	/* */
143	#pbPrevBtn b:before, #pbNextBtn b:after{ display:inline; line-height:.3; font-size:18em; font-weight:normal; color:#FFF; font-family:Arial; }
144
145	#pbPrevBtn b:before{ content:'\2039'; }
146	#pbNextBtn b:after{ content:'\203A'; }
147	/* */
148	.on #pbPrevBtn:hover b{ transform:scale(1) translateX(20px); -webkit-transform:scale(1) translateX(20px); }
149	.on #pbNextBtn:hover b{ transform:scale(1) translateX(-20px); -webkit-transform:scale(1) translateX(-20px); }
150
151.show #pbPrevBtn, #pbOverlay.show #pbNextBtn{  }
152.show #pbPrevBtn{ left:0; text-align:left; }
153.show #pbNextBtn{ right:0; text-align:right; }
154
155/*------- media queries (for small screens) -----------*/
156@media all and (max-width:700px){
157	.pbWrapper img, .hide .pbWrapper img.prepare{ max-height:100%; }
158
159	.thumbs .pbWrapper{ padding:0; margin:0; }
160	.pbThumbs{ margin-bottom:-60px; }
161	.pbThumbs.show{ margin:0; }
162
163	.pbThumbs ul{ height:50px; }
164		.pbThumbs li{ height:100%; opacity:1; }
165		.pbThumbs li img{ min-height:96.5%; }
166}
167
168#pbOverlay .imageWrap img, #pbOverlay.hide .imageWrap img.prepare{ transform:rotateX(90deg); -webkit-transform:rotateX(90deg); -ms-transform:rotateX(90deg); }
169#pbOverlay.hide .imageWrap img{ transform:rotateX(-90deg); -webkit-transform:rotateX(-90deg); transform:none\9; opacity:.6; }
170
171/* fix for Chrome */
172@media all and (max-width:710px){
173	.pbThumbs li.active a img{ min-height:96%; }
174}
175