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

 
(50 intermediate revisions by 2 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;
 
}
 
}
  
Line 26: Line 29:
 
}
 
}
  
#banner h3.home {
+
#banner h3 {
 
display: block;
 
display: block;
 
position: absolute;
 
position: absolute;
Line 41: Line 44:
  
 
/* Text content */ /* Tweak here */
 
/* Text content */ /* Tweak here */
#textContent {
+
#home .textWrapper {
width: 100%;
+
margin-bottom: 5px;
+
background-color: black;
+
}
+
.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;
 
}
 
}
  
#textContent .nav a, #textContent .nav a:visited {
+
.separate {
 +
border-bottom: 5px solid whitesmoke;
 +
}
 +
 
 +
#home .textContent {
 +
background-color: inherit;
 +
}
 +
 
 +
.textContent .nav a, .textContent .nav a:visited {
 
  text-decoration: none;
 
  text-decoration: none;
 
  cursor: pointer;  
 
  cursor: pointer;  
 
  color: inherit;
 
  color: inherit;
 +
font-size: 1.4em;
 
}
 
}
  
  
#textContent .nav a:hover, #textContent .nav a:active {
+
.textContent .nav a:hover, .textContent .nav a:active {
 
  text-decoration: none;
 
  text-decoration: none;
 
  color: inherit;
 
  color: inherit;
 
}
 
}
  
.container.black {
+
.textContent .nav {
  background: black;
+
  text-align: justify;
  color: white;
+
  text-transform: uppercase;
 +
}
 +
 
 +
.textContent .nav a {
 +
cursor: pointer;
 +
}
 +
 
 +
.textContent .nav div a span:after {
 +
    content: '';
 +
    width: 100%;
 +
    height: 100%;
 +
    bottom: 0;
 +
    left: 0;
 +
    border-bottom: 1px solid rgba(255,255,255,0.7);
 +
    transition: border-color 0.3s;
 +
    position: absolute;
 +
}
 +
.textContent .nav div a:hover span:after {
 +
    border-bottom-color: initial;
 +
}
 +
 
 +
.stretch {
 +
padding: 0 7%;
 +
text-align: center;
 +
font-size: 1.1em;
 +
font-family: Generica;
 +
line-height: 3em;
 +
position: relative;
 +
display: inline-block;
 +
width: 100%;
 
}
 
}
  
Line 78: Line 116:
 
         color: #e5007d;
 
         color: #e5007d;
 
}
 
}
 
+
.black {
 
+
         color: black;
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
/* Motivation block */
+
#motivation {
+
width: 100%;
+
max-width: 1800px;
+
         margin: auto;
+
background-color: black;
+
background-size: 100%;
+
        position: relative;
+
        margin-bottom: 0;
+
 
}
 
}
#motivation h2 {
+
.yellow.black a,
color: white;
+
.yellow.black {
font-family: 'Generica';
+
        color: black;
font-size: 60px;
+
        margin-left: 5%;
+
        float: left;
+
 
}
 
}
#motivation p {
+
.cyan.black a,
         color: white;
+
.cyan.black {
        margin-left: 360px;
+
         color: black;
        margin-left: calc(5% + 300px);
+
        text-align: justify;
+
        padding-right: 10px;
+
        margin-top: 10px;
+
        padding-bottom: 10px;
+
 
}
 
}
/* Responsive design! */
+
.magenta.black a,
@media only screen and (max-width: 810px) {
+
.magenta.black {
         #motivation p {
+
         color: black;
                margin-left: 0;
+
                margin-top: 10px;
+
                padding: 5px;
+
        }
+
        #motivation h2 {
+
                float: none;
+
        }
