Newer
Older
/* * * * * * * * */
/* * * UNITS * * */
/* * * * * * * * */
/*
To have responsive web design, we have so use different units.
abbr type explanation
___________________________________________________-
px absolute (self explanatory; pixel)
em relative (Relative to the font-size of the element (2em means 2 times the size of the current font))
rem relative (Relative to font-size of the root element; r (like root) + em = rem.)
vw relative (Relative to 1% of the width of the browser window size)
There are some things we do not want to have fixed sizes:
*/
/* Remove default margin */
* {
border: 0;
margin: 0;
padding: 0;
font: inherit;
}
text-rendering: optimizeSpeed;
line-height: 1.5;
}
html:focus-within {
scroll-behavior: smooth;
.row{
max-width: 100%;
}
.contrast-mode {
background-color: white !important;
color: black !important;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
height: auto;
}
.bg-dark { background-color: var(--darkpurple) !important; }
.bg-hero { background-color: var(--purple) }
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/* * * * * * * * */
/* * * FONTS * * */
/* * * * * * * * */
@font-face {
font-family: 'AcuminPro';
src: url('https://static.igem.wiki/teams/5247/design/fonts/acumium-pro-black.ttf'), format('truetype');
font-style: normal;
font-weight: 900;
}
@font-face {
font-family: 'AcuminPro';
src: url('https://static.igem.wiki/teams/5247/design/fonts/acumium-pro-blackitalic.ttf'), format('truetype');
font-style: italic;
font-weight: 900;
}
@font-face {
font-family: 'AcuminPro';
src: url('https://static.igem.wiki/teams/5247/design/fonts/acumium-pro-bold.ttf'), format('truetype');
font-style: normal;
font-weight: 700;
}
@font-face {
font-family: 'AcuminPro';
src: url('https://static.igem.wiki/teams/5247/design/fonts/acumium-pro-bolditalics.ttf'), format('truetype');
font-style: normal;
font-weight: 700;
}
@font-face {
font-family: 'AcuminPro';
src: url('https://static.igem.wiki/teams/5247/design/fonts/acumium-pro-semibold.ttf'), format('truetype');
font-style: normal;
font-weight: 600;
}
@font-face {
font-family: 'AcuminPro';
src: url('https: //static .igem .wiki/teams/ 5247px /design/fonts/acumium-pro-bookitalic.ttf'), format('truetype');
font-style: italic;
font-weight: 400;
}
@font-face {
font-family: 'AcuminPro';
src: url('https://static.igem.wiki/teams/5247/design/fonts/acumium-pro-book.ttf'), format('truetype');
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: 'AcuminPro';
src: url('https://static.igem.wiki/teams/5247/design/fonts/acumium-pro-light.ttf'), format('truetype');
font-style: normal;
font-weight: 300;
}
@font-face {
font-family: 'AcuminPro';
src: url('https://static.igem.wiki/teams/5247/design/fonts/acumium-pro-extralight.ttf'), format('truetype');
font-weight: 200;
}
@font-face {
font-family: 'AcuminPro';
src: url('https://static.igem.wiki/teams/5247/design/fonts/acumium-pro-thin.ttf'), format('truetype');
font-style: normal;
font-weight: 100;
/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom:.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }
:root {
/* our colours*/
--darkpurple: #850F78;
--highlight2: #F57D22;
--highlight: #F4CC1E;
--lightblue: #A0A7F3 ;
--offblack: #32232C ;
--cebitecgray: #8295A4;
/*--offwhite: #e9dff1; */
--ourbeige: #FFF6F2;
--background: #4ea194;
/*igem colours*/
--igemdarkgreen: #006530;
--igemmediumgreen: #019968;
--igemlightgreen: #99cb9a;
}
border: var(--offblack);
border-radius: 3px;
border-style: ridge;
padding: 10px ;
margin-top: 20px;
margin-bottom: 20px;
/*collapsible*/
/* Style the button that is used to open and close the collapsible content */
.collapsible {
background-color: var(--mediumpurple);
color: var(--offblack);
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
margin-left: 5px;
margin-right: 5px;
margin-bottom: 5px;
border-style: outset;
border-color: var(--darkpurple);
}
/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.collapsible:hover {
box-shadow: 5px 5px 15px black;
/* Style the collapsible content. Note: hidden by default */
padding: 18px 18px;
display: none;
overflow: hidden;
border-color: var(--darkpurple);
border-style: dotted;
.test-container{
background-color: var(--offblack);
width: 50%;
padding: 40px;
Überschrift 2: 3rem html still 2px hover
-webkit-text-stroke-color: var(--darkpurple);
background-clip: text;
color: transparent;
background-image: repeating-linear-gradient(-45deg, var(--darkpurple) 0, var(--darkpurple) 2px, white 2px, white 4px);
h6{
padding-bottom: 1rem;
padding-top: 1rem;
color: white;
}
svg{
background:transparent
}
svg text{
stroke-width:2px;
fill:var(--highlight);
stroke:var(--darkpurple);
/*letter-spacing:4px;*/
animation:effect 3s, dash 3s;
}
.underline--magical {
background-image: linear-gradient(120deg, var(--lightblue) 0%, var(--mediumpurple) 100%);
background-repeat: no-repeat;
color: black;
background-size: 100% 0.2em;
background-position: 0 105%;
transition: background-size 0.25s ease-in;
}
.underline--magical:hover {
background-size: 100% 100%;
color: black;
text-decoration: none !important;
}
@keyframes effect{
0%{
stroke-dasharray:0 70%;
}
100%{
stroke-dasharray:10% 0%;
stroke-dashoffset:20%;
}
}
@keyframes dash {
0% {
stroke-dashoffset: 1300;
}
35% {
fill-opacity: 0;
}
50% {
stroke-dashoffset: 0;
}
100% {
stroke-dashoffset: 0;
fill-opacity: 1;
}
@keyframes dashy {
to {
stroke-dashoffset: 1000;
}
}
img,
picture,
svg {
max-width: 100%;
display: block;
}
.fit{
width: 100% !important;
height: auto !important;
}
width: 100% !important;
height: auto !important;
border-radius:50%;
overflow:hidden;
padding-top: 5%;
padding-bottom: 5%;
align-items: center;
margin: auto;
}
width: 100%;
padding-top: 15px;
padding-bottom: 15px;
}
.video-desc{
text-align: center;
padding-top: 5px;
padding-bottom: 5px;
.img-sponsor{
max-width: 70%;
max-height: 150px;
}
a {
color:var(--lightblue);
text-decoration: none !important; /* Remove underline */
}
a:hover {
color: inherit;
}
.backtotop {
place-self:end;
/* visual styling */
text-decoration: none;
padding: 10px;
background: var(--darkpurple);
border-radius: 100px;
white-space: nowrap;
text-align: right;
}
.backtotop:hover{
color: var(--highlight);
transition: all 0.1s linear;
.alink:hover{
color: var(--highlight);
transition: all 0.1s linear;
}
a:hover { color: var(--highlight); text-decoration: underline; }
.bottom-buttons{
margin-top: 50px;
margin-bottom: 20px;
padding-left: 30px;
}
/*.bottom-buttons:hover{
margin-top: 45px;
margin-bottom: 45px;
transition: all 0.1s linear;
}*/
.village-style-button{
box-shadow: 5px 5px 15px gray;
border-radius: 2rem;
padding: 0 !important;
max-width: 12%;
aspect-ratio: 2 / 3;
margin-left: 1vw;
}
.village-style-button:hover{
box-shadow: 5px 5px 15px black;
}
/*.village-style-button:hover{
box-shadow: 5px 5px 15px --highlight;
border-radius: 2rem;
padding: 0 !important;
width: 120px;
height: 150px;
transition: all 0.1s linear;
}*/
.village-style-button h3{
text-align: center !important;
font-size: 10px;
font-weight: bold;
color: #000;
}
.village-style-button img{
max-width: 70%;
max-height: 70%;
padding-top: 20px;
.anchor{
position: relative;
padding-top: 100px;
}
/* * * * * * * * */
/* * * NAVBAR* * */
/* * * * * * * * */
/*colour of the navbar links*/
/*extra navbar type mit transparentem hintergrund */
.bg-transp{
background:transparent;
color: var(--darkpurple);
}
/* macht den link text dark purple */
.nav-link{
color: var(--darkpurple) !important;
}
/*Macht den Team Namen lila*/
color: var(--darkpurple);
}
/*When hovering over navbar link with mouse the text turns white */
.nav-link:hover {
color: white !important;
background-color: var(--darkpurple) !important;
border-radius: 7px;
}
/* macht den Hintergrund der Navbar blurry */
.navbar{
backdrop-filter: blur(5px);
transition: visibility 0s, 0.6s, opacity 0.6s linear, transform 1s;
}
nav.navbar {
padding-top: 1rem;
padding-bottom: 1rem;
}
.dropdown-menu{
background-color: white;
border-width: 2px;
border-color: var(--darkpurple);
}
.dropdown-item:hover{
color: var(--highlight);
background-color: var(--darkpurple);
border-radius: 7px;
}
/* * * * * * * * */
/* SCREEN WIDTHS */
/* * * * * * * * */
/*For tablet or bigger*/
@media screen and (min-width: 992px) {
/* navbar opens on hover*/
.dropdown:hover .dropdown-menu {
display: block;
}
}
/*For Tablet and smaller*/
@media screen and (max-width: 992px){
}
/*For Smartphones*/
@media screen and (max-width: 768px){
.navbar-collapse{
backdrop-filter: none;
background-color: white;
}
[class*="col-"] {
width: 100%;
}
svg text{
font-size: 9vw;
stroke-width:1px;
}
.village-style-button h3{
display: none !important;
}
.village-style-button{
box-shadow: 1px 1px 1px gray;
border-radius: 10px;
border-color: black;
}
.village-style-button:hover{
box-shadow: none;
}
.village-style-button img{
max-width: 90%;
max-height: 90%;
padding-top: 10px;
padding-bottom: 5px;
}
/*Bigger than smartphones*/
@media only screen and (min-width: 768px) {
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}