Team:Calgary/StyleSheets/Reset

From 2013.igem.org

(Difference between revisions)
 
(53 intermediate revisions not shown)
Line 1: Line 1:
-
/* reset browser styles */
 
-
html, #bodycontent, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
 
-
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed,
 
-
figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary,
 
-
time, mark, audio, video {
 
-
margin: 0;
 
-
padding: 0;
 
-
border: 0;
 
-
font-size: 100%;
 
-
vertical-align: baseline;
 
-
}
 
-
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
 
-
display: block;
 
-
}
 
-
body {
 
-
line-height: 1.2;
 
-
}
 
-
table {
 
-
border-collapse: collapse;
 
-
border-spacing: 0;
 
-
}
 
-
ol {
 
-
padding-left: 1.4em;
 
-
list-style: decimal;
 
-
}
 
-
ul {
 
-
padding-left: 1.4em;
 
-
list-style: square;
 
-
}
 
-
blockquote, q {
 
-
quotes: none;
 
-
}
 
-
blockquote:before, blockquote:after,
 
-
q:before, q:after {
 
-
content: '';
 
-
content: none;
 
-
}
 
-
/* end reset browser styles */
 
-
 
/***
/***
-
Minimal header: removes the search bar and header image and readjusts font colours in the menus.
+
Name: Wm. Keith van der Meulen
 +
Date: Summer 2013
 +
Organization: University of Calgary iGEM Team 2013
-
Thanks a lot to the 2011 Brown-Stanford and 2012 Lethbridge iGEM teams for snippets of their code!
+
---Purpose---
-
Check out their wikis at:
+
CSS code to perform a browser reset for the iGEM Wiki.
-
https://2011.igem.org/Team:Brown-Stanford
+
Removes most header elements (Except necessary links; e.g. login)
-
https://2012.igem.org/Team:Lethbridge
+
and sets all pre-defined styles to a minimal, text editor-esque style.
 +
Other CSS style sheets should be added to customise web page.
 +
-------------
 +
 
 +
Cite:
 +
Wm. Keith van der Meulen
 +
University of Calgary iGEM 2013
 +
https://2013.igem.org/Team:Calgary/StyleSheets/Reset?action=raw&ctype=text/css
***/
***/
-
#content h1.firstHeading {
+
/*
-
visibility:hidden;
+
Header Removal - Removes header (except important links; e.g. login) and sets wiki to as blank as possible.
-
display:none;
+
-
}
+
-
#p-logo {
+
-
display: none;
+
-
}
+
-
#searchform {
+
-
    display: none;
+
-
}
+
-
.left-menu {
+
Code adapted from sections of Calgary 2012:
-
background-color: #555;
+
https://2012.igem.org/Team:Calgary/static/basicpageglobal.css
-
}
+
*/
-
.left-menu a {
+
#top-section{
-
    color: #000;
+
height: 25px;
 +
margin-bottom: 0;
 +
border: none;
 +
background: #737373;
 +
width: 100%;
 +
position: fixed;
 +
top: 0;
 +
z-index: 10;
}
}
-
div#top-section{ /*the div containing the entire top bar*/
+
#header {
-
height: 20px;
+
width: 975px;
-
margin-bottom: 0 !important;
+
text-align: left;
-
border: none;
+
margin-left: auto;
 +
margin-right: auto;
 +
margin-bottom: 0;
}
}
-
 
+
#p-logo {
-
#content{
+
display: none;
-
margin-top: 0;
+
-
padding: 0;
+
}
}
Line 84: Line 53:
top: 170px;
top: 170px;
right: 40px;
right: 40px;
-
}  
+
}
-
 
+
#searchform {
-
div#header {
+
    display: none;
-
width: 975px;
+
-
text-align: left;
+
-
margin-left: auto;
+
-
margin-right: auto;
+
-
margin-bottom: 0px !important;
+
-
+
-
 
+
-
#menubar {
+
-
position: absolute;
+
-
background: none;
+
-
color: black;
+
}
}
Line 108: Line 66:
}
}
-
.left-menu li a, .right-menu li a {
+
.left-menu a, .left-menu li {
-
color: #000 !important;
+
    color: #000000;
}
}
 +
.left-menu ul:hover a {
 +
color: #000000;
 +
}
-
.left-menu ul li, .right-menu ul li a{
+
.left-menu ul li, .right-menu ul li a {
background: none;
background: none;
-
color: #000 !important;
+
color: #000000;
}
}
-
.left-menu li a:hover, .right-menu li a:hover, .right-menu li a:visited, .right-menu li a:active {
+
.left-menu li a:hover, .right-menu li a:hover, .left-menu li:hover, .right-menu li:hover {
-
     color: #000 !important;
+
     color: #000000;
 +
}
 +
 
 +
#top-section div#menubar.left-menu ul li:nth-child(7) {
 +
display: none;
 +
}
 +
 
 +
