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

 
(142 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 {
 
width: 50%;
 
background-color: black;
 
position: relative;
 
float: left;
 
}
 
.blockTextLeft p {
 
color: white;
 
margin: 0px;
 
margin-top: 80px;
 
padding: 20px;
 
text-align: justify;
 
}
 
.blockBoxesRight {
 
width:46%;
 
        width: calc(50% - 6px);
 
float: left;
 
margin-top: 0;
 
        padding: 0;
 
        text-align: center;
 
        color: white;
 
        border-left: 6px solid white;
 
}
 
.blockBoxesRight table {
 
  width: 100%;
 
  background-color: black;
 
  height: 100%;
 
  margin: 0;
 
  border-collapse: collapse;
 
}
 
.blockBoxesRight table td, .blockBoxesRight table th {
 
  border: 3px solid white;
 
  display: table-cell;
 
  vertical-align: middle;
 
  
}
+
#home .textContent {
.blockBoxesRight table tr:first-child th {
+
background-color: inherit;
  border-top: 0;
+
}
+
.blockBoxesRight table tr:last-child td {
+
  border-bottom: 0;
+
}
+
.blockBoxesRight table tr td:first-child,
+
.blockBoxesRight table tr th:first-child {
+
  border-left: 0;
+
}
+
.blockBoxesRight table tr td:last-child,
+
.blockBoxesRight table tr th:last-child {
+
  border-right: 0;
+
 
}
 
}
  
