update theme fonts

This commit is contained in:
ray 2020-02-02 17:13:35 +00:00
parent 205877b83b
commit 8de3c5508c
6 changed files with 98 additions and 84 deletions

View File

@ -14,7 +14,7 @@ body {
background-color: $bg-color;
font-family: $text-font-family;
font-size: 1.6em;
font-weight: 300;
font-weight: $text-font-weight;
line-height: 1.8em;
@media only screen and (max-width: 768px) {
font-size: 1.6em;
@ -23,7 +23,8 @@ body {
}
a {
font-weight: 300;
font-family: $text-font-family;
font-weight: $text-font-weight;
color: $link-color;
text-decoration: none;
&:focus,
@ -33,7 +34,7 @@ a {
}
p {
margin: 2.0rem 0 2.0rem 0;
margin: 2rem 0 2rem 0;
}
h1,
@ -43,7 +44,7 @@ h4,
h5,
h6 {
font-family: $heading-font-family;
font-weight: 700;
font-weight: $heading-font-weight;
color: $alt-fg-color;
margin: 6.4rem 0 3.2rem 0;
}
@ -52,7 +53,7 @@ h1 {
font-size: 3.2rem;
line-height: 3.6rem;
@media only screen and (max-width: 768px) {
font-size: 3.0rem;
font-size: 3rem;
line-height: 3.4rem;
}
}
@ -61,7 +62,7 @@ h2 {
line-height: 3.2rem;
@media only screen and (max-width: 768px) {
font-size: 2.6rem;
line-height: 3.0rem;
line-height: 3rem;
}
}
h3 {
@ -76,12 +77,12 @@ h4 {
font-size: 2.2rem;
line-height: 2.6rem;
@media only screen and (max-width: 768px) {
font-size: 2.0rem;
font-size: 2rem;
line-height: 2.4rem;
}
}
h5 {
font-size: 2.0rem;
font-size: 2rem;
line-height: 2.4rem;
@media only screen and (max-width: 768px) {
font-size: 1.8rem;
@ -93,12 +94,14 @@ h6 {
line-height: 2.2rem;
@media only screen and (max-width: 768px) {
font-size: 1.6rem;
line-height: 2.0rem;
line-height: 2rem;
}
}
b, strong {
font-weight: 700;
b,
strong {
font-family: $text-font-family;
font-weight: $text-font-weight--bold;
}
.highlight > div,
@ -112,7 +115,7 @@ pre {
display: block;
font-family: $code-font-family;
font-size: 1.6rem;
font-weight: 400;
font-weight: $code-font-weight;
line-height: 2.6rem;
overflow-x: auto;
margin: 0;
@ -126,26 +129,28 @@ pre {
code {
font-family: $code-font-family;
font-size: 1.6rem;
font-weight: 400;
font-weight: $code-font-weight;
background-color: $alt-bg-color;
color: $fg-color;
}
blockquote {
border-left: 2px solid $alt-bg-color;
padding-left: 2.0rem;
padding-left: 2rem;
line-height: 2.2rem;
font-weight: 400;
font-weight: $text-font-weight;
font-style: italic;
}
th, td {
th,
td {
padding: 1.6rem;
}
table {
border-collapse: collapse;
}
table td, table th {
table td,
table th {
border: 2px solid $alt-fg-color;
}
table tr:first-child th {
@ -177,10 +182,10 @@ img {
.container {
margin: 0 auto;
max-width: 90.0rem;
max-width: 90rem;
width: 100%;
padding-left: 2.0rem;
padding-right: 2.0rem;
padding-left: 2rem;
padding-right: 2rem;
}
.fab {

View File

@ -12,13 +12,13 @@
line-height: 4.6rem;
margin: 0;
@media only screen and (max-width: 768px) {
font-size: 4.0rem;
font-size: 4rem;
line-height: 4.4rem;
}
}
}
footer {
margin-top: 4.0rem;
margin-top: 4rem;
.see-also {
margin: 3.2rem 0;
h3 {
@ -29,7 +29,7 @@
}
.post {
.post-title {
margin-bottom: .75em;
margin-bottom: 0.75em;
}
.post-meta {
i {
@ -79,9 +79,9 @@
}
.date {
display: inline-block;
width: 20.0rem;
width: 20rem;
text-align: right;
margin-right: 3.0rem;
margin-right: 3rem;
@media only screen and (max-width: 768px) {
display: block;
text-align: left;
@ -91,10 +91,10 @@
font-size: 1.8rem;
color: $fg-color;
font-family: $heading-font-family;
font-weight: 700;
font-weight: $heading-font-weight--bold;
&:hover,
&:focus {
color: $link-color
color: $link-color;
}
}
}
@ -108,20 +108,20 @@
.about {
text-align: center;
h1 {
margin-top: 2.0rem;
margin-top: 2rem;
margin-bottom: 0.5rem;
}
h2 {
margin-top: 1.0rem;
margin-top: 1rem;
margin-bottom: 0.5rem;
font-size: 2.4rem;
@media only screen and (max-width: 768px) {
font-size: 2.0rem;
font-size: 2rem;
}
}
ul {
list-style: none;
margin: 3.0rem 0 1.0rem 0;
margin: 3rem 0 1rem 0;
padding: 0;
li {
display: inline-block;
@ -129,8 +129,8 @@
a {
color: $fg-color;
text-transform: uppercase;
margin-left: 1.0rem;
margin-right: 1.0rem;
margin-left: 1rem;
margin-right: 1rem;
font-size: 1.6rem;
&:hover,
&:focus {
@ -150,7 +150,7 @@
.error {
text-align: center;
h1 {
margin-top: 2.0rem;
margin-top: 2rem;
margin-bottom: 0.5rem;
font-size: 4.6rem;
@media only screen and (max-width: 768px) {
@ -158,7 +158,7 @@
}
}
h2 {
margin-top: 2.0rem;
margin-top: 2rem;
margin-bottom: 3.2rem;
font-size: 3.2rem;
@media only screen and (max-width: 768px) {

View File

@ -1,18 +1,19 @@
.navigation {
height: 6.0rem;
height: 6rem;
width: 100%;
a, span {
a,
span {
display: inline;
font-size: 1.6rem;
font-family: $heading-font-family;
font-weight: 700;
line-height: 6.0rem;
font-weight: $heading-font-weight--bold;
line-height: 6rem;
color: $fg-color;
}
a {
&:hover,
&:focus {
color: $link-color
color: $link-color;
}
}
.navigation-title {
@ -26,7 +27,7 @@
margin-top: 0;
@media only screen and (max-width: 768px) {
position: absolute;
top: 6.0rem;
top: 6rem;
right: 0;
z-index: 5;
visibility: hidden;
@ -46,19 +47,21 @@
@media only screen and (max-width: 768px) {
float: none !important;
text-align: center;
a, span {
line-height: 5.0rem;
a,
span {
line-height: 5rem;
}
}
a, span {
margin-left: 1.0rem;
margin-right: 1.0rem;
a,
span {
margin-left: 1rem;
margin-right: 1rem;
}
}
.menu-separator {
@media only screen and (max-width: 768px) {
border-top: 2px solid $fg-color;
margin: 0 8.0rem;
margin: 0 8rem;
span {
display: none;
}
@ -84,12 +87,12 @@
display: block;
font-size: 2.4rem;
font-weight: 400;
line-height: 6.0rem;
line-height: 6rem;
color: $fg-color;
cursor: pointer;
&:hover,
&:focus {
color: $link-color
color: $link-color;
}
}
}

View File

@ -1,18 +1,18 @@
.pagination {
margin-top: 6.0rem;
margin-top: 6rem;
text-align: center;
font-family: $heading-font-family;
li {
display: inline;
text-align: center;
font-weight: 700;
font-weight: $heading-font-weight--bold;
span {
margin: 0;
text-align: center;
width: 3.2rem;
}
a {
font-weight: 300;
font-weight: $heading-font-weight;
span {
margin: 0;
text-align: center;

View File

@ -1,12 +1,18 @@
// Fonts
$text-font-family: Merriweather, Georgia, serif;
$heading-font-family: Lato, Helvetica, sans-serif;
$code-font-family: 'Source Code Pro', 'Lucida Console', monospace;
$text-font-family: Roboto, sans-serif;
$heading-font-family: "Hind Guntur", sans-serif;
$code-font-family: "Source Code Pro", "Lucida Console", monospace;
$text-font-weight: 400;
$text-font-weight--bold: 600;
$heading-font-weight: 400;
$heading-font-weight--bold: 600;
$code-font-weight: 400;
// Colors
$bg-color: #FAFAFA !default;
$bg-color: #fafafa !default;
$fg-color: #212121 !default;
$alt-bg-color: #E0E0E0 !default;
$alt-bg-color: #e0e0e0 !default;
$alt-fg-color: #000 !default;
$link-color: #1565c0 !default;

View File

@ -21,7 +21,7 @@
<link rel="canonical" href="{{ .Permalink }}">
{{ end }}
<link href="https://fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather:300,700%7CSource+Code+Pro:400,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,600%7CHind+Guntur:400,600%7CSource+Code+Pro:400,700" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css" integrity="sha384-KA6wR/X5RY4zFAHpv/CnoG2UW1uogYfdnP67Uv7eULvTveboZJg0qUpmJZb5VqzN" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />