Difference between revisions of "Team:Stockholm/headertest"

(Created page with "<html> <head> <script src="https://2015.igem.org/Team:Stockholm/lightbox.min.js?action=raw&ctype=text/javascript"></script> <link rel="stylesheet" href="https://2015.igem.org/Te...")
 
 
(14 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
<head>
 
<head>
<script src="https://2015.igem.org/Team:Stockholm/lightbox.min.js?action=raw&ctype=text/javascript"></script>
 
<link rel="stylesheet" href="https://2015.igem.org/Team:stockholm/lightbox.min.css?action=raw&ctype=text/css" type="text/css">
 
</head>
 
  
<center><body class="homepage">
+
<style type="text/css">
<div id="page-wrapper">
+
  
<!-- Header -->
+
#contentSub, #footer-box, #catlinks, #search-controls,
<div id="header-wrapper">
+
#p-logo, .printfooter, .firstHeading, .visualClear {
<div id="header" class="container">
+
display: none;
 +
}
  
<!-- Nav -->
 
<nav id="nav">
 
  
<ul>
+
body {
<li><a class="icon-home" href="https://2015.igem.org/Team:Stockholm"><span>Home</span></a></li>
+
<li><a class="icon-users" href="https://2015.igem.org/Team:Stockholm/Team"><span>Team</span></a></li>
+
background-color: #ffffff;
<li><a href="https://2015.igem.org/Team:Stockholm/Description" class="icon-lab"><span>Project</span></a></li>
+
}
<li><a class="icon-clipboard" href="https://2015.igem.org/Team:Stockholm/Results"><span>Results</span></a></li>
+
<li><a class="icon-bubbles2" href="https://2015.igem.org/Team:Stockholm/ethics"><span>Practices</span></a></li>
+
<li><a class="icon-gift" href="https://2015.igem.org/Team:Stockholm/Attributions"><span>Attributions</span></a></li>
+
</ul>
+
  
</nav>
+
#globalWrapper, #content {
 +
min-width: 600px;
 +
width: 100%;
 +
height: 100%;
 +
border: 0px;
 +
background-color: transparent;
 +
margin: 0px;
 +
padding: 0px;
 +
font-size: 135%;
 +
margin: auto;
 +
}
  
</div>
+
@font-face {
</div>
+
font-family: 'icomoon';
</div>
+
src:url('https://static.igem.org/mediawiki/2015/d/d3/Sthlm_icomoon.eot');
 +
src:url('https://static.igem.org/mediawiki/2015/d/d3/Sthlm_icomoon.eot') format('embedded-opentype'),
 +
url('https://static.igem.org/mediawiki/2015/5/5b/Sthlm_icomoon.ttf') format('truetype'),
 +
url('https://static.igem.org/mediawiki/2015/f/fe/Sthlm_icomoon.woff') format('woff');
 +
 +
font-weight: normal;
 +
font-style: normal;
 +
}
  
</body>
+
[class^="icon-"], [class*=" icon-"] {
</html>
+
font-family: 'icomoon';
 +
speak: none;
 +
font-style: normal;
 +
font-weight: normal;
 +
font-variant: normal;
 +
text-transform: none;
 +
line-height: 1;
  
 +
/* Better Font Rendering =========== */
 +
-webkit-font-smoothing: antialiased;
 +
-moz-osx-font-smoothing: grayscale;
 +
}
  
<style type="text/css">
+
.icon-home:before {
 +
content: "\e600";
 +
}
 +
.icon-bubbles2:before {
 +
content: "\e601";
 +
}
 +
.icon-users:before {
 +
content: "\e602";
 +
}
 +
.icon-gift:before {
 +
content: "\e603";
 +
}
 +
.icon-lab:before {
 +
content: "\e604";
 +
}
 +
.icon-clipboard:before {
 +
content: "\e605";
 +
}
  
#contentSub, #footer-box, #catlinks, #search-controls,
 
#p-logo, .printfooter, .firstHeading, .visualClear {
 
display: none;
 
}
 
  
 +
#nav {
 +
cursor: default;
 +
}
  
body {
+
#nav > ul > li > a {
+
border: 0;
background-color: #ffffff;
+
text-decoration: none;
}
+
text-transform: uppercase;
 +
font-weight: 400;
 +
color: #777;
 +
outline: 0;
 +
}
  
