Skip to content

Commit

Permalink
add styling to categories & code summary | implement scrolling to top
Browse files Browse the repository at this point in the history
  • Loading branch information
prncevince committed Oct 29, 2023
1 parent 07527b4 commit 5c3d4b6
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions _quarto-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ website:
rel: me
right: |
<a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0 <img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1"></a>
back-to-top-navigation: true
format:
html:
filters:
Expand Down
5 changes: 4 additions & 1 deletion assets/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ div.sourceCode {
div > details > summary {
padding: 0.1rem 0.7rem 0.2rem 0.7rem;
width: max-content;
border: var(--quarto-border-width) solid var(--quarto-border-color);
max-width: fit-content;
border-width: var(--quarto-border-width);
border-style: solid;
border-radius: var(--quarto-border-radius);
box-shadow: 0 .2rem .5rem #6c757d,0 0 .05rem #6c757d;
}
pre.sourceCode > .code-copy-button > .bi::before, pre.sourceCode:hover > .code-copy-button > .bi::before {
content: "";
Expand Down
1 change: 1 addition & 0 deletions assets/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ if (tools.length > 0) {
'beforeend', d
)
}
document.querySelector('#quarto-back-to-top').setAttribute('onclick', 'window.scrollTo({top: 0, left: 0, behavior: "smooth"})')
4 changes: 4 additions & 0 deletions assets/scss/light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ div.sourceCode {
}
div > details > summary {
color: $source-code;
border-color: $source-code;
background-color: rgba(219,219,219,.8);
}
/* Title Headers */
Expand All @@ -52,6 +53,9 @@ h1, h2, h3, h4, h5, h6 {
.quarto-categories {
color: $base-navbar-bg;
}
.quarto-category {
box-shadow: 0.10rem 0.10rem .35rem $base-navbar-bg;
}
.quarto-category:hover {
background: $base-dropdown-link-hover-bg;
}
Expand Down
2 changes: 1 addition & 1 deletion index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ include-after-body:
<script src='/assets/js/site.js'></script>
<script src='/assets/js/non-posts.js'></script>
css: [/assets/css/non-posts.css]
back-to-top-navigation: false
---

# 👋 Welcome to my site

- You can learn more about me [here](/about).
- You can find my posts on spatial analytics [here](/posts).
- My [YouTube](https://youtube.com/@prncevince){.external target="_blank"}

# Thanks for stopping by ✌️
1 change: 1 addition & 0 deletions posts/_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ comments:
language: en
toc: true
toc-depth: 6
toc-expand: 3
citation: true
appendix-cite-as: display
license:
Expand Down
1 change: 1 addition & 0 deletions posts/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ comments: false
code-tools: false
citation: false
license: ''
back-to-top-navigation: false
---

0 comments on commit 5c3d4b6

Please sign in to comment.