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

 
(390 intermediate revisions by 3 users not shown)
Line 8: Line 8:
  
 
/* Background of the page */
 
/* Background of the page */
.contentContainer#home {
+
#home .contentContainer {
 
   /*background-image: url('../images/idli7_medium.jpg');*/
 
   /*background-image: url('../images/idli7_medium.jpg');*/
background-image: url('https://static.igem.org/mediawiki/2015/d/df/ParisBettencourt_homeBanner.jpg');
+
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');
 +
    background-repeat: no-repeat;
 +
    background-size: cover;
 +
    background-attachment: fixed;
 
}
 
}
  
 
/* Banner (FIY logo and name of the team) */
 
/* Banner (FIY logo and name of the team) */
 +
 +
#main-logo {
 +
    width: 65vh;
 +
    height: 50vh;
 +
    margin: auto;
 +
    display: block;
 +
    position: relative;
 +
    background-size: 65vh 50vh;
 +
    margin-top: -50vh;
 +
    top: -25vh;
 +
}
 +
 
#banner h3 {
 
#banner h3 {
 
display: block;
 
display: block;
 
position: absolute;
 
position: absolute;
bottom: 5%;
+
bottom: 7%;
 
right: 0;
 
right: 0;
  
 
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,
+
/*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;
+
            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: 'Generica';
 
font-family: 'Generica';
letter-spacing: 7px;
 
 
}
 
}
  
/* Text content */
+
/* Text content */ /* Tweak here */
#textContent {
+
#home .textWrapper {
width: 100%;
+
        background-color: black;
margin-bottom: 5px;
+
        color: white;
background-color: white;
+
        width: 100%;
 +
        border-top: 5px solid whitesmoke;
 +
        border-bottom: 5px solid whitesmoke;
 
}
 
}
  
 +
.separate {
 +
border-bottom: 5px solid whitesmoke;
 +
}
  
/* Motivation block */
+
#home .textContent {
#motivation {
+
background-color: inherit;
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;
+
.textContent .nav a, .textContent .nav a:visited {
font-family: 'Generica';
+
text-decoration: none;
font-size: 60px;
+
cursor: pointer;  
text-align: center;
+
color: inherit;
position: absolute;
+
font-size: 1.4em;
top: 20px;
+
left: 5%;
+
 
}
 
}
  
  
/* Description block */
+
.textContent .nav a:hover, .textContent .nav a:active {
#description {
+
text-decoration: none;
width: 100%;
+
color: inherit;
height: 400px;
+
margin-top: 5px;
+
background-color: black;
+
 
}
 
}
  
 +
.textContent .nav {
 +
text-align: justify;
 +
text-transform: uppercase;
 +
}
  
/* Overview block */
+
.textContent .nav a {
#overview {
+
cursor: pointer;
width: 50%;
+
height: 100%;
+
background-color: black;
+
position: relative;
+
float: left;
+
}
+
#overview h2 {
+
font-family: 'Generica';
+
color: white;
+
font-size: 60px;
+
text-align: center;
+
position: absolute;
+
top: 20px;
+
left: 10%;
+
}
+
#overview p {
+
color: white;
+
margin: 0px;
+
margin-top: 60px;
+
padding: 20px;
+
text-align: justify;
+
 
}
 
}
  
 
+
.textContent .nav div a span:after {
/* Subprojects block */
+
    content: '';
#subprojects {
+
    width: 100%;
width:50%;
+
    height: 100%;
float: left;
+
    bottom: 0;
height: 100%;
+
    left: 0;
 +
    border-bottom: 1px solid rgba(255,255,255,0.7);
 +
    transition: border-color 0.3s;
 +
    position: absolute;
 
}
 
}
#subprojects a {
+
.textContent .nav div a:hover span:after {
color: white;
+
    border-bottom-color: initial;
text-decoration: none;
+
font: Helvetica, Verdana, Arial;
+
text-align: center;
+
text-transform: uppercase;
+
height: 100%;
+
width: 100%;
+
display: block;
+
 
}
 
}
  
/* Each subproject */
+
.stretch {
#sub1,
+
padding: 0 7%;
#sub2,
+
text-align: center;
#sub3,
+
font-size: 1.1em;
#sub4,
+
font-family: Generica;
#sub5,
+
line-height: 3em;
#sub6 {
+
position: relative;
height: 50%;
+
display: inline-block;
width: 33.33333%;
+
width: 100%;
float: left;
+
-webkit-box-sizing: border-box;
+
-moz-box-sizing: border-box;
+
box-sizing: border-box;
+
 
}
 
}
  
#sub1 {
+
.yellow {
background-color: #00AEEF;
+
        color: #ffed00;
 
}
 
}
#sub2 {
+
.cyan {
background-color: #ED028C;
+
        color: #009ee3;
 
}
 
}
#sub3 {
+
.magenta {
background-color: #FFF101;
+
        color: #e5007d;
 
}
 
}
#sub4 {
+
.black {
background-color: #ED028C;
+
        color: black;
 
}
 
}
#sub5 {
+
.yellow.black a,
background-color: #FFF101;
+
.yellow.black {
 +
        color: black;
 
}
 
}
#sub6 {
+
.cyan.black a,
background-color: #00AEEF;
+
.cyan.black {
 +
        color: black;
 +
}
 +
.magenta.black a,
 +
.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