Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
Bielefeld-CeBiTec
Commits
cdcb0560
Commit
cdcb0560
authored
5 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
design
parent
79fa16b5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/App/App.css
+21
-7
21 additions, 7 deletions
src/App/App.css
src/components/HeaderBox.tsx
+3
-2
3 additions, 2 deletions
src/components/HeaderBox.tsx
src/headers/hp-h.tsx
+1
-1
1 addition, 1 deletion
src/headers/hp-h.tsx
src/utils/Highlight-functions.ts
+0
-1
0 additions, 1 deletion
src/utils/Highlight-functions.ts
with
25 additions
and
11 deletions
src/App/App.css
+
21
−
7
View file @
cdcb0560
...
@@ -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
:
38
0px
;
padding-top
:
10
0px
;
padding-bottom
:
6
0px
;
padding-bottom
:
1
0px
;
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
This diff is collapsed.
Click to expand it.
src/components/HeaderBox.tsx
+
3
−
2
View file @
cdcb0560
...
@@ -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
>
...
...
This diff is collapsed.
Click to expand it.
src/headers/hp-h.tsx
+
1
−
1
View file @
cdcb0560
export
function
HPH
()
{
export
function
HPH
()
{
return
(
return
(
<
HeaderBox
title
=
"Human"
title2
=
"Practices"
>
<
HeaderBox
title
=
"Human"
title2
=
"Practices"
id
=
"hphead"
>
</
HeaderBox
>
</
HeaderBox
>
);
);
...
...
This diff is collapsed.
Click to expand it.
src/utils/Highlight-functions.ts
+
0
−
1
View file @
cdcb0560
...
@@ -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
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment