Template:Tsinghua:Common-Style

From 2014.igem.org

(Difference between revisions)
(Undo revision 222748 by Ted hou (talk))
 
(9 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<style type="text/css">
<style type="text/css">
-
@charset "utf-8";
+
 
 +
 
 +
/*******************************************
 +
BODY
 +
*******************************************/
 +
 
body {
body {
-
font-family: Verdana, Geneva, sans-serif;
+
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: #42413C;
background-color: #42413C;
margin: 0;
margin: 0;
Line 9: Line 14:
color: #333;
color: #333;
}
}
-
 
-
 
-
/*******************************************
 
-
iGEM top section
 
-
*******************************************/
 
-
#top-section {
 
-
    position: relative;
 
-
    height: 20px;
 
-
    width: 960px;
 
-
margin: 0 auto 0 auto;
 
-
}
 
-
 
-
#p-logo {
 
-
    position: absolute;
 
-
    z-index: 1;
 
-
    height: 20px;
 
-
    width: 960px;
 
-
}
 
-
#p-logo h5 {
 
-
    display: none;
 
-
}
 
-
 
-
#p-logo a,
 
-
#p-logo a:hover {
 
-
    text-decoration: none;
 
-
}
 
-
 
-
#search-controls {
 
-
position: absolute;
 
-
right: 15px;
 
-
width: 150px;
 
-
height: 20px;
 
-
background-color: transparent;
 
-
    text-align: center;
 
-
    z-index: 3;
 
-
}
 
-
input.searchButton {
 
-
margin: 1px 5px 0 10px;
 
-
font-size: 100%;
 
-
background: none;
 
-
border: none;
 
-
color: #AAAAFF;
 
-
font-weight: bold;
 
-
}
 
-
input.searchButton:hover {
 
-
color: white;
 
-
}
 
-
#searchInput {
 
-
    width: 10.9em;
 
-
    margin: 0;
 
-
    font-size: 95%;
 
-
}
 
-
#searchGoButton {
 
-
margin-right: 0px;
 
-
margin-left: 35px;
 
-
}
 
-
 
-
 
-
#menubar {
 
-
    position: absolute;
 
-
    white-space: nowrap;
 
-
    top: 0px;
 
-
    width: 400px;
 
-
    z-index: 5;
 
-
    font-family: sans-serif;
 
-
    font-size: 95%;
 
-
height: 20px;
 
-
    line-height: 0px;
 
-
}
 
-
 
-
.left-menu, .left-menu a {
 
-
    left: 0px;
 
-
    text-align: left;
 
-
    color:transparent;
 
-
    text-transform: lowercase;
 
-
}
 
-
 
-
.left-menu:hover {
 
-
    color: white;
 
-
    background-color: #555555
 
-
}
 
-
.right-menu, .right-menu a {
 
-
    right: 0px;
 
-
    text-align: right;
 
-
    color: white;
 
-
}
 
-
#menubar ul {
 
-
    color: #555555;
 
-
    list-style: none;
 
-
}
 
-
#menubar li {
 
-
display: inline;
 
-
position: relative;
 
-
cursor: pointer;
 
-
padding-top: 0px;
 
-
}
 
-
.left-menu li a {
 
-
    padding: 0px 0px 0px 0px;
 
-
}
 
-
.left-menu .selected {
 
-
#    color: white;
 
-
}
 
-
#.left-menu .selected:hover {
 
-
#    color: #5555FF;
 
-
#}
 
-
 
-
.left-menu:hover a {
 
-
    color: white;
 
-
}
 
-
.right-menu li {
 
-
#    background-color: #606060;
 
-
}
 
-
.right-menu li a {
 
-
    padding: 0px 0px 0px 0px;
 
-
    color: white;
 
-
    background-color: #606060;
 
-
}
 
-
.right-menu li a:hover {
 
-
    color: #aaaaff;
 
-
    text-decoration: underline;
 
-
}
 
-
 
-
 
/* ~~ Element/tag selectors ~~ */
/* ~~ Element/tag selectors ~~ */
-
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
+
ul, ol, dl {
padding: 0;
padding: 0;
margin: 0;
margin: 0;
-
}
 
-
.normal {
 
-
font-size: 14px;
 
-
}
 
-
h1, h2, h3, h4, h5, h6, p {
 
-
padding-right: 15px;
 
-
padding-left: 15px;
 
}
}
-
 
+
h1, h2, h3 {
-
/* Normal text style */
+
font-weight: bold;
-
.normal {
+
border-bottom: none;
-
font-size: 14px;
+
padding: 0 20px 0;
 +
background: none;
 +
color: #130147;
}
}
-
.normal  p{
+
p{
 +
padding: 0 20px 0;
text-align: justify;
text-align: justify;
 +
font-size: 14px;
}
}
-
.normal h1{
+
h1{
font-size: 24px;
font-size: 24px;
font-weight: bold;
font-weight: bold;
-
text-align: center;
 
-
border-bottom: solid 1px #AAAAAA;
 
}
}
-
.normal h2{
+
h2{
font-size: 20px;
font-size: 20px;
font-weight: bold;
font-weight: bold;
Line 169: Line 46:
}
}
-
.normal h3{
+
h3{
font-size: 16px;
font-size: 16px;
font-weight: bold;
font-weight: bold;
}
}
-
.normal table {
 
-
border-collapse: collapse;
 
-
}
 
-
 
-
.normal div {
 
-
 
-
}
 
-
 
-
.center {
 
-
text-align: center;
 
-
width: auto;
 
-
}
 
-
 
-
table,td,th {
 
-
border-color: gray;
 
-
}
 
-
 
-
td,th {
 
-
padding-left: 1em;
 
-
padding-right: 1em;
 
-
}
 
-
 
-
/*Alignment*/
 
img.center {
img.center {
display:block;
display:block;
-
max-width: 700px;
 
margin-left: auto;
margin-left: auto;
margin-right: auto;
margin-right: auto;
}
}
-
 
-
table.center {
 
-
}
 
-
 
-
.center td {
 
-
text-align: left;
 
-
width: auto;
 
-
}
 
-
 
-
/*right figure*/
 
-
div.right {
 
-
float: right;
 
-
margin: 1em;
 
-
border: 1px solid #AAAAAA;
 
-
}
 
-
 
-
.right img {
 
-
display: block;
 
-
}
 
-
 
-
.right p {
 
-
font-size: 12px;
 
-
font-weight: bold;
 
-
padding: 0 0.5em 0 0.5em;
 
-
}
 
-
 
-
/*right figure*/
 
-
div.left {
 
-
float: left;
 
-
margin: 1em;
 
-
border: 1px solid #AAAAAA;
 
-
}
 
-
 
-
.left img {
 
-
display: block;
 
-
}
 
-
 
-
.math {
 
-
font-style: italic;
 
-
}
 
-
 
-
p.legend {
 
-
font-size: 12px;
 
-
font-weight: bold;
 
-
text-align: center;
 
-
}
 
-
 
-
.figure {
 
-
}
 
-
 
-
h1, h2, h3 {
 
-
font-weight: 100;
 
-
border-bottom: none;
 
-
padding-bottom: 0px;
 
-
padding-top: 0px;
 
-
background: none;
 
-
color: #7A0B0D;
 
-
}
 
-
 
-
/* brief description */
 
-
#brief {
 
-
padding: 0.1em 0.5em 0.1em 0.5em;
 
-
}
 
-
 
-
#section-nav {
 
-
padding: 0.5em;
 
-
margin-bottom: 0.5em;
 
-
border-top: solid 1px #AAAAAA;
 
-
border-bottom: solid 1px #AAAAAA;
 
-
color: white;
 
-
}
 
-
 
-
#section-nav ul {
 
-
margin: 0 0 0 0.5em;
 
-
padding: 0px;
 
-
list-style-type: none;
 
-
}
 
-
#section-nav li {
 
-
display: inline-block;
 
-
background-color: #A40004;
 
-
padding: 0.2em;
 
-
margin-right: 0.5em;
 
-
margin-bottom: 0.3em;
 
-
}
 
-
#section-nav li:hover {
 
-
cursor: pointer;
 
-
background-color: #CA7071;
 
