Team:Kent/CSS

From 2014.igem.org

(Difference between revisions)
Line 17: Line 17:
background-color: transparent;
background-color: transparent;
margin-top: 0px;
margin-top: 0px;
-
   
+
@charset "utf-8";
 +
.kent_igem_CSS {
}
}
-
html, body, .wrapper { /*-- changes default wiki settings --*/
+
<!--
-
 
+
-
width: 100%;
+
-
height: 100%;
+
-
background-color: transparent;
+
-
}
+
-
 
+
-
 
+
-
 
+
body {
body {
-
    margin: 10px 0 0 0;
+
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
-
    padding: 0;}
+
background-color: #42413C;
-
#top-section {
+
margin: 0;
-
    width: 965px;
+
-
    height: 0;
+
-
    margin: 0 auto;
+
-
    padding: 0;
+
-
    border: none;}
+
-
#menubar {
+
-
    font-size: 65%;
+
-
    top: -14px;}
+
-
.left-menu:hover {
+
-
    background-color: transparent;}
+
-
#menubar li a {
+
-
    background-color: transparent;}
+
-
#menubar:hover {
+
-
    color: white;}
+
-
#menubar li a {
+
-
    color: transparent;}
+
-
#menubar:hover li a {
+
-
    color: white;}
+
-
 
+
-
 
+
-
body, h1, h2, h3, h4, h5, h6, h1 p, h2 p, h3 p, h4 p, h5 p, h6 p, img, form, fieldset {
+
padding: 0;
padding: 0;
-
outline: 0;
+
color: #000;
-
border: 0;
+
-
position: relative;
+
}
}
-
body {
+
/* ~~ Element/tag selectors ~~ */
-
font-family: Arial, Helvetica, sans-serif;
+
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. */
-
font-size: 18px;
+
padding: 0;
-
color: #003399;
+
margin: 0;
-
background-color: #ECCFE5;
+
-
background-image: url(https://static.igem.org/mediawiki/2014/8/89/Standard_header_kent_new.jpg);
+
-
background-repeat: no-repeat;
+
-
background-position: center top;
+
-
text-align: center
+
}
}
-
 
+
h1, h2, h3, h4, h5, h6, p {
-
 
+
margin-top: 0; /* removing the top margin gets around an issue where margins can escape from their containing block. The remaining bottom margin will hold it away from any elements that follow. */
-
 
+
padding-right: 15px;
-
/* headings */
+
padding-left: 15px; /* adding the padding to the sides of the elements within the blocks, instead of the block elements themselves, gets rid of any box model math. A nested block with side padding can also be used as an alternate method. */
-
 
+
-
h1 {
+
-
color: #ffffff;
+
-
font-size: 1.5em;
+
-
padding:0 0 15px 0;
+
}
}
-
h1 .side {
+
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
-
float: centre;
+
border: none;
}
}
-
h2 {
+
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
-
text-shadow: #f1740d 2px 2px 2px;
+
a:link {
-
font-size: 1.2em;
+
color: #42413C;
-
padding-bottom: 5px;
+
text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
}
-
h2 .side {
+
a:visited {
-
float: right;
+
color: #6E6C64;
-
font-size: 0.8em;
+
text-decoration: underline;
-
font-weight: normal;
+
}
}
-
h3 {
+
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. */
-
color: #ffffff;
+
text-decoration: none;
-
font-size: 1.2em;
+
-
padding-bottom: 5px;
+
}
}
-
 
+
/* ~~ This fixed width container surrounds all other blocks ~~ */
-
/* links */
+
.container {
-
 
+
width: 960px;
-
a {
+
background-color: #FFFFFF;
-
color: #000000;
+
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
}
}
-
a:hover {
+
/* ~~ The header is not given a width. It will extend the full width of your layout. ~~ */
-
text-decoration: underline;
+
header {
 +
background-color: #ADB96E;
}
}
 +
/* ~~ These are the columns for the layout. ~~
-
/* content */
+
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.
-
.content {
+
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.
-
width: 1600px;
+
-
margin-top: 100px;
+
-
margin-right: auto;
+
-
margin-bottom: 0px;
+
-
margin-left: auto;
+
-
}
+
 +
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.
-
/* header */
+
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.
-
#header-wrapper {
+
*/
 +