#globalWrapper, #content {
+
#nav > ul > li > a:before {
min-width: 600px;
+
display: inline-block;
width: 100%;
+
background: #878787;
height: 100%;
+
color: #e4e4e4;
border: 0px;
+
width: 1.65em;
background-color: transparent;
+
height: 1.65em;
margin: 0px;
+
border-radius: 1.65em;
padding: 0px;
+
line-height: 1.65em;
font-size: 135%;
+
text-align: center;
}
+
box-shadow: 0.125em 0.175em 0 0 rgba(0, 0, 0, 0.125);
 +
margin-right: 0.75em;
 +
-moz-transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
 +
-webkit-transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
 +
-o-transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
 +
-ms-transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
 +
transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
 +
}
  
@font-face {
+
#nav > ul > li > a > span {
font-family: 'icomoon';
+
-moz-transition: color 0.25s ease-in-out;
src:url('https://static.igem.org/mediawiki/2015/d/d3/Sthlm_icomoon.eot');
+
-webkit-transition: color 0.25s ease-in-out;
src:url('https://static.igem.org/mediawiki/2015/d/d3/Sthlm_icomoon.eot') format('embedded-opentype'),
+
-o-transition: color 0.25s ease-in-out;
url('https://static.igem.org/mediawiki/2015/5/5b/Sthlm_icomoon.ttf') format('truetype'),
+
-ms-transition: color 0.25s ease-in-out;
url('https://static.igem.org/mediawiki/2015/f/fe/Sthlm_icomoon.woff') format('woff');
+
transition: color 0.25s ease-in-out;
+
}
font-weight: normal;
+
font-style: normal;
+
}
+
  
[class^="icon-"], [class*=" icon-"] {
+
#nav > ul > li.active > a:before, #nav > ul > li:hover > a:before {
font-family: 'icomoon';
+
background: #ED786A;
speak: none;
+
color: #fff;
font-style: normal;
+
}
font-weight: normal;
+
font-variant: normal;
+
text-transform: none;
+
line-height: 1;
+
  
/* Better Font Rendering =========== */
+
#nav > ul > li.active > a > span, #nav > ul > li:hover > a > span {
-webkit-font-smoothing: antialiased;
+
color: #ED786A;
-moz-osx-font-smoothing: grayscale;
+
}
}
+
  
.icon-home:before {
+
#nav {
content: "\e600";
+
position: absolute;
}
+
top: 1em;
.icon-bubbles2:before {
+
left: 0;
content: "\e601";
+
width: 100%;
}
+
}
.icon-users:before {
+
content: "\e602";
+
}
+
.icon-gift:before {
+
content: "\e603";
+
}
+
.icon-lab:before {
+
content: "\e604";
+
}
+
.icon-clipboard:before {
+
content: "\e605";
+
}
+
  
 +
#nav > ul > li {
 +
display: inline-block;
 +
padding-right: 2em;
 +
}
  
#nav {
+
#nav > ul > li:last-child {
cursor: default;
+
padding-right: 0;
}
+
}
  
#nav > ul > li > a {
+
#nav > ul > li > a {
border: 0;
+
display: block;
text-decoration: none;
+
}
text-transform: uppercase;
+
font-weight: 400;
+
color: #777;
+
outline: 0;
+
}
+
  
#nav > ul > li > a:before {
+
#nav > ul > li > a > span {
display: inline-block;
+
font-size: 0.85em;
background: #878787;
+
letter-spacing: 3px;
color: #e4e4e4;
+
}
width: 1.65em;
+
height: 1.65em;
+
border-radius: 1.65em;
+
line-height: 1.65em;
+
text-align: center;
+
box-shadow: 0.125em 0.175em 0 0 rgba(0, 0, 0, 0.125);
+
margin-right: 0.75em;
+
-moz-transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
+
-webkit-transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
+
-o-transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
+
-ms-transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
+
transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
+
}
+
  
#nav > ul > li > a > span {
+
#nav > ul > li > ul {
-moz-transition: color 0.25s ease-in-out;
+
display: none;
-webkit-transition: color 0.25s ease-in-out;
+
}
-o-transition: color 0.25s ease-in-out;
+
-ms-transition: color 0.25s ease-in-out;
+
transition: color 0.25s ease-in-out;
+
}
+
  
