diff options
Diffstat (limited to 'resources')
-rw-r--r-- | resources/pug/finals/index.pug | 26 | ||||
-rw-r--r-- | resources/pug/finals/publications.pug | 2 | ||||
-rw-r--r-- | resources/pug/include/layout-sidebar.pug | 20 | ||||
-rw-r--r-- | resources/sass/style.scss | 30 |
4 files changed, 38 insertions, 40 deletions
diff --git a/resources/pug/finals/index.pug b/resources/pug/finals/index.pug index 7ff99b2..041e2ec 100644 --- a/resources/pug/finals/index.pug +++ b/resources/pug/finals/index.pug @@ -6,23 +6,23 @@ block extra_head block titleContainer block append js - script(src='/assets/js/jquery.slim.min.js') - script(src='/assets/js/scrollspy.min.js') + script(src='/assets/js/bootstrap.min.js') - script $('body').scrollspy({target: '#sticky-nav'}); + script new bootstrap.ScrollSpy(document.body, {target: '#sticky-nav'}); block content #sticky-nav - ul.nav.nav-pills - li(role='presentation') #[a(href='#introduction') Introduction] - li(role='presentation') #[a(href='#publications') Publications] - li(role='presentation') #[a(href='#talks') Talks] - li(role='presentation') #[a(href='#projects') Software projects] - li(role='presentation') #[a(href='#teaching') Teaching] - li(role='presentation') #[a(href='#service') Service] - li(role='presentation') #[a(href='#grants') Grants] - li(role='presentation') #[a(href='#employment') Employment] - li(role='presentation') #[a(href='#education') Education] + ul.nav.flex-column.nav-pills + li.nav-item(role='presentation') #[a.nav-link(href='#introduction') Introduction] + li.nav-item(role='presentation') #[a.nav-link(href='#publications') Publications] + li.nav-item(role='presentation') #[a.nav-link(href='#talks') Talks] + li.nav-item(role='presentation') #[a.nav-link(href='#service') Service] + li.nav-item(role='presentation') #[a.nav-link(href='#statistics') Statistics] + li.nav-item(role='presentation') #[a.nav-link(href='#projects') Software projects] + li.nav-item(role='presentation') #[a.nav-link(href='#teaching') Teaching] + li.nav-item(role='presentation') #[a.nav-link(href='#grants') Grants] + li.nav-item(role='presentation') #[a.nav-link(href='#employment') Employment] + li.nav-item(role='presentation') #[a.nav-link(href='#education') Education] .container#content header#introduction diff --git a/resources/pug/finals/publications.pug b/resources/pug/finals/publications.pug index e88db1f..6a46390 100644 --- a/resources/pug/finals/publications.pug +++ b/resources/pug/finals/publications.pug @@ -109,7 +109,6 @@ block content chart: { spacingLeft: 0, spacingRight: 0, - style: {fontSize: '1.5rem'}, zooming: {type: 'x'}, }, scrollbar: { @@ -175,7 +174,6 @@ block content type: 'scatter', spacingLeft: 0, spacingRight: 0, - style: {fontSize: '1.5rem'}, }, title: null, xAxis: [{ diff --git a/resources/pug/include/layout-sidebar.pug b/resources/pug/include/layout-sidebar.pug index 4244531..55d7817 100644 --- a/resources/pug/include/layout-sidebar.pug +++ b/resources/pug/include/layout-sidebar.pug @@ -1,14 +1,12 @@ extends layout.pug block prepend js - script(src='/assets/js/jquery.slim.min.js') - script(src='/assets/js/transition.min.js') - script(src='/assets/js/collapse.min.js') + script(src='/assets/js/bootstrap.min.js') block content div.row nav.col-lg-3.col-md-4 - ul.nav.nav-pills.nav-stacked + ul.nav.flex-column.nav-pills block menu mixin menu(...items) - @@ -34,23 +32,23 @@ block content each item in items if 'menu' in item - const active = item.menu.some(item_is_active) - li(role='presentation') + li.nav-item(role='presentation') - const id = 'menu-' + item_link(item); - a(href='#' + id, data-toggle='collapse', role='button', aria-expanded=active.toString(), aria-controls=id)= item.name - div.collapse(id=id, class=active ? 'in' : '') - ul.nav.nav-pills.nav-stacked.col-xs-11.col-md-10.pull-right + a.nav-link(href='#' + id, data-bs-toggle='collapse', role='button', aria-expanded=active.toString(), aria-controls=id)= item.name + div.collapse(id=id, class=active ? 'in show' : '') + ul.nav.flex-column.nav-pills.col-xs-11.col-md-10.float-end +menu(...item.menu) br(style='clear:both;') else - var link = item_link(item) - li(role='presentation', class=item_is_active(item) ? 'active' : '') - a(href=base_url + (link == '' ? '' : link + '.html'))= item.name + li.nav-item(role='presentation') + a.nav-link(href=base_url + (link == '' ? '' : link + '.html'), class=item_is_active(item) ? 'active' : '')= item.name nav.col-lg-9.col-md-8 ol.breadcrumb.hidden-xs.hidden-sm mixin breadcrumb(link, title) - li + li.breadcrumb-item if typeof title != 'undefined' a(href=link)= title else diff --git a/resources/sass/style.scss b/resources/sass/style.scss index 723f68c..8f08171 100644 --- a/resources/sass/style.scss +++ b/resources/sass/style.scss @@ -1,12 +1,16 @@ -@import "bootstrap-sass/assets/stylesheets/bootstrap"; +@use "bootstrap/dist/css/bootstrap"; -@import "@fortawesome/fontawesome-free/scss/fontawesome"; -@import "@fortawesome/fontawesome-free/scss/brands"; -@import "@fortawesome/fontawesome-free/scss/solid"; +@use "@fortawesome/fontawesome-free/scss/fontawesome"; +@use "@fortawesome/fontawesome-free/scss/brands"; +@use "@fortawesome/fontawesome-free/scss/regular"; +@use "@fortawesome/fontawesome-free/scss/solid"; -@import "academicons/css/academicons"; +@use "academicons/css/academicons"; -@import "highlight.js/scss/default"; +@use "highlight.js/scss/default"; + +@import "bootstrap/scss/functions"; +@import "bootstrap/scss/variables"; @font-face { font-family: Hebrew; @@ -30,6 +34,7 @@ body { #sticky-nav li > a { display: inline-block; + text-wrap: nowrap; } @media (max-width: 1269px) { @@ -67,14 +72,15 @@ body { width: 180px; } - #sticky-nav ul { + #sticky-nav ul.nav { border-right: 1px solid #eee; padding: 1em 1em 1em 0; position: sticky; top: 1em; } - #sticky-nav li { + ul.nav li { + display: block; float: none; } @@ -110,7 +116,7 @@ div#basicinfo { hr { clear: both; - margin: 0; + margin: 2ex 0; } a { @@ -120,7 +126,7 @@ a { /* FontAwesome and Academicons */ .ai, .fab { - color: $text-color; + color: $body-color; } &:hover { .ai, .fab { @@ -220,7 +226,3 @@ footer { .obfuscate > span { display: none; } - -.breadcrumb { - margin-bottom: 0; -} |