Difference between revisions of "Template:CPU CHINA/common CSS"

Line 1: Line 1:
 
@font-face {
 
@font-face {
    font-family: MONTSERRAT-BLACK1;
+
  font-family: MONTSERRAT-BLACK1;
    src: url("https://static.igem.org/mediawiki/2021/0/04/T--CPU_CHINA--MONTSERRAT-BLACK1.woff")format('woff');
+
  src: url("https://static.igem.org/mediawiki/2021/0/04/T--CPU_CHINA--MONTSERRAT-BLACK1.woff")
 +
    format("woff");
 
}
 
}
  
 
@font-face {
 
@font-face {
    font-family: MONTSERRAT-BLACKITALIC2;
+
  font-family: MONTSERRAT-BLACKITALIC2;
    src: url("https://static.igem.org/mediawiki/2021/d/d4/T--CPU_CHINA--MONTSERRAT-BLACKITALIC2.woff")format('woff');
+
  src: url("https://static.igem.org/mediawiki/2021/d/d4/T--CPU_CHINA--MONTSERRAT-BLACKITALIC2.woff")
 +
    format("woff");
 
}
 
}
  
 
@font-face {
 
@font-face {
    font-family: CABIN-REGULAR;
+
  font-family: CABIN-REGULAR;
    src: url("https://static.igem.org/mediawiki/2021/b/b3/T--CPU_CHINA--CABIN-REGULAR.woff")format('woff');
+
  src: url("https://static.igem.org/mediawiki/2021/b/b3/T--CPU_CHINA--CABIN-REGULAR.woff")
 +
    format("woff");
 
}
 
}
  
 
@font-face {
 
@font-face {
    font-family: CABIN-ITALIC;
+
  font-family: CABIN-ITALIC;
    src: url("https://static.igem.org/mediawiki/2021/7/75/T--CPU_CHINA--CABIN-ITALIC.woff")format('woff');
+
  src: url("https://static.igem.org/mediawiki/2021/7/75/T--CPU_CHINA--CABIN-ITALIC.woff")
 +
    format("woff");
 
}
 
}
  
 
body {
 
body {
    background-color: #FAFAFA;
+
  background-color: #fafafa;
 
}
 
}
  
 
* {
 
* {
    box-sizing: border-box;
+
  box-sizing: border-box;
 
}
 
}
  
 
#contain {
 
#contain {
    margin-top: -12px;
+
  margin-top: -12px;
    padding: 0 3% 10%;
+
  padding: 0 3% 10%;
    width: 100%;
+
  width: 100%;
    background-color: #FAFAFA;
+
  background-color: #fafafa;
    z-index: 1;
+
  z-index: 1;
    text-align: left;
+
  text-align: left;
    box-sizing: border-box;
+
  box-sizing: border-box;
 
}
 
}
  
 
.background {
 
.background {
    position: fixed;
+
  position: fixed;
    width: 100%;
+
  width: 100%;
    top: 0;
+
  top: 0;
    z-index: -1;
+
  z-index: -1;
    box-sizing: border-box;
+
  box-sizing: border-box;
 
}
 
}
  
 
#header #title {
 
#header #title {
    position: fixed;
+
  position: fixed;
    top: 10%;
+
  top: 10%;
    font-family: "MONTSERRAT-BLACKITALIC2";
+
  font-family: "MONTSERRAT-BLACKITALIC2";
    line-height: normal;
+
  line-height: normal;
    font-weight: bolder;
+
  font-weight: bolder;
    font-size: 800%;
+
  font-size: 800%;
    color: #FAFAFA;
+
  color: #fafafa;
    z-index: -1;
+
  z-index: -1;
 
}
 
}
  
 
#header #menu {
 
#header #menu {
    position: fixed;
+
  z-index: 10;
    width: 100%;
+
    height: 100%;
+
    box-sizing: border-box;
+
    z-index: 4;
+
 
}
 
}
  
#header .menu {
+
#header #menu #menuBack {
    background-color: #000000ad;
+
  position: fixed;
 +
  width: 100%;
 +
  height: 100%;
 +
  box-sizing: border-box;
 +
  z-index: 10;
 +
}
 +
 
 +
#header #menu .menu {
 +
  background: #000000ad;
 
}
 
}
  
 
#header #menu #logo {
 
