Difference between revisions of "Template:DLUT China B/css/style.css"

(使用100vh.)
Line 74: Line 74:
  
 
#dlutb #header {
 
#dlutb #header {
    background: url("https://static.igem.org/mediawiki/2018/3/35/T--DLUT_China_B--kidney.png") no-repeat fixed center center;
 
    background-size: cover;
 
 
     width: 100%;
 
     width: 100%;
 
     height: 100vh;
 
     height: 100vh;
Line 89: Line 87:
  
 
#dlutb #nav {
 
#dlutb #nav {
     float: right;
+
     position: absolute;
     margin-top: 38px;
+
    right:0;
 +
     top:38px;
 
}
 
}
  
Line 96: Line 95:
 
     font-size: 20px;
 
     font-size: 20px;
 
     border-bottom: 2px #41cd52 solid;
 
     border-bottom: 2px #41cd52 solid;
     width: fit-content;
+
     display: table;
    width: -moz-fit-content;
+
 
     margin: 60px auto 50px auto;
 
     margin: 60px auto 50px auto;
 
     padding-bottom: 10px;
 
     padding-bottom: 10px;
Line 108: Line 106:
 
     border-bottom: 2px #41cd52 solid;
 
     border-bottom: 2px #41cd52 solid;
 
     margin: 200px auto 0 auto;
 
     margin: 200px auto 0 auto;
     width: fit-content;
+
     display: table;
    width: -moz-fit-content;
+
 
}
 
}
  
Line 115: Line 112:
 
     font-size: 20px;
 
     font-size: 20px;
 
     border-bottom: 2px #41cd52 solid;
 
     border-bottom: 2px #41cd52 solid;
     width: fit-content;
+
     display: table;
    width: -moz-fit-content;
+
 
     margin: 170px auto 50px auto;
 
     margin: 170px auto 50px auto;
 
     padding-bottom: 10px;
 
     padding-bottom: 10px;
Line 128: Line 124:
 
     padding: 15px;
 
     padding: 15px;
 
     height: fit-content;
 
     height: fit-content;
     width: fit-content;
+
     display: table;
    width: -moz-fit-content;
+
 
     margin: 50px auto 0 auto;
 
     margin: 50px auto 0 auto;
 
     min-height: 60px;
 
     min-height: 60px;
Line 143: Line 138:
 
#dlutb #start {
 
#dlutb #start {
 
     font-size: 20px;
 
     font-size: 20px;
     width: fit-content;
+
     display: table;
    width: -moz-fit-content;
+
 
     margin: 50px auto 0 auto;
 
     margin: 50px auto 0 auto;
    display: block;
 
 
     cursor: pointer;
 
     cursor: pointer;
 
}
 
}
Line 154: Line 147:
 
     border: white 2px solid;
 
     border: white 2px solid;
 
     padding: 15px;
 
     padding: 15px;
     width: fit-content;
+
     display: table;
    width: -moz-fit-content;
+
 
     margin: 50px auto 0 auto;
 
     margin: 50px auto 0 auto;
 
     height: 50px;
 
     height: 50px;
Line 167: Line 159:
  
 
#dlutb .mainText {
 
#dlutb .mainText {
    max-width: 1000px;
 
    margin-left: auto;
 
    margin-right: auto;
 
 
     text-align: justify;
 
     text-align: justify;
    margin-bottom: 60px;
 
 
}
 
}
  
Line 177: Line 165:
 
     font-size: 18px;
 
     font-size: 18px;
 
     text-indent: 2em;
 
     text-indent: 2em;
}
 
 
#dlutb #fixed1, #fixed3 {
 
    background: url("https://static.igem.org/mediawiki/2018/2/29/T--DLUT_China_B--logo.png") no-repeat fixed center center;
 
    background-size: cover;
 
    width: 100%;
 
    height: 150px;
 
    filter: brightness(40%);
 
}
 
 
#dlutb #fixed2, #fixed4 {
 
    background: url("https://static.igem.org/mediawiki/2018/3/35/T--DLUT_China_B--kidney.png") no-repeat fixed center center;
 
    background-size: cover;
 
    width: 100%;
 
    height: 150px;
 
    filter: brightness(40%);
 
 
}
 
}
  
Line 253: Line 225:
 
     text-align: center;
 
     text-align: center;
 
     font-size: 28px;
 
     font-size: 28px;
 +
    cursor:pointer;
 
}
 
}
  
 
#dlutb #chatBubbles {
 
#dlutb #chatBubbles {
 
     margin: 0 auto 60px auto;
 
     margin: 0 auto 60px auto;
 +
}
 +
 +
#dlutb #circle{
 +
    display: table;
 +
    margin:25px auto 25px auto;
 +
}
 +
 +
#dlutb .tr{
 +
    display: table-row;
 +
}
 +
#dlutb .td{
 +
    display: table-cell;
 +
}
 +
 +
#dlutb #contents{
 +
    float:left;
 +
}
 +
#dlutb #article{
 +
    display: table-cell;
 
}
 
}

Revision as of 05:56, 2 October 2018

