mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 20:36:38 -04:00
Switch from Crimson Text to new Crimson Pro
This commit is contained in:
parent
b5c01a1e2c
commit
d9c2e0abf2
17 changed files with 14 additions and 14 deletions
|
@ -17,32 +17,32 @@
|
|||
|
||||
@font-face{
|
||||
/* Note: Don't use local() as a source, because our version fixes the font's strange default line-height */
|
||||
font-family: "Crimson Text";
|
||||
src: url('/fonts/crimson-text.woff2') format('woff2'), url('/fonts/crimson-text.woff') format('woff');
|
||||
font-family: "Crimson Pro";
|
||||
src: url('/fonts/crimson-pro.woff2') format('woff2'), url('/fonts/crimson-pro.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face{
|
||||
/* Note: Don't use local() as a source, because our version fixes the font's strange default line-height */
|
||||
font-family: "Crimson Text";
|
||||
src: url('/fonts/crimson-text-bold.woff2') format('woff2'), url('/fonts/crimson-text-bold.woff') format('woff');
|
||||
font-family: "Crimson Pro";
|
||||
src: url('/fonts/crimson-pro-bold.woff2') format('woff2'), url('/fonts/crimson-pro-bold.woff') format('woff');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face{
|
||||
/* Note: Don't use local() as a source, because our version fixes the font's strange default line-height */
|
||||
font-family: "Crimson Text";
|
||||
src: url('/fonts/crimson-text-italic.woff2') format('woff2'), url('/fonts/crimson-text-italic.woff') format('woff');
|
||||
font-family: "Crimson Pro";
|
||||
src: url('/fonts/crimson-pro-italic.woff2') format('woff2'), url('/fonts/crimson-pro-italic.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face{
|
||||
/* Note: Don't use local() as a source, because our version fixes the font's strange default line-height */
|
||||
font-family: "Crimson Text";
|
||||
src: url('/fonts/crimson-text-bold-italic.woff2') format('woff2'), url('/fonts/crimson-text-bold-italic.woff') format('woff');
|
||||
font-family: "Crimson Pro";
|
||||
src: url('/fonts/crimson-pro-bold-italic.woff2') format('woff2'), url('/fonts/crimson-pro-bold-italic.woff') format('woff');
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
||||
|
@ -77,11 +77,11 @@
|
|||
|
||||
html{
|
||||
color: #222;
|
||||
font-family: "Crimson Text", Georgia, serif;
|
||||
font-family: "Crimson Pro", Georgia, serif;
|
||||
-webkit-hyphens: auto;
|
||||
hyphens: auto;
|
||||
font-size: 20px;
|
||||
line-height: 1.6;
|
||||
font-size: 22px;
|
||||
line-height: 1.5;
|
||||
background: url('/images/paper.png') #fcf5dd; /* #faf5e3; */
|
||||
}
|
||||
|
||||
|
@ -389,7 +389,7 @@ main.front-page > section{
|
|||
}
|
||||
|
||||
main.front-page > section > h2{
|
||||
font-family: "Crimson Text", Georgia, serif;
|
||||
font-family: "Crimson Pro", Georgia, serif;
|
||||
font-style: italic;
|
||||
font-size: 2.2rem;
|
||||
text-align: center;
|
||||
|
@ -1360,7 +1360,7 @@ input[type="search"]{
|
|||
width: 100%;
|
||||
background: none;
|
||||
border: none;
|
||||
font-family: 'Crimson Text';
|
||||
font-family: 'Crimson Pro';
|
||||
}
|
||||
|
||||
/* remove some styles from Chromium */
|
||||
|
@ -1407,7 +1407,7 @@ label.search::before{
|
|||
line-height: 1;
|
||||
margin-right: 1rem;
|
||||
color: #222;
|
||||
margin-top: -3px; /* Adjust for crimson text line-height */
|
||||
margin-top: -3px; /* Adjust for Crimson Pro line-height */
|
||||
text-shadow: 1px 1px 0 rgba(255, 255, 255, .5);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue