Template:Tsinghua:Common-Style

From 2013.igem.org

(Difference between revisions)
(Undo revision 364413 by Ted hou (talk))
 
Line 1: Line 1:
<html>
<html>
<style type="text/css">
<style type="text/css">
-
/*******************************************
+
/* Styles for Wiki*/
-
BODY
+
#p-logo {
-
*******************************************/
+
    height:0px; overflow:hidden; display: none;
 +
}
 +
#top-section {
 +
    background-color: #444444;
 +
    height: 20px;
 +
    border-width:0px;
 +
    border-top-width:0px;
 +
}
 +
#content {
 +
line-height: normal;
 +
    width: 975px;
 +
    border-left-width:0px;
 +
    border-right-width:0px;
 +
    padding:0px;
 +
}
-
body {
+
 
-
font-family: Verdana, Arial, Helvetica, sans-serif;
+
#contentSub {
-
background-color: #42413C;
+
display: none;
-
margin: 0;
+
-
padding: 0;
+
-
color: #333;
+
}
}
-
/* ~~ Element/tag selectors ~~ */
+
 
-
ul, ol, dl {
+
.firstHeading {
-
padding: 0;
+
    display: none;
-
margin: 0;
+
}
 +
div#catlinks {
 +
    visibility: hidden;
 +
    height: 0px;
 +
}
 +
#searchInput
 +
{
 +
    position:relative;
 +
    height:0px;
 +
    margin-bottom:0em;
 +
    visibility:hidden;
 +
}
 +
input.searchButton
 +
{
 +
    height:0px;
 +
    margin-bottom:0em;
 +
    visibility:hidden;
}
}
-
h1, h2, h3 {
+
div#bodyContent > p:first-child {
-
font-weight: bold;
+
display:none;
-
border-bottom: none;
+
-
padding: 0 20px 0;
+
-
background: none;
+
-
color: #130147;
+
}
}
-
p{
+
/* Styles for contents */
-
padding: 0 20px 0;
+
body {
-
text-align: justify;
+
margin: 0px;
 +
font-family: Verdana, Geneva, sans-serif;
 +
background-image: url(https://static.igem.org/mediawiki/2013/5/57/Tsinghua-background-image.jpg);
 +
background-color: white;
 +
background-repeat: no-repeat;
 +
background-attachment: fixed;
 +
background-size: cover;
 +
}
 +
 
 +
/* Normal text style */
 +
.normal {
font-size: 14px;
font-size: 14px;
}
}
-
h1{
+
.normal  p{
 +
text-align: justify;
 +
}
 +
 
 +
.normal h1{
font-size: 24px;
font-size: 24px;
font-weight: bold;
font-weight: bold;
 +
text-align: center;
 +
border-bottom: solid 1px #AAAAAA;
}
}
-
h2{
+
.normal h2{
font-size: 20px;
font-size: 20px;
font-weight: bold;
font-weight: bold;
Line 44: Line 83:
}
}
-
h3{
+
.normal 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;
}
}
-
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
+
table.center {
-
border: none;
+
}
}
-
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
+
 
-
a:link {
+
.center td {
-
color: #42413C;
+
text-align: left;
-
text-decoration: none; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
+
width: auto;
}
}
-
a:visited {
+
 
-
color: #6E6C64;
+
/*right figure*/
-
text-decoration: none;
+
div.right {
 +
float: right;
 +
margin: 1em;
 +
border: 1px solid #AAAAAA;
}
}
-
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
+
 
-
text-decoration: none;
+
.right img {
 +
display: block;
}
}
-
/* ~~ This fixed width container surrounds all other blocks ~~ */
+
 
-
.container {
+
.right p {
-
width: 960px;
+
font-size: 12px;
-
background-color: #FFFFFF;
+
font-weight: bold;
-
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
+
padding: 0 0.5em 0 0.5em;
-
}
+
-
/* ~~ The header is not given a width. It will extend the full width of your layout. ~~ */
+
-
header {
+
-
background-color: #ffffff;
+
}
}
-
.sidebar1 {
+
/*right figure*/
 +
div.left {
float: left;
float: left;
-
width: 176px;
+
margin: 1em;
-
background-color: #959595;
+
border: 1px solid #AAAAAA;
-
padding-bottom: 15px;
+
-
padding-top: 15px;
+
-
border-right: 4px solid #ffffff;
+
}
}
-
.content {
+
 
-
padding: 10px 0;
+
.left img {
-
width: 780px;
+
display: block;
-
float: left;
+
}
}
-
aside {
+
 
-
float: left;
+
.math {
-
width: 180px;
+
font-style: italic;
-
background-color: #EADCAE;
+
-
padding: 10px 0;
+
}
}
-
/* ~~ This grouped selector gives the lists in the .content area space ~~ */
+
p.legend {
-
.content ul, .content ol {
+
font-size: 12px;
-
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. */
+
font-weight: bold;
 +
text-align: center;
}
}
 +
.figure {
 +
}
-
/* ~~ The footer ~~ */
+
h1, h2, h3 {
-
footer {
+
font-weight: 100;
-
padding: 10px 0;
+
border-bottom: none;
-
background-color: #CCC49F;
+
padding-bottom: 0px;
-
position: relative;/* this gives IE6 hasLayout to properly clear */
+
padding-top: 0px;
-
clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
+
background: none;
 +
color: #7A0B0D;
}
}
-
/* ~~ Miscellaneous float/clear classes ~~ */
+
 
-
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
+
/* brief description */
-
float: right;
+
#brief {
-
margin-left: 8px;
+
padding: 0.1em 0.5em 0.1em 0.5em;
}
}
-
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
+
 
-
float: left;
+
#section-nav {
-
margin-right: 8px;
+
padding: 0.5em;
 +
margin-bottom: 0.5em;
 +
border-top: solid 1px #AAAAAA;
 +
border-bottom: solid 1px #AAAAAA;
 +
color: white;
}
}
-
.clearfloat { /* this class can be placed on a <br /> or empty block element as the final element following the last floated block (within the .container) if the footer is removed or taken out of the .container */
+
 
-
clear:both;
+
#section-nav ul {
-
height:0;
+
margin: 0 0 0 0.5em;
-
font-size: 1px;
+
padding: 0px;
-
line-height: 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;
}
}
-
/*HTML 5 support - Sets new HTML 5 tags to display:block so browsers know how to render the tags properly. */
+
div.section {
-
header, section, footer, aside, article, figure {
+
padding: 0.1em 0.5em 0.1em 0.5em;
-
display: block;
+
}
}
 +
#references {
 +
padding: 0.1em 0.5em 0.1em 0.5em;
 +
margin-top: 1em;
 +
}
</style>
</style>
</html>
</html>

Latest revision as of 07:51, 14 October 2014