Team:UCLA/Template/css

From 2013.igem.org

(Difference between revisions)
Line 1: Line 1:
-
html, body{
+
/* General Blueprint Style */
-
  background-color:white;
+
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);
 +
@font-face {
 +
font-family: 'fontawesome';
 +
src:url('../fonts/fontawesome.eot');
 +
src:url('../fonts/fontawesome.eot?#iefix') format('embedded-opentype'),
 +
url('../fonts/fontawesome.svg#fontawesome') format('svg'),
 +
url('../fonts/fontawesome.woff') format('woff'),
 +
url('../fonts/fontawesome.ttf') format('truetype');
 +
font-weight: normal;
 +
font-style: normal;
}
}
-
/* Headers */
+
*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
-
h1, h2, h3, h4, h5 {font-family:Verdana}
+
body, html { font-size: 100%; padding: 0; margin: 0;}
-
/* Full page formats */
+
/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
 +
.clearfix:before, .clearfix:after { content: " "; display: table; }
 +
.clearfix:after { clear: both; }
-
body#space{
+
body {
-
  background-image: url('http://st.gdefon.com/wallpapers_original/wallpapers/34746_los-andzheles_vechernie-ogni_panorama_2831x1080_(www.GdeFon.ru).jpg');
+
    font-family: 'Lato', Calibri, Arial, sans-serif;
-
  background-attachment: fixed;  
+
    color: #fff;
-
  background-repeat: repeat;
+
-
  background-size: 100%;
+
-
  height: 1000px;
+
-
  width: 2000px;
+
}
}
-
#top-section{
+
a {
-
  position: relative;
+
color: #f0f0f0;
-
  height: 150px;
+
text-decoration: none;
-
  width: 975px;  
+
}
}
-
#contentSub, #search-controls, .firstHeading, #catlinks, #p-logo{
+
a:hover {
-
  display:none;  
+
color: #000;
}
}
-
#container{  
+
.container > header {
-
  margin: 15px 0px auto auto;  
+
padding: 2.875em 1.875em 1.875em;
-
  width: 975px;  
+
position: fixed;
 +
z-index: 1000;
 +
width: 60%;
 +
left: 20%;
}
}
-
#globalwrapper{  
+
.container > header h1 {
-
  margin: 0px 0px auto auto;  
+
font-size: 2.125em;
 +
line-height: 1.3;
 +
margin: 0;
 +
float: left;
 +
font-weight: 400;
}
}
-
p{
+
.container > header span {
-
  margin: 5px;
+
display: block;
-
  font-family: Verdana;
+
font-weight: 700;
 +
text-transform: uppercase;
 +
letter-spacing: 0.5em;
 +
padding: 0 0 0.6em 0.1em;
}
}
-
 
+
 
-
h4{
+
.container > header nav {
-
  margin: 5px;
+
float: right;
 +
}
 +
 
 +
.container > header nav a {
 +
display: block;
 +
float: left;
 +
position: relative;
 +
width: 2.5em;
 +
height: 2.5em;
 +
background: #fff;
 +
border-radius: 50%;
 +
color: transparent;
 +
margin: 0 0.1em;
 +
border: 4px solid #fff;
 +
text-indent: -8000px;
 +
}
 +
 
 +
.container > header nav a:after {
 +
content: attr(data-info);
 +
color: #fff;
 +
position: absolute;
 +
width: 600%;
 +
top: 120%;
 +
text-align: right;
 +
right: 0;
 +
opacity: 0;
 +
pointer-events: none;
 +
}
 +
 
 +
.container > header nav a:hover:after {
 +
opacity: 1;
 +
}
 +
 
 +
.container > header nav a:hover {
 +
background: #47a3da;
 +
}
 +
 
 +
.icon-drop:before,
 +
.icon-arrow-left:before {
 +
font-family: 'fontawesome';
 +
position: absolute;
 +
top: 0;
 +
width: 100%;
 +
height: 100%;
 +
speak: none;
 +
font-style: normal;
 +
font-weight: normal;
 +
line-height: 2;
 +
text-align: center;
 +
color: #47a3da;
 +
-webkit-font-smoothing: antialiased;
 +
text-indent: 8000px;
 +
padding-left: 8px;
 +
}
 +
 
 +
.container > header nav a:hover:before {
 +
color: #fff;
 +
}
 +
 
 +
.icon-drop:before {
 +
content: "\e000";
 +
}
 +
 
 +
.icon-arrow-left:before {
 +
content: "\f060";
 +
}
 +
 
 +
@import url(http://fonts.googleapis.com/css?family=Raleway);
 +
/* Set all parents to full height */
 +
html, body,
 +
.container,
 +
.cbp-fbscroller,
 +
.cbp-fbscroller section {
 +
height: 100%;
 +
}
 +
 
 +
/* The nav is fixed on the right side  and we center it by translating it 50%
 +
(we don't know it's height so we can't use the negative margin trick) */
 +
.cbp-fbscroller > nav {
 +
position: fixed;
 +
z-index: 9999;
 +
right: 100px;
 +
top: 50%;
 +
width: 26px;
 +
-webkit-transform: translateY(-50%);
 +
-moz-transform: translateY(-50%);
 +
-ms-transform: translateY(-50%);
 +
transform: translateY(-50%);
 +
}
 +
 
 +
.cbp-fbscroller > nav a {
 +
display: block;
 +
position: relative;
 +
z-index: 9999;
 +
color: transparent;
 +
width: 26px;
 +
height: 26px;
 +
outline: none;
 +
margin: 25px 0;
 +
border-radius: 50%;
 +
border: 4px solid #fff;
 +
}
 +
 
 +
.no-touch .cbp-fbscroller > nav a:hover {
 +
background: rgba(255,255,255,0.6);
 +
}
 +
 
 +
.cbp-fbscroller > nav a.cbp-fbcurrent {
 +
background: #fff;
 +
}
 +
 
 +
/* background-attachment does the trick */
 +
.cbp-fbscroller section {
 +
position: relative;
 +
background-position: top center;
 +
background-repeat: no-repeat;
 +
background-size: cover;
 +
}
 +
 
 +
.no-touch .cbp-fbscroller section {
 +
background-attachment: fixed;
 +
}
 +
 
 +
#fbsection1 {
 +
background-image: url("https://static.igem.org/mediawiki/2013/c/ce/Ucla_bg1.png");
 +
}
 +
 
 +
#infb1 {
 +
font-family: 'Raleway', sans-serif;
 +
position: relative;
 +
height: 600px;
 +
width: 800px;
 +
margin: 18px auto 0;
 +
}
 +
 
 +
