Skip to content

Commit

Permalink
Replaced old csafe.css with updated version
Browse files Browse the repository at this point in the history
The updated version of csafe.css fixes the bug where inactive navbar links were white.
  • Loading branch information
stephaniereinders committed Oct 10, 2024
1 parent a7f09e7 commit ee0243c
Show file tree
Hide file tree
Showing 20 changed files with 295 additions and 135 deletions.
2 changes: 1 addition & 1 deletion README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Welcome"
format:
html:
theme: csafe.scss
theme: csafe.css
---

Handwriter is designed to assist forensic examiners by analyzing handwritten documents against a *closed set* of potential writers. It determines the probability that each writer wrote the document. Whether you are a forensic document examiner, legal professional, academic, or simply curious about how statistics are applied to handwriting, handwriter provides an automated way to evaluate handwriting samples.
Expand Down
14 changes: 8 additions & 6 deletions _quarto/CITATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
```verbatim
To cite package ‘handwriterApp’ in publications use:
Iowa State University of Science and Technology on behalf of its Center for
Statistics and Applications in Forensic Evidence, Reinders S (????).
_handwriterApp: A 'shiny' Application for Handwriting Analysis_. R package
version 1.0.1.9000, <https://github.com/CSAFE-ISU/handwriterApp>.
Iowa State University of Science and Technology on behalf of its
Center for Statistics and Applications in Forensic Evidence,
Reinders S (2024). _handwriterApp: A 'shiny' Application for
Handwriting Analysis_. R package version 1.0.1,
<https://CRAN.R-project.org/package=handwriterApp>.
A BibTeX entry for LaTeX users is
@Manual{,
title = {handwriterApp: A 'shiny' Application for Handwriting Analysis},
author = {{Iowa State University of Science and Technology on behalf of its Center for Statistics and Applications in Forensic Evidence} and Stephanie Reinders},
note = {R package version 1.0.1.9000},
url = {https://github.com/CSAFE-ISU/handwriterApp},
year = {2024},
note = {R package version 1.0.1},
url = {https://CRAN.R-project.org/package=handwriterApp},
}
```
19 changes: 16 additions & 3 deletions _quarto/csafe.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,21 @@ h6, .h6 {
border-left-color: var(--bs-gray-dark);
}

/* Inactive tab color */
.navbar-nav .nav-link {
color: var(--bs-gray); /* Color for inactive links */
}

/* Active tab color */
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
color: var(--bs-gray-dark); /* Color for active links */
}

/* Hover tab color */
.navbar-nav .nav-link:hover {
color: var(--bs-gray-dark); /* Color on hover */
}

p {
margin-top: 0;
margin-bottom: 1rem;
Expand Down Expand Up @@ -3890,9 +3905,7 @@ textarea.form-control-lg {
margin-bottom: 0;
list-style: none;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
color: var(--bs-gray-dark);
}

.navbar-nav .dropdown-menu {
position: static;
}
Expand Down
Binary file modified _quarto/freeze.rds
Binary file not shown.
2 changes: 1 addition & 1 deletion _quarto/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Welcome"
format:
html:
theme: csafe.scss
theme: csafe.css
---

Handwriter is designed to assist forensic examiners by analyzing handwritten documents against a *closed set* of potential writers. It determines the probability that each writer wrote the document. Whether you are a forensic document examiner, legal professional, academic, or simply curious about how statistics are applied to handwriting, handwriter provides an automated way to evaluate handwriting samples.
Expand Down
19 changes: 16 additions & 3 deletions altdoc/csafe.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,21 @@ h6, .h6 {
border-left-color: var(--bs-gray-dark);
}

/* Inactive tab color */
.navbar-nav .nav-link {
color: var(--bs-gray); /* Color for inactive links */
}

/* Active tab color */
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
color: var(--bs-gray-dark); /* Color for active links */
}

/* Hover tab color */
.navbar-nav .nav-link:hover {
color: var(--bs-gray-dark); /* Color on hover */
}

