Difference between revisions of "Template:NYMU-Taipei/home css"

Line 1: Line 1:
@font-face {
+
<html>
    font-family: 'poppins';
+
<style>
    src: url("https://static.igem.org/mediawiki/2020/d/d8/T--NYMU-Taipei--Poppins-Regular.ttf");
+
}
+
  
@font-face {
 
    font-family: 'poppins';
 
    src: url('https://static.igem.org/mediawiki/2020/d/d7/T--NYMU-Taipei--Poppins-Bold.ttf');
 
    font-weight: bold;
 
}
 
  
@font-face {
 
    font-family: 'poppins';
 
    src: url('https://static.igem.org/mediawiki/2020/a/ae/T--NYMU-Taipei--Poppins-Light.ttf');
 
    font-weight: lighter;
 
}
 
  
@font-face {
 
    font-family: 'poppins';
 
    src: url('https://static.igem.org/mediawiki/2020/6/6a/T--NYMU-Taipei--Poppins-Italic.ttf');
 
    font-weight: normal;
 
    font-style: italic;
 
}
 
 
body {
 
    font-family: poppins;
 
    color: #363636;
 
}
 
  
 
/* NAVBAR */
 
/* NAVBAR */
 
+
.fixed-top {
.dropdown:hover>.dropdown-menu {
+
     top: 16px;
     display: block;
+
 
}
 
}
  
.dropdown>.dropdown-toggle:active {
 
    /*Without this, clicking will make it sticky*/
 
    pointer-events: none;
 
}
 
  
 
/* HOMEPAGE */
 
/* HOMEPAGE */
Line 124: Line 96:
 
     align-content: center;
 
     align-content: center;
 
     justify-content: center;
 
     justify-content: center;
 +
    color: inherit;
 +
    text-decoration: none;
 
     padding-left: 0;
 
     padding-left: 0;
 
     padding-right: 0;
 
     padding-right: 0;
 
     margin: 1.25rem;
 
     margin: 1.25rem;
 
     height: 500px;
 
     height: 500px;
     box-shadow: 0 0 11px rgba(33, 33, 33, .2);
+
     box-shadow: 0 0 11px rgba(129, 129, 129, 0.25);
    transition: box-shadow .3s;
+
}
+
  
.box:hover {
 
    box-shadow: 0 0 11px rgba(10, 10, 10, 0.3);
 
 
}
 
}
 +
  
 
.upper-box {
 
.upper-box {
Line 166: Line 137:
 
     width: 100%;
 
     width: 100%;
 
     height: auto;
 
     height: auto;
}
 
 
/* ICONS */
 
 
svg {
 
    display: inline;
 
 
}
 
}
  
Line 192: Line 157:
 
         transform: translateY(20px);
 
         transform: translateY(20px);
 
     }
 
     }
}
 
 
 
/* MISC */
 
 
.text-bold {
 
    font-weight: bold;
 
 
}
 
}
  
Line 229: Line 187:
 
     }
 
     }
 
}
 
}
 +
 +
 +
 +
 +
</style>
 +
</html>

Revision as of 09:55, 24 October 2020