#header #menu #logo {
    position: fixed;
+
  position: fixed;
    top: 6vmin;
+
  top: 6vmin;
    left: 1vmin;
+
  left: 1vmin;
    width: 25vmin;
+
  width: 25vmin;
 +
  z-index: 11;
 
}
 
}
  
 
#header #menu #menuImg {
 
#header #menu #menuImg {
    position: fixed;
+
  position: fixed;
    top: 6vmin;
+
  top: 6vmin;
    right: 1vmin;
+
  right: 1vmin;
    width: 15vmin;
+
  width: 15vmin;
 +
  z-index: 11;
 
}
 
}
  
 
#header #menu .class {
 
#header #menu .class {
    margin-top: 22vmin;
+
  position: fixed;
    float: right;
+
  top: 22vmin;
    width: 35vmin;
+
  width: 35vmin;
 +
  z-index: 11;
 
}
 
}
  
 
#header #menu .class li {
 
#header #menu .class li {
    padding: 8% 0;
+
  padding: 6% 0;
    margin: 2vmin;
+
  margin: 2vmin;
    border-radius: 30px;
+
  border-radius: 30px;
    text-align: center;
+
  text-align: center;
    font-family: "MONTSERRAT-BLACKITALIC2";
+
  font-family: "MONTSERRAT-BLACKITALIC2";
    font-size: 1.5em;
+
  font-size: 1.5em;
    font-weight: bolder;
+
  font-weight: bolder;
 +
}
 +
 
 +
#header #menu #class-a {
 +
  right: 1vmin;
 
}
 
}
  
 
#header #menu #class-a li {
 
#header #menu #class-a li {
    margin-right: 3vmin;
+
  margin-right: 3vmin;
    background-color: #FAFAFA;
+
  background-color: #fafafa;
 +
  border: #fafafa solid 3px;
 +
}
  
 +
#header #menu #class-a li:hover {
 +
  border: #0072fe solid 3px;
 
}
 
}
  
#header #menu #class-a .class-a{
+
#header #menu #class-a .class-a {
    background-color: #0072FE;
+
  background-color: #0072fe;
    color: #FAFAFA;
+
  border: #0072fe solid 3px;
 +
  color: #fafafa;
 
}
 
}
  
#header #menu #class-b li {
+
#header #menu #class-b {
    border: #0072FE solid 2px;
+
  right: 37vmin;
    color: #FAFAFA;
+
 
}
 
}
  
#header #menu #class-b .class-b{
+
#header #menu #class-b li {
    background-color:#00000047;
+
  border: #0072fe solid 2px;
 +
  color: #fafafa;
 +
}
 +
#header #menu #class-b li:active {
 +
  background-color: #0000008f;
 +
}
 +
#header #menu #class-b .class-b {
 +
  background-color: #00000047;
 
}
 
}
  
 
footer {
 
footer {
    position: -webkit-sticky;
+
  position: -webkit-sticky;
    left: 0;
+
  left: 0;
    width: 100%;
+
  width: 100%;
    background-color: black;
+
  background-color: black;
 
}
 
}
  
 
footer #sponsor {
 
footer #sponsor {
    position: relative;
+
  position: relative;
    top: -10px;
+
  top: -10px;
    width: 100%;
+
  width: 100%;
    border-radius: 10px;
+
  border-radius: 10px;
    -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
+
  -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 0, 0.1) inset;
+
    0 0 40px rgba(0, 0, 0, 0.1) inset;
    -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
+
  -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 0, 0.1) inset;
+
    0 0 40px rgba(0, 0, 0, 0.1) inset;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
+
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
    -o-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
+
  -o-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
    z-index: 1;
+
  z-index: 1;
 
}
 
}
  
 
footer #connect {
 
footer #connect {
    position: relative;
+
  position: relative;
    top: -30px;
+
  top: -30px;
    width: 100%;
+
  width: 100%;
    height: 150px;
+
  height: 150px;
    background-color: black;
+
  background-color: black;
    border-radius: 10px;
+
  border-radius: 10px;
    -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
+
  -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 0, 0.1) inset;
+
    0 0 40px rgba(0, 0, 0, 0.1) inset;
    -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
+
  -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 0, 0.1) inset;
+
    0 0 40px rgba(0, 0, 0, 0.1) inset;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
