Team:TU-Delft/Templates/Style
From 2013.igem.org
(Difference between revisions)
(804 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
- | <style> | + | <style type="text/css"> |
+ | @charset "UTF-8"; | ||
- | + | #searchInput { | |
- | + | display:none; | |
- | + | } | |
- | + | #contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo { | |
display:none;} | display:none;} | ||
- | |||
- | |||
- | |||
- | |||
#top-section { | #top-section { | ||
- | border: | + | border: none; |
- | height: | + | height: 0px;} |
+ | #content { | ||
+ | border: none;} | ||
+ | #top-section{ | ||
+ | height: 20px !important; | ||
+ | border: none !important; | ||
+ | border-top: none; | ||
} | } | ||
#menubar { | #menubar { | ||
- | + | display: table-cell; | |
- | + | background: transparent; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | #menubar | + | |
- | + | #menubar.left-menu { | |
+ | width: 100%; | ||
} | } | ||
+ | |||
#menubar.right-menu { | #menubar.right-menu { | ||
- | + | text-align: right; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | #menubar | + | |
- | + | #menubar * { | |
- | + | color: transparent !important; | |
- | + | background: transparent !important; | |
- | + | ||
} | } | ||
- | + | ||
- | + | #top-section:hover #menubar * { | |
- | + | color: grey !important; | |
- | + | ||
- | color: | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | . | + | |
- | + | #top-section:hover #menubar.left-menu { | |
- | + | background: rgba(255, 255, 255, 0.75) !important; | |
- | + | ||
} | } | ||
- | + | ||
- | + | ||
- | + | html { | |
- | + | ||
+ | |||
+ | width:100%; | ||
+ | height:100%; | ||
+ | background:transparent; | ||
+ | border:none; | ||
+ | margin:0; | ||
+ | |||
} | } | ||
- | + | ||
- | font-size: | + | |
+ | body { | ||
+ | width:100%; | ||
+ | height:100%; | ||
+ | background:url("https://static.igem.org/mediawiki/2013/3/32/BackroundDelft.jpg"); | ||
+ | background-repeat:no-repeat; | ||
+ | background-size: 100% 100%; | ||
+ | background-size: auto, cover; | ||
+ | background-position:absolute; | ||
+ | border:none; | ||
+ | padding-top:20px; | ||
+ | padding-right:0px; | ||
+ | padding-bottom:20px; | ||
+ | padding-left:0px; | ||
+ | font-family: "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif; | ||
+ | font-size: small; | ||
+ | z-index:800; | ||
} | } | ||
- | + | #contentbox { | |
- | margin: | + | width: 85%; |
+ | position: relative; | ||
+ | background:white; | ||
+ | width:850px; | ||
+ | margin: -10px auto 0 auto; | ||
+ | padding:20px 50px 50px 25px; | ||
+ | |||
+ | text-decoration:none; | ||
+ | border:none; | ||
+ | z-index:800; | ||
} | } | ||
- | + | ||
- | + | #contentboxnew { | |
- | + | ||
- | margin: | + | background:white; |
- | + | width:800px; | |
- | + | margin: -10px auto 0 auto; | |
- | + | padding:20px 50px 50px 50px; | |
- | + | float: left; | |
+ | text-decoration:none; | ||
+ | border:none; | ||
+ | z-index:800; | ||
} | } | ||
- | # | + | |
- | background | + | #contentboxnew1 { |
- | width: | + | |
- | + | background:white; | |
- | + | width:800px; | |
- | + | margin: -10px auto 0 auto; | |
- | + | padding:20px 50px 50px 50px; | |
- | + | float: left; | |
- | + | text-decoration:none; | |
- | + | border:none; | |
- | + | z-index:800; | |
} | } | ||
- | # | + | |
- | + | table#tbtext | |
+ | { | ||
+ | width:400px; | ||
+ | font-weight:400; | ||
+ | font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; | ||
+ | font-size: 10px; | ||
+ | text-align: left; | ||
+ | padding-left: 3px; | ||
+ | text-align: justify; | ||
+ | } | ||
+ | |||
+ | |||
+ | #frog { | ||
+ | position:absolute; | ||
+ | top:350px; left:-260px; | ||
} | } | ||
- | # | + | |
- | + | #logo { | |
- | + | position:absolute; | |
- | + | top:20px; left:-150px; | |
} | } | ||
- | #header | + | |
- | + | /* HERE CHANGE THE HEADER */ | |
- | + | ||
+ | #header{ | ||
+ | background:url("https://static.igem.org/mediawiki/2013/9/97/Horizontal-banner-2.jpg"); | ||
+ | background-repeat:no-repeat; | ||
+ | background-position: left bottom; | ||
+ | |||
+ | background-size: 100% 100%; | ||
+ | box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); | ||
+ | -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* for the Safari browser */ | ||
+ | width: 100%; | ||
+ | height: 150px; | ||
+ | /*border-top: 1px solid #660000; | ||
+ | border-bottom: 1px solid #660000;*/ | ||
} | } | ||
- | # | + | |
- | + | #fb-like-box { | |
- | + | position:absolute; | |
- | + | top:160px; right:-265px; | |
- | + | ||
} | } | ||
- | # | + | |
- | + | #counter { /* Add it with zero botom and zero left in order to fix it later */ | |
- | + | position:absolute; | |
- | + | top:800px; right:-227px; | |
+ | |||
+ | } | ||
+ | #counter2{ | ||
+ | position:absolute; | ||
+ | top:800px; right:-187px; | ||
} | } | ||
- | # | + | |
- | + | ||
- | + | #menu, #menu ul { | |
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | list-style: none; | ||
+ | |||
} | } | ||
- | # | + | |
- | top: | + | #menu { |
- | + | width: 100%; | |
- | + | padding-top:6px; | |
- | + | padding-bottom:6px; | |
+ | border: 1px solid #222; | ||
+ | background-color: #111; | ||
+ | background-image: linear-gradient(#444, #111); | ||
+ | border-radius: 6px; | ||
+ | box-shadow: 0 1px 1px #777; | ||
+ | margin-top: 0px; | ||
+ | margin-right:0px; | ||
} | } | ||
- | # | + | #menu:before, |
- | + | #menu:after { | |
- | + | content: ""; | |
+ | display: table; | ||
} | } | ||
- | + | ||
- | # | + | #menu:after { |
- | + | clear: both; | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | ||
- | + | #menu { | |
+ | zoom:1; | ||
} | } | ||
- | + | #menu li { | |
- | + | float: left; | |
- | + | border-right: 1px solid #222; | |
- | + | box-shadow: 1px 0 0 #444; | |
+ | position: relative; | ||
+ | |||
} | } | ||
- | + | #menu a { | |
- | color:# | + | |
- | + | padding-top:10px; | |
- | text- | + | padding-bottom:10px; |
- | + | padding-right:12px; | |
+ | padding-left:12px; | ||
+ | width:100%; | ||
+ | /*float: left;*/ | ||
+ | width: 100px; | ||
+ | |||
+ | color: #999; | ||
+ | text-transform: uppercase; | ||
+ | font: bold 11px Arial, Helvetica; | ||
+ | text-decoration: none; | ||
+ | text-shadow: 0 1px 0 #000; | ||
} | } | ||
- | + | ||
- | + | #menu li:hover > a { | |
- | + | background-color: #0186ba; | |
- | + | background-image: linear-gradient(#04acec, #0186ba); | |
- | + | color: #fafafa; | |
- | + | ||
} | } | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | *html #menu li a:hover { /* IE6 only */ | |
+ | |||
+ | color: #fafafa; | ||
} | } | ||
- | + | </style> | |
- | + | <style> | |
- | + | #menu ul { | |
- | border- | + | margin: 20px 0 0 0; |
+ | _margin: 0; /*IE6 only*/ | ||
+ | opacity: 0; | ||
+ | visibility: hidden; | ||
+ | position: absolute; | ||
+ | top: 28px; | ||
+ | left: 0; | ||
+ | z-index: 1; | ||
+ | background: #444; | ||
+ | background: linear-gradient(#444, #111); | ||
+ | box-shadow: 0 -1px 0 rgba(255,255,255,.3); | ||
+ | border-radius: 4px; | ||
+ | transition: all .10s ease-in-out; | ||
+ | |||
} | } | ||
- | + | ||
- | + | ||
- | + | #menu li:hover > ul { | |
- | + | opacity: 1; | |
- | + | visibility: visible; | |
+ | margin: 0; | ||
} | } | ||
- | + | ||
- | + | #menu ul ul { | |
- | + | top: 0; | |
- | + | left: 150px; | |
- | + | margin: 0 0 0 20px; | |
- | margin | + | _margin: 0; /*IE6 only*/ |
- | + | box-shadow: -1px 0 0 rgba(255,255,255,.3); | |
- | + | ||
} | } | ||
- | # | + | |
- | + | #menu ul li { | |
- | + | float: none; | |
- | + | display: block; | |
+ | border: 0; | ||
+ | _line-height: 0; /*IE6 only*/ | ||
+ | box-shadow: 0 1px 0 #111, 0 2px 0 #666; | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
+ | #menu ul li:last-child { | ||
+ | box-shadow: none; | ||
} | } | ||
- | # | + | |
- | + | #menu ul a { | |
+ | |||
+ | padding: 10px; | ||
+ | width: 180px; | ||
+ | _height: 10px; /*IE6 only*/ | ||
+ | display: block; | ||
+ | white-space: nowrap; | ||
+ | float: none; | ||
+ | text-transform: none; | ||
} | } | ||
- | # | + | |
- | color:# | + | #menu ul a:hover { |
+ | background-color: #0186ba; | ||
+ | background-image: linear-gradient(#04acec, #0186ba); | ||
+ | |||
} | } | ||
- | + | ||
- | # | + | #content { |
- | + | background-color: white; | |
- | + | box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); | |
- | + | /* border: 1px solid black;*/ | |
- | + | margin-bottom: 10px; | |
+ | padding: 0 0 20px;*/ | ||
+ | width: 100%; | ||
} | } | ||
- | # | + | |
- | + | #content1 { | |
- | + | ||
- | + | position: absolute; | |
+ | top: 0px; | ||
+ | right: 0px; | ||
} | } | ||
+ | |||
+ | #box { | ||
+ | border: 1px solid #888; | ||
+ | padding: 0px; | ||
+ | margin-bottom: 10px; | ||
+ | margin-left:40px; | ||
+ | margin-right:40px; | ||
+ | margin: 0 auto; | ||
+ | -moz-border-radius: 10px; | ||
+ | border-radius: 10px; | ||
+ | -moz-box-shadow: 0 0 8px #888; | ||
+ | -webkit-box-shadow: 0 0 8px #888; | ||
+ | box-shadow: 0 0 8px #888; | ||
+ | width:50%; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
</style> | </style> | ||
</html> | </html> |
Latest revision as of 08:44, 2 October 2013