Difference between revisions of "Template:Vilnius-Lithuania/CSS/ContentPage"

m
Line 4: Line 4:
 
   color: #222222;
 
   color: #222222;
 
   font-family: "lato-regular";
 
   font-family: "lato-regular";
 +
}
 +
 +
.igem_column_wrapper > p {
 +
  margin: 0;
 
}
 
}
  
 
#section-text .content .content-paragraph {
 
#section-text .content .content-paragraph {
font-family: 'lato-regular';
+
  font-family: "lato-regular";
margin: 0;
+
  margin: 0;
font-size: 1.4em;
+
  font-size: 1.4em;
margin-top: 20px;
+
  margin-top: 20px;
margin-bottom: 40px;
+
  margin-bottom: 40px;
 
}
 
}
 
@media (max-width: 480px) {
 
@media (max-width: 480px) {
   #section-text .content .content-paragraph{
+
   #section-text .content .content-paragraph {
font-size: 1em;
+
    font-size: 1em;
 
   }
 
   }
 
}
 
}
 
+
#section-text .content .h3 {
 +
  font-size: 1.5em;
 +
}
  
 
main {
 
main {
Line 32: Line 38:
 
   font-size: 2.2rem;
 
   font-size: 2.2rem;
 
}
 
}
.content .h3{
 
font-size: 1.5em
 
}
 
 
 
  
 
.introContainer {
 
.introContainer {
Line 54: Line 55:
 
   background-position: center;
 
   background-position: center;
 
   background-attachment: fixed;
 
   background-attachment: fixed;
overflow:hidden
+
  overflow: hidden;
}
+
.introContainer span #image-overlay{
+
width: 100%;
+
height:100%;
+
position: absolute;
+
background-color: #6281EF;
+
mix-blend-mode: multiply;
+
 
}
 
}
 
@media (min-aspect-ratio: 1/1) {
 
@media (min-aspect-ratio: 1/1) {
Line 68: Line 62:
 
     height: 80vh;
 
     height: 80vh;
 
   }
 
   }
 +
}
 +
.introContainer span #image-overlay {
 +
  width: 100%;
 +
  height: 100%;
 +
  position: absolute;
 +
  background-color: #6281EF;
 +
  mix-blend-mode: multiply;
 
}
 
}
 
.introContainer .heading {
 
.introContainer .heading {
Line 92: Line 93:
 
}
 
}
 
@media (max-width: 480px) {
 
@media (max-width: 480px) {
   .introContainer .heading{
+
   .introContainer .heading {
  top: 49vh;
+
    top: 49vh;
}
+
  }
 
   .introContainer .heading.other {
 
   .introContainer .heading.other {
 
     top: 50vh;
 
     top: 50vh;
    left: unset;
 
 
   }
 
   }
 
}
 
}
Line 144: Line 144:
 
   cursor: pointer;
 
   cursor: pointer;
 
   background-color: #6281EF;
 
   background-color: #6281EF;
   transition: 1s
+
   transition: 0.5s;
 +
}
 +
.indexbutton[onText=true] {
 +
  bottom: 0px;
 
}
 
}
.indexbutton[onText=true]{
+
.indexbutton.open {
 
   bottom: 0px;
 
   bottom: 0px;
 
}
 
}
Line 163: Line 166:
 
   position: sticky;
 
   position: sticky;
 
   top: 50%;
 
   top: 50%;
   margin: 64px;
+
   margin: 200px 32px 0 32px;
 +
  transform: translateY(-50%);
 
   min-width: 220px;
 
   min-width: 220px;
transform: translateY(-50%);
+
}
   margin-top:200px
+
@media (max-width: 1024px) {
 +
   .index {
 +
    margin: 200px 8px 0 32px;
 +
  }
 
}
 
}
 
.index b {
 
.index b {
Line 180: Line 187:
 
   margin: 24px;
 
   margin: 24px;
 
   list-style: none;
 
   list-style: none;
 +
  color: #121212;
 +
  padding-left: 1em;
 +
  font-size: 1.1em;
 +
  cursor: pointer;
 
}
 
}
 
