Difference between revisions of "Template:Team:NUS Singapore/CSS"

Line 106: Line 106:
 
/*normalize.css*/
 
/*normalize.css*/
 
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
 
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
 +
 
/*demo.css*/
 
/*demo.css*/
 
*, *::after, *::before { -webkit-box-sizing: border-box; box-sizing: border-box; }
 
*, *::after, *::before { -webkit-box-sizing: border-box; box-sizing: border-box; }
Line 267: Line 268:
 
max-width: 1000px;
 
max-width: 1000px;
 
margin: 0 auto;
 
margin: 0 auto;
padding: 13% 10% 13%;
+
padding: 13% 10% 18%;
 
}
 
}
  
Line 457: Line 458:
 
}
 
}
 
}
 
}
 
  
 
/*component.css*/
 
/*component.css*/
Line 603: Line 603:
 
@supports (cursor: zoom-in) {
 
@supports (cursor: zoom-in) {
 
     .points-content--open {
 
     .points-content--open {
cursor: url(../img/close.png) 12 6, pointer;
+
cursor: url(https://static.igem.org/mediawiki/2016/d/df/T--NUS_Singapore--close.png) 12 6, pointer;
 
}
 
}
 
}
 
}
Line 716: Line 716:
 
}
 
}
 
}
 
}
 
  
 
/*sidebar_transitions_normalize.css*/
 
/*sidebar_transitions_normalize.css*/
 
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
 
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
 +
 
/*sidebar_transitions_demo.css*/
 
/*sidebar_transitions_demo.css*/
*,
+
body {
*:after,
+
background: #444;
*::before {
+
color: #48a770;
-moz-box-sizing: border-box;
+
font-weight: 300;
box-sizing: border-box;
+
font-family: 'Lato', Calibri, Arial, sans-serif;
 
}
 
}
  
html,
+
a {
body,
+
text-decoration: none;
.st-container,
+
color: #48a770;
.st-pusher,
+
outline: none;
.st-content {
+
height: 100%;
+
 
}
 
}
  
.st-content {
+
a:hover, a:focus {
overflow-y: scroll;
+
color: #2c774b;
background: #f3efe0;
+
outline: none;
 
}
 
}
  
.st-content,
+
/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.st-content-inner {
+
.clearfix:before,
position: relative;
+
.clearfix:after {
 +
display: table;
 +
content: " ";
 
}
 
}
  
.st-container {
+
.clearfix:after {
position: relative;
+
clear: both;
overflow: hidden;
+
 
}
 
}
  
.st-pusher {
+
.codrops-header,
position: relative;
+
.codrops-top {
left: 0;
+
font-family: 'Lato', Arial, sans-serif;
z-index: 99;
+
height: 100%;
+
-webkit-transition: -webkit-transform 0.5s;
+
transition: transform 0.5s;
+
 
}
 
}
  
.st-pusher::after {
+
.codrops-header {
position: absolute;
+
margin: 0 auto 3em;
top: 0;
+
padding: 3em;
right: 0;
+
text-align: center;
width: 0;
+
height: 0;
+
background: rgba(0,0,0,0.2);
+
content: '';
+
opacity: 0;
+
-webkit-transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
+
transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
+
 
}
 
}
  
.st-menu-open .st-pusher::after {
+
.codrops-header h1 {
width: 100%;
+
margin: 0;
height: 100%;
+
font-weight: 300;
opacity: 1;
+
font-size: 2.625em;
-webkit-transition: opacity 0.5s;
+
line-height: 1.3;
transition: opacity 0.5s;
+
 
}
 
}
  
.st-menu {
+
.codrops-header span {
position: fixed;
+
display: block;
top: 0;
+
padding: 0 0 0.6em 0.1em;
left: 0;
+
font-size: 60%;
z-index: 100;
+
color: #aca89a;
visibility: hidden;
+
width: 300px;
+
height: 100%;
+
background: #48a770;
+
-webkit-transition: all 0.5s;
+
transition: all 0.5s;
+
 
}
 
}
  
