Skip to content

Commit 3194e97

Browse files
authored
fix/standardize font variables (internetarchive#11097)
1 parent 65a423a commit 3194e97

33 files changed

+82
-81
lines changed

static/css/base/common.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ div.head {
8686
margin-bottom: 10px;
8787
margin-top: 20px;
8888
span {
89-
font-size: 12px;
89+
font-size: @font-size-label-medium;
9090
}
9191
}
9292

static/css/base/headings.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ h1 {
1717
margin: 0;
1818
}
1919
span.count {
20-
font-size: 14px !important;
20+
font-size: @font-size-label-large !important;
2121
}
2222
}
2323

@@ -97,7 +97,7 @@ h4 {
9797
padding: 0;
9898
span.merge {
9999
font-family: @lucida_sans_serif-3;
100-
font-size: 11px;
100+
font-size: @font-size-label-small;
101101
font-weight: normal !important;
102102
text-transform: none !important;
103103
padding-left: 22px;
@@ -147,7 +147,7 @@ div.head {
147147
dt,
148148
span.title,
149149
h6.title {
150-
font-size: 12px;
150+
font-size: @font-size-label-medium;
151151
font-weight: normal !important;
152152
font-family: @lucida_sans_serif-2;
153153
color: @grey;
@@ -157,11 +157,11 @@ h6.title {
157157

158158
.titleSmall {
159159
font-family: @lucida_sans_serif-2;
160-
font-size: 11px;
160+
font-size: @font-size-label-small;
161161
font-weight: 600;
162162
}
163163
.heading {
164164
span.count {
165-
font-size: 14px !important;
165+
font-size: @font-size-label-large !important;
166166
}
167167
}

static/css/base/helpers-common.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// e.g. heading should be a little smaller
1010
// See /subjects "Try a keyword"
1111
+ span {
12-
font-size: 11px;
12+
font-size: @font-size-label-small;
1313
}
1414
}
1515

@@ -58,7 +58,7 @@ a.hoverlink {
5858

5959
.local-date-time {
6060
color: @dark-green;
61-
font-size: 11px;
61+
font-size: @font-size-label-small;
6262
text-align: center;
6363
padding: 5px 0 0;
6464
}

static/css/base/helpers-misc.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
@import "../less/font-families.less";
66

77
.small {
8-
font-size: 12px !important;
8+
font-size: @font-size-label-medium !important;
99
font-weight: normal !important;
1010
&er {
11-
font-size: 11px;
11+
font-size: @font-size-label-small;
1212
font-weight: normal;
1313
}
1414
&est {
@@ -23,9 +23,9 @@
2323
clear: both;
2424
}
2525
.large {
26-
font-size: 14px !important;
26+
font-size: @font-size-label-large !important;
2727
&r {
28-
font-size: 16px !important;
28+
font-size: @font-size-title-medium !important;
2929
}
3030
&st {
3131
font-size: 18px !important;

static/css/components/buttonCta.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ a.cta-btn {
166166
.carousel-section .cta-btn {
167167
white-space: nowrap;
168168
text-overflow: ellipsis;
169-
font-size: 14px;
169+
font-size: @font-size-label-large;
170170
text-align: center;
171171

172172
&.cta-btn--external {
@@ -181,7 +181,7 @@ a.cta-btn {
181181
}
182182

183183
.cta-btn--small {
184-
font-size: 12px;
184+
font-size: @font-size-label-medium;
185185
padding: 5px 10px;
186186
}
187187

static/css/components/cbox.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ div.floater {
171171
}
172172
&Body {
173173
padding: 20px;
174-
font-size: 14px;
174+
font-size: @font-size-label-large;
175175
p {
176176
margin-bottom: 14px;
177177
}

static/css/components/check-in.less

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

1414
&__label,
1515
&__select {
16-
font-size: 16px;
16+
font-size: @font-size-title-medium;
1717
}
1818

1919
&__label {

static/css/components/diff.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// stylelint-disable selector-max-specificity
88
#legend {
99
float: left;
10-
font-size: 11px;
10+
font-size: @font-size-label-small;
1111
font-family: @lucida_sans_serif-6;
1212
line-height: 1em;
1313
margin-top: 20px;
@@ -56,7 +56,7 @@ dd {
5656
.diff .revisions th {
5757
padding: 10px;
5858
font-family: @news_gothic_sans_serif-2;
59-
font-size: 11px;
59+
font-size: @font-size-label-small;
6060
font-weight: 700;
6161
color: @black;
6262
}

static/css/components/form.olform.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
// e.g. on the book edit page. /books/OL9737752M/The_Odyssey/edit
192192
// "You can search by author name (like j k rowling) or by Open Library ID (like OL23919A)."
193193
.tip {
194-
font-size: 11px;
194+
font-size: @font-size-label-small;
195195
color: @grey;
196196
font-family: @lucida_sans_serif-1 !important;
197197
}

static/css/components/header-bar.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
color: @white;
308308
border-radius: 8px;
309309
padding: 3px 7px;
310-
font-size: 12px;
310+
font-size: @font-size-label-medium;
311311
margin-top: 25px;
312312
font-weight: bold;
313313
}
@@ -553,7 +553,7 @@
553553
display: none;
554554
margin-top: 3px;
555555
padding: 13px 10px 0;
556-
font-size: 14px;
556+
font-size: @font-size-label-large;
557557
}
558558

559559
.search-facet {

0 commit comments

Comments
 (0)