File tree Expand file tree Collapse file tree 3 files changed +45
-23
lines changed Expand file tree Collapse file tree 3 files changed +45
-23
lines changed Original file line number Diff line number Diff line change 1
1
@import " ~bootstrap/scss/bootstrap" ;
2
2
3
- main > .container { padding-top : 90px ; margin-bottom : 1000px ; }
3
+ @media print {
4
+
5
+ body {
6
+ font-size : 0.75rem ;
7
+ }
8
+
9
+ header {
10
+ display : none ;
11
+ }
12
+
13
+ .container {
14
+ padding : 0 ;
15
+ max-width : 100% ;
16
+ margin-bottom : 0 !important ;
17
+ }
18
+
19
+ }
20
+
21
+ main > .container { margin-bottom : 1000px ; }
4
22
5
23
dt { text-align : right ; }
6
24
@@ -9,7 +27,7 @@ h2[id] {
9
27
}
10
28
11
29
.container > section {
12
- padding-bottom : 20px ;
30
+ padding-top : 20px ;
13
31
}
14
32
15
33
.skills {
Original file line number Diff line number Diff line change @@ -53,9 +53,12 @@ window.addEventListener("scroll", (event: Event) => {
53
53
}
54
54
} ) ;
55
55
if ( lastElement instanceof HTMLElement ) {
56
- document . querySelectorAll ( "header nav .nav-link" ) . forEach ( ( el : HTMLElement ) => {
57
- el . classList . remove ( "active" ) ;
56
+ document . querySelectorAll ( "header .nav-link" ) . forEach ( ( el : HTMLElement ) => {
57
+ el . classList . remove ( "text-white" ) ;
58
+ el . classList . add ( "text-secondary" ) ;
58
59
} ) ;
59
- document . querySelector ( "header nav .nav-link[href='#" + lastElement . id + "']" ) . classList . add ( "active" ) ;
60
+ let cl = document . querySelector ( "header .nav-link[href='#" + lastElement . id + "']" ) . classList ;
61
+ cl . remove ( "text-secondary" ) ;
62
+ cl . add ( "text-white" ) ;
60
63
}
61
64
} ) ;
Original file line number Diff line number Diff line change 12
12
13
13
< body >
14
14
15
- < header >
16
- < nav class ="navbar navbar-expand-md navbar-dark bg-dark fixed-top ">
17
- < a class ="navbar-brand " href ="#p_personalia "> Curriculum Vitae</ a >
18
- < button class ="navbar-toggler " type ="button " data-toggle ="collapse " data-target ="#navbarsExampleDefault " aria-controls ="navbarsExampleDefault " aria-expanded ="false " aria-label ="Toggle navigation ">
19
- < span class ="navbar-toggler-icon "> </ span >
20
- </ button >
21
- < div class ="navbar-collapse collapse ">
22
- < ul class ="navbar-nav mr-auto ">
23
- < li class ="nav-item "> < a class ="nav-link active " href ="#p_personalia "> Persoonlijke gegevens</ a > </ li >
24
- < li class ="nav-item "> < a class ="nav-link " href ="#p_education "> Opleidingen</ a > </ li >
25
- < li class ="nav-item "> < a class ="nav-link " href ="#p_experience "> Relevante werkervaring</ a > </ li >
26
- < li class ="nav-item "> < a class ="nav-link " href ="#p_skills "> Kennis en vaardigheden</ a > </ li >
27
- < li class ="nav-item "> < a class ="nav-link " href ="#p_other "> Overige bijzonderheden</ a > </ li >
28
- </ ul >
29
- </ div >
30
- </ nav >
31
- </ header >
15
+ < main >
16
+
17
+ < header class ="p-3 text-bg-dark sticky-top ">
18
+ < div class ="container ">
19
+ < div class ="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start ">
20
+ < a href ="#p_personalia " class ="d-flex align-items-center mb-2 mb-lg-0 text-white text-decoration-none ">
21
+ Curriculum Vitae
22
+ </ a >
23
+
24
+ < ul class ="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0 ">
25
+ < li > < a href ="#p_personalia " class ="nav-link px-2 text-secondary "> Persoonlijke gegevens</ a > </ li >
26
+ < li > < a href ="#p_education " class ="nav-link px-2 text-secondary "> Opleidingen</ a > </ li >
27
+ < li > < a href ="#p_experience " class ="nav-link px-2 text-secondary "> Relevante werkervaring</ a > </ li >
28
+ < li > < a href ="#p_skills " class ="nav-link px-2 text-secondary "> Kennis en vaardigheden</ a > </ li >
29
+ < li > < a href ="#p_other " class ="nav-link px-2 text-secondary "> Overige bijzonderheden</ a > </ li >
30
+ </ ul >
32
31
33
- < main role ="main " class ="flex-shrink-0 ">
32
+ </ div >
33
+ </ div >
34
+ </ header >
34
35
35
36
< div class ="container ">
36
37
You can’t perform that action at this time.
0 commit comments