Skip to content

Commit 840afb1

Browse files
committed
jquery: switch font to self-hosted Cairo
Fixes gh-446
1 parent b1676fc commit 840afb1

File tree

10 files changed

+32
-19
lines changed

10 files changed

+32
-19
lines changed

themes/jquery/css/base.css

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ body {
113113

114114
@font-face {
115115
font-family: 'FontAwesome';
116-
src: url('fonts/fontawesome-webfont.eot?v=3.0.2');
117-
src: url('fonts/fontawesome-webfont.eot?#iefix&v=3.0.2') format('embedded-opentype'),
118-
url('fonts/fontawesome-webfont.woff?v=3.0.2') format('woff'),
119-
url('fonts/fontawesome-webfont.ttf?v=3.0.2') format('truetype');
116+
src: url('fonts/FontAwesome/fontawesome-webfont.eot?v=3.0.2');
117+
src: url('fonts/FontAwesome/fontawesome-webfont.eot?#iefix&v=3.0.2') format('embedded-opentype'),
118+
url('fonts/FontAwesome/fontawesome-webfont.woff?v=3.0.2') format('woff'),
119+
url('fonts/FontAwesome/fontawesome-webfont.ttf?v=3.0.2') format('truetype');
120120
font-weight: normal;
121121
font-style: normal;
122122
}
@@ -184,7 +184,7 @@ h6 {
184184

185185
h1, h2, h3, h4, h5, h6 {
186186
font-weight: 700;
187-
font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif !important;
187+
font-family: Cairo, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif !important;
188188
}
189189
/*
190190
* Addresses styling not present in IE 7/8/9, Safari 5, and Chrome.
@@ -676,14 +676,30 @@ table {
676676
}
677677

678678
#content th {
679-
font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
679+
font-family: Cairo, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
680680
}
681681

682682
#content th,
683683
#content td {
684684
padding: .5em;
685685
}
686686

687+
/* ==========================================================================
688+
Cairo Font
689+
========================================================================== */
690+
691+
@font-face {
692+
font-family: Cairo;
693+
src: url(fonts/Cairo/Cairo-Regular.ttf) format("truetype");
694+
font-weight: normal;
695+
}
696+
697+
@font-face {
698+
font-family: Cairo;
699+
src: url(fonts/Cairo/Cairo-Bold.ttf) format("truetype");
700+
font-weight: 700;
701+
}
702+
687703
/* ==========================================================================
688704
Font Awesome
689705
========================================================================== */
@@ -1624,14 +1640,14 @@ nav#main ul {
16241640

16251641
nav#main li {
16261642
float: left;
1627-
font: normal normal 16px "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
1643+
font: normal 700 16px Cairo, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
16281644
margin-right: 2px;
16291645
}
16301646

16311647
nav#main li a {
16321648
color: #fff;
16331649
text-decoration: none;
1634-
padding: 6px 10px;
1650+
padding: 2px 10px;
16351651
display: block;
16361652
border: 1px solid transparent;
16371653
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.76);
@@ -1824,7 +1840,7 @@ pre b {
18241840
height: 19px;
18251841
width: 19px;
18261842
padding-top: 0;
1827-
font: bold 11px/19px "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
1843+
font: bold 11px/19px Cairo, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
18281844
border-radius: 12px;
18291845
}
18301846

@@ -1907,7 +1923,7 @@ pre b {
19071923

19081924
#content figcaption {
19091925
box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.20);
1910-
font: italic 700 12px/20px "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
1926+
font: italic 700 12px/20px Cairo, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
19111927
padding: 10px 5px;
19121928
color: #737272;
19131929
clear: both;
@@ -1979,7 +1995,7 @@ pre b {
19791995

19801996
p.author {
19811997
color: #ababab;
1982-
font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
1998+
font-family: Cairo, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
19831999
font-weight: 700;
19842000
margin-top: -20px;
19852001
}
@@ -1993,7 +2009,7 @@ p.author a {
19932009
padding-bottom: .5%;
19942010
margin-bottom: 20px;
19952011
font-weight: 700;
1996-
font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
2012+
font-family: Cairo, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
19972013
color: #666;
19982014
background: url(../images-foundation/gauze.png) #f0f0f0;
19992015
text-shadow: 0 1px 0 #ffffff;
@@ -2016,15 +2032,15 @@ p.author a {
20162032
}
20172033

20182034
#banner-large-image h1, #banner-large-image h2 {
2019-
font: bold 60px/60px "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
2035+
font: bold 60px/60px Cairo, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
20202036
margin-bottom: 0;
20212037
color: #fff;
20222038
text-shadow: 0 0 4px rgba(0, 0, 0, 0.85);
20232039
}
20242040

20252041
#banner-large-image p {
20262042
color: #cccccc;
2027-
font: 700 normal 24px/36px "klavika-web", "Helvetica Neue", sans-serif;
2043+
font: 700 normal 24px/36px Cairo, "Helvetica Neue", sans-serif;
20282044
}
20292045

20302046
#banner-secondary {
@@ -2121,7 +2137,7 @@ input[type="submit"] {
21212137
color: #fff !important;
21222138
text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.35);
21232139
padding: 8px 15px;
2124-
font: bold 16px/16px "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
2140+
font: bold 16px/16px Cairo, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
21252141
transition: all 0.2s;
21262142
background-color: #d18f4f;
21272143
float: left;
@@ -2508,7 +2524,6 @@ footer .books li a cite {
25082524
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
25092525
letter-spacing: 0;
25102526
border-radius: 5px 5px 0 0;
2511-
font-weight: normal;
25122527
margin-bottom: 0;
25132528
overflow: hidden;
25142529
}
92.4 KB
Binary file not shown.
92.3 KB
Binary file not shown.

themes/jquery/css/sri-modal.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
.sri-modal .ui-dialog-title {
2626
text-align: center;
27-
font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
27+
font-family: Cairo, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
2828
font-weight: 400;
2929
width: 100%;
3030
}

themes/jquery/header.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
2626
<script src="<?php echo get_template_directory_uri(); ?>/js/plugins.js"></script>
2727
<script src="<?php echo get_template_directory_uri(); ?>/js/main.js"></script>
28-
<script src="https://use.typekit.net/wde1aof.js"></script>
29-
<script>try{Typekit.load();}catch(e){}</script>
3028
<?php
3129
if ( get_option( 'thread_comments' ) && comments_open() ) {
3230
wp_enqueue_script( 'comment-reply' );

0 commit comments

Comments
 (0)