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

 
(101 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');
        height: 100%;
+
    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) */
#banner h3.home {
+
 
 +
#main-logo {
 +
    width: 65vh;
 +
    height: 50vh;
 +
    margin: auto;
 +
    display: block;
 +
    position: relative;
 +
    background-size: 65vh 50vh;
 +
    margin-top: -50vh;
 +
    top: -25vh;
 +
}
 +
 
 +
#banner h3 {
 
display: block;
 
display: block;
 
position: absolute;
 
position: absolute;
Line 30: Line 44:
  
 
/* Text content */ /* Tweak here */
 
/* Text content */ /* Tweak here */
#textContent {
+
#home .textWrapper {
width: 100%;
+
margin-bottom: 5px;
+
background-color: white;
+
}
+
.textWrapperHome {
+
 
         background-color: black;
 
         background-color: black;
 +
        color: white;
 
         width: 100%;
 
         width: 100%;
         border-top: 10px solid white;
+
         border-top: 5px solid whitesmoke;
 +
        border-bottom: 5px solid whitesmoke;
 
}
 
}
  
.reduceWidth {
+
.separate {
width: 100%;
+
border-bottom: 5px solid whitesmoke;
max-width: 1800px;
+
        margin: auto;
+
background-color: black;
+
 
}
 
}
.smallLine {
 
        width: 100%;
 
        height: 5px;
 
        background-color: white;
 
}
 
.blockTitle {
 
        width: 100%;
 
        height: 55px;
 
        color:white;
 
        padding: 5px;
 
}
 
.blockTitle h2 {
 
        color:white;
 
        font-family: 'Generica';
 
        font-size: 50px;
 
        margin-left: 5%;
 
}
 
.blockTextLeft, .blockTextRight {
 
width: 50%;
 
background-color: black;
 
position: relative;
 
        background-position: center;
 
background-repeat: no-repeat;
 
        height: 350px;
 
}
 
.blockTextLeft {
 
float: left;
 
}
 
.blockTextRight {
 
float: right;
 
}
 
.blockTextLeft p, .blockTextRight p {
 
color: white;
 
margin: 0px;
 
padding: 20px;
 
text-align: justify;
 
}
 
.blockBoxesRight, .blockBoxesLeft {
 
width:46%;
 
        width: calc(50% - 6px);
 
float: left;
 
margin-top: 0;
 
        padding: 0;
 
        text-align: center;
 
        color: white;
 
        height: 350px;
 
}
 
.blockBoxesRight {
 
        border-left: 6px solid white;
 
}
 
.blockBoxesLeft {
 
        border-right: 6px solid white;
 
}
 
.blockBoxesRight table,
 
.blockBoxesLeft table {
 
  width: 100%;
 
  background-color: black;
 
  margin: 0;
 
  border-collapse: collapse;
 
  padding: 0;
 
}
 
.blockBoxesRight table td, .blockBoxesRight table th,
 
.blockBoxesLeft table td, .blockBoxesLeft table th {
 
  border: 3px solid white;
 
  display: table-cell;
 
  vertical-align: middle;
 
  
 +
#home .textContent {
 +
background-color: inherit;
 
}
 
}
.blockBoxesRight table tr:first-child th,
 
.blockBoxesLeft table tr:first-child th {
 
  border-top: 0;
 
}
 
.blockBoxesRight table tr:last-child td,
 
.blockBoxesLeft table tr:last-child td {
 
  border-bottom: 0;
 
}
 
.blockBoxesRight table tr td:first-child, .blockBoxesRight table tr th:first-child,
 
.blockBoxesLeft table tr td:first-child, .blockBoxesLeft table tr th:first-child {
 
  border-left: 0;
 
}
 
.blockBoxesRight table tr td:last-child, .blockBoxesRight table tr th:last-child,
 
.blockBoxesLeft table tr td:last-child, .blockBoxesLeft table tr th:last-child{
 
  border-right: 0;
 
}
 
 
 
  
.blockTextLeft#homeProject {
+
.textContent .nav a, .textContent .nav a:visited {
        background-image: url('https://static.igem.org/mediawiki/2015/b/be/Parisbettencourt_homeproject.jpeg');
+
text-decoration: none;
}
+
cursor: pointer;  
.blockTextLeft#homeSustainability {
+
color: inherit;
        background-image: url('https://static.igem.org/mediawiki/2015/b/be/Parisbettencourt_homeproject.jpeg');
+
font-size: 1.4em;
 
}
 
}
  
  
 
