Difference between revisions of "Team:CityU HK/Template/parallax css"
(84 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
body{ | body{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
width: 100%; | width: 100%; | ||
height:100%; | height:100%; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
.content h2 { | .content h2 { | ||
− | font-family: | + | font-family: 'Lato', sans-serif;; |
− | font-weight: | + | font-weight: 700; |
font-size: 40px; | font-size: 40px; | ||
text-align: center; | text-align: center; | ||
Line 44: | Line 28: | ||
font-family: 'Alegreya Sans', sans-serif; | font-family: 'Alegreya Sans', sans-serif; | ||
font-weight: normal; | font-weight: normal; | ||
− | font-size: 1. | + | font-size: 1.7em; |
− | text-align: | + | text-align: center; |
margin: 5px 0; | margin: 5px 0; | ||
padding: 0; | padding: 0; | ||
Line 51: | Line 35: | ||
position: relative; | position: relative; | ||
} | } | ||
+ | .p-white a {color:#fff;} | ||
+ | |||
.p-white {color:#ffffff;} | .p-white {color:#ffffff;} | ||
Line 76: | Line 62: | ||
} | } | ||
− | .header_white { font-family: | + | .header_white { font-family: 'Lato', sans-serif; font-weight: 700; margin: 70px 0 0 70px; color: #fff; font-size: 4em; } |
− | .header_black { font-family: | + | .header_black { font-family:'Lato', sans-serif; font-weight:700; margin: 70px 0 0 70px; color: #ffb90f; font-size: 4em;} |
− | .quotes_container { width: 800px; margin: 0 auto;} | + | .quotes_container {width:800px; margin: 0 auto;} |
+ | |||
+ | /*= BUTTONS | ||
+ | --------------------------------------------------------*/ | ||
+ | #practice-btn{ | ||
+ | background-color: transparent; | ||
+ | height: 60px; | ||
+ | width: 300px; | ||
+ | border-style:solid; | ||
+ | border-color:#fff; | ||
+ | border-radius: 50px; | ||
+ | margin: 0 auto; | ||
+ | } | ||
+ | #practice-btn font{color:#fff; font-size:1.5em; vertical-align:middle;} | ||
+ | |||
+ | #practice-btn:hover{ | ||
+ | background-color:#ffb90f; | ||
+ | border-color:#ffb90f; | ||
+ | zoom:105%; | ||
+ | } | ||
/*= SLIDES STYLING | /*= SLIDES STYLING | ||
Line 105: | Line 110: | ||
#slide3{ | #slide3{ | ||
− | background: url('https://static.igem.org/mediawiki/2015/ | + | background: url('https://static.igem.org/mediawiki/2015/5/5a/2015CityU_HK_result.png') 50% 0 no-repeat fixed; |
color: #fff; | color: #fff; | ||
height: 600px; | height: 600px; | ||
− | padding: | + | padding: 50px 0 0 0; |
background-size: cover; | background-size: cover; | ||
} | } | ||
#slide4{ | #slide4{ | ||
− | background-color: | + | background-color: rgba(241, 196, 15,1.0); |
− | color: # | + | color: #fff; |
− | height: | + | height: 500px; |
− | padding: | + | padding: 20px 0; |
} | } | ||
#slide5{ | #slide5{ | ||
− | background: url('https://static.igem.org/mediawiki/2015/ | + | background: url('https://static.igem.org/mediawiki/2015/8/89/2015CityU_HK_schoolvisit_slide.jpeg') 50% 0 no-repeat fixed; |
height: 500px; | height: 500px; | ||
margin: 0; | margin: 0; | ||
− | padding: | + | padding-bottom: 30px; |
+ | padding-top:30px; | ||
color: #fff; | color: #fff; | ||
background-size: cover; | background-size: cover; | ||
Line 130: | Line 136: | ||
/********************** CIRCULAR PIC ***********************/ | /********************** CIRCULAR PIC ***********************/ | ||
#circle-container { | #circle-container { | ||
− | + | align:center; | |
+ | margin: 0 30px; | ||
+ | padding-bottom: 50px; | ||
} | } | ||
.circle { | .circle { | ||
border-radius:50%; | border-radius:50%; | ||
− | float: | + | float:right; |
− | margin: | + | margin:50px 30px; |
height:200px; | height:200px; | ||
width:200px; | width:200px; | ||
} | } | ||
.circle:hover { | .circle:hover { | ||
− | opacity: 0. | + | opacity: 0.5; |
− | ilter: alpha(opacity= | + | ilter: alpha(opacity=50); |
− | + | ||
} | } | ||
− | |||
#student { | #student { | ||
− | background:url('// | + | background:url('https://static.igem.org/mediawiki/2015/f/fb/2015CityU_HK_home_slide4.jpeg'); |
background-size: 200px 200px; | background-size: 200px 200px; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
align:center; | align:center; | ||
− | |||
} | } | ||
− | #student:hover {background-size: 230px 230px; } | + | #student:hover {background-size: 230px 230px;} |
− | # | + | |
− | background:url('https://static.igem.org/mediawiki/2015/ | + | /*= TRUMBNAIL |
− | background-size: | + | --------------------------------------------------------*/ |
+ | /*.module-container{ | ||
+ | margin-bottom:50px; | ||
+ | margin-top:0; | ||
+ | height:300px; | ||
+ | }*/ | ||
+ | .trumbnail { | ||
+ | height:300px; | ||
+ | width:300px; | ||
+ | float:left; | ||
+ | margin: 0 50px; | ||
+ | top:-20px; | ||
+ | } | ||
+ | .trumbnail:hover { | ||
+ | opacity: 0.8; | ||
+ | ilter: alpha(opacity=80); | ||
+ | color:#ffb90f; | ||
+ | } | ||
+ | |||
+ | #lacZY { | ||
+ | background:url('https://static.igem.org/mediawiki/2015/c/c0/2015CityU_HK_lysis_plasmid.png'); | ||
+ | background-size:300px 300px; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
} | } | ||
− | |||
− | # | + | #lysis { |
− | background:url('https://static.igem.org/mediawiki/2015/ | + | background:url('https://static.igem.org/mediawiki/2015/e/e6/2015CityU_HK_lacZY_plasmid.png'); |
− | background-size: | + | background-size:300px 300px; |
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
} | } | ||
− |
Latest revision as of 17:09, 18 September 2015
/* Theme Name: Simple Parallax Website Description: Simple Parallax Scrolling Effect Author: Samuel Dalusung
- /
/*= GENERAL STYLING
*/
body{ margin: 0; padding: 0; width: 100%;
height:100%;
}
.content h2 {
font-family: 'Lato', sans-serif;; font-weight: 700; font-size: 40px; text-align: center; color: #fff; margin: 0; padding: 0;
}
.content p {
font-family: 'Alegreya Sans', sans-serif; font-weight: normal; font-size: 1.7em; text-align: center; margin: 5px 0;
padding: 0; z-index: 1; position: relative; } .p-white a {color:#fff;}
.p-white {color:#ffffff;}
.p-grey {color:#585757;}
.center { margin: 0 auto; } .content{ margin: 0 auto; width: 980px; } .clear { clear: both; } a.lpanel { float: left; color: #e1e1e1; font-size: 12px; font-family:"Wellfleet"; text-decoration: none; margin: 7px 11px; } a.rpanel { float: right; color: #e1e1e1; font-size: 12px; font-family:"Wellfleet"; text-decoration: none; margin: 7px 11px; }
a.lpanel:hover{ color: #fff; } a.rpanel:hover{ color: #fff; }
/*= HEADERS AND SOME ELEMENTS
*/
.quotes {
font-family: 'Goudy Bookletter 1911', serif; font-weight: normal; font-size: 1em; text-align: left; margin: 50px auto;
}
.header_white { font-family: 'Lato', sans-serif; font-weight: 700; margin: 70px 0 0 70px; color: #fff; font-size: 4em; } .header_black { font-family:'Lato', sans-serif; font-weight:700; margin: 70px 0 0 70px; color: #ffb90f; font-size: 4em;} .quotes_container {width:800px; margin: 0 auto;}
/*= BUTTONS
*/
- practice-btn{
background-color: transparent; height: 60px; width: 300px; border-style:solid; border-color:#fff; border-radius: 50px; margin: 0 auto;
}
- practice-btn font{color:#fff; font-size:1.5em; vertical-align:middle;}
- practice-btn:hover{
background-color:#ffb90f; border-color:#ffb90f; zoom:105%;
}
/*= SLIDES STYLING
*/
- slide1, #slide2{ width: 100%;}
- slide1{
background:url('https://static.igem.org/mediawiki/2015/a/ac/2015CityU_HK_homepic.jpeg') 50% 0 no-repeat fixed; color: #fff; height:750px; margin: 0; padding: 200px 0 260px 0; background-size: cover; }
- slide2{
background-color: #fff; color: #333333;
text-align:left;
height: 600px; margin: 0 auto; overflow: hidden; padding: 50px 0; }
- slide3{
background: url('https://static.igem.org/mediawiki/2015/5/5a/2015CityU_HK_result.png') 50% 0 no-repeat fixed; color: #fff; height: 600px; padding: 50px 0 0 0; background-size: cover; }
- slide4{
background-color: rgba(241, 196, 15,1.0); color: #fff; height: 500px; padding: 20px 0; }
- slide5{
background: url('https://static.igem.org/mediawiki/2015/8/89/2015CityU_HK_schoolvisit_slide.jpeg') 50% 0 no-repeat fixed; height: 500px; margin: 0; padding-bottom: 30px;
padding-top:30px;
color: #fff; background-size: cover; }
/********************** CIRCULAR PIC ***********************/
- circle-container {
align:center; margin: 0 30px; padding-bottom: 50px;
}
.circle {
border-radius:50%; float:right; margin:50px 30px; height:200px; width:200px;
} .circle:hover {
opacity: 0.5; ilter: alpha(opacity=50);
}
- student {
background:url('https://static.igem.org/mediawiki/2015/f/fb/2015CityU_HK_home_slide4.jpeg'); background-size: 200px 200px; background-repeat: no-repeat; align:center;
}
- student:hover {background-size: 230px 230px;}
/*= TRUMBNAIL
*/
/*.module-container{
margin-bottom:50px; margin-top:0; height:300px;
}*/ .trumbnail {
height:300px; width:300px; float:left; margin: 0 50px; top:-20px;
} .trumbnail:hover {
opacity: 0.8; ilter: alpha(opacity=80); color:#ffb90f;
}
- lacZY {
background:url('https://static.igem.org/mediawiki/2015/c/c0/2015CityU_HK_lysis_plasmid.png'); background-size:300px 300px; background-repeat: no-repeat;
}
- lysis {
background:url('https://static.igem.org/mediawiki/2015/e/e6/2015CityU_HK_lacZY_plasmid.png'); background-size:300px 300px; background-repeat: no-repeat;
}