Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d1530f2
a11y: clarity dyslexia mode css variables
StephDriver Oct 7, 2025
727453a
a11y: clarity dyslexia mode exclude fa icons from font change
StephDriver Oct 7, 2025
73e11f5
a11y: clarity reading option buttons sticky card styling
StephDriver Oct 31, 2025
03e4008
a11y: clarity dyslexia as override
StephDriver Oct 31, 2025
addbc5d
a11y: clarity long non-contextual URLs to break anywhere
StephDriver Oct 31, 2025
351b763
a11y: clarity article listing as divs not article landmarks
StephDriver Oct 31, 2025
1d2bde1
a11y: clarity article listing titles visible (not white)
StephDriver Oct 31, 2025
7a6d76f
a11y: clarity article title over image as white-text specifity fix
StephDriver Oct 31, 2025
4d0beaa
a11y: clarity article sidebar only on large
StephDriver Nov 3, 2025
1b8bf18
a11y: clarity article toc card styling
StephDriver Nov 3, 2025
f38eed8
a11y: clarity issue_block article thumbnail alignment
StephDriver Nov 3, 2025
32509b9
a11y: clarity contrast for text overlaying images
StephDriver Nov 3, 2025
3c40fca
a11y: clarity reading options button styling
StephDriver Nov 3, 2025
f9a27eb
a11y: clarity btn-primary hover invert colours
StephDriver Nov 3, 2025
32f7866
a11y: clarity homepage search bar icon to match input height
StephDriver Nov 3, 2025
8b499ed
a11y: clarity special collection text image overlay background
StephDriver Nov 3, 2025
82ab6b7
a11y: clarity news pagination styling
StephDriver Nov 3, 2025
81138a8
a11y: clarity news tag pill remove underlining
StephDriver Nov 3, 2025
51376b4
a11y: clarity profile don't show empty roles
StephDriver Nov 3, 2025
a338185
a11y: clarity remove toc duplicated card
StephDriver Nov 3, 2025
e26e705
a11y: clarity midnight - make background buttons compatible
StephDriver Nov 3, 2025
8e9d6c8
a11y: clarity midnight - make all colorway inputs styled
StephDriver Nov 3, 2025
f3565ae
a11y: clarity midnight - make search icon match search input
StephDriver Nov 3, 2025
007e5ea
a11y: clarity midnight - news tags text colour as colourway variable
StephDriver Nov 3, 2025
d50bfd5
clarity midnight - dyslexia colours
StephDriver Nov 4, 2025
f7421cd
clarity public profile key info definition as dd
StephDriver Nov 4, 2025
b04853c
clarity midnight - table caption background
StephDriver Nov 4, 2025
613a4b4
clarity midnight - figure caption background
StephDriver Nov 4, 2025
909d5a1
clarity midnight - table modal styling
StephDriver Nov 4, 2025
02c6b31
clarity midnight - how to cite modal header style
StephDriver Nov 4, 2025
9f5ba08
clarity midnight - table modal styling continued
StephDriver Nov 4, 2025
d29e2c6
clarity - special collections sidebar list styling
StephDriver Nov 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/templates/common/elements/affiliations_ul.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ul>
<ul class="no-bullet-list">
{% for affiliation in affiliations %}
<li>
{% include "common/elements/affiliation_display.html" %}
Expand Down
6 changes: 6 additions & 0 deletions src/themes/clean/assets/css/cardinal.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
--text-white: #fff;
--text-header: var(--text-black);
--body-text: #525252;
--body-text-dyslexia: var(--text-black);
--nav-text: #636363;
--nav-text-active: var(--brand-primary);
--recede-opacity: 70%;
Expand All @@ -39,6 +40,8 @@
--bg-card-alt: #f8f9fa;
--bg-blockquote: #F0F0F0;
--bg-overlay: rgba(55, 55, 55, 0.8);
--bg-dyslexia: #F5F5DC;
--bg-dyslexia-em: #FAFAC8;

/* UI State Colors */
--color-success: green;
Expand Down Expand Up @@ -95,4 +98,7 @@
--pagination-active-bg: var(--btn-primary-bg);
--pagination-active-border: var(--btn-primary-border);
--pagination-disabled-color: var(--text-muted);

/* workarounds, note the fill colour is hardcoded not a variable*/
--custom-select-background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23747474' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;
}
106 changes: 85 additions & 21 deletions src/themes/clean/assets/css/clean.css
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ main a {
background-color: var(--bg-card-alt);
}

.card-img-overlay.white-text > .card-text {
background: var(--bg-overlay);
}

