Difference between revisions of "Template:Freiburg/CSS"
(Created page with "{{Template_All_Teams}} <!-- Declare that you are going to use html code instead of wiki code --> <html> <!-- Start of CSS--> <style type="text/css"> →PAGE LAYOUT: ...") |
|||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
<html> | <html> | ||
+ | <style> | ||
+ | /* ============= Resetting css coming from wiki itself ============= */ | ||
+ | body { | ||
+ | font: sans-serif; | ||
+ | color: #000; | ||
+ | margin: 0px; | ||
+ | padding: 0px; | ||
+ | background-color: #AAA; | ||
+ | line-height: 1.8; | ||
+ | } | ||
+ | |||
+ | a { | ||
+ | color: #002BB8; | ||
+ | text-decoration: none; | ||
+ | background: transparent none repeat scroll 0% 0%; | ||
+ | } | ||
+ | |||
+ | p { | ||
+ | margin: 0.4em 0px 0.5em; | ||
+ | line-height: 1.5em; | ||
+ | } | ||
+ | |||
+ | #globalWrapper { | ||
+ | position: absolute; | ||
+ | font-size: 150%; | ||
+ | width: 100%; | ||
+ | margin: 0px; | ||
+ | padding: 0px 0px 0px; | ||
+ | } | ||
+ | |||
+ | #mainContainer { | ||
+ | margin: 0; | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | #top_menu_under { | ||
+ | position: relative; | ||
+ | width: 100%; | ||
+ | height: 16px; | ||
+ | border-bottom: 2px solid #000; | ||
+ | } | ||
− | + | #top_menu_14 { | |
− | + | position: fixed; | |
+ | width: 100%; | ||
+ | top: 0px; | ||
+ | left: 0px; | ||
+ | height: 16px; | ||
+ | background-color: #383838; | ||
+ | border-bottom: 2px solid #000; | ||
+ | z-index: 9999; | ||
+ | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | #top_menu_inside { | ||
+ | display: block; | ||
+ | position: relative; | ||
+ | width: 900px; | ||
+ | height: 100%; | ||
+ | margin: 0px auto; | ||
+ | padding: 0px 10px; | ||
+ | border-left: 1px solid #C8C8C8; | ||
+ | border-right: 1px solid #C8C8C8; | ||
+ | font-family: "arial",sans-serif; | ||
+ | font-size: 12px; | ||
+ | font-weight: 400; | ||
+ | color: #FFF; | ||
+ | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | #content { | |
− | + | position: relative; | |
− | + | width: 100%; | |
− | + | margin: 0; | |
− | + | padding: 0; | |
− | + | background: #FFF none repeat scroll 0% 0%; | |
− | + | color: #000; | |
− | + | border-left: 0; | |
+ | border-right: 0; | ||
+ | /* line-height: 0; */ | ||
+ | z-index: 2; | ||
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | .visualClear { | |
+ | clear: both; | ||
+ | } | ||
− | + | /* ============= END: Resetting css coming from wiki itself ============= */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /* ============= Declare Fonts for non-Windows machines ============= */ | |
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | @font-face { | |
− | + | font-family: Candara; | |
− | + | src: url(https://static.igem.org/mediawiki/2015/6/6c/Freiburg_Candara.ttf) format('truetype'); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | @font-face { | ||
+ | font-family: Candara; | ||
+ | src: url(https://static.igem.org/mediawiki/2015/8/89/Freiburg_Candarab.ttf) format('truetype'); | ||
+ | font-weight: bold; | ||
+ | font-style: normal; | ||
+ | } | ||
+ | @font-face { | ||
+ | font-family: Candara; | ||
+ | src: url(https://static.igem.org/mediawiki/2015/3/3e/Freiburg_Candarai.ttf) format('truetype'); | ||
+ | font-weight: normal; | ||
+ | font-style: italic; | ||
+ | } | ||
− | + | /* ============= END: Declare Fonts for non-Windows machines ============= */ | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /* ============= CSS for Menubar ============= */ | |
− | + | #menubar { | |
− | + | font-size: 16px; | |
− | + | background-color: #5781bd; | |
− | + | display: table; | |
− | + | width: 100%; | |
− | + | height: 70px; | |
− | + | border-collapse: collapse; | |
− | + | border: none; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
+ | /*The sub (and subsubs) items of the menu*/ | ||
+ | #menubar ul li ul li{ | ||
+ | width: 200px; | ||
+ | height: 30px; | ||
+ | margin-top: 2px; | ||
+ | } | ||
+ | /*The first (horizontal) line of menu items*/ | ||
+ | #menubar > ul{ | ||
− | + | position: relative; | |
− | + | margin-top: 25; | |
− | + | left: 50%; | |
− | + | display: block; | |
− | + | transform: translate(-50%,0%); | |
− | + | } | |
− | + | #menubar ul ul { | |
− | + | background-color: #5781bd; | |
− | + | display: none; | |
− | + | position: absolute; | |
+ | margin-left: 0px; | ||
+ | float: left; | ||
+ | margin-top:0px; | ||
+ | } | ||
+ | #menubar ul ul li{ | ||
+ | display: block; | ||
+ | margin-left: 0px; | ||
+ | } | ||
− | + | #menubar ul li { | |
− | + | width: 100px; | |
− | + | display: table-cell; | |
− | + | font-family: "Candara","Arial"; | |
− | + | } | |
− | + | #menubar ul a{ | |
− | + | text-decoration: none; | |
− | + | color: #FFFFFF; | |
− | + | font-style: bold; | |
+ | text-align: left; | ||
+ | } | ||
+ | #menubar ul a:visited{ | ||
+ | display: block; | ||
+ | text-decoration: none; | ||
+ | color: #FFFFFF; | ||
+ | font-style: bold; | ||
+ | } | ||
+ | #menubar ul li:hover > ul{ | ||
+ | color: #EEEE00; | ||
+ | display: block; | ||
+ | padding-top: 0px; | ||
+ | padding-left: 20px; | ||
+ | } | ||
+ | #menubar ul li:hover{ | ||
+ | color: #EEEE00; | ||
+ | } | ||
+ | /* ============= END: CSS for Menubar ============= */ | ||
− | + | /* ============= Important Site setup ============= */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | .content_background_wrapper{ | |
− | + | ||
+ | position: relative; | ||
+ | background-color: #f9f9f9; | ||
+ | overflow:hidden; | ||
− | + | } | |
− | + | .central_position_wrap{ | |
+ | float: left; | ||
+ | max-width: 1000px; | ||
+ | float: left; | ||
+ | position: relative; | ||
+ | left: 50%; | ||
+ | } | ||
− | + | .page_content{ | |
− | + | display:block; | |
− | + | float: left; | |
− | + | position: relative; | |
− | + | left: -50%; | |
− | + | } | |
− | + | ||
− | + | /* ============= END: Important Site setup ============= */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /* ============= Text Styling ============= */ | |
− | + | .page_content{ | |
+ | color: #757575; | ||
+ | font-family: "Candara", "Arial"; | ||
+ | font-style: normal; | ||
+ | font-size: 16px; | ||
+ | line-height: 1.8; | ||
+ | } | ||
− | + | /* ============= END: Headline Styling ============= */ | |
+ | h1, h2, h3{ | ||
+ | color: #c1002a; | ||
+ | } | ||
− | |||
− | |||
− | + | /* ============= Full Width Banners ============= */ | |
+ | #banner_home{ | ||
+ | margin:0; | ||
+ | padding: 0px; | ||
+ | background-image: url("../wiki/images/8/89/Freiburg_frontpage_banner.jpg"); | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: cover; | ||
+ | width: 100%; | ||
+ | height: 400px; | ||
+ | } | ||
+ | #banner_team{ | ||
+ | margin:0; | ||
+ | padding: 0px; | ||
+ | background-image: url("../wiki/images/e/e7/FreiburgTeam2015.jpg"); | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: cover; | ||
+ | width: 100%; | ||
+ | height: 400px; | ||
+ | } | ||
+ | #banner_labjournal{ | ||
+ | margin:0; | ||
+ | padding: 0px; | ||
+ | background-image: url("https://static.igem.org/mediawiki/2015/d/dc/Labjournal.jpg"); | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: cover; | ||
+ | width: 100%; | ||
+ | height: 400px; | ||
+ | } | ||
− | + | /* ============= END: Full Width Banners ============= */ | |
− | + | ||
− | + | ||
− | + | </style> | |
− | + | ||
</html> | </html> |
Revision as of 15:54, 16 August 2015