+
.textContent .nav a:hover, .textContent .nav a:active {
.boxHome {
+
text-decoration: none;
        font-family: 'Generica';
+
  color: inherit;
        font-size: 35px;
+
        width: 33%;
+
        width: calc(33% - 10px);
+
        height: 173px;
+
        float: left;
+
}
+
.boxHome.big {
+
        width: 45%;
+
}
+
.yellow h3 a, .yellow h3 a:hover {
+
        color: #FFF200;
+
        text-decoration: none;
+
        text-align: center; 
+
}
+
.cyan h3 a, .cyan h3 a:hover {
+
        color: #00ADEF;
+
        text-decoration: none;
+
}
+
.magenta h3 a, .magenta h3 a:hover{
+
        color: #EC008C;
+
        text-decoration: none;
+
 
}
 
}
  
 
+
.textContent .nav {
 
+
text-align: justify;
 
+
text-transform: uppercase;
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
/* Motivation block */
+
#motivation {
+
width: 100%;
+
max-width: 1800px;
+
        margin: auto;
+
background-color: black;
+
background-size: 100%;
+
        position: relative;
+
        margin-bottom: 0;
+
 
}
 
}
#motivation h2 {
 
color: white;
 
font-family: 'Generica';
 
font-size: 60px;
 
        margin-left: 5%;
 
        float: left;
 
}
 
#motivation p {
 
        color: white;
 
        margin-left: 360px;
 
        margin-left: calc(5% + 300px);
 
        text-align: justify;
 
        padding-right: 10px;
 
        margin-top: 10px;
 
        padding-bottom: 20px;
 
}
 
/* Responsive design! */
 
@media only screen and (max-width: 810px) {
 
        #motivation p {
 
                margin-left: 0;
 
                margin-top: 20px;
 
                padding: 5px;
 
        }
 
        #motivation h2 {
 
                float: none;
 
        }
 
}
 
 
  
/* Description and sustainability blocks */
+
.textContent .nav a {
#description, #sustainability, #achievements, #practices, #notebook {
+
cursor: pointer;
width: 100%;
+
max-width: 1800px;
+
margin-top: 5px;
+
        margin: auto;
+
background-color: black;
+
 
}
 
}
  
 
+
.textContent .nav div a span:after {
/* Overview block */
+
    content: '';
 
+
    width: 100%;
 
+
    height: 100%;
 
+
    bottom: 0;
/* Responsive design! */
+
    left: 0;
@media only screen and (max-width: 810px) {
+
    border-bottom: 1px solid rgba(255,255,255,0.7);
        .blockBoxesRight {
+
    transition: border-color 0.3s;
                width: 95%;
+
    position: absolute;
                width: calc(100% - 40px);
+
                float: none;
+
                margin-top: 20px;
+
        }
+
        .boxHome {
+
                width: 45%;
+
                margin: auto;
+
        }
+
        .textBlockLeft {
+
        width: 100%;
+
        background-color: black;
+
        position: relative;
+
        float: left;
+
        }
+
 
}
 
}
@media only screen and (max-width : 1100px) and (min-width : 811px) {
+
.textContent .nav div a:hover span:after {
        .boxHome {
+
    border-bottom-color: initial;
                width: 45%;
+
                margin: auto;
+
        }
+
 
}
 
}
  
 +
.stretch {
 +
padding: 0 7%;
 +
text-align: center;
 +
font-size: 1.1em;
 +
font-family: Generica;
 +
line-height: 3em;
 +
position: relative;
 +
display: inline-block;
 +
width: 100%;
 +
}
  
 
+
.yellow {
/* Sustainability */
+
         color: #ffed00;
#sustainabilityBanner {
+
         height: 400px;
+
        width: 100%;
+
        max-width: 100%;
+
        background-position: top;
+
background-attachment: fixed;
+
background-repeat: no-repeat;
+
-webkit-background-size: cover;
+
-moz-background-size: cover;
+
-o-background-size: cover;
+
background-size: cover;
+
        border-bottom: 5px solid white;
+
        background-image: url('https://static.igem.org/mediawiki/2015/0/0b/ParisBettencourt_homeSustainabilityBanner.png');
+
        position: absolute;
+
        left: 0;
+
        right: 0;
+
 
}
 
}
.sus {
+
.cyan {
         margin-top: 420px;
+
         color: #009ee3;
       
+
 
}
 
}
.blockTextRight {
+
.magenta {
width: 50%;
+
        color: #e5007d;
background-color: black;
+
position: relative;
+
float: right;
+
        margin-top: 10px;
+
        margin-bottom: 10px;
+
 
}
 
}
.blockTextRight h2 {
+
.black {
font-family: 'Generica';
+
        color: black;
color: white;
+
font-size: 60px;
+
text-align: center;
+
position: absolute;
+
top: 20px;
+
left: 10%;
+
 
}
 
}
.blockTextRight p {
+
.yellow.black a,
color: white;
+
.yellow.black {
margin: 0px;
+
        color: black;
margin-top: 80px;
+
padding: 20px;
+
text-align: justify;
+
 
}
 
}
 
+
.cyan.black a,
.blockBoxesLeft {
+
.cyan.black {
width:45%;
+
         color: black;
        width: calc(50%-40px);
+
float: left;
+
margin-top: 60px;
+
        padding: 20px;
+
        text-align: center;
+
         color: white;
+
 
}
 
}
 
