|
|
(185 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 29: |
Line 43: |
| } | | } |
| | | |
− | /* Text content */ | + | /* 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: 40px;
| + | |
− | font-family: 'Generica';
| + | |
− | font-size: 35px;
| + | |
− | border-bottom: 5px solid white;
| + | |
− | color-white;
| + | |
| } | | } |
| | | |
− | | + | #home .textContent { |
− | | + | background-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;
| |
− | }
| |
− | }
| |
− |
| |
| | | |
− | /* Description and sustainability blocks */
| + | .textContent .nav a, .textContent .nav a:visited { |
− | #description, #sustainability, #achievements, #practices, #notebook {
| + | text-decoration: none; |
− | width: 100%;
| + | cursor: pointer; |
− | max-width: 1800px;
| + | color: inherit; |
− | margin-top: 5px;
| + | font-size: 1.4em; |
− | margin: auto;
| + | |
− | background-color: black;
| + | |
| } | | } |
| | | |
| | | |
− | /* Overview block */
| + | .textContent .nav a:hover, .textContent .nav a:active { |
− | .blockTextLeft { | + | text-decoration: none; |
− | width: 50%;
| + | color: inherit; |
− | background-color: black;
| + | |
− | position: relative;
| + | |
− | float: left;
| + | |
− | margin-top: 10px;
| + | |
− | margin-bottom: 10px;
| + | |
− | }
| + | |
− | .blockTextLeft h2 {
| + | |
− | font-family: 'Generica';
| + | |
− | color: white;
| + | |
− | font-size: 60px;
| + | |
− | text-align: center;
| + | |
− | position: absolute;
| + | |
− | top: 20px;
| + | |
− | left: 10%;
| + | |
− | }
| + | |
− | .blockTextLeft p {
| + | |
− | color: white;
| + | |
− | margin: 0px;
| + | |
− | margin-top: 80px;
| + | |
− | padding: 20px;
| + | |
− | text-align: justify;
| + | |
| } | | } |
| | | |
− | .blockBoxesRight { | + | .textContent .nav { |
− | width:45%;
| + | text-align: justify; |
− | width: calc(50%-40px);
| + | text-transform: uppercase; |
− | float: left;
| + | |
− | margin-top: 60px;
| + | |
− | padding: 20px;
| + | |
− | text-align: center;
| + | |
− | color: white;
| + | |
− | display: table;
| + | |
− | height: 100%;
| + | |
− | }
| + | |
− | .blockBoxesRight table { | + | |
− | width: 100%;
| + | |
− | background-color: black;
| + | |
− | height: 100%;
| + | |
− | }
| + | |
− | .boxHome {
| + | |
− | font-family: 'Generica';
| + | |
− | font-size: 35px;
| + | |
− | width: 30%;
| + | |
− | height: 100px;
| + | |
− | float: left;
| + | |
− | vertical-align: middle;
| + | |
− | }
| + | |
− | .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;
| + | |
− | }
| + | |
− | /* 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 a { |
− | | + | cursor: pointer; |
− | /* Sustainability */
| + | |
− | #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 {
| + | |
− | margin-top: 420px;
| + | |
− |
| + | |
− | }
| + | |
− | .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 { | + | .textContent .nav div a span:after { |
− | width:45%;
| + | content: ''; |
− | width: calc(50%-40px);
| + | width: 100%; |
− | float: left;
| + | height: 100%; |
− | margin-top: 60px;
| + | bottom: 0; |
− | padding: 20px;
| + | left: 0; |
− | text-align: center;
| + | border-bottom: 1px solid rgba(255,255,255,0.7); |
− | color: white;
| + | transition: border-color 0.3s; |
| + | position: absolute; |
| } | | } |
− | | + | .textContent .nav div a:hover span:after { |
− | /* Responsive design! */
| + | border-bottom-color: initial; |
− | @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;
| + | |
− | }
| + | |
| } | | } |
| | | |
− | | + | .stretch { |
− | /* Team */
| + | padding: 0 7%; |
− | #homeTeamBanner {
| + | text-align: center; |
− | height: 400px;
| + | font-size: 1.1em; |
− | width: 100%;
| + | font-family: Generica; |
− | max-width: 100%;
| + | line-height: 3em; |
− | background-position: top;
| + | position: relative; |
− | background-attachment: fixed;
| + | display: inline-block; |
− | background-repeat: no-repeat;
| + | width: 100%; |
− | -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;
| + | |
| } | | } |
| | | |
− | | + | .yellow { |
− | | + | color: #ffed00; |
− | | + | |
− | | + | |
− | /* "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 {
| + | .cyan { |
− | padding-top: 9px; | + | color: #009ee3; |
− | margin-bottom: -1px;
| + | |
| } | | } |
− | a.readMore, a.readMore:hover, a.readMore:active {
| + | .magenta { |
− | outline: 0 none;
| + | color: #e5007d; |
− | text-decoration: none;
| + | |
− | color: white; | + | |
| } | | } |
− | a.buttonCyan {
| + | .black { |
− | background-color: #2293E1; | + | color: black; |
− | box-shadow: 0px 2px 0px 0px #1C7BBD;
| + | |
| } | | } |
− | a.buttonCyan:hover, a.buttonCyan:active {
| + | .yellow.black a, |
− | background-color: #1D7FC2; | + | .yellow.black { |
| + | color: black; |
| } | | } |
− | a.buttonCyan:active { | + | .cyan.black a, |
− | box-shadow: 0px 1px 0px 0px #1C7BBD; | + | .cyan.black { |
| + | color: black; |
| } | | } |
− | a.buttonYellow { | + | .magenta.black a, |
− | background-color: #FCEF01; | + | .magenta.black { |
− | box-shadow: 0px 2px 0px 0px #B2A900;
| + | color: black; |
| } | | } |
− | a.buttonYellow:hover, a.buttonYellow:active {
| + | |
− | background-color: #DCD100;
| + | .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:active { | + | .textContent .nav div a.cyan span:after { |
− | box-shadow: 0px 1px 0px 0px #B2A900;
| + | content: ''; |
| + | width: 100%; |
| + | height: 100%; |
| + | bottom: 0; |
| + | left: 0; |
| + | border-bottom: 1px solid #009ee3; |
| + | transition: border-width 0.3s; |
| + | position: absolute; |
| + | color: black; |
| } | | } |
− | a.buttonMagenta { | + | .textContent .nav div a.magenta span:after { |
− | background-color: #F80187;
| + | content: ''; |
− | box-shadow: 0px 2px 0px 0px #BB0066;
| + | width: 100%; |
| + | height: 100%; |
| + | bottom: 0; |
| + | left: 0; |
| + | border-bottom: 1px solid #e5007d; |
| + | transition: border-width 0.3s; |
| + | position: absolute; |
| + | color: black; |
| } | | } |
− | a.buttonMagenta:hover, a.buttonMagenta:active { | + | .textContent .nav div a.yellow:hover span:after, |
− | background-color: #D90076;
| + | .textContent .nav div a.cyan:hover span:after, |
− | }
| + | .textContent .nav div a.magenta:hover span:after { |
− | a.buttonMagena:active { | + | border-bottom-width: 3px; |
− | 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> |