Difference between revisions of "Template:ECUST/CSS"

 
(42 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
 
<style>
 
<style>
 +
 +
  
 
@font-face {
 
@font-face {
 
     font-family: 'eras';
 
     font-family: 'eras';
     src: url('./u/upload/eras.ttf') format("truetype");
+
     src: url('https://static.igem.org/mediawiki/2018/a/a9/T--ECUST--eras.ttf') format("truetype");
 
}
 
}
  
 
@font-face {
 
@font-face {
 
     font-family: 'fzlt';
 
     font-family: 'fzlt';
     src: url('./u/upload/fzlt.ttf') format("truetype");
+
     src: url('https://static.igem.org/mediawiki/2018/9/9e/T--ECUST--fzlt.ttf') format("truetype");
 
}
 
}
 
@font-face {
 
@font-face {
Line 18: Line 20:
 
@font-face {
 
@font-face {
 
     font-family: 'fzjh';
 
     font-family: 'fzjh';
     src: url('./u/upload/fzjhjt.otf') format("opentype");
+
     src: url('https://static.igem.org/mediawiki/2018/a/ab/T--ECUST--fzjhjt.otf') format("opentype");
 
}
 
}
 
:root {
 
:root {
Line 30: Line 32:
 
 
 
}
 
}
 
 
 
 
  
 
/* Code for twinkling starts - taken as well as the necessary pictures with great gratitude from: http://www.script-tutorials.com/night-sky-with-twinkling-stars */
 
/* Code for twinkling starts - taken as well as the necessary pictures with great gratitude from: http://www.script-tutorials.com/night-sky-with-twinkling-stars */
Line 102: Line 100:
 
      
 
      
 
     width:100%;
 
     width:100%;
     background-size: 100% 200px;
+
     background-size:contain;
 
     text-align: center;
 
     text-align: center;
 
      
 
      
Line 111: Line 109:
 
     font-family: 'sens';
 
     font-family: 'sens';
 
text-align: right;
 
text-align: right;
     font-size: 46px;
+
     font-size: 56px;
 
     line-height: 170%;
 
     line-height: 170%;
 
     color: #ff9c00;
 
     color: #ff9c00;
Line 121: Line 119:
 
     font-family: 'sens';
 
     font-family: 'sens';
 
text-align: right;
 
text-align: right;
     font-size: 15px;
+
     font-size: 20px;
 
     line-height: 170%;
 
     line-height: 170%;
 
     color: #efcb31;
 
     color: #efcb31;
Line 558: Line 556:
 
     line-height: 42px;
 
     line-height: 42px;
 
     padding-top: 40px;
 
     padding-top: 40px;
     padding-left: 10px;
+
     padding-left: 3px;
     padding-right: 10px;
+
     padding-right: 3px;
 
     transition: height 0.5s;
 
     transition: height 0.5s;
 
}
 
}
Line 570: Line 568:
 
}
 
}
  
a.active, nav ul li.active .dropbtn{
+
 
    background-color: #ff4e4e;
+
    box-shadow: 0 6px 12px rgba(0,0,0,0.5),0 12px 32px rgba(0,0,0,0.1);
+
    height: 105px;
+
}
+
  
 
nav ul li:hover .nav-dropdown, .show .nav-dropdown {
 
nav ul li:hover .nav-dropdown, .show .nav-dropdown {
Line 585: Line 579:
 
}
 
}
  
nav a:visited, nav a:active, nav a:focus, footer a:visited, footer a:active, footer a:focus {
+
nav a:visited, nav a:active, nav a:focus{
     color: var(--bright-bg-color);
+
     color:#4f1919;
 
     text-decoration: none;
 
     text-decoration: none;
 
}
 
}
Line 780: Line 774:
 
     position: fixed;
 
     position: fixed;
 
     height: 253px;
 
     height: 253px;
     background-image: url(bacteria.png);
+
     background-image: url(https://static.igem.org/mediawiki/2018/d/d8/T--ECUST--bacteria.png);
 
     background-size: contain;
 
     background-size: contain;
 
     background-repeat: no-repeat;
 
     background-repeat: no-repeat;
Line 945: Line 939:
  
 
@media only screen and (min-width: 1200px) {
 
@media only screen and (min-width: 1200px) {
 +
#textblock1 {
 +
          position: absolute;
 +
          top: 300px;
 +
          left: 770px;
 +
          width:500px;
 +
      }   
 +
      #textblock2 {
 +
          position: absolute;
 +
          top: 980px;
 +
          left: 80px;
 +
          width:500px;
 +
      }     
 +
#textblock3 {
 +
          position: absolute;
 +
          top: 1879px;
 +
          left: 790px;
 +
          width:515px;
 +
      }     
 +
#textblock4 {
 +
          position: absolute;
 +
          top: 3250px;
 +
          left: 200px;
 +
          width:900px;
 +
      }
 +
