Line 2: | Line 2: | ||
:root { | :root { | ||
− | + | --main-color: #33691E; | |
− | - | + | --secondary-color: #E0E0E0; |
− | + | --wetlab-color: #2E7D32; | |
− | -- | + | --hardware-color: #3949AB; |
− | + | --software-color: #424242; | |
− | + | --dark: rgb(50, 50, 50); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
Line 98: | Line 85: | ||
align-items: center; | align-items: center; | ||
flex: 1; | flex: 1; | ||
− | height: 44px; | + | min-height: 44px; |
padding: 5px; | padding: 5px; | ||
text-align: center; | text-align: center; | ||
text-decoration: none; | text-decoration: none; | ||
color: white; | color: white; | ||
− | background: var(- | + | background: var(--dark); |
fill: currentColor; | fill: currentColor; | ||
z-index: 1; | z-index: 1; | ||
Line 133: | Line 120: | ||
bottom: -80px; | bottom: -80px; | ||
border-radius: 0 0 50% 50%; | border-radius: 0 0 50% 50%; | ||
− | background: var(- | + | background: var(--dark); |
} | } | ||
Line 149: | Line 136: | ||
padding: 10px 5px; | padding: 10px 5px; | ||
border-top: rgba(255, 255, 255, 0.25) solid 2px; | border-top: rgba(255, 255, 255, 0.25) solid 2px; | ||
− | color: var(- | + | color: var(--dark); |
transition: color 200ms; | transition: color 200ms; | ||
min-width: 96px; | min-width: 96px; | ||
− | + | min-height: 10px; | |
} | } | ||
Line 167: | Line 154: | ||
font-size: 12px; | font-size: 12px; | ||
color: orange; | color: orange; | ||
− | background: var(- | + | background: var(--dark); |
transform: scale(1, 0); | transform: scale(1, 0); | ||
transform-origin: bottom; | transform-origin: bottom; | ||
Line 298: | Line 285: | ||
padding: 50px; | padding: 50px; | ||
padding-top: 125px; | padding-top: 125px; | ||
− | background: var(- | + | background: var(--dark); |
list-style-type: none; | list-style-type: none; | ||
-webkit-font-smoothing: antialiased; | -webkit-font-smoothing: antialiased; | ||
Line 347: | Line 334: | ||
height: 50px; | height: 50px; | ||
width: 100%; | width: 100%; | ||
− | background: var(- | + | background: var(--dark); |
} | } | ||
Line 429: | Line 416: | ||
} | } | ||
− | /* ------ | + | /* ------ PAGE ------ */ |
− | + | .page { | |
− | . | + | max-width: 1600px; |
− | + | margin: 0 auto; | |
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | . | + | /* ------ CONTAINERS ------ */ |
− | + | .text-container { | |
− | + | ||
− | + | ||
position: relative; | position: relative; | ||
− | + | box-shadow: 2px 2px 20px rgba(0,0,0,0.1); | |
− | + | min-height: 380px; | |
− | + | padding-bottom: 50px; | |
− | box-shadow: 2px 2px | + | margin: 20px; |
− | + | ||
− | + | ||
} | } | ||
− | . | + | .text-container .title { |
− | + | color: white; | |
− | + | background: var(--main-color); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | . | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
padding: 10px; | padding: 10px; | ||
− | + | margin-top: 0; | |
+ | text-align: center; | ||
} | } | ||
− | .text-container | + | .text-container .title::after { |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | . | + | |
content: ''; | content: ''; | ||
− | + | display: block; | |
− | + | width: 90%; | |
− | + | margin: 0 auto; | |
− | + | ||
height: 4px; | height: 4px; | ||
− | |||
background: currentColor; | background: currentColor; | ||
} | } | ||
− | .text-container | + | .text-container .content { |
− | margin- | + | margin: 10px 20px; |
+ | } | ||
+ | |||
+ | .text-container img { | ||
+ | float: right; | ||
+ | height: 280px; | ||
+ | margin-left: 20px; | ||
+ | box-shadow: 2px 2px 20px rgba(0,0,0,0.1); | ||
} | } | ||
.nav-button { | .nav-button { | ||
− | + | position: absolute; | |
+ | bottom: 20px; | ||
+ | right: 20px; | ||
padding: 10px 20px; | padding: 10px 20px; | ||
− | background: var(-- | + | background: var(--main-color); |
color: white; | color: white; | ||
text-decoration: none; | text-decoration: none; | ||
Line 554: | Line 489: | ||
.nav-button:hover::after { | .nav-button:hover::after { | ||
transform: scale(1, 1); | transform: scale(1, 1); | ||
+ | } | ||
+ | |||
+ | .item-container { | ||
+ | display: flex; | ||
+ | } | ||
+ | |||
+ | .item-container div { | ||
+ | position: relative; | ||
+ | flex: 1; | ||
+ | margin: 20px; | ||
+ | padding-bottom: 20px; | ||
+ | text-align: center; | ||
+ | box-shadow: 2px 2px 20px rgba(0,0,0,0.1); | ||
+ | background: white; | ||
+ | } | ||
+ | |||
+ | .item-container .title { | ||
+ | background: #2E7D32; | ||
+ | margin-top: 0; | ||
+ | padding: 10px; | ||
+ | color: white; | ||
+ | } | ||
+ | |||
+ | .item-container .title::after { | ||
+ | content: ''; | ||
+ | display: block; | ||
+ | width: 90%; | ||
+ | height: 4px; | ||
+ | margin: 0 auto; | ||
+ | background: currentColor; | ||
+ | } | ||
+ | |||
+ | .item-container .content { | ||
+ | padding: 10px 20px; | ||
+ | } | ||
+ | |||
+ | .item-container .problem { | ||
+ | margin-right: 40px; | ||
+ | } | ||
+ | |||
+ | .item-container .solution { | ||
+ | margin-left: 40px; | ||
+ | } | ||
+ | |||
+ | @media screen and (max-width: 700px) { | ||
+ | .container { | ||
+ | flex-direction: column; | ||
+ | padding: 10px; | ||
+ | margin: 10px auto; | ||
+ | width: 95%; | ||
+ | } | ||
+ | |||
+ | .text-pic .photo { | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | right: 0; | ||
+ | bottom: 0; | ||
+ | order: -1; | ||
+ | } | ||
+ | |||
+ | .container { | ||
+ | text-align: center; | ||
+ | } | ||
+ | |||
+ | .container .title::after { | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | .container .nav-button { | ||
+ | left: 10px; | ||
+ | right: 10px; | ||
+ | } | ||
+ | |||
+ | .item-container { | ||
+ | flex-direction: column; | ||
+ | align-items: center; | ||
+ | } | ||
+ | |||
+ | .item-container div { | ||
+ | margin: 20px 0; | ||
+ | } | ||
} | } |
Revision as of 13:50, 25 September 2018
/* ----- color palet ----- */
- root {
--main-color: #33691E;
--secondary-color: #E0E0E0; --wetlab-color: #2E7D32;
--hardware-color: #3949AB; --software-color: #424242;
--dark: rgb(50, 50, 50); }
/* ----- iGEM STYLE FIXES ----- */
ul { list-style-image: none; }
- content {
width: 100%; margin: 0; padding: 0; background: none; }
- bodyContent a[href ^="https://"], .link-https {
background: whitesmoke; padding: 5px 0;
}
- HQ_page h1, #HQ_page h2, #HQ_page h3, #HQ_page p, #HQ_page span, #HQ_page a{
font-family: "Century Gothic"; line-height: initial; }
- bodyContent h3, #bodyContent h4, #bodyContent h5 {
margin-bottom: 0; padding: 0 5px; line-height: 1.1em; }
- top_title, #top_menu_under {
display: none; }
- top_menu_14 {
position: initial; }
- top_menu_inside #user_item {
margin-right: 0; float: none; }
- top_menu_inside {
margin: 0 auto; width: 90%; }
body { font-family: "Century Gothic"; background: white;
font-size: 13px;
}
/* ----- NAVBAR ----- */ .menu {
/* position: absolute; */ /* top: 0; */ /* left: 0; */ /* right: 0; */
display: flex; }
.menu, .sub-menu {
margin: 0; padding: 0; list-style: none; box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
}
.menu .main-item {
position: relative; display: flex; flex-direction: column; align-items: center; flex: 1; min-height: 44px; padding: 5px; text-align: center; text-decoration: none; color: white; background: var(--dark);
fill: currentColor; z-index: 1; }
.menu .main-item::before {
content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: currentColor; transform: scale(0, 1); transform-origin: left; transition: transform 200ms;
}
.menu .home-button {
width: 200px; position: relative;
}
.menu .home-button a {
position: absolute; top: 0; left: 0; right: 0; bottom: -80px; border-radius: 0 0 50% 50%; background: var(--dark);
}
.sub-menu {
position: absolute; top: 54px; left: 0; right: 0; transform: scale(1, 0); transform-origin: top; transition: transform 250ms;
}
.sub-menu .sub-item {
padding: 10px 5px; border-top: rgba(255, 255, 255, 0.25) solid 2px; color: var(--dark);
transition: color 200ms; min-width: 96px; min-height: 10px; }
.menu .construction::after {
content: url('https://static.igem.org/mediawiki/2018/4/4a/T--Rotterdam_HR--wrench.svg'); position: absolute; top: 5px; left: 0; right: 0; bottom: 5px; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: orange; background: var(--dark); transform: scale(1, 0); transform-origin: bottom; transition: transform 250ms;
}
.menu .main-item:hover::before {
transform: scale(1, 1);
}
.menu .construction:hover::after {
transform: scale(1, 1);
}
.menu .main-item:hover .sub-menu {
transform: scale(1, 1);
}
.menu .main-item:hover .sub-menu .sub-item {
color: white; transition: color 200ms 100ms;
}
- menuToggle a {
text-decoration: none; color: white; transition: color 0.3s ease;
}
- menuToggle a:hover {
color: gray;
}
- menuToggle {
display: none; position: relative; top: -35px;
left: 20px; width: 50px;
z-index: 1; -webkit-user-select: none; user-select: none;
}
- menuToggle input {
display: block; width: 40px; height: 32px; position: absolute; top: -7px; left: -5px; cursor: pointer; opacity: 0; /* hide this */ z-index: 2; /* and place it over the hamburger */ -webkit-touch-callout: none;
}
/*
* Just a quick hamburger */
- menuToggle span {
display: block; width: 33px; height: 4px; margin-bottom: 5px; position: relative; background: white; border-radius: 3px; z-index: 1; transform-origin: 4px 0px; transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0), background 0.5s cubic-bezier(0.77,0.2,0.05,1.0), opacity 0.55s ease;
}
- menuToggle span:first-child
{
transform-origin: 0% 0%;
}
- menuToggle span:nth-last-child(2)
{
transform-origin: 0% 100%;
}
/*
* Transform all the slices of hamburger * into a crossmark. */
- menuToggle input:checked ~ span
{
opacity: 1; transform: rotate(45deg) translate(-2px, -1px); background: white;
}
/*
* But let's hide the middle one. */
- menuToggle input:checked ~ span:nth-last-child(3)
{
opacity: 0; transform: rotate(0deg) scale(0.2, 0.2);
}
/*
* Ohyeah and the last one should go the other direction */
- menuToggle input:checked ~ span:nth-last-child(2)
{
transform: rotate(-45deg) translate(0, -1px);
}
/*
* Make this absolute positioned * at the top left of the screen */
- mobile-menu
{
position: absolute;
width: 200px;
margin: -100px 0 0 -50px; padding: 50px; padding-top: 125px; background: var(--dark); list-style-type: none; -webkit-font-smoothing: antialiased;
/* to stop flickering of text in safari */
transform-origin: 0% 0%; transform: translate(-100%, 0); transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}
- mobile-menu li
{
padding: 5px 0; font-size: 16px; height: 0.75em; display: flex; align-items: center;
}
- mobile-menu li svg {
width: 1em; height: 1em; margin-right: 10px; fill: currentColor;
}
- mobile-menu li span {
width: 100%; height: 0.75em; background: none;
}
/*
* And let's slide it in from the left */
- menuToggle input:checked ~ ul
{
transform: none;
}
@media only screen and (max-width: 900px) { .home-button { display: none; }
.menu { height: 50px; width: 100%; background: var(--dark); } .menu .main-item { display: none;
}
#menuToggle { display: block; } }
/* ------ HEADER ------ */
.header {
position: relative; height: 400px; width: 100%; background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.5), rgba(255,255,255,0.3)); display: flex; align-items: center; text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
}
.header::before {
content: ; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0;
}
.header div {
margin: auto; display: flex; flex-direction: column;
align-items: center; }
.header div svg {
width: 160px; height: 160px;
}
.header div h1 { padding: 0;
margin-top: 0; font-size: 50px;
}
/* ------ FOOTER ------ */
.multiple-items-footer { margin: 0 auto; display: flex; justify-content: space-around; width: 250px; }
.item-footer { width: 50px; height: 50px; margin: 5px; filter: invert(50%); transition: 0.4s; }
.item-footer:hover { filter: invert(100%); transition: 0.1s; }
- footer {
padding: 40px 0; background: rgb(50, 50, 50); text-align: center; color: white; font-size: 18px; }
/* ------ PAGE ------ */ .page { max-width: 1600px; margin: 0 auto; }
/* ------ CONTAINERS ------ */ .text-container {
position: relative; box-shadow: 2px 2px 20px rgba(0,0,0,0.1); min-height: 380px; padding-bottom: 50px; margin: 20px;
}
.text-container .title {
color: white; background: var(--main-color); padding: 10px;
margin-top: 0; text-align: center; }
.text-container .title::after {
content: ; display: block;
width: 90%; margin: 0 auto;
height: 4px; background: currentColor;
}
.text-container .content {
margin: 10px 20px;
}
.text-container img {
float: right; height: 280px; margin-left: 20px; box-shadow: 2px 2px 20px rgba(0,0,0,0.1);
}
.nav-button {
position: absolute; bottom: 20px; right: 20px; padding: 10px 20px; background: var(--main-color); color: white; text-decoration: none; box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.nav-button::before {
content: '> ';
}
.nav-button::after {
content: ; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: white; transform: scale(0, 1); transform-origin: left; transition: transform 200ms;
}
.nav-button:hover::after {
transform: scale(1, 1);
}
.item-container {
display: flex;
}
.item-container div {
position: relative; flex: 1;
margin: 20px; padding-bottom: 20px;
text-align: center; box-shadow: 2px 2px 20px rgba(0,0,0,0.1); background: white;
}
.item-container .title {
background: #2E7D32; margin-top: 0; padding: 10px; color: white;
}
.item-container .title::after {
content: ; display: block; width: 90%; height: 4px; margin: 0 auto; background: currentColor;
}
.item-container .content {
padding: 10px 20px;
}
.item-container .problem {
margin-right: 40px;
}
.item-container .solution {
margin-left: 40px;
}
@media screen and (max-width: 700px) {
.container { flex-direction: column; padding: 10px; margin: 10px auto; width: 95%; } .text-pic .photo { top: 0; left: 0; right: 0; bottom: 0; order: -1; } .container { text-align: center; } .container .title::after { width: 100%; } .container .nav-button { left: 10px; right: 10px;
}
.item-container { flex-direction: column; align-items: center; }
.item-container div { margin: 20px 0; } }