Skip to content
Snippets Groups Projects
Commit cdcb0560 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

design

parent 79fa16b5
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
/* * * * * * * */ /* * * * * * * */
:root { :root {
/* our colours*/ /* our colours*/
--ourgradient: linear-gradient(90deg, rgba(147,94,184,1) 0%, rgba(160,167,243,1) 100%);
--text-primary: #850F78 ; --text-primary: #850F78 ;
--mediumpurple: #bc15aa; --mediumpurple: #bc15aa;
--lightpurple: #B85BD1; --lightpurple: #B85BD1;
...@@ -264,8 +265,8 @@ color: var(--text-primary); ...@@ -264,8 +265,8 @@ color: var(--text-primary);
max-width: 100% !important; max-width: 100% !important;
} }
.header-container{ .header-container{
padding-top: 380px; padding-top: 100px;
padding-bottom: 60px; padding-bottom: 10px;
background-color: var(--ourbeige); background-color: var(--ourbeige);
} }
.null{ .null{
...@@ -1095,8 +1096,11 @@ svg{ ...@@ -1095,8 +1096,11 @@ svg{
.container_document{ .container_document{
max-width: 40%; max-width: 40%;
} }
.download-butt{
color: var(--ourbeige) !important;
}
.download-butt{ /* @media unnötig */ .download-butt{ /* @media unnötig */
background-color: var(--text-primary); background: var(--ourgradient);
padding: 0.5vh !important; padding: 0.5vh !important;
border-radius: 5px; border-radius: 5px;
margin: auto !important; margin: auto !important;
...@@ -3223,7 +3227,7 @@ div[class*="boxy"] { ...@@ -3223,7 +3227,7 @@ div[class*="boxy"] {
} }
.boxy-1 { .boxy-1 {
background-color: var(--text-primary); background: var(--ourgradient);
max-width: fit-content; max-width: fit-content;
} }
.boxy-2 { .boxy-2 {
...@@ -3307,7 +3311,7 @@ div[class*="boxy"] { ...@@ -3307,7 +3311,7 @@ div[class*="boxy"] {
text-decoration: none; text-decoration: none;
padding: 10px; padding: 10px;
color:var(--ourbeige) !important; color:var(--ourbeige) !important;
background: var(--text-primary); background: var(--ourgradient);
border-radius: 100px; border-radius: 100px;
white-space: nowrap; white-space: nowrap;
margin-left: 40px; margin-left: 40px;
...@@ -3537,12 +3541,12 @@ svg a:hover text{ ...@@ -3537,12 +3541,12 @@ svg a:hover text{
} }
.active-sideitem { .active-sideitem {
background-color: var(--text-primary) !important; background: var(--ourgradient);
color: var(--ourbeige) !important; color: var(--ourbeige) !important;
border-radius: 5px; border-radius: 5px;
display: block; display: block;
border-width: 5px; border-width: 5px;
border-color: #850F78; border-color: var(--lightblue);
padding-right: 5px; padding-right: 5px;
padding-left: 5px; padding-left: 5px;
} }
...@@ -4017,7 +4021,17 @@ figure img{ ...@@ -4017,7 +4021,17 @@ figure img{
border-radius: 10px; border-radius: 10px;
} }
.nav-item, .nav-dropdown, .dropdown-toggle{
border-radius: 10px !important;
}
.sponsor-text-left h4{ .sponsor-text-left h4{
text-align: right; text-align: right;
}
#hphead{
background-image: url("https://static.igem.wiki/teams/5247/photos/header/human-practices.webp");
background-size: 1650px auto;
background-repeat: no-repeat;
} }
\ No newline at end of file
...@@ -4,9 +4,10 @@ interface Props{ ...@@ -4,9 +4,10 @@ interface Props{
title: string , title: string ,
title2?: string, title2?: string,
children?: React.ReactNode, children?: React.ReactNode,
id: string
} }
export default function HeaderBox({children, title, title2}: Props ){ export default function HeaderBox({children, title, title2, id}: Props ){
var ti: string = ""; var ti: string = "";
if (title2) { if (title2) {
ti = title2; ti = title2;
...@@ -15,7 +16,7 @@ export default function HeaderBox({children, title, title2}: Props ){ ...@@ -15,7 +16,7 @@ export default function HeaderBox({children, title, title2}: Props ){
<> <>
<div className="col"> <div className="col">
<div className="col header-container"> <div className="col header-container">
<div className="row header-title"> <div className="row header-title" id={id}>
<Hwave text={title}></Hwave> <Hwave text={title}></Hwave>
<Hwave text={ti}></Hwave> <Hwave text={ti}></Hwave>
......
export function HPH() { export function HPH() {
return ( return (
<HeaderBox title="Human" title2="Practices"> <HeaderBox title="Human" title2="Practices" id="hphead">
</HeaderBox> </HeaderBox>
); );
......
...@@ -11,7 +11,6 @@ export function NewHighlight({el}: {el: HTMLElement | null}, {subtitle}:{subtitl ...@@ -11,7 +11,6 @@ export function NewHighlight({el}: {el: HTMLElement | null}, {subtitle}:{subtitl
// console.log(el.getBoundingClientRect()) // console.log(el.getBoundingClientRect())
if (el.getBoundingClientRect().top < TopDistance + 1 && el.getBoundingClientRect().bottom > TopDistance){ if (el.getBoundingClientRect().top < TopDistance + 1 && el.getBoundingClientRect().bottom > TopDistance){
subtitle.style.color = "var(--ourbeige)"; subtitle.style.color = "var(--ourbeige)";
subtitle.style.backgroundColor = "rgb(133, 15, 120, 0.8)";
subtitle.style.borderColor = "#850F78"; subtitle.style.borderColor = "#850F78";
subtitle.style.marginLeft = "5px"; subtitle.style.marginLeft = "5px";
subtitle.style.paddingRight = "5px"; subtitle.style.paddingRight = "5px";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment