|
|
Line 11: |
Line 11: |
| | | |
| | | |
- | <link rel='stylesheet' type='text/css' href='https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw&ctype=text/css' />
| |
| | | |
- | <style>
| |
- |
| |
- | /*Base styles*/
| |
- | #content{
| |
- | border: none;
| |
- | margin-top: 10px;
| |
- | }
| |
- | h1, h2{
| |
- | font-family: Myriad Pro, Gill Sans MT, Trebuchet MS, Arial, Sans-Serif;
| |
- | border: 0;
| |
- | font-weight: 400;
| |
- | }
| |
- | p{
| |
- | font-family: Georgia, Serif;
| |
- | font-size: 1em;
| |
- | font-weight: normal;
| |
- | color: black;
| |
- | margin-bottom: 10px;
| |
- | }
| |
- |
| |
- | /*Smartphone-specific styles*/
| |
- | @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
| |
- | only screen and (-o-min-device-pixel-ratio: 3/2),
| |
- | only screen and (min--moz-device-pixel-ratio: 1.5),
| |
- | only screen and (min-device-pixel-ratio: 1.5),
| |
- | only screen and (max-device-width: 480px){
| |
- |
| |
- | /***Global Adjustments***/
| |
- | div#top-section, div#footer-box, div#footer, div#content, div#f-list, ul#f-list{
| |
- | width: 95%;
| |
- | }
| |
- | #footer li{
| |
- | display: block;
| |
- | }
| |
- | .left-menu li a, .right-menu a{
| |
- | font-size: 1em;
| |
- | padding-bottom: 5px;
| |
- | padding-top: 10px;
| |
- | }
| |
- | .right-menu{
| |
- | position: relative;
| |
- | margin-top: 14px;
| |
- | }
| |
- | /*IMPORTANT: used to stop iPhones from scrolling horizontally due to overflow*/
| |
- | body, #globalWrapper, #content, #footer-box{
| |
- | overflow-x: hidden;
| |
- | }
| |
- | /*Hide header image. There has to be a better method.*/
| |
- | #headerimage{
| |
- | display: none;
| |
- | }
| |
- |
| |
- | /***End Global Adjustments***/
| |
- |
| |
- | /*Mobile styling*/
| |
- | #nav-wrap{
| |
- | position: absolute;
| |
- | width: 100%;
| |
- | height: 71px;
| |
- | top: 0px;
| |
- | left: 0px;
| |
- | background-color: #2c2c2c;
| |
- | }
| |
- |
| |
- | #nav{
| |
- | clear: both;
| |
- | list-style: none;
| |
- | position: absolute;
| |
- | left: -19px;
| |
- | top: 68px;
| |
- | width: 200px;
| |
- | background: #6d6d6d;
| |
- | display: none; /*add to JQ block*/
| |
- | z-index: 1000;
| |
- | }
| |
- |
| |
- | #nav div{
| |
- | display: none;
| |
- | }
| |
- |
| |
- | #nav a{
| |
- | display: block;
| |
- | text-decoration: none;
| |
- | color: white;
| |
- | font-family: Arial, Sans-Serif;
| |
- | font-size: 2em;
| |
- | line-height: 1.5em;
| |
- | padding-left: 20px;
| |
- | }
| |
- |
| |
- | #menu-icon{
| |
- | text-indent: -999em;
| |
- | display: block;
| |
- | width: 116px;
| |
- | height: 71px;
| |
- | background: url(https://static.igem.org/mediawiki/2012/b/b3/UCalgary2012_MobileMenuIconSprite.png);
| |
- | background-position: top;
| |
- | }
| |
- |
| |
- | #menu-icon.active{
| |
- | background-position: bottom;
| |
- | }
| |
- |
| |
- | #logo{
| |
- | position: relative;
| |
- | float: right;
| |
- | top: -58px;
| |
- | margin-right: 10px;
| |
- | }
| |
- | #logo img{
| |
- | height: 40px;
| |
- | }
| |
- |
| |
- | h1{
| |
- | position: relative;
| |
- | margin-top: 20px;
| |
- | font-size: 2.4em;
| |
- | }
| |
- | h2{
| |
- | position: relative;
| |
- | font-size: 2em;
| |
- | }
| |
- | p{
| |
- | position: relative;
| |
- | font-size: 1.5em;
| |
- | }
| |
- |
| |
- | }
| |
- |
| |
- | @media only screen and (max-device-width: 481px){
| |
- | /*specific iPhone/iPod touch text*/
| |
- | h1{
| |
- | position: relative;
| |
- | margin-top: 20px;
| |
- | font-size: 2em;
| |
- | }
| |
- | h2{
| |
- | position: relative;
| |
- | font-size: 1.75em;
| |
- | }
| |
- | p{
| |
- | position: relative;
| |
- | font-size: 1.3em;
| |
- | }
| |
- | }
| |
- |
| |
- | /*Desktop styles*/
| |
- | @media only screen and (min-device-width:481px){
| |
- |
| |
- | /***Nav styling***/
| |
- | #nav{
| |
- | list-style: none;
| |
- | width: 180px;
| |
- | margin: 0px 10px 0px 10px;
| |
- | padding: 20px 0px 20px 10px;
| |
- | text-indent: 0;
| |
- | float: left;
| |
- |
| |
- | /*Background colours*/
| |
- | background: #202020; /*backup colour in case gradients fail*/
| |
- | filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#202020', endColorstr='#333333'); /* for IE 6+7*/
| |
- | -ms-filter:
| |
- | "progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#202020', endColorstr='#333333')"; /* for IE 8*/
| |
- | background: -webkit-gradient(linear, left top, right top, from(#202020), to(#333333)); /* for webkit browsers */
| |
- | background: -moz-linear-gradient(left, #202020, #333); /* for firefox 3.6+ */
| |
- | background: linear-gradient(left, #202020 0%, #333333 100%); /*standard*/
| |
- | }
| |
- | /*To be moved to JQ block*/
| |
- | #menu-icon{
| |
- | display: none;
| |
- | }
| |
- | #nav li{
| |
- | height: auto;
| |
- | padding: 0;
| |
- | }
| |
- | /*submenu styling*/
| |
- | #nav li a{
| |
- | display: block;
| |
- | font-family: Myriad Pro, Gill Sans MT, Trebuchet MS, Arial, Sans-Serif;
| |
- | color: white;
| |
- | font-size: 1.5em;
| |
- | line-height: 1.2em; /*line spacing between submenu rows*/
| |
- | text-indent: 0.8em;
| |
- | letter-spacing: 0.08em;
| |
- | }
| |
- | #nav li a.dropheader{
| |
- | text-indent: 0;
| |
- | margin-top: 1.3em;
| |
- | }
| |
- | /*primary menu styling*/
| |
- | #nav li > a{
| |
- | display: block;
| |
- | font-family: Myriad Pro, Gill Sans MT, Trebuchet MS, Arial, Sans-Serif;
| |
- | font-size: 1.8em;
| |
- | color: white;
| |
- | line-height: 40px; /*centers the text vertically*/
| |
- | }
| |
- | /*arrows to signify dropout menus; to be moved to JQ block*/
| |
- | #nav li a.drop:after{
| |
- | content: '>';
| |
- | padding-right: 20px;
| |
- | color: #BBB;
| |
- | display: inline;
| |
- | float: right;
| |
- | }
| |
- | #nav li a:hover, #nav li a:hover::after{
| |
- | display: block;
| |
- | text-decoration: none;
| |
- | color: #43bbff;
| |
- | }
| |
- | /*mega dropdown styling*/
| |
- | #nav li div{
| |
- | position: absolute;
| |
- | filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#333333', endColorstr='#424242'); /* for IE 6+7*/
| |
- | -ms-filter:
| |
- | "progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#333333', endColorstr='#424242')"; /* for IE 8*/
| |
- | background: -webkit-gradient(linear, left top, right top, from(#333333), to(#424242)); /* for webkit browsers */
| |
- | background: -moz-linear-gradient(left, #333333, #424242); /* for firefox 3.6+ */
| |
- | background: linear-gradient(left, #333333 0%, #424242 100%); /*standard*/
| |
- | }
| |
- | /*1-column styles*/
| |
- | #nav li div.col_1{
| |
- | left: -999px;
| |
- | width: auto;
| |
- | padding-bottom: 1.5em;
| |
- | }
| |
- | #nav li div.col_1 a{
| |
- | display: block;
| |
- | padding: 0 1.5em;
| |
- | }
| |
- | #nav li:hover div.col_1{
| |
- | left: 205px;
| |
- | margin-top: -55px;
| |
- | }
| |
- | /*2-column styles*/
| |
- | #nav li div.col_2{
| |
- | width: auto;
| |
- | left: -999em;
| |
- | padding-bottom: 1.5em;
| |
- | height: auto;
| |
- | filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#333333', endColorstr='#424242'); /* for IE 6+7*/
| |
- | -ms-filter:
| |
- | "progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#333333', endColorstr='#424242')"; /* for IE 8*/
| |
- | background: -webkit-gradient(linear, left top, right top, from(#333333), to(#424242)); /* for webkit browsers */
| |
- | background: -moz-linear-gradient(left, #202020, #333); /* for firefox 3.6+ */
| |
- | }
| |
- | #nav li div.col_l, #nav li div.col_r{
| |
- | position: relative;
| |
- | width: auto;
| |
- | float: left;
| |
- | background: transparent;
| |
- | padding-left: 20px;
| |
- | padding-right: 20px;
| |
- | }
| |
- | #nav li div.col_l a, #nav li div.col_r a{
| |
- | display: block;
| |
- | }
| |
- | #nav li:hover div.col_2{
| |
- | left: 205px;
| |
- | margin-top: -55px;
| |
- | }
| |
- |
| |
- | /***End nav styling***/
| |
- |
| |
- | /***Headerimage***/
| |
- | #headerimage{
| |
- | width: 947px;
| |
- | position: relative;
| |
- | left: 10px;
| |
- | margin-bottom: 10px;
| |
- | margin-top: -20px;
| |
- | }
| |
- |
| |
- | /***Logo styling***/
| |
- | #logo{
| |
- | position: absolute;
| |
- | top: 40px;
| |
- | left: 650px;
| |
- | }
| |
- |
| |
- | #logo img{
| |
- | width: 300px;
| |
- | }
| |
- |
| |
- | /***Body styling***/
| |
- | h1{
| |
- | font-size: 2.5em;
| |
- | }
| |
- | h2{
| |
- | font-size: 1.8em;
| |
- | }
| |
- |
| |
- | }
| |
- |
| |
- | </style>
| |
| | | |
| <!--Mobile nav from http://webdesignerwall.com/tutorials/mobile-navigation-design-tutorial--> | | <!--Mobile nav from http://webdesignerwall.com/tutorials/mobile-navigation-design-tutorial--> |
Header Stuff!
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut convallis eleifend interdum. Pellentesque libero magna, dignissim vitae blandit et, tincidunt nec felis. Proin et risus eget lectus lacinia mollis. Quisque rhoncus posuere lectus, eget vestibulum dolor feugiat bibendum. Vestibulum scelerisque commodo eros, in vulputate arcu tempus varius. Donec ornare malesuada mi vitae rhoncus. Nulla facilisi.
Subheader Stuff!
Viverra nisl a bibendum. Etiam cursus ultrices arcu, pretium sodales tellus euismod id. Pellentesque congue aliquam urna, commodo iaculis massa pellentesque eget. Vivamus et sem non massa tincidunt ultrices. Sed luctus justo nec dui venenatis sodales. Proin sit amet risus nibh. In hac habitasse platea dictumst. Sed pretium egestas augue, sed varius nibh consequat ac. In orci.