.index li:last-child {
 
.index li:last-child {
Line 189: Line 200:
 
   content: " ";
 
   content: " ";
 
   margin-left: -1em;
 
   margin-left: -1em;
   margin-right: 0.5em;
+
   margin-right: 0.75em;
 
   box-sizing: border-box;
 
   box-sizing: border-box;
 
   position: relative;
 
   position: relative;
  bottom: 2px;
 
 
   display: inline-block;
 
   display: inline-block;
 
   border: 1px solid;
 
   border: 1px solid;
Line 201: Line 211:
 
.index li.active::before {
 
.index li.active::before {
 
   background-color: #2E64EC;
 
   background-color: #2E64EC;
}
 
.index li a {
 
  text-decoration: none;
 
  color: #121212;
 
 
}
 
}
 
@media (max-width: 800px) {
 
@media (max-width: 800px) {
 
   .index {
 
   .index {
 
     position: fixed;
 
     position: fixed;
     bottom: -100vh;
+
     bottom: 0;
 
     padding: 64px 64px 0;
 
     padding: 64px 64px 0;
 
     border-radius: 1000px 1000px 0 0;
 
     border-radius: 1000px 1000px 0 0;
Line 219: Line 225:
 
     min-width: 300px;
 
     min-width: 300px;
 
     text-align: center;
 
     text-align: center;
     transition: 0.5s;
+
     transition: transform 0.5s;
 
     top: unset;
 
     top: unset;
     transform: none;
+
     transform: translateY(50%) scale(0);
 
   }
 
   }
 
   .index b {
 
   .index b {
Line 235: Line 241:
 
   .index li {
 
   .index li {
 
     font-weight: bold;
 
     font-weight: bold;
 +
    color: #FAFAFC;
 
   }
 
   }
 
   .index li::before {
 
   .index li::before {
Line 241: Line 248:
 
   .index li.active::before {
 
   .index li.active::before {
 
     background-color: #FAFAFC;
 
     background-color: #FAFAFC;
  }
 
  .index li a {
 
    color: #FAFAFC;
 
 
   }
 
   }
 
   .index.open {
 
   .index.open {
     bottom: 0px;
+
     transform: translateY(0) scale(1);
 
   }
 
   }
 
}
 
}
  
 
.content {
 
.content {
   width:80vw;
+
   width: 80vw;
 
   max-width: 700px;
 
   max-width: 700px;
 
   margin-right: 10vw;
 
   margin-right: 10vw;
Line 259: Line 263:
 
   box-shadow: 0 0 10px lightgray;
 
   box-shadow: 0 0 10px lightgray;
 
   color: #121212;
 
   color: #121212;
 +
}
 +
@media (max-width: 1024px) {
 +
  .content {
 +
    margin-right: 5vw;
 +
  }
 
}
 
}
 
@media (max-width: 800px) {
 
@media (max-width: 800px) {
Line 264: Line 273:
 
     margin: 0;
 
     margin: 0;
 
     box-shadow: unset;
 
     box-shadow: unset;
padding: 30px;
+
    padding: 30px;
 
   }
 
   }
 
}
 
}

Revision as of 08:47, 29 July 2020

body, html {

 margin: 0;
 padding: 0;
 color: #222222;
 font-family: "lato-regular";

}

.igem_column_wrapper > p {

 margin: 0;

}

  1. section-text .content .content-paragraph {
 font-family: "lato-regular";
 margin: 0;
 font-size: 1.4em;
 margin-top: 20px;
 margin-bottom: 40px;

} @media (max-width: 480px) {

 #section-text .content .content-paragraph {
   font-size: 1em;
 }

}

  1. section-text .content .h3 {
 font-size: 1.5em;

}

main {

 font-size: initial;

}

div.h1, div.h2, div.h3, div.h4, div.h5, div.h6 {

 font-weight: 800;
 margin-bottom: 0.83em;
 margin-top: 1em;

} div.h1.larger, div.h2.larger, div.h3.larger, div.h4.larger, div.h5.larger, div.h6.larger {

 font-size: 2.2rem;

}

.introContainer {

 width: 100%;
 height: 100vh;
 display: flex;
 justify-content: center;
 align-items: center;
 background-color: #121212;

} .introContainer span {

 width: 80vw;
 height: 80vw;
 border-radius: 40vw;
 position: relative;
 background-size: cover;
 background-position: center;
 background-attachment: fixed;
 overflow: hidden;

} @media (min-aspect-ratio: 1/1) {

 .introContainer span {
   width: 80vh;
   height: 80vh;
 }

} .introContainer span #image-overlay {

 width: 100%;
 height: 100%;
 position: absolute;
 background-color: #6281EF;
 mix-blend-mode: multiply;

} .introContainer .heading {

 z-index: 3;
 position: fixed;
 font-size: 7vh;
 top: 46vh;
 left: 10vw;
 color: #FAFAFC;
 text-transform: uppercase;
 font-family: "lato-heavy";

} @media (min-aspect-ratio: 1/1) {

 .introContainer .heading {
   font-size: 7vw;
 }

} .introContainer .heading.other {

 top: 48vh;
 left: 8vw;
 color: transparent;
 -webkit-text-stroke-width: 1px;
 -webkit-text-stroke-color: #FAFAFC;

} @media (max-width: 480px) {

 .introContainer .heading {
   top: 49vh;
 }
 .introContainer .heading.other {
   top: 50vh;
 }

} .introContainer::before {

 z-index: 2;
 position: absolute;
 width: 100%;
 height: 100vh;
 content: "";
 pointer-events: none;
 background-image: url(https://static.igem.org/mediawiki/2020/d/db/T--Vilnius-Lithuania--milk1.svg);
 background-size: cover;
 background-position: bottom;
 background-origin: border-box;
 border-bottom: 2px solid #FAFAFC;

}

main {

 margin-top: -5px;
 width: 100%;
 background-color: #FAFAFC;
 z-index: 10;
 position: relative;
 padding-bottom: 50px;
 display: flex;
 flex-direction: row;
 align-items: flex-start;
 justify-content: space-evenly;

} main::after {

 content: "";
 clear: both;
 display: table;

}

.indexbutton {

 display: none;
 position: fixed;
 bottom: -100px;
 color: #FAFAFC;
 border-radius: 64px 64px 0 0;
 text-transform: capitalize;
 font-size: 1.5rem;
 font-weight: bold;
 padding: 24px 24px 8px;
 cursor: pointer;
 background-color: #6281EF;
 transition: 0.5s;

} .indexbutton[onText=true] {

 bottom: 0px;

} .indexbutton.open {

 bottom: 0px;

} @media (max-width: 800px) {

 .indexbutton {
   display: block;
   z-index: 21;
 }

}

.index {

 text-transform: uppercase;
 float: left;
 margin-left: 10vw;
 position: -webkit-sticky;
 position: sticky;
 top: 50%;
 margin: 200px 32px 0 32px;
 transform: translateY(-50%);
 min-width: 220px;

} @media (max-width: 1024px) {

 .index {
   margin: 200px 8px 0 32px;
 }

} .index b {

 font-size: 1.5em;
 font-weight: bold;
 margin-left: 0.25em;

} .index ul {

 margin: 1em 0;
 padding: 0;

} .index li {

 margin: 24px;
 list-style: none;
 color: #121212;
 padding-left: 1em;
 font-size: 1.1em;
 cursor: pointer;

} .index li:last-child {

 margin-bottom: 0;

} .index li::before {

 width: 0.7em;
 height: 0.7em;
 content: " ";
 margin-left: -1em;
 margin-right: 0.75em;
 box-sizing: border-box;
 position: relative;
 display: inline-block;
 border: 1px solid;
 color: #2E64EC;
 border-radius: 1em;
 transition: 0.5s;

} .index li.active::before {

 background-color: #2E64EC;

} @media (max-width: 800px) {

 .index {
   position: fixed;
   bottom: 0;
   padding: 64px 64px 0;
   border-radius: 1000px 1000px 0 0;
   background-color: #6281EF;
   color: #FAFAFC;
   float: unset;
   margin: 0;
   z-index: 20;
   min-width: 300px;
   text-align: center;
   transition: transform 0.5s;
   top: unset;
   transform: translateY(50%) scale(0);
 }
 .index b {
   display: block;
   margin-right: 1em;
 }
 .index ul {
   display: inline-block;
   text-align: start;
   margin-top: 0;
   margin-bottom: 60px;
 }
 .index li {
   font-weight: bold;
   color: #FAFAFC;
 }
 .index li::before {
   color: #FAFAFC;
 }
 .index li.active::before {
   background-color: #FAFAFC;
 }
 .index.open {
   transform: translateY(0) scale(1);
 }

}

.content {

 width: 80vw;
 max-width: 700px;
 margin-right: 10vw;
 float: right;
 padding: 40px;
 border-radius: 16px;
 box-shadow: 0 0 10px lightgray;
 color: #121212;

} @media (max-width: 1024px) {

 .content {
   margin-right: 5vw;
 }

} @media (max-width: 800px) {

 .content {
   margin: 0;
   box-shadow: unset;
   padding: 30px;
 }

} .content *:first-child {

 margin-top: 0;

}