.sidebar1 {
 +
float: left;
 +
width: 180px;
 +
background-color: #EADCAE;
 +
padding-bottom: 10px;
}
}
-
#header {
+
.content {
-
overflow: hidden;
+
padding: 10px 0;
-
}
+
width: 600px;
-
#header .logo {
+
float: left;
float: left;
-
padding: 30px 0 20px 0;
 
-
}
 
-
 
-
/* header menu */
 
-
 
-
#header-menu {
 
-
float: right;
 
-
list-style: none;
 
-
margin: 80px 0 0 0;
 
-
padding: 0;
 
}
}
-
#header-menu li {
+
aside {
float: left;
float: left;
-
}
+
width: 180px;
-
#header-menu li a {
+
background-color: #EADCAE;
-
padding: 7px 10px;
+
padding: 10px 0;
-
line-height: 28px;
+
-
text-decoration: none;
+
-
font-size: 0.9em;
+
-
}
+
-
#header-menu li a:hover {
+
-
text-decoration:underline;
+
}
}
-
/* top */
+
/* ~~ This grouped selector gives the lists in the .content area space ~~ */
-
 
+
.content ul, .content ol {
-
#top-wrapper {
+
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. */
-
height: 55px;
+
-
margin-top: 135px;
+
-
margin-bottom: 0px;
+
-
margin-left: 250px;
+
-
margin-right: 500px;
+
-
}
+
-
#top {
+
-
position: relative;
+
-
height: 50px;
+
-
margin-top: 0px;
+
}
}
-
/* top menu */
+
/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
-
 
+
ul.nav {
-
#top-menu {
+
list-style: none; /* this removes the list marker */
-
height: 40px;
+
border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
-
z-index: 2000;
+
margin-bottom: 15px; /* this creates the space between the navigation on the content below */
-
position: inherit;
+
-
left: 350px;
+
-
top: -50px;
+
}
}
-
#top-menu, #top-menu ul {
+
ul.nav li {
-
margin: 0;
+
border-bottom: 1px solid #666; /* this creates the button separation */
-
padding: 0;
+
-
list-style: none;
+
}
}
-
#top-menu li {
+
ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
-
position: relative;
+
padding: 5px 5px 5px 15px;
-
float: left;
+
display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
-
margin: 0;
+
width: 160px; /*this width makes the entire button clickable for IE6. If you don't need to support IE6, it can be removed. Calculate the proper width by subtracting the padding on this link from the width of your sidebar container. */
-
padding: 0;
+
-
background-color: #FFF;
+
-
}
+
-
#top-menu a {
+
-
display: block;
+
-
line-height: 40px;
+
text-decoration: none;
text-decoration: none;
-
padding: 0 20px;
+
background-color: #C6D580;
-
font-family: Verdana, Geneva, sans-serif;
+
-
font-size: 24px;
+
-
font-style: normal;
+
-
font-weight: normal;
+
-
color: #03C;
+
}
}
-
#top-menu ul a {
+
ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
-
width: 200px;
+
background-color: #ADB96E;
-
color: #000;
+
color: #FFF;
}
}
-
#top-menu a p {
 
-
margin: 0;
 
-
padding: 0;
 
-
}
 
-
#top-menu li ul {
 
-
position: absolute;
 
-
display: none;
 
-
}
 
-
#top-menu li:hover > ul {
 
-
display: block;
 
-
}
 
-
#top-menu li li:hover > ul {
 
-
display: block;
 
-
left: 100%;
 
-
top: 0;
 
-
}
 
-
#top-menu ul a, #top-menu li:hover a, #top-menu li:hover li:hover li:hover a {
 
-
color: #6600CC;
 
-
}
 
-
#top-menu li:hover li:hover a, #top-menu li:hover li:hover li:hover li:hover a {
 
-
background: #222222; /* for non-css3 browsers */
 