-
}
 
-
 
-
div.section {
 
-
padding: 0.1em 0.5em 0.1em 0.5em;
 
-
}
 
-
 
-
#references {
 
-
padding: 0.1em 0.5em 0.1em 0.5em;
 
-
margin-top: 1em;
 
-
}
 
-
 
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
Line 319: Line 74:
/* ~~ This fixed width container surrounds all other blocks ~~ */
/* ~~ This fixed width container surrounds all other blocks ~~ */
.container {
.container {
-
width: 960px;
+
width: 975px;
background-color: #FFFFFF;
background-color: #FFFFFF;
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
Line 328: Line 83:
}
}
-
 
-
/* ~~ These are the columns for the layout. ~~
 
-
 
-
1) Padding is only placed on the top and/or bottom of the block elements. The elements within these blocks have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the block itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the block element and place a second block element within it with no width and the padding necessary for your design.
 
-
 
-
2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a block set to float right). Many times, padding can be used instead. For blocks where this rule must be broken, you should add a "display:inline" declaration to the block element's rule to tame a bug where some versions of Internet Explorer double the margin.
 
-
 
-
3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar blocks could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document.
 
-
 
-
4) If you prefer your nav on the left instead of the right, simply float these columns the opposite direction (all left instead of all right) and they'll render in reverse order. There's no need to move the blocks around in the HTML source.
 
-
 
-
*/
 