#fbsection2 {
 +
background-image: url("https://static.igem.org/mediawiki/2013/f/f9/Ucla_bg2.png");
 +
}
 +
 
 +
#fbsection3 {
 +
background-image: url(../images/3.jpg);
 +
}
 +
 
 +
#fbsection4 {
 +
background-image: url(../images/4.jpg);
 +
}
 +
 
 +
#fbsection5 {
 +
background-image: url(../images/5.jpg);
}
}

Revision as of 08:46, 12 September 2013

/* General Blueprint Style */ @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700); @font-face { font-family: 'fontawesome'; src:url('../fonts/fontawesome.eot'); src:url('../fonts/fontawesome.eot?#iefix') format('embedded-opentype'), url('../fonts/fontawesome.svg#fontawesome') format('svg'), url('../fonts/fontawesome.woff') format('woff'), url('../fonts/fontawesome.ttf') format('truetype'); font-weight: normal; font-style: normal; }

  • , *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

body, html { font-size: 100%; padding: 0; margin: 0;}

/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */ .clearfix:before, .clearfix:after { content: " "; display: table; } .clearfix:after { clear: both; }

body {

   font-family: 'Lato', Calibri, Arial, sans-serif;
   color: #fff;

}

a { color: #f0f0f0; text-decoration: none; }

a:hover { color: #000; }

.container > header { padding: 2.875em 1.875em 1.875em; position: fixed; z-index: 1000; width: 60%; left: 20%; }

.container > header h1 { font-size: 2.125em; line-height: 1.3; margin: 0; float: left; font-weight: 400; }

.container > header span { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5em; padding: 0 0 0.6em 0.1em; }

.container > header nav { float: right; }

.container > header nav a { display: block; float: left; position: relative; width: 2.5em; height: 2.5em; background: #fff; border-radius: 50%; color: transparent; margin: 0 0.1em; border: 4px solid #fff; text-indent: -8000px; }

.container > header nav a:after { content: attr(data-info); color: #fff; position: absolute; width: 600%; top: 120%; text-align: right; right: 0; opacity: 0; pointer-events: none; }

.container > header nav a:hover:after { opacity: 1; }

.container > header nav a:hover { background: #47a3da; }

.icon-drop:before, .icon-arrow-left:before { font-family: 'fontawesome'; position: absolute; top: 0; width: 100%; height: 100%; speak: none; font-style: normal; font-weight: normal; line-height: 2; text-align: center; color: #47a3da; -webkit-font-smoothing: antialiased; text-indent: 8000px; padding-left: 8px; }

.container > header nav a:hover:before { color: #fff; }

.icon-drop:before { content: "\e000"; }

.icon-arrow-left:before { content: "\f060"; }

@import url(http://fonts.googleapis.com/css?family=Raleway); /* Set all parents to full height */ html, body, .container, .cbp-fbscroller, .cbp-fbscroller section { height: 100%; }

/* The nav is fixed on the right side and we center it by translating it 50% (we don't know it's height so we can't use the negative margin trick) */ .cbp-fbscroller > nav { position: fixed; z-index: 9999; right: 100px; top: 50%; width: 26px; -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); }

.cbp-fbscroller > nav a { display: block; position: relative; z-index: 9999; color: transparent; width: 26px; height: 26px; outline: none; margin: 25px 0; border-radius: 50%; border: 4px solid #fff; }

.no-touch .cbp-fbscroller > nav a:hover { background: rgba(255,255,255,0.6); }

.cbp-fbscroller > nav a.cbp-fbcurrent { background: #fff; }

/* background-attachment does the trick */ .cbp-fbscroller section { position: relative; background-position: top center; background-repeat: no-repeat; background-size: cover; }

.no-touch .cbp-fbscroller section { background-attachment: fixed; }

  1. fbsection1 {

background-image: url("Ucla_bg1.png"); }

  1. infb1 {

font-family: 'Raleway', sans-serif; position: relative; height: 600px; width: 800px; margin: 18px auto 0; }

  1. fbsection2 {

background-image: url("Ucla_bg2.png"); }

  1. fbsection3 {

background-image: url(../images/3.jpg); }

  1. fbsection4 {

background-image: url(../images/4.jpg); }

  1. fbsection5 {

background-image: url(../images/5.jpg); }