@font-face {

   font-family: Lato;
   src: url("https://static.igem.org/mediawiki/2018/0/0b/T--DLUT_China_B--LatoLatin-Regular.woff");

}

a {

   text-decoration: none;
   color: inherit;
   outline: none;

}

a:visited {

   text-decoration: none;
   color: inherit;

}

a:hover {

   text-decoration: none;

}

a:-webkit-any-link {

   text-decoration: none;

}

body {

   font-family: Lato, sans-serif;
   margin: 0;

}

  1. HQ_page p, h1, h2, h3, h4, h5, h6 {
   font-family: Lato, sans-serif;

}

  1. dlutb p, #dlutb .mainText ol, #dlutb .mainText ul, #dlutb .mainText li {
   font-size: 18px;
   line-height: 1.7em;
   margin-top: 0.5ex;
   margin-bottom: 0.5ex;

}

  1. dlutb sup, #dlutb sub {
   font-size: 75%;
   height: 0;
   line-height: 0;
   position: relative;
   vertical-align: baseline;

}

  1. dlutb sup {
   bottom: 1ex;

}

  1. dlutb sub {
   top: .5ex;

}

  1. dlutb ol {
   margin-left: 3em;

}

  1. dlutb a {
   cursor: pointer;

}

  1. top_title {
   display: none;

}

  1. content {
   margin: 0;
   width: auto;
   padding: 0;

}

  1. dlutb #header {
   width: 100%;
   height: 100vh;
   min-height: 600px;

}

  1. dlutb #moduleHeader {
   background: url("T--DLUT_China_B--logo.png") no-repeat fixed center center;
   background-size: cover;
   width: 100%;
   height: 470px;

}

  1. dlutb #nav {
   position: absolute;
   right:0;
   top:38px;

}

  1. dlutb h2.title {
   font-size: 20px;
   border-bottom: 2px #41cd52 solid;
   display: table;
   margin: 60px auto 50px auto;
   padding-bottom: 10px;
   text-align: center;

}

  1. dlutb #teamName {
   font-size: 20px;
   font-family: Lato, sans-serif;
   border-bottom: 2px #41cd52 solid;
   margin: 200px auto 0 auto;
   display: table;

}

  1. dlutb .moduleTitle {
   font-size: 20px;
   border-bottom: 2px #41cd52 solid;
   display: table;
   margin: 170px auto 50px auto;
   padding-bottom: 10px;
   text-align: center;
   font-family: Lato, sans-serif;

}

  1. dlutb #typed {
   clear: both;
   border: white 2px solid;
   padding: 15px;
   height: fit-content;
   display: table;
   margin: 50px auto 0 auto;
   min-height: 60px;
   font-size: 40px;

}

  1. dlutb #slogan {
   text-align: center;
   user-select: none;
   line-height: 60px;

}

  1. dlutb #start {
   font-size: 20px;
   display: table;
   margin: 50px auto 0 auto;
   cursor: pointer;

}

  1. dlutb .subModule {
   clear: both;
   border: white 2px solid;
   padding: 15px;
   display: table;
   margin: 50px auto 0 auto;
   height: 50px;
   font-size: 30px;

}

  1. dlutb .subModule > span {
   text-align: center;
   line-height: 50px;

}

  1. dlutb .mainText {
   text-align: justify;

}

  1. dlutb .mainText p {
   font-size: 18px;
   text-indent: 2em;

}

  1. dlutb #footer {
   background-color: hsl(197, 55%, 20%);
   padding: 30px 60px 30px 60px;

}

  1. dlutb #footer h3 {
   color: white;
   font-weight: bold;
   font-size: 16px;
   text-align: left;

}

  1. dlutb #footer p {
   color: hsl(197, 55%, 70%);
   font-size: 16px;

}

  1. dlutb #footer #address p {
   width: 80%;

}

  1. dlutb #platformName, #dlutb #qrCode {
   display: table-row;

}

  1. dlutb #address, #dlutb #follow, #dlutb #platformName p, #dlutb #qrCode div {
   display: table-cell;
   min-width: 30px;

}

  1. dlutb .btn {
   border-radius: 30px;
   border: 2px #41cd52 solid;
   color: #41cd52;
   font-size: 18px;
   line-height: 30px;
   transition: 0.5s;
   padding: 8px;

}

  1. dlutb .btn:visited {
   color: #41cd52;

}

  1. dlutb .btn:hover {
   color: white;
   background-color: #41cd52;

}

  1. dlutb #back {
   height: 30px;
   width: 30px;
   display: none;
   position: fixed;
   bottom: 100px;
   right: 70px;
   text-align: center;
   font-size: 28px;
   cursor:pointer;

}

  1. dlutb #chatBubbles {
   margin: 0 auto 60px auto;

}

  1. dlutb #circle{
   display: table;
   margin:25px auto 25px auto;

}

  1. dlutb .tr{
   display: table-row;

}

  1. dlutb .td{
   display: table-cell;

}

  1. dlutb #contents{
   float:left;

}

  1. dlutb #article{
   display: table-cell;

}