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

View File

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

View File

@ -1,18 +1,19 @@
.navigation { .navigation {
height: 6.0rem; height: 6rem;
width: 100%; width: 100%;
a, span { a,
span {
display: inline; display: inline;
font-size: 1.6rem; font-size: 1.6rem;
font-family: $heading-font-family; font-family: $heading-font-family;
font-weight: 700; font-weight: $heading-font-weight--bold;
line-height: 6.0rem; line-height: 6rem;
color: $fg-color; color: $fg-color;
} }
a { a {
&:hover, &:hover,
&:focus { &:focus {
color: $link-color color: $link-color;
} }
} }
.navigation-title { .navigation-title {
@ -24,9 +25,9 @@
list-style: none; list-style: none;
margin-bottom: 0; margin-bottom: 0;
margin-top: 0; margin-top: 0;
@media only screen and (max-width : 768px) { @media only screen and (max-width: 768px) {
position: absolute; position: absolute;
top: 6.0rem; top: 6rem;
right: 0; right: 0;
z-index: 5; z-index: 5;
visibility: hidden; visibility: hidden;
@ -43,22 +44,24 @@
float: left; float: left;
margin: 0; margin: 0;
position: relative; position: relative;
@media only screen and (max-width : 768px) { @media only screen and (max-width: 768px) {
float: none !important; float: none !important;
text-align: center; text-align: center;
a, span { a,
line-height: 5.0rem; span {
line-height: 5rem;
} }
} }
a, span { a,
margin-left: 1.0rem; span {
margin-right: 1.0rem; margin-left: 1rem;
margin-right: 1rem;
} }
} }
.menu-separator { .menu-separator {
@media only screen and (max-width : 768px) { @media only screen and (max-width: 768px) {
border-top: 2px solid $fg-color; border-top: 2px solid $fg-color;
margin: 0 8.0rem; margin: 0 8rem;
span { span {
display: none; display: none;
} }
@ -67,7 +70,7 @@
} }
#menu-toggle { #menu-toggle {
display: none; display: none;
@media only screen and (max-width : 768px) { @media only screen and (max-width: 768px) {
&:checked + label { &:checked + label {
color: $alt-bg-color; color: $alt-bg-color;
} }
@ -80,16 +83,16 @@
} }
.menu-button { .menu-button {
display: none; display: none;
@media only screen and (max-width : 768px) { @media only screen and (max-width: 768px) {
display: block; display: block;
font-size: 2.4rem; font-size: 2.4rem;
font-weight: 400; font-weight: 400;
line-height: 6.0rem; line-height: 6rem;
color: $fg-color; color: $fg-color;
cursor: pointer; cursor: pointer;
&:hover, &:hover,
&:focus { &:focus {
color: $link-color color: $link-color;
} }
} }
} }

View File

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

View File

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

View File

@ -21,7 +21,7 @@
<link rel="canonical" href="{{ .Permalink }}"> <link rel="canonical" href="{{ .Permalink }}">
{{ end }} {{ 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://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" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />