Skip to content

Commit dffbec8

Browse files
committed
academicpages#137, academicpages#851, academicpages#911, academicpages#1031 cleaning up remainder of direct references to theme colors
1 parent fa0caf7 commit dffbec8

14 files changed

+39
-33
lines changed

_sass/_syntax.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ div.highlighter-rouge, figure.highlight {
1717
top: 0;
1818
right: 0;
1919
padding: 0.5em;
20-
background-color: $lighter-gray;
20+
background-color: mix(#fff, #7a8288, 90%);
2121
content: "\f121";
2222
font-family: "Font Awesome 6 Free" !important;
2323
font-size: $type-size-6;

_sass/_themes.scss

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
/* ==========================================================================
2-
COMMON COLOR CODES
2+
SHARED THEME SETTINGS
33
========================================================================== */
44

5-
/* Color codes used throughout the site */
6-
$gray : #7a8288;
7-
$dark-gray : mix(#000, $gray, 40%);
8-
$darker-gray : mix(#000, $gray, 60%);
9-
$light-gray : mix(#fff, $gray, 50%);
10-
$lighter-gray : mix(#fff, $gray, 90%);
11-
125
/* ==========================================================================
136
TYPOGRAPHY
147
========================================================================== */

_sass/include/_utilities.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ body:hover .visually-hidden button {
485485
}
486486

487487
a.reversefootnote {
488-
color: $gray;
488+
color: var(--global-text-color-light);
489489
text-decoration: none;
490490

491491
&:hover {

_sass/layout/_archive.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
margin: 1.414em 0 0;
3232
padding-bottom: 0.5em;
3333
font-size: $type-size-5;
34-
color: mix(#fff, $gray, 25%);
34+
color: var(--global-text-color-light);
3535
border-bottom: 1px solid var(--global-border-color);
3636

3737
+ .list__item .archive__item-title {

_sass/layout/_base.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ td > code {
145145
padding-bottom: 0.1rem;
146146
font-size: $type-size-6;
147147
background: var(--global-code-background-color);
148-
border: 1px solid $lighter-gray;
148+
border: 1px solid var(--global-thead-color);
149149
border-radius: $border-radius;
150150
box-shadow: $box-shadow;
151151
color: var(--global-code-text-color);
@@ -248,7 +248,7 @@ figcaption {
248248
a {
249249
color: inherit;
250250
text-decoration: none;
251-
border-bottom: 1px solid $light-gray;
251+
border-bottom: 1px solid var(--global-border-color );
252252
-webkit-transition: $global-transition;
253253
transition: $global-transition;
254254

_sass/layout/_buttons.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
/* for dark backgrounds */
4949

5050
&--inverse {
51-
color: $gray !important;
52-
border: 1px solid $light-gray !important; /* override*/
51+
color: var(--global-text-color-light) !important;
52+
border: 1px solid var(--global-border-color) !important; /* override*/
5353
background-color: #fff;
5454

5555
&:hover {
5656
color: #fff !important;
57-
border-color: $gray;
57+
border-color: var(--global-text-color-light);
5858
}
5959
}
6060

_sass/layout/_footer.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
animation: intro 0.3s both;
2626
-webkit-animation-delay: 0.45s;
2727
animation-delay: 0.45s;
28-
border-top: 1px solid $light-gray;
28+
border-top: 1px solid var(var(--global-border-color));
2929

3030
footer {
3131
@include clearfix;
@@ -53,7 +53,7 @@
5353
.fab,
5454
.far,
5555
.fal {
56-
color: mix(#fff, $gray, 25%);
56+
color: var(--global-text-color-light);
5757
}
5858
}
5959

_sass/layout/_masthead.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
}
4848

4949
.masthead__menu-item {
50+
background-color: var(--global-bg-color);
5051
display: block;
5152
list-style-type: none;
5253
white-space: nowrap;

_sass/layout/_navigation.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
line-height: 1.5;
8484
text-align: center;
8585
text-decoration: none;
86-
color: mix(#fff, $gray, 25%);
87-
border: 1px solid $light-gray;
86+
color: var(--global-text-color-light);
87+
border: 1px solid var(var(--global-border-color));
8888
border-radius: 0;
8989

9090
&:hover {
@@ -97,7 +97,7 @@
9797
}
9898

9999
&.disabled {
100-
color: mix(#fff, $gray, 75%);
100+
color: var(--global-text-color-light);
101101
pointer-events: none;
102102
cursor: not-allowed;
103103
}
@@ -131,8 +131,8 @@
131131
font-weight: bold;
132132
text-align: center;
133133
text-decoration: none;
134-
color: mix(#fff, $gray, 50%);
135-
border: 1px solid $light-gray;
134+
color: var(--global-text-color-light);
135+
border: 1px solid var(var(--global-border-color));
136136
border-radius: $border-radius;
137137

138138
&:hover {
@@ -151,7 +151,7 @@
151151
}
152152

153153
&.disabled {
154-
color: mix(#fff, $gray, 75%);
154+
color: var(--global-text-color-light);
155155
pointer-events: none;
156156
cursor: not-allowed;
157157
}
@@ -373,7 +373,7 @@
373373

374374
.toc {
375375
font-family: $sans-serif-narrow;
376-
color: $gray;
376+
color: var(--global-text-color-light);
377377
text-transform: uppercase;
378378
letter-spacing: 1px;
379379
background-color: #fff;
@@ -400,7 +400,7 @@
400400
a {
401401
display: block;
402402
padding: 0.5rem 1rem;
403-
color: $gray;
403+
color: var(--global-text-color-light);
404404
font-size: $type-size-7;
405405
font-weight: bold;
406406
line-height: 1.5;
@@ -409,7 +409,7 @@
409409

410410
&:hover {
411411
color: #000;
412-
background: $lighter-gray;
412+
background: var(--global-link-color-hover);
413413
}
414414
}
415415

_sass/layout/_notices.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
/* Default notice */
6767

6868
.notice {
69-
@include notice($light-gray);
69+
@include notice($notice-color);
7070
}
7171

7272
/* Primary notice */

0 commit comments

Comments
 (0)