Difference between revisions of "Template:Paris Bettencourt/cssHome"

 
(395 intermediate revisions by 3 users not shown)
Line 7: Line 7:
  
  
/* Title (FIY), only Home page*/
+
/* Background of the page */
/* Home banner
+
#home .contentContainer {
#homeBanner {
+
  /*background-image: url('../images/idli7_medium.jpg');*/
width: 100%;
+
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.65) 100%), url('https://static.igem.org/mediawiki/2015/d/df/ParisBettencourt_homeBanner.jpg');
height: 100%;
+
    background-repeat: no-repeat;
position: fixed;
+
    background-size: cover;
top: 0;
+
    background-attachment: fixed;
    background-image: url('https://static.igem.org/mediawiki/2015/d/d1/ParisBettencourt_Banner1.jpg');
+
}
background-size: cover;
+
background-repeat: no-repeat;
+
background-position: left;
+
z-index: -10;
+
}*/
+
  
/*#homeBanner h1 {
+
/* Banner (FIY logo and name of the team) */
/* Position & size
+
/*display: table-caption;
+
position: relative;
+
top: 100px;
+
  
/* Block
+
#main-logo {
background-color: rgba(0,0,0,0.5);
+
    width: 65vh;
padding: 20px;
+
    height: 50vh;
 +
    margin: auto;
 +
    display: block;
 +
    position: relative;
 +
    background-size: 65vh 50vh;
 +
    margin-top: -50vh;
 +
    top: -25vh;
 +
}
  
/* Style
+
#banner h3 {
color: white;
+
display: block;
font-size: 70px;
+
/*font-family: 'AlexBrushRegular';
+
font-family: 'GenomeThin';
+
font-weight: 600;
+
letter-spacing: 10px;
+
text-shadow: 0px 0px 5px rgba(255,255,255,0.4);
+
}*/
+
 
+
/*#homeBanner h1 .letter {
+
color: #F8E9B3;
+
}*/
+
 
+
 
+
/*#homeBanner h3 {
+
 
position: absolute;
 
position: absolute;
top: 470px;
+
bottom: 7%;
float: right;
+
right: 0;
  
background-color: rgba(0,0,0,0.5);
 
 
padding: 10px 20px 10px 20px;
 
padding: 10px 20px 10px 20px;
 
+
/*text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000,
 +
            0.5px 0.5px #000, -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000;*/
 
color: white;
 
color: white;
font-size: 40px;
+
font-size: 35px;
font-family: 'GenomeThin';
+
font-family: 'Generica';
font-weight: 700;
+
letter-spacing: 7px;
+
text-align: right;
+
text-shadow: 0px 0px 5px rgba(255,255,255,0.4);
+
 
}
 
}
#homeBanner img {
 
display: block;
 
width: 400px;
 
margin: auto;
 
padding-top: 100px;
 
}*/
 
  
/* Project description */
+
/* Text content */ /* Tweak here */
/*#blockDescription {
+
#home .textWrapper {
        min-height: 200px;
+
        width: 100%;
+
}
+
#projDescription {
+
 
         background-color: black;
 
         background-color: black;
        float: left;
 
        width: 50%;
 
}
 
#projDescription p {
 
 
         color: white;
 
         color: white;
    text-indent: 20px;
 
    text-align: justify;
 
    text-decoration: none;
 
        font-size: 24px;
 
        padding: 25px;
 
}*/
 
 
 
/* Tiles for subprojects */
 
/* Common stuff to make them responsive */
 
/*.tiles {
 
        float: left;
 
        position: relative;
 
        width: 16.6667%;
 
        overflow: hidden;
 
}
 
.tiles:before {
 
        content: "";
 
        display: block;
 
        padding-top: 100%;
 
}
 
.tileContent {
 
        position: absolute;
 
        top: 0;
 
        bottom: 0;
 
        left: 0;
 
        right: 0;
 
        color: red;
 
}
 
.tileContent p {
 
        display: table;
 
 
         width: 100%;
 
         width: 100%;
         height: 100%;
+
         border-top: 5px solid whitesmoke;
 +
        border-bottom: 5px solid whitesmoke;
 
}
 
}
.tileContent span {
 
        display: table-cell;
 
        text-align: center;
 
        vertical-align: middle;
 
        color: white;
 
        font-size: 28px;
 
        padding: 10px;
 
}*/
 
  
 
+
.separate {
 
+
border-bottom: 5px solid whitesmoke;
 
+
/* Background of the page */
+
.contentContainer#home {
+
    background-image: url('../images/idli7_medium.jpg');
+
background-size: cover;
+
background-repeat: no-repeat;
+
background-position: left;
+
background-attachment: fixed;
+
 
}
 
}
  
/* Banner (FIY logo and name of the team) */
+
#home .textContent {
#banner {
+
background-color: inherit;
height: 700px;
+
 
}
 
}
#banner h3 {
 
display: block;
 
position: absolute;
 
top: 370px;
 
right: 0;
 
  
background-color: rgba(0,0,0,0.5);
+
.textContent .nav a, .textContent .nav a:visited {
padding: 10px 20px 10px 20px;
+
text-decoration: none;
 
+
cursor: pointer;  
color: white;
+
color: inherit;
font-size: 40px;
+
font-size: 1.4em;
font-family: 'Generica';
+
letter-spacing: 7px;
+
text-shadow: 0px 0px 5px rgba(255,255,255,0.4);
+
}
+
#banner img {
+
display: block;
+
position: absolute;
+
top: 200px;
+
left: 10%;
+
width: 400px;
+
 
}
 
}
  
  
 
+
.textContent .nav a:hover, .textContent .nav a:active {
/* Text content */
+
text-decoration: none;
#textContent {
+
color: inherit;
width: 100%;
+
margin-bottom: 5px;
+
background-color: white;
+
 
}
 
}
  
 
+
.textContent .nav {
/* Motivation block */
+
text-align: justify;
#motivation {
+
text-transform: uppercase;
width: 100%;
+
height: 200px;
+
background-color: black;
+
position: relative;
+
background-image: url('../images/emptyPlateShade.jpg');
+
background-size: 100%;
+
border-top: 5px solid white;
+
}
+
#motivation h2 {
+
color: white;
+
font-size: 60px;
+
text-align: center;
+
position: absolute;
+
top: 20px;
+
left: 5%;
+
 
}
 
}
  
 
+
.textContent .nav a {
/* Description block */
+
cursor: pointer;
#description {
+
width: 100%;
+
height: 300px;
+
margin-top: 5px;
+
background-color: black;
+
 
}
 
}
  
 
+
.textContent .nav div a span:after {
/* Overview block */
+
    content: '';
#overview {
+
    width: 100%;
width: 50%;
+
    height: 100%;
height: 100%;
+
    bottom: 0;
background-color: black;
+
    left: 0;
position: relative;
+
    border-bottom: 1px solid rgba(255,255,255,0.7);
float: left;
+
    transition: border-color 0.3s;
 +
    position: absolute;
 
}
 
}
#overview h2 {
+
.textContent .nav div a:hover span:after {
color: white;
+
    border-bottom-color: initial;
font-size: 60px;
+
text-align: center;
+
position: absolute;
+
top: 20px;
+
left: 10%;
+
 
}
 
}
  
 
+
.stretch {
/* Subprojects block */
+
padding: 0 7%;
#subprojects {
+
text-align: center;
width:50%;
+
font-size: 1.1em;
float: right;
+
font-family: Generica;
height: 100%;
+
line-height: 3em;
}
+
position: relative;
#subprojects a {
+
display: inline-block;
color: white;
+
width: 100%;
text-decoration: none;
+
font: Helvetica, Verdana, Arial;
+
text-align: center;
+
text-transform: uppercase;
+
height: 100%;
+
width: 100%;
+
display: block;
+
border: 1px solid green;
+
 
}
 
}
  
/* Each subproject */
+
.yellow {
#sub1,
+
        color: #ffed00;
#sub2,
+
#sub3,
+
#sub4,
+
#sub5,
+
#sub6 {
+
height: 150px;
+
width: 150px;
+
float: left;
+
-webkit-box-sizing: border-box;
+
-moz-box-sizing: border-box;
+
box-sizing: border-box;
+
 
}
 
}
 
+
.cyan {
#sub1 {
+
        color: #009ee3;
background-color: #00AEEF;
+
 
}
 
}
#sub2 {
+
.magenta {
background-color: #ED028C;
+
        color: #e5007d;
 
}
 
}
#sub3 {
+
.black {
background-color: #FFF101;
+
        color: black;
 
}
 
}
#sub4 {
+
.yellow.black a,
background-color: #00AEEF;
+
.yellow.black {
 +
        color: black;
 
}
 
}
#sub5 {
+
.cyan.black a,
background-color: #ED028C;
+
.cyan.black {
 +
        color: black;
 
}
 
}
#sub6 {
+
.magenta.black a,
background-color: #00AEEF;
+
.magenta.black {
 +
        color: black;
 
}
 
}
  
 
+
.textContent .nav div a.yellow span:after {
 
+
    content: '';
/*#block4 {
+
    width: 100%;
        background-color: #00AEEF;
+
    height: 100%;
 +
    bottom: 0;
 +
    left: 0;
 +
    border-bottom: 1px solid #ffed00;
 +
    transition: border-width 0.3s;
 +
    position: absolute;
 +
    color: black;
 
}
 
}
#block5 {
+
.textContent .nav div a.cyan span:after {
        background-color: #ED028C;
+
    content: '';
 +
    width: 100%;
 +
    height: 100%;
 +
    bottom: 0;
 +
    left: 0;
 +
    border-bottom: 1px solid #009ee3;
 +
    transition: border-width 0.3s;
 +
    position: absolute;
 +
    color: black;
 
}
 
}
#block6 {
+
.textContent .nav div a.magenta span:after {
        background-color: #FFF101;
+
    content: '';
}*/
+
    width: 100%;
 
+
    height: 100%;
 
+
    bottom: 0;
 
+
    left: 0;
/* Very small screens: only one row */
+
    border-bottom: 1px solid #e5007d;
@media all and (max-width: 480px) {
+
    transition: border-width 0.3s;
 
+
    position: absolute;
      #blockDescription {
+
    color: black;
              display: table;
+
}
              border: 1px solid red;
+
.textContent .nav div a.yellow:hover span:after,
      }
+
.textContent .nav div a.cyan:hover span:after,
 
+
.textContent .nav div a.magenta:hover span:after {
 
+
    border-bottom-width: 3px;
 
+
 
}
 
}
  
 
+
p.white {
 
+
    color: white;
/* Smartphones and screens < 768px */
+
@media only screen and (max-width: 640px),
+
only screen and (max-device-width: 640px) {
+
        /* Banner is smaller */
+
        #homeBanner {
+
                height: 300px;
+
        }
+
        #homeBanner h1 {
+
                font-size: 25px;
+
                top: 40px;
+
            letter-spacing: 5px;
+
        }
+
        #homeBanner h3 {
+
                font-size: 20px;
+
                top: 70px;
+
            letter-spacing: 5px;
+
        }
+
        #projDescription p {
+
                padding: 10px;
+
                font-size: 18px;
+
        }
+
 
+
 
}
 
}
  
 
</style>
 
</style>
 
</html>
 
</html>

Latest revision as of 22:40, 19 November 2015