-
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4be6c', endColorstr='#e78226'); /* for IE */
+
/* ~~ The footer ~~ */
-
background: -webkit-gradient(linear, left top, left bottom, from(#f4be6c), to(#e78226)); /* for webkit browsers */
+
footer {
-
background: #dcb7d4; /* for firefox 3.6+ */
+
padding: 10px 0;
-
color: #000000;
+
background-color: #CCC49F;
 +
position: relative;/* this gives IE6 hasLayout to properly clear */
 +
clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
}
}
-
#top-menu a.selected {
+
/* ~~ Miscellaneous float/clear classes ~~ */
-
background-color: #FFF;
+
.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. */
-
}
+
-
 
+
-
 
+
-
/* content */
+
-
 
+
-
#content-wrapper {
+
-
overflow: hidden;
+
-
}
+
-
#content {
+
-
padding: 20px 0;
+
-
overflow: hidden;
+
-
+
-
}
+
-
#page {
+
-
margin:0 20px;
+
-
}
+
-
 
+
-
/* sidebar */
+
-
 
+
-
#sidebar {
+
-
width: 205px;
+
float: right;
float: right;
-
display: none;
+
margin-left: 8px;
-
margin-right:15px;
+
}
}
-
 
+
.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. */
-
/* side menu */
+
-
 
+
-
#side-menu {
+
-
overflow: hidden;
+
-
}
+
-
#side-menu, #side-menu ul {
+
-
list-style: none;
+
-
margin: 0;
+
-
padding: 0;
+
-
}
+
-
#side-menu li a {
+
-
padding: 10px 12px;
+
-
color: #fff;
+
-
display: block;
+
-
margin-bottom:10px;
+
-
text-decoration: none;
+
-
background-color:#1e1e1e;
+
-
text-shadow:2px 2px 2px #e19430;
+
-
font-size:1.2em;
+
-
}
+
-
#side-menu li a:hover {
+
-
color: #e19430;
+
-
text-shadow:2px 2px 2px #000000;
+
-
}
+
-
#side-menu li a.selected {
+
-
background-color: #e19430;
+
-
color: #fff;
+
-
}
+
-
#side-menu li li a {
+
-
background:transparent;
+
-
padding-left: 20px;
+
-
margin:0;
+
-
font-size:1.0em;
+
-
}
+
-
#side-menu li li li a {
+
-
padding-left: 40px;
+
-
}
+
-
#side-menu li li li li a {
+
-
padding-left: 60px;
+
-
}
+
-
#side-menu li li li li li a {
+
-
padding-left: 80px;
+
-
}
+
-
#side-menu li li li li li li a {
+
-
padding-left: 100px;
+
-
}
+
-
 
+
-
/* footer */
+
-
#footer-wrapper {
+
-
margin:20px 0;
+
-
}
+
-
#footer {
+
-
overflow: hidden;
+
-
}
+
-
#footer ul {
+
-
list-style: none;
+
-
margin:0;
+
-
padding: 0;
+
-
}
+
-
#footer ul li {
+
float: left;
float: left;
-
margin-right:10px;
+
margin-right: 8px;
}
}
-
#footer ul li:after {
+
.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 */
-
content: '·';
+
clear:both;
-
}
+
height:0;
-
#footer ul li.last:after {
+
font-size: 1px;
-
content: '';
+
line-height: 0px;
-
}
+
-
#footer ul li a {
+
-
font-size: 0.9em;
+
-
text-decoration: none;
+
-
margin-right:10px;
+
-
}
+
-
#footer ul li a:hover {
+
-
text-decoration:underline;
+
}
}
-
/* general form */
+
/*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 {
-
fieldset {
+
-
padding: 15px 0 0 0;
+
-
overflow: hidden;
+
-
}
+
-
fieldset p {
+
-
overflow: hidden;
+
-
margin: 0 0 10px 0;
+
-
line-height: 40px;
+
-
}
+
-
fieldset p.no-label {
+
-
margin-left: 240px;
+
-
line-height: 20px;
+
-
}
+
-
fieldset p label {
+
-
float: left;
+
-
width: 230px;
+
-
text-align: right;
+
-
font-size: 0.9em;
+
-
}
+
-
fieldset p span {
+
display: block;
display: block;
-
margin-left: 240px;
 
-
}
 
-
fieldset input[type=text], fieldset input[type=password], fieldset textarea, .field {
 
-
border:#e19430 solid 1px;
 
-
padding: 8px 5px;
 
-
outline: 0;
 
-
width: 430px;
 
-
font-size: 0.9em;
 
-
font-family:Arial, Helvetica, sans-serif;
 
-
}
 
-
fieldset select {
 
-
width: auto;
 
-
}
 
-
fieldset select.height {
 
-
width: auto;
 
-
height: 2000px;
 
-
}
 
-
fieldset input[type=text]:focus, fieldset input[type=password]:focus, fieldset textarea:focus {
 
-
border-color: #999;
 
-
}
 
-
fieldset input.smaller {
 
-
width: 90px;
 
-
}
 
-
fieldset textarea {
 
-
height: 160px;
 
-
}
 
-
fieldset select.multiple {
 
-
width: 440px;
 
-
padding: 8px 5px;
 
-
}
 
-
fieldset .dash {
 
-
float: none;
 
-
margin: 0;
 
-
display: inline;
 
-
padding: 0 5px;
 
-
font-size: 1.5em;
 
-
color: #999;
 
-
margin: 0 !important;
 
-
}
 
-
 
-
 
-
 
-
 
-
/* google map */
 