.left-menu ul:hover, .right-menu ul:hover {
 +
background: #737373;
 +
color: #000000;
 +
}
 +
 
 +
#content{
 +
margin-top: -13px;
 +
padding: 0;
 +
border: 0;
 +
}
 +
 
 +
.firstHeading {
 +
visibility:hidden;
 +
display:none;
}
}
Line 126: Line 107:
}
}
 +
#menubar ul:hover {
 +
color: transparent;
 +
}
/*important for background colours*/
/*important for background colours*/
.mediawiki{
.mediawiki{
-
background: #000000;
+
background: #ffffff;
}
}
-
/***End minimal header***/
+
#footer-box {
 +
display: none;
 +
}
 +
/*End minimal header*/
 +
 
 +
/* reset browser styles */
 +
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym,
 +
address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup,
 +
tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot,
 +
thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu,
 +
nav, output, ruby, section, summary, time, mark, audio, video {
 +
margin: 0;
 +
padding: 0;
 +
border: 0;
 +
font-size: 16px;
 +
vertical-align: baseline;
 +
}
 +
 
 +
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
 +
display: block;
 +
}
 +
 
 +
body {
 +
line-height: 1.2;
 +
}
 +
 
 +
table {
 +
border-collapse: collapse;
 +
border-spacing: 0;
 +
}
 +
 
 +
ol {
 +
padding-left: 1.4em;
 +
list-style: decimal;
 +
}
 +
 
 +
ul {
 +
padding-left: 1.4em;
 +
list-style: square;
 +
}
 +
 
 +
blockquote, q {
 +
quotes: none;
 +
}
 +
 
 +
blockquote:before, blockquote:after, q:before, q:after {
 +
content: '';
 +
content: none;
 +
}
 +
 
 +
* {
 +
box-sizing: border-box;
 +
-moz-box-sizing: border-box;
 +
}
 +
/* end reset browser styles */

Latest revision as of 22:52, 26 October 2013

/*** Name: Wm. Keith van der Meulen Date: Summer 2013 Organization: University of Calgary iGEM Team 2013

---Purpose--- CSS code to perform a browser reset for the iGEM Wiki. Removes most header elements (Except necessary links; e.g. login) and sets all pre-defined styles to a minimal, text editor-esque style. Other CSS style sheets should be added to customise web page.


Cite: Wm. Keith van der Meulen University of Calgary iGEM 2013 https://2013.igem.org/Team:Calgary/StyleSheets/Reset?action=raw&ctype=text/css

      • /

/* Header Removal - Removes header (except important links; e.g. login) and sets wiki to as blank as possible.

Code adapted from sections of Calgary 2012: https://2012.igem.org/Team:Calgary/static/basicpageglobal.css

  • /
  1. top-section{

height: 25px; margin-bottom: 0; border: none; background: #737373; width: 100%; position: fixed; top: 0; z-index: 10; }

  1. header {

width: 975px; text-align: left; margin-left: auto; margin-right: auto; margin-bottom: 0; }

  1. p-logo {

display: none; }

  1. search-controls {

overflow:hidden; display:none; background: none; position: absolute; top: 170px; right: 40px; }

  1. searchform {
   display: none;

}

.left-menu, .right-menu{ position: absolute; background: none; color: black; margin-top: 4px; }

.left-menu a, .left-menu li {

   color: #000000;

}

.left-menu ul:hover a { color: #000000; }

.left-menu ul li, .right-menu ul li a { background: none; color: #000000; }

.left-menu li a:hover, .right-menu li a:hover, .left-menu li:hover, .right-menu li:hover {

   color: #000000;

}

  1. top-section div#menubar.left-menu ul li:nth-child(7) {

display: none; }

.left-menu ul:hover, .right-menu ul:hover { background: #737373; color: #000000; }

  1. content{

margin-top: -13px; padding: 0; border: 0; }

.firstHeading { visibility:hidden; display:none; }

  1. catlinks{

display:none; }

  1. menubar ul:hover {

color: transparent; } /*important for background colours*/ .mediawiki{ background: #ffffff; }

  1. footer-box {

display: none; } /*End minimal header*/

/* reset browser styles */ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 16px; vertical-align: baseline; }

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

body { line-height: 1.2; }

table { border-collapse: collapse; border-spacing: 0; }

ol { padding-left: 1.4em; list-style: decimal; }

ul { padding-left: 1.4em; list-style: square; }

blockquote, q { quotes: none; }

blockquote:before, blockquote:after, q:before, q:after { content: ; content: none; }

  • {

box-sizing: border-box; -moz-box-sizing: border-box; } /* end reset browser styles */