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

Line 268: Line 268:
 
max-width: 1000px;
 
max-width: 1000px;
 
margin: 0 auto;
 
margin: 0 auto;
padding: 13% 10% 18%;
+
padding: 13% 10% 13%;
 
}
 
}
  
Line 459: Line 459:
 
}
 
}
  
/*component.css*/
 
.interactive-points {
 
position: relative;
 
display: inline-block;
 
overflow: hidden;
 
width: 100%;
 
margin-bottom: -0.4em;
 
background: #cfced7;
 
}
 
 
.interactive-points:focus {
 
outline: none;
 
}
 
 
.backgrounds,
 
.background__element {
 
position: relative;
 
width: 100%;
 
}
 
 
.background__element {
 
height: 50vh;
 
background-repeat: no-repeat;
 
background-position: 50% 50%;
 
background-size: cover;
 
}
 
 
.static {
 
position: relative;
 
display: block;
 
margin: 0 auto;
 
opacity: 0.5;
 
}
 
 
.points {
 
position: absolute;
 
top: 0;
 
left: 0;
 
display: none;
 
}
 
 
.static,
 
.points {
 
width: 100%;
 
height: auto;
 
}
 
 
@media screen and (min-aspect-ratio: 1885/1000) {
 
.static,
 
.points {
 
width: auto;
 
height: calc(100vh - 6em);
 
min-height: 500px;
 
}
 
}
 
 
.points {
 
left: 50%;
 
-webkit-transform: translate3d(-50%,0,0);
 
transform: translate3d(-50%,0,0);
 
}
 
 
.point {
 
cursor: pointer;
 
fill: #28282f;
 
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s, fill 0.3s;
 
transition: opacity 0.3s, transform 0.3s, fill 0.3s;
 
-webkit-transition-timing-function: cubic-bezier(0.2,1,0.3,1);
 
transition-timing-function: cubic-bezier(0.2,1,0.3,1);
 
}
 
 
.point--active {
 
fill: #408283;
 
-webkit-transform: scale3d(2,2,1);
 
transform: scale3d(2,2,1);
 
}
 
 
.point--hide {
 
opacity: 0;
 
pointer-events: none;
 
-webkit-transform: translate3d(0,10px,0);
 
transform: translate3d(0,10px,0);
 
}
 
 
.points-tooltips,
 
.points-content {
 
position: absolute;
 
bottom: 0;
 
left: 0;
 
width: 100%;
 
height: 100%;
 
pointer-events: none;
 
}
 
 
.points-tooltips {
 
display: -webkit-box;
 
display: -ms-flexbox;
 
display: flex;
 
-webkit-box-orient: vertical;
 
-webkit-box-direction: normal;
 
-ms-flex-direction: column;
 
flex-direction: column;
 
-webkit-box-pack: end;
 
-ms-flex-pack: end;
 
justify-content: flex-end;
 
}
 
 
.point-tooltip {
 
height: 50vh;
 
}
 
 
.point-tooltip__title {
 
font-family: 'Source Serif Pro', serif;
 
font-size: 1.5em;
 
line-height: 1;
 
margin: 0 0 0.15em;
 
display: inline-block;
 
background: #28282f;
 
padding: 5px;
 
}
 
 
.point-tooltip__description {
 
font-size: 0.85em;
 
font-weight: 500;
 
margin: 0;
 
line-height: 1;
 
display: inline-block;
 
background: #28282f;
 
padding: 5px;
 
}
 
 
.points-content {
 
-webkit-transition: background 0.1s;
 
transition: background 0.1s;
 
}
 
 
.points-content--open {
 
cursor: url(img/close.cur), pointer;
 
pointer-events: auto;
 
background: rgba(50,49,59,0.6);
 
}
 
 
@supports (cursor: zoom-in) {
 
    .points-content--open {
 
cursor: url(https://static.igem.org/mediawiki/2016/d/df/T--NUS_Singapore--close.png) 12 6, pointer;
 
}
 
}
 
 
.point-content {
 
font-size: 1.25em;
 
position: absolute;
 
bottom: 0;
 
left: 0;
 
width: 100%;
 
min-width: 300px;
 
padding: 0 0 3em 3em;
 
opacity: 0;
 
}
 
 
.point-content--current {
 
pointer-events: auto;
 
opacity: 1;
 
}
 
 
.point-content__title {
 
font-family: 'Source Serif Pro', serif;
 
font-size: 2.25em;
 
margin: 0;
 
text-shadow: 0 1px 5px rgba(0,0,0,0.2);
 
}
 
 
.point-content__subtitle {
 
font-family: 'Source Serif Pro', serif;
 
font-weight: bold;
 
margin: 0.25em 0 0;
 
display: inline-block;
 
background: #408283;
 
color: #28282f;
 
padding: 0 10px;
 
line-height: 1.5;
 
}
 
 
.point-content__text {
 
font-weight: 500;
 
margin: 1em 0 0 0;
 
}
 
 
.point-content > * {
 
opacity: 0;
 
-webkit-transform: translate3d(0,-40px,0);
 
transform: translate3d(0,-40px,0);
 
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
 
transition: opacity 0.3s, transform 0.3s;
 
}
 
 
.point-content--current > * {
 
opacity: 1;
 
-webkit-transform: translate3d(0,0,0);
 
transform: translate3d(0,0,0);
 
}
 
 
.point-content--current > *:first-child {
 
-webkit-transition-delay: 0.1s;
 
transition-delay: 0.1s;
 
}
 
 
.point-content--current > *:nth-child(2) {
 
-webkit-transition-delay: 0.05s;
 
transition-delay: 0.05s;
 
}
 
 
/* Second example */
 
.interactive-points--alter .point-content {
 
text-align: right;
 
left: auto;
 
right: 0;
 
padding: 0 3em 3em;
 
}
 
 
@media screen and (min-width: 52.375em) {
 
.point-content {
 
width: 50%;
 
}
 
.js .points {
 
display: block;
 
}
 
.js .backgrounds,
 
.js .background__element {
 
position: absolute;
 
top: 0;
 
left: 0;
 
width: 100%;
 
height: 100%;
 
}
 
.js .background__element {
 
opacity: 0;
 
-webkit-transition: opacity 0.1s;
 
transition: opacity 0.1s;
 
}
 
.js .points-tooltip {
 
display: block;
 
}
 
.js .point-tooltip {
 
position: absolute;
 
margin: 0.75em 0 0 0.25em;
 
opacity: 0;
 
-webkit-transform: translate3d(0,10px,0);
 
transform: translate3d(0,10px,0);
 
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
 
transition: opacity 0.3s, transform 0.3s;
 
}
 
.js .point-tooltip--current {
 
opacity: 1;
 
-webkit-transform: translate3d(0,0,0);
 
transform: translate3d(0,0,0);
 
}
 
}
 
 
/*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;}
 
 
/*sidebar_transitions_demo.css*/
 
body {
 
background: #444;
 
color: #48a770;
 
font-weight: 300;
 
font-family: 'Lato', Calibri, Arial, sans-serif;
 
}
 
 
a {
 
text-decoration: none;
 
color: #48a770;
 
outline: none;
 
}
 
 
a:hover, a:focus {
 
color: #2c774b;
 
outline: none;
 
}
 
 
/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
 
.clearfix:before,
 
.clearfix:after {
 
display: table;
 
content: " ";
 
}
 
 
.clearfix:after {
 
clear: both;
 
}
 
 
.codrops-header,
 
.codrops-top {
 
font-family: 'Lato', Arial, sans-serif;
 
}
 
 
.codrops-header {
 
margin: 0 auto 3em;
 
padding: 3em;
 
text-align: center;
 
}
 
 
.codrops-header h1 {
 
margin: 0;
 
font-weight: 300;
 
font-size: 2.625em;
 
line-height: 1.3;
 
}
 
 
.codrops-header span {
 
display: block;
 
padding: 0 0 0.6em 0.1em;
 
font-size: 60%;
 
color: #aca89a;
 
}
 
 
/* To Navigation Style */
 
.codrops-top {
 
width: 100%;
 
text-transform: uppercase;
 
font-size: 0.69em;
 
line-height: 2.2;
 
font-weight: 400;
 
background: rgba(255,255,255,0.3);
 
}
 
 
.codrops-top a {
 
display: inline-block;
 
padding: 0 1em;
 
text-decoration: none;
 
letter-spacing: 0.1em;
 
}
 
 
.codrops-top a:hover {
 
background: rgba(255,255,255,0.4);
 
color: #333;
 
}
 
 
.codrops-top span.right {
 
float: right;
 
}
 
 
.codrops-top span.right a {
 
display: block;
 
float: left;
 
}
 
 
.codrops-icon:before {
 
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";
 
}
 
 
.main {
 
max-width: 69em;
 
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;
 
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;
 
}
 
 
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;
 
}
 
 
.info {
 
text-align: center;
 
font-size: 1.5em;
 
margin-top: 3em;
 
clear: both;
 
padding: 3em 0;
 
opacity: 0.7;
 
color: #aca89a;
 
}
 
 
.info a {
 
font-weight: 700;
 
font-size: 0.9em;
 
}
 
 
@media screen and (max-width: 46.0625em) {
 
.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);
 
}
 
}
 
 
@media screen and (max-width: 25em) {
 
 
.codrops-header {
 
font-size: 80%;
 
}
 
 
.codrops-top {
 
font-size: 120%;
 
}
 
 
.codrops-icon span {
 
display: none;
 
}
 
 
}
 
  
  
Line 956: Line 486:
 
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,132: Line 700:
 
content: "\e02f";
 
content: "\e02f";
 
}
 
}
 +
  
 
/*sidebar_transitions_component.css*/
 
/*sidebar_transitions_component.css*/
Line 1,295: Line 864:
 
padding-left: 300px;
 
padding-left: 300px;
 
}
 
}
 +
  
 
/*button.css*/
 
/*button.css*/

Revision as of 01:51, 4 October 2016