+
 
}
 
}
  
 
+
.textContent .nav div a.yellow span:after {
/* Description and sustainability blocks */
+
    content: '';
 
+
    width: 100%;
 
+
    height: 100%;
 
+
    bottom: 0;
/* Overview block */
+
    left: 0;
 
+
    border-bottom: 1px solid #ffed00;
 
+
    transition: border-width 0.3s;
 
+
    position: absolute;
/* Responsive design! */
+
    color: black;
@media only screen and (max-width: 810px) {
+
        .blockBoxesRight {
+
                width: 95%;
+
                width: calc(100% - 40px);
+
                float: none;
+
                margin-top: 10px;
+
        }
+
        .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.cyan span:after {
        .boxHome {
+
    content: '';
                width: 45%;
+
    width: 100%;
                margin: auto;
+
    height: 100%;
        }
+
    bottom: 0;
 +
    left: 0;
 +
    border-bottom: 1px solid #009ee3;
 +
    transition: border-width 0.3s;
 +
    position: absolute;
 +
    color: black;
 
}
 
}
 
+
.textContent .nav div a.magenta span:after {
 
+
    content: '';
 
+
    width: 100%;
/* Sustainability */
+
    height: 100%;
#sustainabilityBanner {
+
    bottom: 0;
        height: 400px;
+
    left: 0;
        width: 100%;
+
    border-bottom: 1px solid #e5007d;
        max-width: 100%;
+
    transition: border-width 0.3s;
        background-position: top;
+
    position: absolute;
background-attachment: fixed;
+
    color: black;
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;
+
 
}
 
}
 
+
.textContent .nav div a.yellow:hover span:after,
 
+
.textContent .nav div a.cyan:hover span:after,
 
+
.textContent .nav div a.magenta:hover span:after {
/* Responsive design! */
+
    border-bottom-width: 3px;
@media only screen and (max-width: 810px) {
+
        .blockBoxesRight {
+
                width: 95%;
+
                width: calc(100% - 40px);
+
                float: none;
+
                margin-top: 20px;
+
        }
+
        .textBlockRight {
+
        width: 100%;
+
        background-color: black;
+
        position: relative;
+
        float: right;
+
        }
+
 
}
 
}
  
 
+
p.white {
/* Team */
+
    color: white;
#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;
+
 
}
 
}
 
 
 
 
 
/* "Read more" button */
 
a.readMore {
 
        margin-top: 0px
 
        margin-right: 0px;
 
        padding: 4px 8px;
 
        font-size: 20px;
 
        font-family: 'Generica', 'Arial', 'sans-serif';
 
        line-height: 100%;
 
        text-shadow: 0 1px rgba(0,0,0,0.4);
 
        color: white;
 
       
 
        vertical-align: middle;
 
        text-align: center;
 
        cursor: pointer;
 
        font-weight: regular;
 
        -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: 1px;
 
        -moz-border-radius: 1px;
 
}
 
a.readMore:active {
 
        padding-top: 9px;
 
        margin-bottom: -1px;
 
}
 
a.readMore, a.readMore:hover, a.readMore:active {
 
        outline: 0 none;
 
        text-decoration: none;
 
        color: white;
 
}
 
a.buttonCyan {
 
        background-color: #black;
 
        border: 1px solid rgba(255,255,255,0.5);
 
       
 
}
 
a.buttonCyan:hover, a.buttonCyan:active {
 
        background-color: #black;
 
}
 
a.buttonCyan:active {
 
       
 
}
 
a.buttonYellow {
 
        background-color: #black;
 
        border: 1px solid white;
 
}
 
a.buttonYellow:hover, a.buttonYellow:active {
 
        background-color: #black;
 
        border: 1px solid white;
 
}
 
a.buttonYellow:active {
 
        box-shadow: 0px 1px 0px 0px #B2A900;
 
}
 
a.buttonMagenta {
 
          background-color: #black;
 
        border: 1px solid white;
 
}
 
a.buttonMagenta:hover, a.buttonMagenta:active {
 
        background-color: #black;
 
}
 
a.buttonMagena:active {
 
        box-shadow: 0px 1px 0px 0px #black;
 
}
 
 
 
/*#block4 {
 
        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