p {
margin-top: 0;
margin-bottom: 1rem;
Expand Down Expand Up @@ -3890,9 +3905,7 @@ textarea.form-control-lg {
margin-bottom: 0;
list-style: none;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
color: var(--bs-gray-dark);
}

.navbar-nav .dropdown-menu {
position: static;
}
Expand Down
59 changes: 36 additions & 23 deletions docs/CITATION.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.555">
<meta name="generator" content="quarto-1.5.57">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -83,7 +83,7 @@
</a>
</div>
<div id="quarto-search" class="" title="Search"></div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
Expand All @@ -101,7 +101,7 @@
</li>
</ul>
</div> <!-- /navcollapse -->
<div class="quarto-navbar-tools">
<div class="quarto-navbar-tools">
</div>
</div> <!-- /container-fluid -->
</nav>
Expand All @@ -120,7 +120,7 @@ <h2 id="toc-title">On this page</h2>
</nav>
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
<!-- margin-sidebar -->
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
</div>
<!-- main -->
<main class="content" id="quarto-document-content">
Expand All @@ -132,18 +132,20 @@ <h2 id="toc-title">On this page</h2>
<h1>Citation</h1>
<pre class="verbatim"><code>To cite package ‘handwriterApp’ in publications use:

Iowa State University of Science and Technology on behalf of its Center for
Statistics and Applications in Forensic Evidence, Reinders S (????).
_handwriterApp: A 'shiny' Application for Handwriting Analysis_. R package
version 1.0.1.9000, &lt;https://github.com/CSAFE-ISU/handwriterApp&gt;.
Iowa State University of Science and Technology on behalf of its
Center for Statistics and Applications in Forensic Evidence,
Reinders S (2024). _handwriterApp: A 'shiny' Application for
Handwriting Analysis_. R package version 1.0.1,
&lt;https://CRAN.R-project.org/package=handwriterApp&gt;.

A BibTeX entry for LaTeX users is

@Manual{,
title = {handwriterApp: A 'shiny' Application for Handwriting Analysis},
author = {{Iowa State University of Science and Technology on behalf of its Center for Statistics and Applications in Forensic Evidence} and Stephanie Reinders},
note = {R package version 1.0.1.9000},
url = {https://github.com/CSAFE-ISU/handwriterApp},
year = {2024},
note = {R package version 1.0.1},
url = {https://CRAN.R-project.org/package=handwriterApp},
}</code></pre>


Expand Down Expand Up @@ -185,18 +187,7 @@ <h1>Citation</h1>
}
return false;
}
const clipboard = new window.ClipboardJS('.code-copy-button', {
text: function(trigger) {
const codeEl = trigger.previousElementSibling.cloneNode(true);
for (const childEl of codeEl.children) {
if (isCodeAnnotation(childEl)) {
childEl.remove();
}
}
return codeEl.innerText;
}
});
clipboard.on('success', function(e) {
const onCopySuccess = function(e) {
// button target
const button = e.trigger;
// don't keep focus
Expand Down Expand Up @@ -228,15 +219,37 @@ <h1>Citation</h1>
}, 1000);
// clear code selection
e.clearSelection();
}
const getTextToCopy = function(trigger) {
const codeEl = trigger.previousElementSibling.cloneNode(true);
for (const childEl of codeEl.children) {
if (isCodeAnnotation(childEl)) {
childEl.remove();
}
}
return codeEl.innerText;
}
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
text: getTextToCopy
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
// For code content inside modals, clipBoardJS needs to be initialized with a container option
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
});
clipboardModal.on('success', onCopySuccess);
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
// Inspect non-navigation links and adorn them if external
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
for (var i=0; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
Expand Down
45 changes: 28 additions & 17 deletions docs/LICENSE.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.555">
<meta name="generator" content="quarto-1.5.57">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -83,7 +83,7 @@
</a>
</div>
<div id="quarto-search" class="" title="Search"></div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
Expand All @@ -101,7 +101,7 @@
</li>
</ul>
</div> <!-- /navcollapse -->
<div class="quarto-navbar-tools">
<div class="quarto-navbar-tools">
</div>
</div> <!-- /container-fluid -->
</nav>
Expand All @@ -125,7 +125,7 @@ <h2 id="toc-title">On this page</h2>
</nav>
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
<!-- margin-sidebar -->
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
</div>
<!-- main -->
<main class="content" id="quarto-document-content">
Expand Down Expand Up @@ -360,18 +360,7 @@ <h2 class="anchored" data-anchor-id="how-to-apply-these-terms-to-your-new-progra
}
return false;
}
const clipboard = new window.ClipboardJS('.code-copy-button', {
text: function(trigger) {
const codeEl = trigger.previousElementSibling.cloneNode(true);
for (const childEl of codeEl.children) {
if (isCodeAnnotation(childEl)) {
childEl.remove();
}
}
return codeEl.innerText;
}
});
clipboard.on('success', function(e) {
const onCopySuccess = function(e) {
// button target
const button = e.trigger;
// don't keep focus
Expand Down Expand Up @@ -403,15 +392,37 @@ <h2 class="anchored" data-anchor-id="how-to-apply-these-terms-to-your-new-progra
}, 1000);
// clear code selection
e.clearSelection();
}
const getTextToCopy = function(trigger) {
const codeEl = trigger.previousElementSibling.cloneNode(true);
for (const childEl of codeEl.children) {
if (isCodeAnnotation(childEl)) {
childEl.remove();
}
}
return codeEl.innerText;
}
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
text: getTextToCopy
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
// For code content inside modals, clipBoardJS needs to be initialized with a container option
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
});
clipboardModal.on('success', onCopySuccess);
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
// Inspect non-navigation links and adorn them if external
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
for (var i=0; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
Expand Down
Loading

0 comments on commit ee0243c

Please sign in to comment.