.st-menu::after {
+
/* To Navigation Style */
position: absolute;
+
.codrops-top {
top: 0;
+
right: 0;
+
 
width: 100%;
 
width: 100%;
height: 100%;
+
text-transform: uppercase;
background: rgba(0,0,0,0.2);
+
font-size: 0.69em;
content: '';
+
line-height: 2.2;
opacity: 1;
+
font-weight: 400;
-webkit-transition: opacity 0.5s;
+
background: rgba(255,255,255,0.3);
transition: opacity 0.5s;
+
 
}
 
}
  
.st-menu-open .st-menu::after {
+
.codrops-top a {
width: 0;
+
display: inline-block;
height: 0;
+
padding: 0 1em;
opacity: 0;
+
text-decoration: none;
-webkit-transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
+
letter-spacing: 0.1em;
transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
+
 
}
 
}
  
/* content style */
+
.codrops-top a:hover {
 
+
background: rgba(255,255,255,0.4);
.st-menu ul {
+
color: #333;
margin-top: 20%;
+
padding: 0;
+
list-style: none;
+
 
}
 
}
  
.st-menu h2 {
+
.codrops-top span.right {
margin: 0;
+
float: right;
padding: 1em;
+
color: rgba(0,0,0,0.4);
+
text-shadow: 0 0 1px rgba(0,0,0,0.1);
+
font-weight: 300;
+
font-size: 2em;
+
 
}
 
}
  
.st-menu ul li a {
+
.codrops-top span.right a {
 
display: block;
 
display: block;
padding: 1em 1em 1em 1.2em;
+
float: left;
width: 100%;
+
height: 20%;
+
outline: none;
+
box-shadow: inset 0 -1px rgba(0,0,0,0.2);
+
color: #f3efe0;
+
text-transform: uppercase;
+
text-shadow: 0 0 1px rgba(255,255,255,0.1);
+
letter-spacing: 1px;
+
font-weight: 400;
+
-webkit-transition: background 0.3s, box-shadow 0.3s;
+
transition: background 0.3s, box-shadow 0.3s;
+
 
}
 
}
  
.st-menu ul li:first-child a {
+
.codrops-icon:before {
box-shadow: inset 0 -1px rgba(0,0,0,0.2), inset 0 1px rgba(0,0,0,0.2);
+
margin: 0 4px;
 +
text-transform: none;
 +
font-weight: normal;
 +
font-style: normal;
 +
font-variant: normal;
 +
font-family: 'codropsicons';
 +
line-height: 1;
 +
speak: none;
 +
-webkit-font-smoothing: antialiased;
 +
-ms-font-smoothing: scale(1.1) translate(70px); /* IE 9 */
 +
}
 +
 
 +
.codrops-icon-drop:before {
 +
content: "\e001";
 +
}
 +
 
 +
.codrops-icon-prev:before {
 +
content: "\e004";
 
}
 
}
  
.st-menu ul li a:hover {
+
.main {
background: rgba(0,0,0,0.2);
+
max-width: 69em;
box-shadow: inset 0 -1px rgba(0,0,0,0);
+
margin: 0 auto;
 +
}
 +
 
 +
.column {
 +
float: left;
 +
width: 50%;
 +
padding: 0 2em;
 +
min-height: 300px;
 +
position: relative;
 +
text-align: right;
 +
}
 +
 
 +
.column:nth-child(2) {
 +
box-shadow: -1px 0 0 rgba(0,0,0,0.1);
 +
text-align: left;
 +
}
 +
 
 +
.column p {
 +
font-weight: 300;
 +
font-size: 2em;
 +
padding: 0 0 0.5em;
 +
margin: 0;
 +
line-height: 1.5;
 +
}
 +
 
 +
button {
 +
border: none;
 +
padding: 0.6em 1.2em;
 +
background: #388a5a;
 
color: #fff;
 
color: #fff;
 +
font-family: 'Lato', Calibri, Arial, sans-serif;
 +
font-size: 1em;
 +
letter-spacing: 1px;
 +
text-transform: uppercase;
 +
cursor: pointer;
 +
display: inline-block;
 +
margin: 3px 2px;
 +
border-radius: 2px;
 +
-webkit-transition: all .2s ease-in-out;
 +
transition: all .2s ease-in-out;
 
}
 
}
  
