Template:Tsinghua:Common-Style

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
<style type="text/css">
<style type="text/css">
-
 
Line 16: Line 15:
}
}
/* ~~ 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;
Line 22: Line 21:
h1, h2, h3 {
h1, h2, h3 {
-
font-weight: 100;
+
font-weight: bold;
border-bottom: none;
border-bottom: none;
-
padding-bottom: 0px;
+
padding: 0 20px 0;
-
padding-top: 0px;
+
-
padding-left: 15px;
+
-
padding-right: 15px;
+
background: none;
background: none;
-
color: #7A0B0D;
+
color: #130147;
}
}
-
/* Normal text style */
+
p{
-
.normal {
+
padding: 0 20px 0;
 +
text-align: justify;
font-size: 14px;
font-size: 14px;
}
}
-
.normal  p{
+
h1{
-
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;
 
}
}
-
.normal h2{
+
h2{
font-size: 20px;
font-size: 20px;
font-weight: bold;
font-weight: bold;
Line 55: Line 46:
}
}
-
.normal h3{
+
h3{
font-size: 16px;
font-size: 16px;
font-weight: bold;
font-weight: bold;
}
}
 +
img.center {
 +
display:block;
 +
margin-left: 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 */
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
Line 87: 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 132: Line 116:
clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
}
}
-
 
/* ~~ Miscellaneous float/clear classes ~~ */
/* ~~ 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. */
.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. */
Line 153: Line 136:
display: block;
display: block;
}
}
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
/*******************************************
 
-
iGEM top section
 
-
*******************************************/
 
-
/* Styles for Wiki*/
 
-
#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;
 
-
}
 
-
 
-
 
-
#contentSub {
 
-
display: none;
 
-
}
 
-
 
-
.firstHeading {
 
-
    display: none;
 
-
}
 
-
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;
 
-
}
 
-
 
-
div#bodyContent > p:first-child {
 
-
display:none;
 
-
}
 
-
 
-
 
</style>
</style>
<html>
<html>

Revision as of 07:51, 14 October 2014