Team:KAIST-Korea/css/fancybox/jquery fancybox

From 2011.igem.org

(Difference between revisions)
 
(3 intermediate revisions not shown)
Line 13: Line 13:
  * Dual licensed under the MIT and GPL licenses:
  * Dual licensed under the MIT and GPL licenses:
  *  http://www.opensource.org/licenses/mit-license.php
  *  http://www.opensource.org/licenses/mit-license.php
-
  *  http://www.gnu.org/licenses/gpl.html
+
  *  http://www.gnu.org/licenses/gpl.htmlbox
  */
  */
Line 36: Line 36:
width: 40px;
width: 40px;
height: 480px;
height: 480px;
-
background-image: url('fancybox.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png');
}
}
Line 100: Line 100:
width: 30px;
width: 30px;
height: 30px;
height: 30px;
-
background: transparent url('fancybox.png') -40px 0px;
+
background: transparent url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png') -40px 0px;
cursor: pointer;
cursor: pointer;
z-index: 1103;
z-index: 1103;
Line 164: Line 164:
#fancybox-left-ico {
#fancybox-left-ico {
-
background-image: url('fancybox.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png');
background-position: -40px -30px;
background-position: -40px -30px;
}
}
#fancybox-right-ico {
#fancybox-right-ico {
-
background-image: url('fancybox.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png');
background-position: -40px -60px;
background-position: -40px -60px;
}
}
Line 200: Line 200:
left: 0;
left: 0;
width: 100%;
width: 100%;
-
background-image: url('fancybox-x.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/9/92/Kaist2011_fancybox-x.png');
}
}
Line 206: Line 206:
top: -20px;
top: -20px;
right: -20px;
right: -20px;
-
background-image: url('fancybox.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png');
background-position: -40px -162px;
background-position: -40px -162px;
}
}
Line 214: Line 214:
right: -20px;
right: -20px;
height: 100%;
height: 100%;
-
background-image: url('fancybox-y.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/4/42/Kaist2011_fancybox-y.png');
background-position: -20px 0px;
background-position: -20px 0px;
}
}
Line 221: Line 221:
bottom: -20px;
bottom: -20px;
right: -20px;
right: -20px;
-
background-image: url('fancybox.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png');
background-position: -40px -182px;  
background-position: -40px -182px;  
}
}
Line 229: Line 229:
left: 0;
left: 0;
width: 100%;
width: 100%;
-
background-image: url('fancybox-x.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/9/92/Kaist2011_fancybox-x.png');
background-position: 0px -20px;
background-position: 0px -20px;
}
}
Line 236: Line 236:
bottom: -20px;
bottom: -20px;
left: -20px;
left: -20px;
-
background-image: url('fancybox.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png');
background-position: -40px -142px;
background-position: -40px -142px;
}
}
Line 244: Line 244:
left: -20px;
left: -20px;
height: 100%;
height: 100%;
-
background-image: url('fancybox-y.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/4/42/Kaist2011_fancybox-y.png');
}
}
Line 250: Line 250:
top: -20px;
top: -20px;
left: -20px;
left: -20px;
-
background-image: url('fancybox.png');
+
background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png');
background-position: -40px -122px;
background-position: -40px -122px;
}
}
Line 307: Line 307:
#fancybox-title-float-left {
#fancybox-title-float-left {
padding: 0 0 0 15px;
padding: 0 0 0 15px;
-
background: url('fancybox.png') -40px -90px no-repeat;
+
background: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png') -40px -90px no-repeat;
}
}
Line 315: Line 315:
font-weight: bold;
font-weight: bold;
padding: 0 0 3px 0;
padding: 0 0 3px 0;
-
background: url('fancybox-x.png') 0px -40px;
+
background: url('https://static.igem.org/mediawiki/2011/9/92/Kaist2011_fancybox-x.png') 0px -40px;
}
}
#fancybox-title-float-right {
#fancybox-title-float-right {
padding: 0 0 0 15px;
padding: 0 0 0 15px;
-
background: url('fancybox.png') -55px -90px no-repeat;
+
background: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png') -55px -90px no-repeat;
}
}
Line 333: Line 333:
.fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/f/f9/Kaist2011_fancy_title_left.png', sizingMethod='scale'); }
.fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/f/f9/Kaist2011_fancy_title_left.png', sizingMethod='scale'); }
.fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/c/c7/Kaist2011_fancy_title_main.png', sizingMethod='scale'); }
.fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/c/c7/Kaist2011_fancy_title_main.png', sizingMethod='scale'); }
-
.fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
+
.fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/a/ae/Kaist2011_fancy_title_right.png', sizingMethod='scale'); }
.fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
.fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {

Latest revision as of 02:02, 12 August 2011

/*

* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
* 
* Copyright (c) 2008 - 2010 Janis Skarnelis
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
* 
* Version: 1.3.4 (11/11/2010)
* Requires: jQuery v1.3+
*
* Dual licensed under the MIT and GPL licenses:
*   http://www.opensource.org/licenses/mit-license.php
*   http://www.gnu.org/licenses/gpl.htmlbox
*/
  1. fancybox-loading {

position: fixed; top: 50%; left: 50%; width: 40px; height: 40px; margin-top: -20px; margin-left: -20px; cursor: pointer; overflow: hidden; z-index: 1104; display: none; }

  1. fancybox-loading div {

position: absolute; top: 0; left: 0; width: 40px; height: 480px; background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png'); }

  1. fancybox-overlay {

position: absolute; top: 0; left: 0; width: 100%; z-index: 1100; display: none; }

  1. fancybox-tmp {

padding: 0; margin: 0; border: 0; overflow: auto; display: none; }

  1. fancybox-wrap {

position: absolute; top: 0; left: 0; padding: 20px; z-index: 1101; outline: none; display: none; }

  1. fancybox-outer {

position: relative; width: 100%; height: 100%; background: #fff; }

  1. fancybox-content {

width: 0; height: 0; padding: 0; outline: none; position: relative; overflow: hidden; z-index: 1102; border: 0px solid #fff; }

  1. fancybox-hide-sel-frame {

position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; z-index: 1101; }

  1. fancybox-close {

position: absolute; top: -15px; right: -15px; width: 30px; height: 30px; background: transparent url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png') -40px 0px; cursor: pointer; z-index: 1103; display: none; }

  1. fancybox-error {

color: #444; font: normal 12px/20px Arial; padding: 14px; margin: 0; }

  1. fancybox-img {

width: 100%; height: 100%; padding: 0; margin: 0; border: none; outline: none; line-height: 0; vertical-align: top; }

  1. fancybox-frame {

width: 100%; height: 100%; border: none; display: block; }

  1. fancybox-left, #fancybox-right {

position: absolute; bottom: 0px; height: 100%; width: 35%; cursor: pointer; outline: none; background: transparent url('https://static.igem.org/mediawiki/2011/c/c0/Blank.gif'); z-index: 1102; display: none; }

  1. fancybox-left {

left: 0px; }

  1. fancybox-right {

right: 0px; }

  1. fancybox-left-ico, #fancybox-right-ico {

position: absolute; top: 50%; left: -9999px; width: 30px; height: 30px; margin-top: -15px; cursor: pointer; z-index: 1102; display: block; }

  1. fancybox-left-ico {

background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png'); background-position: -40px -30px; }

  1. fancybox-right-ico {

background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png'); background-position: -40px -60px; }

  1. fancybox-left:hover, #fancybox-right:hover {

visibility: visible; /* IE6 */ }

  1. fancybox-left:hover span {

left: 20px; }

  1. fancybox-right:hover span {

left: auto; right: 20px; }

.fancybox-bg { position: absolute; padding: 0; margin: 0; border: 0; width: 20px; height: 20px; z-index: 1001; }

  1. fancybox-bg-n {

top: -20px; left: 0; width: 100%; background-image: url('https://static.igem.org/mediawiki/2011/9/92/Kaist2011_fancybox-x.png'); }

  1. fancybox-bg-ne {

top: -20px; right: -20px; background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png'); background-position: -40px -162px; }

  1. fancybox-bg-e {

top: 0; right: -20px; height: 100%; background-image: url('https://static.igem.org/mediawiki/2011/4/42/Kaist2011_fancybox-y.png'); background-position: -20px 0px; }

  1. fancybox-bg-se {

bottom: -20px; right: -20px; background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png'); background-position: -40px -182px; }

  1. fancybox-bg-s {

bottom: -20px; left: 0; width: 100%; background-image: url('https://static.igem.org/mediawiki/2011/9/92/Kaist2011_fancybox-x.png'); background-position: 0px -20px; }

  1. fancybox-bg-sw {

bottom: -20px; left: -20px; background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png'); background-position: -40px -142px; }

  1. fancybox-bg-w {

top: 0; left: -20px; height: 100%; background-image: url('https://static.igem.org/mediawiki/2011/4/42/Kaist2011_fancybox-y.png'); }

  1. fancybox-bg-nw {

top: -20px; left: -20px; background-image: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png'); background-position: -40px -122px; }

  1. fancybox-title {

font-family: Helvetica; font-size: 12px; z-index: 1102; }

.fancybox-title-inside { padding-bottom: 10px; text-align: center; color: #333; background: #fff; position: relative; }

.fancybox-title-outside { padding-top: 10px; color: #fff; }

.fancybox-title-over { position: absolute; bottom: 0; left: 0; color: #FFF; text-align: left; }

  1. fancybox-title-over {

padding: 10px; background-image: url('https://static.igem.org/mediawiki/2011/3/3f/Kaist2011_fancy_title_over.png'); display: block; }

.fancybox-title-float { position: absolute; left: 0; bottom: -20px; height: 32px; }

  1. fancybox-title-float-wrap {

border: none; border-collapse: collapse; width: auto; }

  1. fancybox-title-float-wrap td {

border: none; white-space: nowrap; }

  1. fancybox-title-float-left {

padding: 0 0 0 15px; background: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png') -40px -90px no-repeat; }

  1. fancybox-title-float-main {

color: #FFF; line-height: 29px; font-weight: bold; padding: 0 0 3px 0; background: url('https://static.igem.org/mediawiki/2011/9/92/Kaist2011_fancybox-x.png') 0px -40px; }

  1. fancybox-title-float-right {

padding: 0 0 0 15px; background: url('https://static.igem.org/mediawiki/2011/d/d5/Kaist2011_fancybox.png') -55px -90px no-repeat; }

/* IE6 */

.fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/c/cb/Kaist2011_fancy_close.png', sizingMethod='scale'); }

.fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/4/40/Kaist2011_fancy_nav_left.png', sizingMethod='scale'); } .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/2/2b/Kaist2011_fancy_nav_right.png', sizingMethod='scale'); }

.fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/3/3f/Kaist2011_fancy_title_over.png', sizingMethod='scale'); zoom: 1; } .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/f/f9/Kaist2011_fancy_title_left.png', sizingMethod='scale'); } .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/c/c7/Kaist2011_fancy_title_main.png', sizingMethod='scale'); } .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/a/ae/Kaist2011_fancy_title_right.png', sizingMethod='scale'); }

.fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame { height: expression(this.parentNode.clientHeight + "px"); }

  1. fancybox-loading.fancybox-ie6 {

position: absolute; margin-top: 0; top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'); }

  1. fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/4/40/Kaist2011_fancy_loading.png', sizingMethod='scale'); }

/* IE6, IE7, IE8 */

.fancybox-ie .fancybox-bg { background: transparent !important; }

.fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/e/ee/Kaist2011_fancy_shadow_n.png', sizingMethod='scale'); } .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/d/de/Kaist2011_fancy_shadow_ne.png', sizingMethod='scale'); } .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/c/ce/Kaist2011_fancy_shadow_e.png', sizingMethod='scale'); } .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/4/42/Kaist2011_fancy_shadow_se.png', sizingMethod='scale'); } .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/7/76/Kaist2011_fancy_shadow_s.png', sizingMethod='scale'); } .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/a/a1/Kaist2011_fancy_shadow_sw.png', sizingMethod='scale'); } .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/a/a9/Kaist2011_fancy_shadow_w.png', sizingMethod='scale'); } .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://static.igem.org/mediawiki/2011/7/70/Kaist2011_fancy_shadow_nw.png', sizingMethod='scale'); }