1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

Replace px font units with rem, resolves #904

This commit is contained in:
Anthony Swierkosz 2022-02-23 03:47:36 -05:00
parent de3c3156da
commit e56839b73a
No known key found for this signature in database
GPG Key ID: FA653BCC2CE12624

View File

@ -7,7 +7,7 @@
body { body {
background: #fafafa; background: #fafafa;
color: #5c5855; color: #5c5855;
font: 14px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; font: 0.875rem/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
@ -68,7 +68,7 @@ h1, h2, h3, h5 {
} }
h1 { h1 {
font-size: 35px; font-size: 2.1875rem;
margin-bottom: 25px; margin-bottom: 25px;
} }
@ -78,19 +78,19 @@ h1 {
h2 { h2 {
opacity: 0.8; opacity: 0.8;
font-size: 24px; font-size: 1.5rem;
margin-top: 24px; margin-top: 24px;
margin-bottom: 10px; margin-bottom: 10px;
} }
h3 { h3 {
font-size: 15px; font-size: 0.9375rem;
margin-top: 20px; margin-top: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
h5 { h5 {
font-size: 14px; font-size: 0.875rem;
margin-bottom: 15px; margin-bottom: 15px;
} }
@ -120,12 +120,12 @@ strong {
} }
.home h1 { .home h1 {
font-size: 60px; font-size: 3.75rem;
} }
.home h2 { .home h2 {
color: #687072; color: #687072;
font-size: 27px; font-size: 1.6875rem;
line-height: 70px; line-height: 70px;
margin-bottom: 45px; margin-bottom: 45px;
vertical-align: middle; vertical-align: middle;
@ -134,7 +134,7 @@ strong {
.home h2 span { .home h2 span {
color: rgba(127,127,127,10%); color: rgba(127,127,127,10%);
font-size: 70px; font-size: 4.375rem;
padding: 0 5px; padding: 0 5px;
position: relative; position: relative;
top: 10px; top: 10px;
@ -160,7 +160,7 @@ strong {
} }
.triptych h3 { .triptych h3 {
font-size: 22px; font-size: 1.375rem;
margin: 0 auto 20px auto; margin: 0 auto 20px auto;
width: 220px; width: 220px;
} }
@ -218,7 +218,7 @@ strong {
} }
.license-overview-name { .license-overview-name {
font-size: 28px; font-size: 1.75rem;
margin-top: 5px; margin-top: 5px;
} }
@ -228,7 +228,7 @@ strong {
.license-rules { .license-rules {
border-bottom: solid 1px #ddd; border-bottom: solid 1px #ddd;
font-size: 13px; font-size: 0.8125rem;
line-height: 1.3; line-height: 1.3;
margin-bottom: 12px; margin-bottom: 12px;
width: 100%; width: 100%;
@ -240,7 +240,7 @@ strong {
} }
.license-rules th { .license-rules th {
font-size: 15px; font-size: 0.9375rem;
padding: 5px 10px 5px 0; padding: 5px 10px 5px 0;
vertical-align: bottom; vertical-align: bottom;
} }
@ -259,11 +259,11 @@ strong {
} }
.license-rules .name a { .license-rules .name a {
font-size: 28px; font-size: 1.75rem;
} }
.license-rules .name small a { .license-rules .name small a {
font-size: 16px; font-size: 1rem;
} }
.license-rules td { .license-rules td {
@ -302,14 +302,14 @@ strong {
} }
.license-body { .license-body {
font-size: 15px; font-size: 0.9375rem;
float: left; float: left;
width: 700px; width: 700px;
} }
.license-body pre { .license-body pre {
font-family: Consolas, Monaco, Courier, monospace; font-family: Consolas, Monaco, Courier, monospace;
font-size: 14px; font-size: 0.875rem;
background-color: #fff; background-color: #fff;
border: 1px solid #eee; border: 1px solid #eee;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
@ -327,7 +327,7 @@ strong {
.sidebar { .sidebar {
float: right; float: right;
width: 220px; width: 220px;
font-size: 12px; font-size: 0.75rem;
} }
.sidebar a.button { .sidebar a.button {
@ -398,7 +398,7 @@ strong {
background-image: -o-linear-gradient(#eee, #ddd); background-image: -o-linear-gradient(#eee, #ddd);
background-image: linear-gradient(#eee, #ddd); background-image: linear-gradient(#eee, #ddd);
display: inline-block; display: inline-block;
font-size: 12px; font-size: 0.75rem;
font-weight: normal; font-weight: normal;
padding: 5px 10px; padding: 5px 10px;
text-align: center; text-align: center;
@ -423,7 +423,7 @@ strong {
margin-top: 30px; margin-top: 30px;
padding-top: 20px; padding-top: 20px;
color: #555; color: #555;
font-size: 12px; font-size: 0.75rem;
text-align: left; text-align: left;
line-height: 1.5; line-height: 1.5;
} }
@ -467,7 +467,7 @@ strong {
.qtip-limitations, .qtip-limitations,
.qtip-fetching, .qtip-fetching,
.qtip-error { .qtip-error {
font-size: 12px; font-size: 0.75rem;
line-height: 1.3; line-height: 1.3;
} }