+
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
    -o-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
+
  -o-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
    z-index: 2;
+
  z-index: 2;
 
}
 
}

Revision as of 10:10, 12 September 2021

@font-face {

 font-family: MONTSERRAT-BLACK1;
 src: url("https://static.igem.org/mediawiki/2021/0/04/T--CPU_CHINA--MONTSERRAT-BLACK1.woff")
   format("woff");

}

@font-face {

 font-family: MONTSERRAT-BLACKITALIC2;
 src: url("https://static.igem.org/mediawiki/2021/d/d4/T--CPU_CHINA--MONTSERRAT-BLACKITALIC2.woff")
   format("woff");

}

@font-face {

 font-family: CABIN-REGULAR;
 src: url("https://static.igem.org/mediawiki/2021/b/b3/T--CPU_CHINA--CABIN-REGULAR.woff")
   format("woff");

}

@font-face {

 font-family: CABIN-ITALIC;
 src: url("https://static.igem.org/mediawiki/2021/7/75/T--CPU_CHINA--CABIN-ITALIC.woff")
   format("woff");

}

body {

 background-color: #fafafa;

}

  • {
 box-sizing: border-box;

}

  1. contain {
 margin-top: -12px;
 padding: 0 3% 10%;
 width: 100%;
 background-color: #fafafa;
 z-index: 1;
 text-align: left;
 box-sizing: border-box;

}

.background {

 position: fixed;
 width: 100%;
 top: 0;
 z-index: -1;
 box-sizing: border-box;

}

  1. header #title {
 position: fixed;
 top: 10%;
 font-family: "MONTSERRAT-BLACKITALIC2";
 line-height: normal;
 font-weight: bolder;
 font-size: 800%;
 color: #fafafa;
 z-index: -1;

}

  1. header #menu {
 z-index: 10;

}

  1. header #menu #menuBack {
 position: fixed;
 width: 100%;
 height: 100%;
 box-sizing: border-box;
 z-index: 10;

}

  1. header #menu .menu {
 background: #000000ad;

}

  1. header #menu #logo {
 position: fixed;
 top: 6vmin;
 left: 1vmin;
 width: 25vmin;
 z-index: 11;

}

  1. header #menu #menuImg {
 position: fixed;
 top: 6vmin;
 right: 1vmin;
 width: 15vmin;
 z-index: 11;

}

  1. header #menu .class {
 position: fixed;
 top: 22vmin;
 width: 35vmin;
 z-index: 11;

}

  1. header #menu .class li {
 padding: 6% 0;
 margin: 2vmin;
 border-radius: 30px;
 text-align: center;
 font-family: "MONTSERRAT-BLACKITALIC2";
 font-size: 1.5em;
 font-weight: bolder;

}

  1. header #menu #class-a {
 right: 1vmin;

}

  1. header #menu #class-a li {
 margin-right: 3vmin;
 background-color: #fafafa;
 border: #fafafa solid 3px;

}

  1. header #menu #class-a li:hover {
 border: #0072fe solid 3px;

}

  1. header #menu #class-a .class-a {
 background-color: #0072fe;
 border: #0072fe solid 3px;
 color: #fafafa;

}

  1. header #menu #class-b {
 right: 37vmin;

}

  1. header #menu #class-b li {
 border: #0072fe solid 2px;
 color: #fafafa;

}

  1. header #menu #class-b li:active {
 background-color: #0000008f;

}

  1. header #menu #class-b .class-b {
 background-color: #00000047;

}

footer {

 position: -webkit-sticky;
 left: 0;
 width: 100%;
 background-color: black;

}

footer #sponsor {

 position: relative;
 top: -10px;
 width: 100%;
 border-radius: 10px;
 -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
   0 0 40px rgba(0, 0, 0, 0.1) inset;
 -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
   0 0 40px rgba(0, 0, 0, 0.1) inset;
 box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
 -o-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
 z-index: 1;

}

footer #connect {

 position: relative;
 top: -30px;
 width: 100%;
 height: 150px;
 background-color: black;
 border-radius: 10px;
 -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
   0 0 40px rgba(0, 0, 0, 0.1) inset;
 -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3),
   0 0 40px rgba(0, 0, 0, 0.1) inset;
 box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
 -o-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
 z-index: 2;

}