.card.no-image .card-img-overlay {
position: relative;
background-color: var(--bg-card-alt);
Expand Down Expand Up @@ -271,6 +275,10 @@ main a {
font-size: 1.5rem;
}

.card-title.white-text {
background: var(--bg-overlay);
}

.full-width-card {
min-width: 100%;
}
Expand All @@ -288,8 +296,8 @@ main a {

.btn-primary:hover,
.btn-primary:focus {
color: var(--btn-primary-text);
background-color: var(--btn-primary-bg);
color: var(--btn-primary-bg);
background-color: var(--btn-primary-text);
border-color: var(--btn-primary-border);
}

Expand All @@ -298,7 +306,7 @@ main a {
.btn-background:visited {
background-color: inherit;
color: inherit;
border: 1px solid var(--brand-primary);
border: 1px solid var(--btn-outline-secondary);
padding: 0 10px;
min-width: 7rem;
min-height: 2rem;
Expand All @@ -312,9 +320,9 @@ main a {
}

.btn-background:hover {
color: var(--text-on-dark);
background-color: var(--brand-primary);
border-color: var(--brand-primary);
color: var(--btn-primary-text);
background-color: var(--btn-primary-bg);
border-color: var(--btn-primary-border);
transition: var(--transition-standard);
}

Expand All @@ -338,9 +346,16 @@ a.btn {
border: 1px black solid;
}

.alert .close {
.alert .close,
button.close {
color: var(--color-danger);
opacity: var(--recede-opacity);
text-shadow: none;
}

button.close:hover {
background: var(--color-danger);
color: var(--body-text)
}

.btn-outline-secondary {
Expand Down Expand Up @@ -395,7 +410,7 @@ a.btn {
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(transparent, rgba(0, 0, 0, var(--recede-opacity)) 20%);
background: var(--bg-overlay);
padding: 2rem;
text-align: center;
}
Expand Down Expand Up @@ -437,7 +452,6 @@ a.btn {
margin-bottom: 0.25rem;
font-weight: 500;
line-height: 1.3;
color: var(--text-white);
}

.article-thumbnail {
Expand Down Expand Up @@ -477,6 +491,10 @@ a.btn {
border-bottom: 1px solid var(--border-light);
}

.article-list .article-item {
padding: 2rem;
}

.article-item:last-child {
border-bottom: none;
padding-bottom: 0;
Expand Down Expand Up @@ -552,6 +570,14 @@ a.btn {
padding-bottom: var(--spacing-sm);
}

dt {
font-size: larger;
}

a[href^="http"] {
overflow-wrap: anywhere;
}

#reading-options{
display: flex;
gap: 1rem;
Expand All @@ -565,23 +591,26 @@ a.btn {
z-index: 1000;
width: fit-content;
margin-left: auto;
background-color: var(--bg-body);
background-color: var(--bg-card-alt);
}

.btn-opt {
border: 1px solid #1C304A;
background: #f1f1f1;
#reading-options .btn-background {
min-width: 3rem;
}

.dyslexia-friendly {
.dyslexia-friendly{
font-family: Verdana !important;
color: #4c4c4c;
background-color: #F5F5DC;
color: var(--body-text-dyslexia) !important;
background-color: var(--bg-dyslexia) !important;
}

.dyslexia-friendly .fa {
font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
}

.dyslexia-friendly em,
.dyslexia-friendly i {
background-color: #FAFAC8;
background-color: var(--bg-dyslexia-em);
font-style: normal;
}

Expand Down Expand Up @@ -773,12 +802,25 @@ header svg {
/* ========================================================================
Form Elements
======================================================================== */
input[type="text"],
input[type="email"],
textarea.form-control,
.custom-select {
background: var(--bg-card-alt);
color: var(--text-muted);
border: solid, 1px, var(--brand-primary);
}
.custom-select {
background: var(--custom-select-background);
}

.homepage-element-search-bar input[type="text"] {
font-size: 1.5rem;
}

.homepage-element-search-bar .input-group-text {
.homepage-element-search-bar .input-group .input-group-text {
font-size: 1.5rem;
height: 100%;
}

.input-group .form-control,
Expand All @@ -802,6 +844,12 @@ header svg {
align-items: stretch;
}

.input-group-text {
color: var(--body-text);
background: var(--bg-card-alt);
border: solid, 1px, var(--brand-primary);
}

.input-group .custom-select,
.input-group .input-group-text {
height: 2.5rem;
Expand Down Expand Up @@ -833,7 +881,8 @@ header svg {

.badge-secondary {
background-color: var(--brand-secondary);
color: #fff;
color: var(--text-white);
text-decoration: none;
}

input + .btn-background {
Expand Down Expand Up @@ -903,12 +952,14 @@ span + .btn-background {
position: sticky;
max-height: 100vh;
overflow-y: auto;
top: 60px;
top: 80px;
z-index: 999;
}

.table-caption {
.table-caption,
.fig-caption {
margin-bottom: var(--spacing-sm);
background: var(--bg-card-alt) !important;
}

.math-formulae {
Expand Down Expand Up @@ -957,6 +1008,10 @@ span + .btn-background {
margin-left: 0;
}

.line-spaced-list > li {
margin-bottom: 0.7rem;
}

.keywords-list {
list-style: none;
padding-left: 0;
Expand Down Expand Up @@ -1115,6 +1170,15 @@ span + .btn-background {
min-height: 24px;
}

.modal-body {
background: var(--bg-body);
border: var(--border-medium) 1px solid;
}

.modal-header {
background: var(--bg-card-alt);
}

/* ========================================================================
Accessibility & Skip Navigation
======================================================================== */
Expand Down
6 changes: 6 additions & 0 deletions src/themes/clean/assets/css/evergreen.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
--text-white: #fff;
--text-header: var(--text-black);
--body-text: #525252;
--body-text-dyslexia: var(--text-black);
--nav-text: #636363;
--nav-text-active: var(--brand-primary);
--recede-opacity: 70%;
Expand All @@ -39,6 +40,8 @@
--bg-card-alt: #f8f9fa;
--bg-blockquote: #F0F0F0;
--bg-overlay: rgba(55, 55, 55, 0.8);
--bg-dyslexia: #F5F5DC;
--bg-dyslexia-em: #FAFAC8;

/* UI State Colors */
--color-success: green;
Expand Down Expand Up @@ -95,4 +98,7 @@
--pagination-active-bg: var(--btn-primary-bg);
--pagination-active-border: var(--btn-primary-border);
--pagination-disabled-color: var(--text-muted);

/* workarounds, note the fill colour is hardcoded not a variable*/
--custom-select-background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23747474' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;
}
9 changes: 8 additions & 1 deletion src/themes/clean/assets/css/midnight.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:root {
/* Brand & Theme Colors */
--brand-primary: #0a0f1a;
--brand-primary: #4d9fff;;
--brand-secondary: #7eb3ff;
--color-success: #5cb85c;
--text-link-alt: #6ba3ff;
Expand All @@ -16,6 +16,7 @@
--text-white: #0a0f1a;
--text-header: #ffffff;
--body-text: #e4e6eb;
--body-text-dyslexia: #F5F5DC;
--nav-text: #b0b3b8;
--nav-text-active: #4d9fff;
--recede-opacity: 70%;
Expand All @@ -37,6 +38,8 @@
--bg-card-alt: #1a2235;
--bg-blockquote: #1a2235;
--bg-overlay: rgba(10, 15, 26, 0.9);
--bg-dyslexia: black;
--bg-dyslexia-em: var(--bg-card-alt);

/* UI State Colors */
--color-danger: #ff6b6b;
Expand Down Expand Up @@ -92,4 +95,8 @@
--pagination-active-bg: var(--btn-primary-bg);
--pagination-active-border: var(--btn-primary-border);
--pagination-disabled-color: var(--text-muted);

/* workarounds, note the fill colour is hardcoded not a variable*/
--custom-select-background: var(--bg-card-alt) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23b0b3b8' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;

}
6 changes: 6 additions & 0 deletions src/themes/clean/assets/css/ocean.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
--text-white: #fff;
--text-header: var(--text-black);
--body-text: #525252;
--body-text-dyslexia: var(--text-black);
--nav-text: #636363;
--nav-text-active: var(--brand-primary);
--recede-opacity: 70%;
Expand All @@ -39,6 +40,8 @@
--bg-card-alt: #f8f9fa;
--bg-blockquote: #F0F0F0;
--bg-overlay: rgba(55, 55, 55, 0.8);
--bg-dyslexia: #F5F5DC;
--bg-dyslexia-em: #FAFAC8;

/* UI State Colors */
--color-success: green;
Expand Down Expand Up @@ -95,4 +98,7 @@
--pagination-active-bg: var(--btn-primary-bg);
--pagination-active-border: var(--btn-primary-border);
--pagination-disabled-color: var(--text-muted);

/* workarounds, note the fill colour is hardcoded not a variable*/
--custom-select-background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23747474' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;
}
Loading