.sidebar1 {
.sidebar1 {
float: left;
float: left;
Line 363: Line 106:
.content ul, .content ol {
.content ul, .content ol {
padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
-
}
 
-
 
-
/* ~~ Drop right nav bar menu ~~ */
 
-
nav {
 
-
padding: 0;
 
-
margin: 0;
 
-
border: 0;
 
-
line-height: 1;
 
-
}
 
-
nav ul li a:link {
 
-
color: #ffffff;
 
-
text-decoration: none; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
 
-
}
 
-
nav ul li a:visited {
 
-
color: #ffffff;
 
-
text-decoration: none;
 
-
}
 
-
 
-
nav ul,
 
-
nav ul li,
 
-
nav ul ul {
 
-
list-style: none;
 
-
margin: 0;
 
-
padding: 0;
 
-
}
 
-
nav ul {
 
-
position: relative;
 
-
z-index: 597;
 
-
float: left;
 
-
}
 
-
nav ul li {
 
-
float: left;
 
-
min-height: 1px;
 
-
line-height: 1em;
 
-
vertical-align: middle;
 
-
position: relative;
 
-
}
 
-
nav ul li.hover,
 
-
nav ul li:hover {
 
-
position: relative;
 
-
z-index: 599;
 
-
cursor: default;
 
-
}
 
-
nav ul ul {
 
-
visibility: hidden;
 
-
position: absolute;
 
-
top: 100%;
 
-
left: 0px;
 
-
z-index: 598;
 
-
width: 100%;
 
-
}
 
-
nav ul ul li {
 
-
float: none;
 
-
}
 
-
nav ul ul ul {
 
-
top: -2px;
 
-
right: 0;
 
-
}
 
-
nav ul li:hover > ul {
 
-
visibility: visible;
 
-
}
 
-
nav ul ul {
 
-
top: 1px;
 
-
left: 99%;
 
-
}
 
-
nav ul li {
 
-
float: none;
 
-
}
 
-
nav ul ul {
 
-
margin-top: 1px;
 
-
}
 
-
nav ul ul li {
 
-
font-weight: normal;
 
-
}
 
-
/* Custom CSS Styles */
 
-
nav {
 
-
width: 180px;
 
-
background: #333333;
 
-
font-family: 'Oxygen Mono', Tahoma, Arial, sans-serif;
 
-
zoom: 1;
 
-
font-size: 12px;
 
-
}
 
-
nav:before {
 
-
content: '';
 
-
display: block;
 
-
}
 
-
nav:after {
 
-
content: '';
 
-
display: table;
 
-
clear: both;
 
-
}
 
-
nav a {
 
-
display: block;
 
-
padding: 15px 20px;
 
-
color: #ffffff;
 
-
text-decoration: none;
 
-
text-transform: uppercase;
 
-
}
 
-
nav > ul {
 
-
width: 184px;
 
-
}
 
-
nav ul ul {
 
-
width: 180px;
 
-
}
 
-
nav > ul > li > a {
 
-
border-right: 8px solid #1b9bff;
 
-
color: #ffffff;
 
-
}
 
-
nav > ul > li > a:hover {
 
-
color: #ffffff;
 
-
}
 
-
nav > ul > li.active a {
 
-
background: #1b9bff;
 
-
}
 
-
nav > ul > li a:hover,
 
-
nav > ul > li:hover a {
 
-
background: #1b9bff;
 
-
}
 
-
nav li {
 
-
position: relative;
 
-
}
 
-
nav ul li.has-sub > a:after {
 
-
content: '+';
 
-
position: absolute;
 
-
top: 50%;
 
-
right: 15px;
 
-
margin-top: -6px;
 
-
}
 
-
nav ul ul li.first {
 
-
-webkit-border-radius: 0 3px 0 0;
 
-
-moz-border-radius: 0 3px 0 0;
 
-
border-radius: 0 3px 0 0;
 
-
}
 
-
nav ul ul li.last {
 
-
-webkit-border-radius: 0 0 3px 0;
 
-
-moz-border-radius: 0 0 3px 0;
 
-
border-radius: 0 0 3px 0;
 
-
border-bottom: 0;
 
-
}
 
-
nav ul ul {
 
-
-webkit-border-radius: 0 3px 3px 0;
 
-
-moz-border-radius: 0 3px 3px 0;
 
-
border-radius: 0 3px 3px 0;
 
-
}
 
-
nav ul ul {
 
-
border: 1px solid #0082e7;
 
-
}
 
-
nav ul ul a {
 
-
font-size: 12px;
 
-
color: #ffffff;
 
-
}
 
-
nav ul ul a:hover {
 
-
color: #ffffff;
 
-
}
 
-
nav ul ul li {
 
-
border-bottom: 1px solid #0082e7;
 
-
}
 
-
nav ul ul li:hover > a {
 
-
background: #4eb1ff;
 
-
color: #ffffff;
 
-
}
 
-
nav.align-right > ul > li > a {
 
-
border-left: 4px solid #1b9bff;
 
-
border-right: none;
 
-
}
 
-
nav.align-right {
 
-
float: right;
 
-
}
 
-
nav.align-right li {
 
-
text-align: right;
 
-
}
 
-
nav.align-right ul li.has-sub > a:before {
 
-
content: '+';
 
-
position: absolute;
 
-
top: 50%;
 
-
left: 15px;
 
-
margin-top: -6px;
 
-
}
 
-
nav.align-right ul li.has-sub > a:after {
 
-
content: none;
 
-
}
 
-
nav.align-right ul ul {
 
-
visibility: hidden;
 
-
position: absolute;
 
-
top: 0;
 
-
left: -100%;
 
-
z-index: 598;
 
-
width: 100%;
 
-
}
 
-
nav.align-right ul ul li.first {
 
-
-webkit-border-radius: 3px 0 0 0;
 
-
-moz-border-radius: 3px 0 0 0;
 
-
border-radius: 3px 0 0 0;
 
-
}
 
-
nav.align-right ul ul li.last {
 
-
-webkit-border-radius: 0 0 0 3px;
 
-
-moz-border-radius: 0 0 0 3px;
 
-
border-radius: 0 0 0 3px;
 
-
}
 
-
nav.align-right ul ul {
 
-
-webkit-border-radius: 3px 0 0 3px;
 
-
-moz-border-radius: 3px 0 0 3px;
 
-
border-radius: 3px 0 0 3px;
 
}
}
Line 590: Line 130:
font-size: 1px;
font-size: 1px;
line-height: 0px;
line-height: 0px;
 +
}
 +
 +
/*HTML 5 support - Sets new HTML 5 tags to display:block so browsers know how to render the tags properly. */
 +
header, section, footer, aside, article, figure {
 +
display: block;
}
}
</style>
</style>
<html>
<html>

Latest revision as of 08:02, 14 October 2014