/* Individual effects */
+
button:hover {
 +
background-color: rgba(0,0,0,.5);
 +
    color: rgba(255,255,255,1);
 +
    -ms-transform: scale(1.7) translate(40px); /* IE 9 */
 +
    -webkit-transform: scale(1.7) translate(40px); /* Safari */
 +
    transform: scale(1.7) translate(40px); /* Standard syntax */
 +
outline: none;
 +
}
  
/* Effect 1: Slide in on top */
+
.info {
.st-effect-1.st-menu {
+
text-align: center;
visibility: visible;
+
font-size: 1.5em;
-webkit-transform: translate3d(-100%, 0, 0);
+
margin-top: 3em;
transform: translate3d(-100%, 0, 0);
+
clear: both;
 +
padding: 3em 0;
 +
opacity: 0.7;
 +
color: #aca89a;
 
}
 
}
  
.st-effect-1.st-menu-open .st-effect-1.st-menu {
+
.info a {
visibility: visible;
+
font-weight: 700;
-webkit-transform: translate3d(0, 0, 0);
+
font-size: 0.9em;
transform: translate3d(0, 0, 0);
+
 
}
 
}
  
.st-effect-1.st-menu::after {
+
@media screen and (max-width: 46.0625em) {
display: none;
+
.column {
 +
width: 100%;
 +
min-width: auto;
 +
min-height: auto;
 +
padding: 2em;
 +
text-align: center;
 +
}
 +
 
 +
.column p {
 +
font-size: 1.5em;
 +
}
 +
 
 +
.column:nth-child(2) {
 +
text-align: center;
 +
box-shadow: 0 -1px 0 rgba(0,0,0,0.1);
 +
}
 
}
 
}
  
/* Fallback example for browsers that don't support 3D transforms (and no JS fallback) */
+
@media screen and (max-width: 25em) {
.no-csstransforms3d .st-pusher,
+
 
.no-js .st-pusher {
+
.codrops-header {
padding-left: 300px;
+
font-size: 80%;
 +
}
 +
 
 +
.codrops-top {
 +
font-size: 120%;
 +
}
 +
 
 +
.codrops-icon span {
 +
display: none;
 +
}
 +
 
 
}
 
}
 
  
  
Line 910: Line 956:
 
font-size: 1.2em;
 
font-size: 1.2em;
 
-webkit-font-smoothing: antialiased;
 
-webkit-font-smoothing: antialiased;
height: 20px;
 
width: 20px;
 
background-size: 20px 20px;
 
display: inline-block;
 
content:"";
 
 
}
 
}
 
.icon-home:before {
 
background-image: url('../img/home.png');
 
}
 
 
.icon-project:before {
 
background-image: url('../img/project.png');
 
}
 
 
.icon-notebook:before {
 
background-image: url('../img/notebook.png');
 
}
 
 
.icon-team:before {
 
background-image: url('../img/team.png');
 
}
 
 
.icon-collaboration:before {
 
background-image: url('../img/collaboration.png');
 
}
 
 
.icon-practice:before {
 
background-image: url('../img/practice.png');
 
}
 
 
.icon-safety:before {
 
background-image: url('../img/safety.png');
 
}
 
 
.icon-acknowledgement:before {
 
background-image: url('../img/acknowledgement.png');
 
}
 
 
 
.icon-female:before {
 
.icon-female:before {
 
content: "\f182";
 
content: "\f182";
Line 1,287: Line 1,295:
 
padding-left: 300px;
 
padding-left: 300px;
 
}
 
}
 
  
 
/*button.css*/
 
/*button.css*/
Line 1,621: Line 1,628:
 
transform: rotateX(-90deg);
 
transform: rotateX(-90deg);
 
}
 
}
 
  
 
/*Adjustment*/
 
/*Adjustment*/

Revision as of 02:37, 4 October 2016