Team:NRP-UEA-Norwich/Test/css

From 2013.igem.org

(Difference between revisions)
(Created page with "#cssmenu{ height:37px; display:block; padding:0; margin:20px auto; border:1px solid; border-radius:5px; } #cssmenu > ul {list-style:inside none; padding:0; margin:0;} #cssmenu...")
Line 1: Line 1:
-
#cssmenu{ height:37px; display:block; padding:0; margin:20px auto; border:1px solid; border-radius:5px; }
+
/**
-
#cssmenu > ul {list-style:inside none; padding:0; margin:0;}
+
* jQuery lightBox plugin
-
#cssmenu > ul > li {list-style:inside none; padding:0; margin:0; float:left; display:block; position:relative;}  
+
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
-
#cssmenu > ul > li > a{ outline:none; display:block; position:relative; padding:12px 20px; font:bold 13px/100% Arial, Helvetica, sans-serif; text-align:center; text-decoration:none; text-shadow:1px 1px 0 rgba(0,0,0, 0.4); }  
+
* and adapted to me for use like a plugin from jQuery.
-
#cssmenu > ul > li:first-child > a{border-radius:5px 0 0 5px;}  
+
* @name jquery-lightbox-0.5.css
-
#cssmenu > ul > li > a:after{ content:''; position:absolute; border-right:1px solid; top:-1px; bottom:-1px; right:-2px; z-index:99; }  
+
* @author Leandro Vieira Pinho - http://leandrovieira.com
-
#cssmenu ul li.has-sub:hover > a:after{top:0; bottom:0;}  
+
  * @version 0.5
-
#cssmenu > ul > li.has-sub > a:before{ content:''; position:absolute; top:18px; right:6px; border:5px solid transparent; border-top:5px solid #fff; }
+
* @date April 11, 2008
-
#cssmenu > ul > li.has-sub:hover > a:before{top:19px;}  
+
* @category jQuery plugin
-
#cssmenu ul li.has-sub:hover > a{ background:#3f3f3f; border-color:#3f3f3f; padding-bottom:13px; padding-top:13px; top:-1px; z-index:999; }  
+
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
-
#cssmenu ul li.has-sub:hover > ul, #cssmenu ul li.has-sub:hover > div{display:block;}  
+
* @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
-
#cssmenu ul li.has-sub > a:hover{background:#3f3f3f; border-color:#3f3f3f;}  
+
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
-
#cssmenu ul li > ul, #cssmenu ul li > div{ display:none; width:auto; position:absolute; top:38px; padding:10px 0; background:#3f3f3f; border-radius:0 0 5px 5px; z-index:999; }  
+
*/
-
#cssmenu ul li > ul{width:200px;}
+
#jquery-overlay {
-
#cssmenu ul li > ul li{display:block; list-style:inside none; padding:0; margin:0; position:relative;}  
+
position: absolute;
-
#cssmenu ul li > ul li a{ outline:none; display:block; position:relative; margin:0; padding:8px 20px; font:10pt Arial, Helvetica, sans-serif; color:#fff; text-decoration:none; text-shadow:1px 1px 0 rgba(0,0,0, 0.5); }
+
top: 0;
-
 
+
left: 0;
-
 
+
z-index: 90;
-
#cssmenu, #cssmenu > ul > li > ul > li a:hover{ background:#bf4143; background:-moz-linear-gradient(top,  #bf4143 0%, #a13742 100%); background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#bf4143), color-stop(100%,#a13742)); background:-webkit-linear-gradient(top,  #bf4143 0%,#a13742 100%); background:-o-linear-gradient(top,  #bf4143 0%,#a13742 100%); background:-ms-linear-gradient(top,  #bf4143 0%,#a13742 100%); background:linear-gradient(top,  #bf4143 0%,#a13742 100%); filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#bf4143', endColorstr='#a13742',GradientType=0 ); }  
+
width: 100%;
-
#cssmenu{border-color:#712730;}  
+
height: 500px;
-
#cssmenu > ul > li > a{border-right:1px solid #712730; color:#fff;}
+
}
-
#cssmenu > ul > li > a:after{border-color:#f0696c;}  
+
#jquery-lightbox {
-
#cssmenu > ul > li > a:hover{background:#8f2f34;}
+
position: absolute;
 +
