Team:Edinburgh/defaultcss

From 2009.igem.org

(Difference between revisions)
(Undo revision 169849 by JRWK (Talk))
 
(7 intermediate revisions not shown)
Line 5: Line 5:
@charset "UTF-8";
@charset "UTF-8";
@import "https://2009.igem.org/Team:Edinburgh/helpercss?action=raw";
@import "https://2009.igem.org/Team:Edinburgh/helpercss?action=raw";
 +
/*------------------------------------------------------------------------------------------------------/
/*------------------------------------------------------------------------------------------------------/
-
@section Style Framework */
+
* @section Base Drop-Down Styling
 +
* @structure ul (unordered list)
 +
* ul li (list item)
 +
* ul li a (links)
 +
* *(.class|:hover)
 +
* @level sep ul
 +
  */
-
/* First-level expected directory tag - li */
+
/* ----- ALL LEVELS (incl. first) */
 +
 
 +
ul.dropdown {
 +
font: 12px Arial, Helvetica, sans-serif;
 +
}
ul.dropdown li {
ul.dropdown li {
-
padding: 0px;
+
padding: 7px 12px;
 +
background-color: #252833;
 +
color: #fff;
}
}
-
ul.dropdown *.dir {
+
ul.dropdown li.hover,
-
padding-right: 30px;
+
ul.dropdown li:hover {
-
background-image: none;
+
background-color: #252833;
-
background-position: 100% 50%;
+
-
background-repeat: no-repeat;
+
}
}
-
/* Non-first level */
+
ul.dropdown a:link,
-
ul.dropdown ul *.dir {
+
ul.dropdown a:visited { color: #fff; text-decoration: none; }
-
padding-right: 15px;
+
ul.dropdown a:hover { color: #fff; text-decoration: underline; }
-
background-image: url(images/nav-arrow-right.png);
+
ul.dropdown a:active { color: #fff; }
-
background-position: 100% 50%;
+
-
background-repeat: no-repeat;
+
-
}
+
-
ul.dropdown ul ul *.dir {
 
-
background-image: url(images/nav-arrow-right2.png);
 
-
}
 
 +
/* ----- END LEVEL */
-
/* Components override */
 
-
ul.dropdown-vertical *.dir {
+
/* ----- NON-FIRST LEVEL */
-
background-image: url(images/nav-arrow-right.png);
+
-
}
+
-
ul.dropdown-vertical-rtl *.dir {
+
ul.dropdown ul {
-
padding-right: 15px;
+
margin-left: -6px;
-
background-image: url(images/nav-arrow-left.png);
+
width: 170px;
-
background-position: 0 50%;
+
padding-bottom: 9px;
 +
background: url(https://static.igem.org/mediawiki/2009/d/d6/EdinburghDropdown_pane.png) 0 100% no-repeat;
 +
color: #000;
 +
font-size: 11px;
 +
font-weight: normal;
}
}
-
 
+
ul.dropdown ul li {
-
 
+
background-color: transparent;
-
/*------------------------------------------------------------------------------------------------------/
+
color: #000;
-
@section Base Drop-Down Styling  */
+
-
 
+
-
 
+
-
 
+
-
/* ALL LEVELS (incl. first) */
+
-
 
+
-
ul.dropdown {
+
-
font: bold 12px Arial, Helvetica, sans-serif;
+
-
}
+
-
 
+
-
ul.dropdown li {
+
-
background-color: #252833;
+
-
color: #fff;
+
}
}
-
ul.dropdown li.hover,
+
ul.dropdown ul li.hover,
-
ul.dropdown li:hover {
+
ul.dropdown ul li:hover {
 +
background-color: transparent;
}
}
-
/* Links */
+
ul.dropdown ul li.empty {
-
 
+
padding: 12px 12px 7px !important;
-
ul.dropdown a:link,
+
font-weight: bold;
-
ul.dropdown a:visited { color: #fff; text-decoration: none;}
+
-
ul.dropdown a:hover {color: #fff; text-decoration: underline;}
+
-
 
+
-
ul.dropdown ul a.dir:hover { /* proposal */
+
-
background-color: #4698ca;
+
-
background-image: url(images/comnav-arrowon.png);
+
-
color: #fff;
+
}
}
-
ul.dropdown a:active {
+
ul.dropdown ul a:link,
-
background: #058acf url(images/nav-sub-press.png) 0 0 repeat-x !important;
+
ul.dropdown ul a:visited { color: #000; }
-
color: #fff;
+
ul.dropdown ul a:hover { color: #000; text-decoration: none; }
-
}
+
ul.dropdown ul a:active { color: #000; }
 +
ul.dropdown ul ul {
 +
}
-
/* NON-FIRST LEVEL */
+
ul.dropdown ul ul li {}
-
ul.dropdown ul {
+
/* ----- END LEVEL */
-
left: auto;
+
-
right: 0;
+
-
width: 150px;
+
-
margin-top: -1px;
+
-
font: bold 11px/1em Tahoma, Geneva, Verdana, sans-serif;
+
-
}
+
-
ul.dropdown ul li {
 
-
background-color: #252833;
 
-
}
 
-
ul.dropdown ul ul {
 
-
top: 0;
 
-
right: auto;
 
-
left: 100%;
 
-
margin-top: 0;
 
-
border-top: none;
 
-
border-left: none;
 
-
font-weight: normal;
 
-
}
 
-
 
-
ul.dropdown ul ul li {
 
-
background-color: #252833;
 
-
}
 
-
 
-
ul.dropdown ul ul ul li {
 
-
background-color: #252833;
 
-
}
 
 +
/*------------------------------------------------------------------------------------------------------/
 +
* @section Support Class 'dir'
 +
* @level sep ul, .class
 +
*/
-
/* Mixed */
+
/* ----- ALL LEVELS (incl. first) */
-
ul.dropdown li a,
 
ul.dropdown *.dir {
ul.dropdown *.dir {
-
  border-style: solid;
+
  padding-right: 12px;
-
  border-width: 0px;
+
  background-image: none;
-
  border-color: #404040 #1a1a1a #1a1a1a #505050;
+
  background-position: 100% 50%;
 +
background-repeat: no-repeat;
}
}
-
ul.dropdown ul li a,
+
/* ----- END LEVEL */
-
ul.dropdown ul *.dir { border-color: #4a4a4a #242424 #242424; border-left: none; }
+
-
ul.dropdown ul ul li a,
 
-
ul.dropdown ul ul *.dir { border-color: #595959 #333 #333; }
 
-
ul.dropdown ul ul ul li a,
 
-
ul.dropdown ul ul ul *.dir { border-color: #767676 #404040 #404040; }
 
 +
/* Components override */
-
/* Custom elements */
+
ul.dropdown-horizontal ul *.dir {
 +
padding-right: 15px;
 +
background-image: url(images/nav-arrow-right.png);
 +
background-position: 100% 50%;
 +
background-repeat: no-repeat;
 +
}
-
#n-movies { width: 250px; text-align: center; }
+
ul.dropdown-vertical *.dir {
-
#n-movies ul { right: auto; left: 0; width: 249px; text-align: left; }
+
background-image: url(images/nav-arrow-right.png);
-
#n-movies ul ul { left: 249px; width: 150px; }
+
}
-
#n-movies ul a { width: 232px; }
+
-
#n-movies ul a.dir { width: 210px; }
+
-
#n-movies ul ul a { width: 133px; }
+
-
#n-movies ul ul a.dir { width: 111px; }
+
-
#n-movies ul ul ul { left: 100%; }
+
 +
ul.dropdown-vertical-rtl *.dir {
 +
padding-right: 15px;
 +
background-image: url(images/nav-arrow-left.png);
 +
background-position: 0 50%;
 +
}
</style>
</style>
</html>
</html>

Latest revision as of 12:51, 16 July 2010