.boxHome {
+
.textContent .nav a, .textContent .nav a:visited {
        font-family: 'Generica';
+
text-decoration: none;
        font-size: 35px;
+
cursor: pointer;  
        width: 32%;
+
  color: inherit;
        width: calc(33.3% - 3px);
+
font-size: 1.4em;
        height: 100px;
+
        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 a:hover, .textContent .nav a:active {
 
+
text-decoration: none;
 
+
color: inherit;
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
/* 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;
+
        }
+
 
}
 
}
  
 
+
.textContent .nav {
/* Description and sustainability blocks */
+
text-align: justify;
#description, #sustainability, #achievements, #practices, #notebook {
+
text-transform: uppercase;
width: 100%;
+
max-width: 1800px;
+
margin-top: 5px;
+
        margin: auto;
+
background-color: black;
+
 
}
 
}
  
 
+
.textContent .nav a {
/* Overview block */
+
cursor: pointer;
 
+
 
+
 
+
/* Responsive design! */
+
@media only screen and (max-width: 810px) {
+
        .blockBoxesRight {
+
                width: 95%;
+
                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) {
+
        .boxHome {
+
                width: 45%;
+
                margin: auto;
+
        }
+
 
}
 
}
  
 
+
.textContent .nav div a span:after {
 
+
    content: '';
/* Sustainability */
+
    width: 100%;
#sustainabilityBanner {
+
    height: 100%;
        height: 400px;
+
    bottom: 0;
        width: 100%;
+
    left: 0;
        max-width: 100%;
+
    border-bottom: 1px solid rgba(255,255,255,0.7);
        background-position: top;
+
    transition: border-color 0.3s;
background-attachment: fixed;
+
    position: absolute;
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 {
+
.textContent .nav div a:hover span:after {
        margin-top: 420px;
+
    border-bottom-color: initial;
       
+
}
+
.blockTextRight {
+
width: 50%;
+
background-color: black;
+
position: relative;
+
float: right;
+
        margin-top: 10px;
+
        margin-bottom: 10px;
+
}
+
.blockTextRight h2 {
+
font-family: 'Generica';
+
color: white;
+
font-size: 60px;
+
text-align: center;
+
position: absolute;
+
top: 20px;
+
left: 10%;
+
}
+
.blockTextRight p {
+
color: white;
+
margin: 0px;
+
margin-top: 80px;
+
padding: 20px;
+
text-align: justify;
+
 
}
 
}
  
.blockBoxesLeft {
+
.stretch {
width:45%;
+
padding: 0 7%;
        width: calc(50%-40px);
+
text-align: center;
float: left;
+
font-size: 1.1em;
margin-top: 60px;
+
font-family: Generica;
        padding: 20px;
+
line-height: 3em;
        text-align: center;
+
position: relative;
        color: white;
+
display: inline-block;
 +
width: 100%;
 
}
 
}
  
/* Responsive design! */
+
.yellow {
@media only screen and (max-width: 810px) {
+
         color: #ffed00;
        .blockBoxesRight {
+
                width: 95%;
+
                width: calc(100% - 40px);
+
                float: none;
+
                margin-top: 20px;
+
         }
+
        .textBlockRight {
+
        width: 100%;
+
        background-color: black;
+
        position: relative;
+
        float: right;
+
        }
+
 
}
 
}
 
+
.cyan {
 
+
         color: #009ee3;
/* Team */
+
#homeTeamBanner {
+
         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/e/e4/ParisBettencourt_teamBanner.JPG');
+
        position: absolute;
+
        left: 0;
+
        right: 0;
+
 
}
 
}
 
+
.magenta {
 
+
         color: #e5007d;
 
+
 
+
 
+
/* "Read more" button */
+
a.readMore {
+
        margin-top: 0px
+
        margin-right: 0px;
+
        padding: 10px 16px;
+
        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 {
+
.black {
         padding-top: 9px;
+
         color: black;
        margin-bottom: -1px;
+
 
}
 
}
a.readMore, a.readMore:hover, a.readMore:active {
+
.yellow.black a,
        outline: 0 none;
+
.yellow.black {
        text-decoration: none;
+
         color: black;
         color: white;
+
 
}
 
}
a.buttonCyan {
+
.cyan.black a,
         background-color: #2293E1;
+
.cyan.black {
        box-shadow: 0px 2px 0px 0px #1C7BBD;
+
         color: black;
 
}
 
}
a.buttonCyan:hover, a.buttonCyan:active {
+
.magenta.black a,
         background-color: #1D7FC2;
+
.magenta.black {
 +
         color: black;
 
}
 
}
a.buttonCyan:active {
+
 
        box-shadow: 0px 1px 0px 0px #1C7BBD;
+
.textContent .nav div a.yellow span:after {
 +
    content: '';
 +
    width: 100%;
 +
    height: 100%;
 +
    bottom: 0;
 +
    left: 0;
 +
    border-bottom: 1px solid #ffed00;
 +
    transition: border-width 0.3s;
 +
    position: absolute;
 +
    color: black;
 
}
 
}
a.buttonYellow {
+
.textContent .nav div a.cyan span:after {
        background-color: #FCEF01;
+
    content: '';
        box-shadow: 0px 2px 0px 0px #B2A900;
+
    width: 100%;
 +
    height: 100%;
 +
    bottom: 0;
 +
    left: 0;
 +
    border-bottom: 1px solid #009ee3;
 +
    transition: border-width 0.3s;
 +
    position: absolute;
 +
    color: black;
 
}
 
}
a.buttonYellow:hover, a.buttonYellow:active {
+
.textContent .nav div a.magenta span:after {
        background-color: #DCD100;
+
    content: '';
 +
    width: 100%;
 +
    height: 100%;
 +
    bottom: 0;
 +
    left: 0;
 +
    border-bottom: 1px solid #e5007d;
 +
    transition: border-width 0.3s;
 +
    position: absolute;
 +
    color: black;
 
}
 
}
a.buttonYellow:active {
+
.textContent .nav div a.yellow:hover span:after,
        box-shadow: 0px 1px 0px 0px #B2A900;
+
.textContent .nav div a.cyan:hover span:after,
}
+
.textContent .nav div a.magenta:hover span:after {
a.buttonMagenta {
+
    border-bottom-width: 3px;
        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