top: 0;
 +
left: 0;
 +
width: 100%;
 +
z-index: 100;
 +
text-align: center;
 +
line-height: 0;
 +
}
 +
#jquery-lightbox a img { border: none; }
 +
#lightbox-container-image-box {
 +
position: relative;
 +
background-color: #fff;
 +
width: 250px;
 +
height: 250px;
 +
margin: 0 auto;
 +
}
 +
#lightbox-container-image { padding: 10px; }
 +
#lightbox-loading {
 +
position: absolute;
 +
top: 40%;
 +
left: 0%;
 +
height: 25%;
 +
width: 100%;
 +
text-align: center;
 +
line-height: 0;
 +
}
 +
#lightbox-nav {
 +
position: absolute;
 +
top: 0;
 +
left: 0;
 +
height: 100%;
 +
width: 100%;
 +
z-index: 10;
 +
}
 +
#lightbox-container-image-box > #lightbox-nav { left: 0; }
 +
#lightbox-nav a { outline: none;}
 +
#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
 +
width: 49%;
 +
height: 100%;
 +
zoom: 1;
 +
display: block;
 +
}
 +
#lightbox-nav-btnPrev {
 +
left: 0;  
 +
float: left;
 +
}
 +
#lightbox-nav-btnNext {  
 +
right: 0;  
 +
float: right;
 +
}
 +
#lightbox-container-image-data-box {
 +
font: 10px Verdana, Helvetica, sans-serif;
 +
background-color: #fff;
 +
margin: 0 auto;
 +
line-height: 1.4em;
 +
overflow: auto;
 +
width: 100%;
 +
padding: 0 10px 0;
 +
}
 +
#lightbox-container-image-data {
 +
padding: 0 10px;
 +
color: #666;  
 +
}
 +
#lightbox-container-image-data #lightbox-image-details {
 +
width: 70%;  
 +
float: left;  
 +
text-align: left;  
 +
}
 +
#lightbox-image-details-caption { font-weight: bold; }
 +
#lightbox-image-details-currentNumber {
 +
display: block;  
 +
clear: left;  
 +
padding-bottom: 1.0em;
 +
}
 +
#lightbox-secNav-btnClose {
 +
width: 66px;  
 +
float: right;
 +
padding-bottom: 0.7em;
 +
}

Revision as of 17:28, 10 July 2013

/**

* jQuery lightBox plugin
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
* and adapted to me for use like a plugin from jQuery.
* @name jquery-lightbox-0.5.css
* @author Leandro Vieira Pinho - http://leandrovieira.com
* @version 0.5
* @date April 11, 2008
* @category jQuery plugin
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
* @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
*/
  1. jquery-overlay {

position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; }

  1. jquery-lightbox {

position: absolute; top: 0; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0; }

  1. jquery-lightbox a img { border: none; }
  2. lightbox-container-image-box {

position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }

  1. lightbox-container-image { padding: 10px; }
  2. lightbox-loading {

position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }

  1. lightbox-nav {

position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }

  1. lightbox-container-image-box > #lightbox-nav { left: 0; }
  2. lightbox-nav a { outline: none;}
  3. lightbox-nav-btnPrev, #lightbox-nav-btnNext {

width: 49%; height: 100%; zoom: 1; display: block; }

  1. lightbox-nav-btnPrev {

left: 0; float: left; }

  1. lightbox-nav-btnNext {

right: 0; float: right; }

  1. lightbox-container-image-data-box {

font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100%; padding: 0 10px 0; }

  1. lightbox-container-image-data {

padding: 0 10px; color: #666; }

  1. lightbox-container-image-data #lightbox-image-details {

width: 70%; float: left; text-align: left; }

  1. lightbox-image-details-caption { font-weight: bold; }
  2. lightbox-image-details-currentNumber {

display: block; clear: left; padding-bottom: 1.0em; }

  1. lightbox-secNav-btnClose {

width: 66px; float: right; padding-bottom: 0.7em; }