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
3f970c5f
Commit
3f970c5f
authored
9 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
unit changes
parent
67027cc6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#382484
passed
9 months ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
static/style.css
+50
-8
50 additions, 8 deletions
static/style.css
with
50 additions
and
8 deletions
static/style.css
+
50
−
8
View file @
3f970c5f
/* * * * * * * * */
/* * * 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
;
}
body
{
height
:
100%
;
width
:
auto
;
font-family
:
'AcuminPro'
;
padding-top
:
5
6px
;
padding-top
:
5
vw
;
background-color
:
white
;
color
:
var
(
--offblack
);
text-rendering
:
optimizeSpeed
;
line-height
:
1.5
;
}
html
:focus-within
{
scroll-behavior
:
smooth
;
}
.contrast-mode
{
background-color
:
white
!important
;
color
:
black
!important
;
}
a
{
color
:
var
(
--lightblue
);
}
p
{
text-align
:
justify
}
...
...
@@ -72,14 +101,14 @@ p{
/*galleries */
.gallery-container
{
/*
.gallery-container{
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 */
...
...
@@ -87,8 +116,8 @@ p{
background-color
:
var
(
--mediumpurple
);
color
:
var
(
--offblack
);
cursor
:
pointer
;
padding
:
1
8px
;
margin-top
:
2
0px
;
padding
:
1
.2vw
;
margin-top
:
2
vw
;
width
:
100%
;
border
:
none
;
text-align
:
left
;
...
...
@@ -221,6 +250,12 @@ svg text:hover{
}
/*Media*/
img
,
picture
,
svg
{
max-width
:
100%
;
display
:
block
;
}
.fit
{
width
:
100%
!important
;
height
:
auto
!important
;
...
...
@@ -261,6 +296,13 @@ svg text:hover{
/*Links and buttons*/
a
{
color
:
var
(
--lightblue
);
text-decoration
:
none
!important
;
/* Remove underline */
}
a
:hover
{
color
:
inherit
;
}
.backtotop
{
place-self
:
end
;
/* visual styling */
...
...
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