-
 
-
#wagmp_map_1 {
 
-
height: 600px;
 
-
overflow: hidden;
 
-
}
 
-
#fromaddress, #fromcity {
 
-
border:#ccc solid 1px;
 
-
padding: 5px 5px;
 
-
outline: 0;
 
-
width: 200px;
 
-
font-size: 0.9em;
 
-
margin: 2px 0 6px 0;
 
-
}
 
-
 
-
 
-
 
-
/* fma */
 
-
#home-wrapper {
 
-
background-color:#FFF;
 
-
}
 
-
#fma-wrapper {
 
-
}
 
-
#fma {
 
-
background: url(https://static.igem.org/mediawiki/2014/d/d7/Team_photo_Kent.jpg);
 
-
position: relative;
 
-
height: 550px;
 
-
padding-top: 20px;
 
-
padding-right: 0;
 
-
padding-bottom: 20px;
 
-
padding-left: 0;
 
-
width: 1000px;
 
-
margin-top: 50px;
 
-
        position:relative
 
-
}
 
-
#fma h1 {
 
-
color: #E9CDE3;
 
-
padding: 120px 0;
 
-
text-align: center;
 
-
font-size: 2.5em;
 
-
overflow: hidden;
 
-
}
 
-
 
-
/* home */
 
-
 
-
#home-wrapper {
 
-
overflow:hidden;
 
-
}
 
-
 
-
.home-box {
 
-
margin: 10px;
 
-
}
 
-
.home-box h2 {
 
-
display:none;
 
-
}
 
-
.home-box .info {
 
-
overflow: hidden;
 
-
}
 
-
.home-box .info .image {
 
-
float: left;
 
-
width: 150px;
 
-
}
 
-
.home-box .info .image img {
 
-
max-width: 140px;
 
-
border:#353535 solid 5px;
 
-
}
 
-
.home-box .info .details {
 
-
margin-left: 170px;
 
-
margin-top:15px;
 
-
}
 
-
.home-box .info .details .name {
 
-
color: #FFF;
 
-
font-size: 1.2em;
 
-
padding-bottom: 5px;
 
-
font-weight: bold;
 
-
}
 
-
.home-box .info .details .name a {
 
-
text-decoration: none;
 
-
color:#ffffff;
 
-
text-shadow: #f1740d 2px 2px 2px;
 
-
}
 
-
.home-box .info .details .price {
 
-
display:none;
 
-
}
 
-
.home-box .info .details .description {
 
-
line-height:20px;
 
-
}
 
-
.home-box .info .details .description p {
 
-
margin: 0;
 
-
}
 
-
 
-
#info-content {
 
-
overflow: hidden;
 
-
padding: 10px;
 
-
margin: 10px;
 
-
width: 900px;
 
-
background-color: #FFFFFF;
 
-
position:relative
 
}
}

Revision as of 12:38, 5 August 2014

  1. contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo {
   display:none;}
  1. top-section {
   border: none;
   height: 0px;}
  1. content {
   border: none;}



  1. globalWrapper, #content { /*-- changes default wiki settings --*/

width: 50%; height: 2000px; border: 0px; background-color: transparent; margin-top: 0px; @charset "utf-8"; .kent_igem_CSS { }