#textblock5 {
 +
          position: absolute;
 +
          top: 3970px;
 +
          left: 770px;
 +
          width:500px;
 +
      }   
 
     main, .wrapper {
 
     main, .wrapper {
 
         margin-right: 5%;
 
         margin-right: 5%;
Line 965: Line 989:
  
 
@media screen and (min-width: 1000px) and (max-width: 1199px){
 
@media screen and (min-width: 1000px) and (max-width: 1199px){
 +
    #textblock1 {
 +
          position: absolute;
 +
          top: 180px;
 +
          left: 490px;
 +
          width:500px;
 +
      }   
 +
      #textblock2 {
 +
          position: absolute;
 +
          top: 700px;
 +
          left: 20px;
 +
          width:500px;
 +
      }     
 +
#textblock3 {
 +
          position: absolute;
 +
          top: 1360px;
 +
          left: 500px;
 +
          width:510px;
 +
      }     
 +
#textblock4 {
 +
          position: absolute;
 +
          top: 2250px;
 +
          left: 50px;
 +
          width:900px;
 +
      }
 +
#textblock5 {
 +
          position: absolute;
 +
          top: 2800px;
 +
          left: 490px;
 +
          width:500px;
 +
      }   
 
     main {
 
     main {
 
         margin-right: 30px;
 
         margin-right: 30px;
Line 982: Line 1,036:
 
     #bannerquote, #projecttitle {
 
     #bannerquote, #projecttitle {
 
         margin-left: 250px;
 
         margin-left: 250px;
         font-size: 40px;
+
         font-size: 50px;
 
     }
 
     }
  
Line 1,001: Line 1,055:
  
 
@media only screen and (max-width: 1000px) {
 
@media only screen and (max-width: 1000px) {
 +
    #textblock1 {
 +
          position: absolute;
 +
          top: 180px;
 +
          left: 490px;
 +
          width:500px;
 +
      }   
 +
      #textblock2 {
 +
          position: absolute;
 +
          top: 700px;
 +
          left: 10px;
 +
          width:500px;
 +
      }     
 +
#textblock3 {
 +
          position: absolute;
 +
          top: 1360px;
 +
          left: 500px;
 +
          width:510px;
 +
      }     
 +
#textblock4 {
 +
          position: absolute;
 +
          top: 2250px;
 +
          left: 50px;
 +
          width:900px;
 +
      }
 +
#textblock5 {
 +
          position: absolute;
 +
          top: 2800px;
 +
          left: 490px;
 +
          width:500px;
 +
      }   
 
     .contentbox figure, .contentbox p, .contentbox .pdf-resources, .contentbox ul {
 
     .contentbox figure, .contentbox p, .contentbox .pdf-resources, .contentbox ul {
 
         padding: 10px !important;
 
         padding: 10px !important;
Line 1,244: Line 1,328:
 
                             width: 100%;
 
                             width: 100%;
 
                             height: auto;
 
                             height: auto;
                             background-color: #974c4c;
+
                             background-color: #20161c;
 
                            
 
                            
  
Line 1,260: Line 1,344:
 
           }
 
           }
 
 
              #textblock1 {
+
           
          position: absolute;
+
          top: 20px;
+
          left: 0px;
+
          width: 400px;
+
      }     
+
 
           #textblock1 > p, #textblock2 > p, #textblock3 > p,#textblock4 > p, #textblock5 > p,#textblock6 > p,#textblock7 > p,#textblock8 > p,#textblock9 > p {
 
           #textblock1 > p, #textblock2 > p, #textblock3 > p,#textblock4 > p, #textblock5 > p,#textblock6 > p,#textblock7 > p,#textblock8 > p,#textblock9 > p {
 
     color: white !important;
 
     color: white !important;
Line 1,307: Line 1,386:
 
@media screen and (max-device-width: 1024px) {
 
@media screen and (max-device-width: 1024px) {
 
     .t-cover {
 
     .t-cover {
         background-attachment: fixed
+
          
 
     }
 
     }
 
}
 
}
 
.textblock > p {font-family: 'Josefin Sans' !important; font-size: 20px !important; color: #444 !important;font-weight: 300 !important;}
 
.textblock > p {font-family: 'Josefin Sans' !important; font-size: 20px !important; color: #444 !important;font-weight: 300 !important;}
  
      #textblock1 {
+
        
          position: absolute;
+
          top: 290px;
+
          left: 20px;
+
          width:500px;
+
      }   
+
      #textblock2 {
+
          position: absolute;
+
          top: 800px;
+
          left: 500px;
+
          width:500px;
+
      }     
+
#textblock3 {
+
          position: absolute;
+
          top: 1855px;
+
          left: 50px;
+
          width:325px;
+
      }     
+
#textblock4 {
+
          position: absolute;
+
          top: 3150px;
+
          left: 50px;
+
          width:900px;
+
      }        
+
 
#textblock1 > p, #textblock3 > p, #textblock5 > p,#textblock2 > p, #textblock4 > p, #textblock6 > p, #textblock7 > p, #textblock8 > p {
 
#textblock1 > p, #textblock3 > p, #textblock5 > p,#textblock2 > p, #textblock4 > p, #textblock6 > p, #textblock7 > p, #textblock8 > p {
 
     color: white !important;
 
     color: white !important;
Line 1,351: Line 1,407:
 
     text-decoration: underline;
 
     text-decoration: underline;
 
}
 
}
 +
@media screen and (max-width: 1040px){
  
 +
#logo img {
 +
    width: 0px;
 +
    margin: 15px;
 +
}
  
 
+
}
 
+
  
  

Latest revision as of 11:34, 2 November 2018