#nav > ul > li.active > a:before, #nav > ul > li:hover > a:before {
+
</style>
background: #ED786A;
+
color: #fff;
+
}
+
  
#nav > ul > li.active > a > span, #nav > ul > li:hover > a > span {
+
</head>
color: #ED786A;
+
}
+
  
#nav {
+
<body>
position: absolute;
+
<div id="page-wrapper">
top: 1em;
+
left: 0;
+
width: 100%;
+
}
+
  
#nav > ul > li {
+
<!-- Header -->
display: inline-block;
+
<div id="header-wrapper">
padding-right: 2em;
+
<div id="header" class="container">
}
+
  
#nav > ul > li:last-child {
+
<!-- Logo -->
padding-right: 0;
+
}
+
  
#nav > ul > li > a {
+
<!-- Nav -->
display: block;
+
<nav id="nav">
}
+
<ul>
 +
<li><a class="icon-home" href="https://2015.igem.org/Team:Stockholm"><span>Home</span></a></li>
 +
<li><a class="icon-users" href="https://2015.igem.org/Team:Stockholm/Team"><span>Team</span></a>
 +
 +
</li>
 +
<li>
 +
<a href="https://2015.igem.org/Team:Stockholm/Description" class="icon-lab"><span>Project</span></a>
 +
 +
</li>
 +
<li><a class="icon-clipboard" href="https://2015.igem.org/Team:Stockholm/Results"><span>Results</span></a>
 +
</li>
 +
 +
<li><a class="icon-bubbles2" href="https://2015.igem.org/Team:Stockholm/ethics"><span>Practices</span></a>
 +
 +
</li>
 +
 +
 +
 +
<li><a class="icon-gift" href="https://2015.igem.org/Team:Stockholm/Attributions"><span>Attributions</span></a>
 +
 +
</li>
  
#nav > ul > li > a > span {
+
</ul>
font-size: 0.85em;
+
</nav>
letter-spacing: 3px;
+
</div>
}
+
</div>
 +
</div>
  
#nav > ul > li > ul {
+
</body>
display: none;
+
</html>
}
+
 
+
.dropotron {
+
text-align: left;
+
border: solid 1px #e5e5e5;
+
border-radius: 4px;
+
background: #fff;
+
background: rgba(255, 255, 255, 0.965);
+
box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
+
padding: 0.75em 0 0.5em 0;
+
min-width: 12em;
+
margin-top: calc(-0.5em + 1px);
+
margin-left: -2px;
+
}
+
 
+
.dropotron.level-0 {
+
margin-top: 1.5em;
+
margin-left: -1em;
+
}
+
 
+
.dropotron.level-0:after {
+
content: '';
+
display: block;
+
position: absolute;
+
left: 1.25em;
+
top: calc(-0.75em + 1px);
+
border-left: solid 0.75em rgba(255, 255, 255, 0);
+
border-right: solid 0.75em rgba(255, 255, 255, 0);
+
border-bottom: solid 0.75em #fff;
+
}
+
 
+
.dropotron.level-0:before {
+
content: '';
+
display: block;
+
position: absolute;
+
left: 1.25em;
+
top: -0.75em;
+
border-left: solid 0.75em rgba(255, 255, 255, 0);
+
border-right: solid 0.75em rgba(255, 255, 255, 0);
+
border-bottom: solid 0.75em #ccc;
+
}
+
 
+
.dropotron span, .dropotron a {
+
display: block;
+
padding: 0.3em 1em 0.3em 1em;
+
border: 0;
+
border-top: solid 1px #f0f0f0;
+
outline: 0;
+
}
+
 
+
.dropotron li:first-child > span, .dropotron li:first-child > a {
+
border-top: 0;
+
padding-top: 0;
+
}
+
 
+
.dropotron li:hover > span, .dropotron li:hover > a {
+
-moz-transition: color 0.25s ease-in-out, border-bottom-color 0.25s ease-in-out;
+
-webkit-transition: color 0.25s ease-in-out, border-bottom-color 0.25s ease-in-out;
+
-ms-transition: color 0.25s ease-in-out, border-bottom-color 0.25s ease-in-out;
+
transition: color 0.25s ease-in-out, border-bottom-color 0.25s ease-in-out;
+
color: #ed786a;
+
}
+
</style>
+

Latest revision as of 13:23, 2 September 2015