Remove font-size mixin (#1413)

This commit is contained in:
Neil Abraham 2020-04-23 17:16:40 +01:00 committed by GitHub
parent a4dae93801
commit 4909e965c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 5 additions and 28 deletions

View File

@ -7,9 +7,7 @@ input[type="submit"] {
border-radius: 3px;
background: $color__background-button;
color: rgba(0, 0, 0, 0.8);
@include font-size(0.75);
font-size: 0.75rem;
line-height: 1;
padding: 0.6em 1em 0.4em;

View File

@ -1,9 +1,3 @@
// Rem output with px fallback
@mixin font-size($sizeValue: 1) {
font-size: ($sizeValue * 16) * 1px;
font-size: $sizeValue * 1rem;
}
// Center block
@mixin center-block {
display: block;

View File

@ -19,9 +19,7 @@
clip-path: none;
color: $color__text-screen;
display: block;
@include font-size(0.875);
font-size: 0.875rem;
font-weight: 700;
height: auto;
left: 5px;

View File

@ -20,8 +20,7 @@ address {
pre {
background: $color__background-pre;
font-family: $font__pre;
@include font-size(0.9375);
font-size: 0.9375rem;
line-height: $font__line-height-pre;
margin-bottom: 1.6em;
max-width: 100%;
@ -34,8 +33,7 @@ kbd,
tt,
var {
font-family: $font__code;
@include font-size(0.9375);
font-size: 0.9375rem;
}
abbr,

View File

@ -6,8 +6,7 @@ optgroup,
textarea {
color: $color__text-main;
font-family: $font__main;
@include font-size(1);
font-size: 1rem;
line-height: $font__line-height-body;
}

View File

@ -368,7 +368,6 @@ optgroup,
textarea {
color: #404040;
font-family: sans-serif;
font-size: 16px;
font-size: 1rem;
line-height: 1.5;
}
@ -404,7 +403,6 @@ address {
pre {
background: #eee;
font-family: "Courier 10 Pitch", courier, monospace;
font-size: 15px;
font-size: 0.9375rem;
line-height: 1.6;
margin-bottom: 1.6em;
@ -418,7 +416,6 @@ kbd,
tt,
var {
font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
font-size: 15px;
font-size: 0.9375rem;
}
@ -518,7 +515,6 @@ input[type="submit"] {
border-radius: 3px;
background: #e6e6e6;
color: rgba(0, 0, 0, 0.8);
font-size: 12px;
font-size: 0.75rem;
line-height: 1;
padding: 0.6em 1em 0.4em;
@ -744,7 +740,6 @@ a:active {
clip-path: none;
color: #21759b;
display: block;
font-size: 14px;
font-size: 0.875rem;
font-weight: 700;
height: auto;

View File

@ -368,7 +368,6 @@ optgroup,
textarea {
color: #404040;
font-family: sans-serif;
font-size: 16px;
font-size: 1rem;
line-height: 1.5;
}
@ -404,7 +403,6 @@ address {
pre {
background: #eee;
font-family: "Courier 10 Pitch", courier, monospace;
font-size: 15px;
font-size: 0.9375rem;
line-height: 1.6;
margin-bottom: 1.6em;
@ -418,7 +416,6 @@ kbd,
tt,
var {
font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
font-size: 15px;
font-size: 0.9375rem;
}
@ -518,7 +515,6 @@ input[type="submit"] {
border-radius: 3px;
background: #e6e6e6;
color: rgba(0, 0, 0, 0.8);
font-size: 12px;
font-size: 0.75rem;
line-height: 1;
padding: 0.6em 1em 0.4em;
@ -744,7 +740,6 @@ a:active {
clip-path: none;
color: #21759b;
display: block;
font-size: 14px;
font-size: 0.875rem;
font-weight: 700;
height: auto;