+
.magenta.black a,
/* Responsive design! */
+
.magenta.black {
@media only screen and (max-width: 810px) {
+
         color: black;
        .blockBoxesRight {
+
                width: 95%;
+
                width: calc(100% - 40px);
+
                float: none;
+
                margin-top: 20px;
+
         }
+
        .textBlockRight {
+
        width: 100%;
+
        background-color: black;
+
        position: relative;
+
        float: right;
+
        }
+
 
}
 
}
  
 
+
.textContent .nav div a.yellow span:after {
/* Team */
+
    content: '';
#homeTeamBanner {
+
    width: 100%;
        height: 400px;
+
    height: 100%;
        width: 100%;
+
    bottom: 0;
        max-width: 100%;
+
    left: 0;
        background-position: top;
+
    border-bottom: 1px solid #ffed00;
background-attachment: fixed;
+
    transition: border-width 0.3s;
background-repeat: no-repeat;
+
    position: absolute;
-webkit-background-size: cover;
+
    color: black;
-moz-background-size: cover;
+
-o-background-size: cover;
+
background-size: cover;
+
        border-bottom: 5px solid white;
+
        background-image: url('https://static.igem.org/mediawiki/2015/e/e4/ParisBettencourt_teamBanner.JPG');
+
        position: absolute;
+
        left: 0;
+
        right: 0;
+
 
}
 
}
 
+
.textContent .nav div a.cyan span:after {
 
+
    content: '';
 
+
    width: 100%;
 
+
    height: 100%;
 
+
    bottom: 0;
/* "Read more" button */
+
    left: 0;
a.readMore {
+
    border-bottom: 1px solid #009ee3;
        margin-top: 0px
+
    transition: border-width 0.3s;
        margin-right: 0px;
+
    position: absolute;
        padding: 10px 16px;
+
    color: black;
        font-size: 20px;
+
        font-family: 'Generica', 'Arial', 'sans-serif';
+
        line-height: 100%;
+
        text-shadow: 0 1px rgba(0,0,0,0.4);
+
        color: white;
+
        display: inline-block;
+
        vertical-align: middle;
+
        text-align: center;
+
        cursor: pointer;
+
        font-weight: bold;
+
        -webkit-transition: background 0.1s ease-in-out;
+
        -moz-transition: background 0.1s ease-in-out;
+
        -ms-transition: background 0.1s ease-in-out;
+
        -o-transition: background 0.1s ease-in-out;
+
        transition: background 0.1s ease-in-out;
+
        -webkit-border-radius: 2px;
+
        -moz-border-radius: 2px;
+
 
}
 
}
a.readMore:active {
+
.textContent .nav div a.magenta span:after {
        padding-top: 9px;
+
    content: '';
        margin-bottom: -1px;
+
    width: 100%;
 +
    height: 100%;
 +
    bottom: 0;
 +
    left: 0;
 +
    border-bottom: 1px solid #e5007d;
 +
    transition: border-width 0.3s;
 +
    position: absolute;
 +
    color: black;
 
}
 
}
a.readMore, a.readMore:hover, a.readMore:active {
+
.textContent .nav div a.yellow:hover span:after,
        outline: 0 none;
+
.textContent .nav div a.cyan:hover span:after,
        text-decoration: none;
+
.textContent .nav div a.magenta:hover span:after {
        color: white;
+
    border-bottom-width: 3px;
}
+
a.buttonCyan {
+
        background-color: #2293E1;
+
        box-shadow: 0px 2px 0px 0px #1C7BBD;
+
}
+
a.buttonCyan:hover, a.buttonCyan:active {
+
        background-color: #1D7FC2;
+
}
+
a.buttonCyan:active {
+
        box-shadow: 0px 1px 0px 0px #1C7BBD;
+
}
+
a.buttonYellow {
+
        background-color: #FCEF01;
+
        box-shadow: 0px 2px 0px 0px #B2A900;
+
}
+
a.buttonYellow:hover, a.buttonYellow:active {
+
        background-color: #DCD100;
+
}
+
a.buttonYellow:active {
+
        box-shadow: 0px 1px 0px 0px #B2A900;
+
}
+
a.buttonMagenta {
+
        background-color: #F80187;
+
        box-shadow: 0px 2px 0px 0px #BB0066;
+
}
+
a.buttonMagenta:hover, a.buttonMagenta:active {
+
        background-color: #D90076;
+
}
+
a.buttonMagena:active {
+
        box-shadow: 0px 1px 0px 0px #BB0066;
+
 
}
 
}
  
 
+
p.white {
/*#block4 {
+
    color: white;
        background-color: #00AEEF;
+
 
}
 
}
#block5 {
 
        background-color: #ED028C;
 
}
 
#block6 {
 
        background-color: #FFF101;
 
}*/
 
 
 
 
/* Very small screens: only one row */
 
@media all and (max-width: 480px) {
 
 
      #blockDescription {
 
              display: table;
 
              border: 1px solid red;
 
      }
 
}
 
 
 
 
/* 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