File tree 5 files changed +14
-9
lines changed
5 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,8 @@ bootstrap:
378
378
integrity :
379
379
css : " sha256-DF7Zhf293AJxJNTmh5zhoYYIMs2oXitRfBjY+9L//AY="
380
380
js : " sha256-fgLAgv7fyCGopR/gBNq2iW3ZKIdqIcyshnUULC4vex8="
381
+ bootstrap-table :
382
+ version : " 1.21.4"
381
383
fontawesome :
382
384
version : " 5.15.4"
383
385
integrity : " sha256-mUZM63G8m73Mcidfrv5E+Y61y7a12O5mW4ezU3bxqW4="
Original file line number Diff line number Diff line change 6
6
< link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/mdbootstrap@{{ site.mdb.version }}/css/mdb.min.css " integrity ="{{ site.mdb.integrity.css }} " crossorigin ="anonymous " />
7
7
8
8
<!-- Bootstrap Table -->
9
- < link defer rel ="stylesheet " href ="https://unpkg.com/bootstrap-table@1.21.3 /dist/bootstrap-table.min.css ">
9
+ < link defer rel ="stylesheet " href ="https://unpkg.com/bootstrap-table@{{ site.bootstrap-table.version }} /dist/bootstrap-table.min.css ">
10
10
11
11
<!-- Fonts & Icons -->
12
12
< link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@{{ site.fontawesome.version }}/css/all.min.css " integrity ="{{ site.fontawesome.integrity }} " crossorigin ="anonymous ">
Original file line number Diff line number Diff line change 17
17
{% endif %}
18
18
19
19
<!-- Bootstrap Table -->
20
- < script defer src ="https://unpkg.com/bootstrap-table@1.21.3 /dist/bootstrap-table.min.js "> </ script >
20
+ < script defer src ="https://unpkg.com/bootstrap-table@{{ site.bootstrap-table.version }} /dist/bootstrap-table.min.js "> </ script >
21
21
22
22
<!-- Load Common JS -->
23
23
< script src ="{{ '/assets/js/no_defer.js' | relative_url }} "> </ script >
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ table.table a {
48
48
}
49
49
}
50
50
51
+ .table-dark {
52
+ background-color : transparent ;
53
+ }
54
+
51
55
figure ,
52
56
img {
53
57
max-width : 90vw ;
@@ -946,4 +950,3 @@ nav[data-toggle="toc"] {
946
950
top : 0 ;
947
951
}
948
952
}
949
-
Original file line number Diff line number Diff line change 1
1
// add bootstrap classes to tables
2
2
$ ( document ) . ready ( function ( ) {
3
3
$ ( 'table' ) . each ( function ( ) {
4
+ if ( document . documentElement . getAttribute ( "data-theme" ) == "dark" ) {
5
+ $ ( this ) . addClass ( 'table-dark' ) ;
6
+ } else {
7
+ $ ( this ) . removeClass ( 'table-dark' ) ;
8
+ }
9
+
4
10
// only select tables that are not inside an element with "news" (about page) or "card" (cv page) class
5
11
if ( $ ( this ) . parents ( '[class*="news"]' ) . length == 0 &&
6
12
$ ( this ) . parents ( '[class*="card"]' ) . length == 0 &&
@@ -10,12 +16,6 @@ $(document).ready(function() {
10
16
// add some classes to make the table look better
11
17
// $(this).addClass('table-sm');
12
18
$ ( this ) . addClass ( 'table-hover' ) ;
13
-
14
- if ( document . documentElement . getAttribute ( "data-theme" ) == "dark" ) {
15
- $ ( this ) . addClass ( 'table-dark' ) ;
16
- } else {
17
- $ ( this ) . removeClass ( 'table-dark' ) ;
18
- }
19
19
}
20
20
} )
21
21
} ) ;
You can’t perform that action at this time.
0 commit comments