Skip to content

Commit

Permalink
Change fonts to Charter and others
Browse files Browse the repository at this point in the history
'Charter' by Matthew Carter
'Inconsolata' by Raph Levien
'Noto Sans KR' by Soo-young JANG, Joo-yeon KANG et al.
'Noto Serif KR' by Soohyun PARK, Yejin WE, Donghoon HAN et al.
'Noto Color Emoji' by Jennifer Daniel et al.
  • Loading branch information
nooriro committed Apr 2, 2023
1 parent 65fabec commit 3935d7e
Show file tree
Hide file tree
Showing 9 changed files with 394 additions and 6 deletions.
6 changes: 5 additions & 1 deletion _posts/2023-04-01-latex-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ Jekyll requires blog post files to be named according to the following format:

Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Jekyll also offers powerful support for code snippets:
로렘 입숨(lorem ipsum; 줄여서 립숨, lipsum)은 출판이나 그래픽 디자인 분야에서 폰트, 타이포그래피, 레이아웃 같은 그래픽 요소나 시각적 연출을 보여줄 때 사용하는 표준 채우기 텍스트로, 최종 결과물에 들어가는 실제적인 문장 내용이 채워지기 전에 시각 디자인 프로젝트 모형의 채움 글로도 이용된다. 이런 용도로 사용할 때 로렘 입숨을 그리킹(greeking)이라고도 부르며, 때로 로렘 입숨은 공간만 차지하는 무언가를 지칭하는 용어로도 사용된다.

로렘 입숨은 전통 라틴어와 닮은 점 때문에 종종 호기심을 유발하기도 하지만 그 이상의 의미를 담지는 않는다. 문서에서 텍스트가 보이면 사람들은 전체적인 프레젠테이션보다는 텍스트에 담긴 뜻에 집중하는 경향이 있어서 출판사들은 서체나 디자인을 보일 때는 프레젠테이션 자체에 초점을 맞추기 위해 로렘 입숨을 사용한다.

🐱😺😸😹😻😼😽🙀😿😾🐈🐈‍⬛ Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
Expand Down
60 changes: 58 additions & 2 deletions _sass/minima.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,68 @@
@charset "utf-8";

// 'Charter' font family by Matthew Carter

@font-face {
font-family: Charter;
font-style: normal;
font-weight: normal;
font-stretch: normal;
src: local('Charter'), local('CharterRegular'), url('charter_regular.woff2') format('woff2');
}

@font-face {
font-family: Charter;
font-style: italic;
font-weight: normal;
font-stretch: normal;
src: local('Charter Italic'), local('CharterItalic'), url('charter_italic.woff2') format('woff2');
}

@font-face {
font-family: Charter;
font-style: normal;
font-weight: bold;
font-stretch: normal;
src: local('Charter Bold'), local('CharterBold'), url('charter_bold.woff2') format('woff2');
}

@font-face {
font-family: Charter;
font-style: italic;
font-weight: bold;
font-stretch: normal;
src: local('Charter Bold Italic'), local('CharterBoldItalic'), url('charter_bold_italic.woff2') format('woff2');
}


// 'Inconsolata', 'Noto Sans KR', 'Noto Serif KR' and 'Noto Color Emoji' from Google Fonts
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Noto+Color+Emoji&family=Noto+Sans+KR:wght@400;700&family=Noto+Serif+KR:wght@400;700&display=swap');


// Define defaults for each variable.

$base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
$base-font-family: "Charter",
"Source Han Serif K", "Noto Serif CJK KR", // OTF
"Source Han Serif", "Noto Serif CJK JP", // OTF
"Source Han Serif SC", "Noto Serif CJK SC", // OTF
"Source Han Serif TC", "Noto Serif CJK TC", // OTF
"Source Han Serif HC", "Noto Serif CJK HK", // OTF
"Source Han Serif KR", "Noto Serif KR", // Subset OTF
serif, "Noto Color Emoji" !default;
$base-font-size: 16px !default;
$base-font-weight: 400 !default;
$small-font-size: $base-font-size * 0.875 !default;
$base-line-height: 1.5 !default;
$base-line-height: 1.625 !default;

$code-font-family: "Inconsolata",
"Source Han Sans K", "Noto Sans CJK KR", // OTF
"Source Han Sans", "Noto Sans CJK JP", // OTF
"Source Han Sans SC", "Noto Sans CJK SC", // OTF
"Source Han Sans TC", "Noto Sans CJK TC", // OTF
"Source Han Sans HC", "Noto Sans CJK HK", // OTF
"Source Han Sans KR", "Noto Sans KR", // Subset OTF
monospace, "Noto Color Emoji" !default;
$code-line-height: 1.5 !default;

$spacing-unit: 30px !default;

Expand Down
8 changes: 5 additions & 3 deletions _sass/minima/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ blockquote {
border-left: 4px solid $grey-color-light;
padding-left: $spacing-unit / 2;
@include relative-font-size(1.125);
letter-spacing: -1px;
font-style: italic;
/* letter-spacing: -1px; */
/* font-style: italic; */

> :last-child {
margin-bottom: 0;
Expand All @@ -148,7 +148,8 @@ blockquote {
*/
pre,
code {
@include relative-font-size(0.9375);
font-family: $code-font-family;
/* @include relative-font-size(0.9375); */
border: 1px solid $grey-color-light;
border-radius: 3px;
background-color: #eef;
Expand All @@ -159,6 +160,7 @@ code {
}

pre {
line-height: $code-line-height;
padding: 8px 12px;
overflow-x: auto;

Expand Down
255 changes: 255 additions & 0 deletions _sass/minima/_layout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
/**
* Site header
*/
.site-header {
border-top: 5px solid $grey-color-dark;
border-bottom: 1px solid $grey-color-light;
min-height: $spacing-unit * 1.865;

// Positioning context for the mobile navigation icon
position: relative;
}

.site-title {
@include relative-font-size(1.625);
font-weight: 300;
line-height: $base-line-height * $base-font-size * 2.25;
/* letter-spacing: -1px; */
margin-bottom: 0;
float: left;

&,
&:visited {
color: $grey-color-dark;
}
}

.site-nav {
float: right;
line-height: $base-line-height * $base-font-size * 2.25;

.nav-trigger {
display: none;
}

.menu-icon {
display: none;
}

.page-link {
color: $text-color;
line-height: $base-line-height;

// Gaps between nav items, but not on the last one
&:not(:last-child) {
margin-right: 20px;
}
}

@include media-query($on-palm) {
position: absolute;
top: 9px;
right: $spacing-unit / 2;
background-color: $background-color;
border: 1px solid $grey-color-light;
border-radius: 5px;
text-align: right;

label[for="nav-trigger"] {
display: block;
float: right;
width: 36px;
height: 36px;
z-index: 2;
cursor: pointer;
}

.menu-icon {
display: block;
float: right;
width: 36px;
height: 26px;
line-height: 0;
padding-top: 10px;
text-align: center;

> svg {
fill: $grey-color-dark;
}
}

input ~ .trigger {
clear: both;
display: none;
}

input:checked ~ .trigger {
display: block;
padding-bottom: 5px;
}

.page-link {
display: block;
padding: 5px 10px;

&:not(:last-child) {
margin-right: 0;
}
margin-left: 20px;
}
}
}



/**
* Site footer
*/
.site-footer {
border-top: 1px solid $grey-color-light;
padding: $spacing-unit 0;
}

.footer-heading {
@include relative-font-size(1.125);
margin-bottom: $spacing-unit / 2;
}

.contact-list,
.social-media-list {
list-style: none;
margin-left: 0;
}

.footer-col-wrapper {
@include relative-font-size(0.9375);
color: $grey-color;
margin-left: -$spacing-unit / 2;
@extend %clearfix;
}

.footer-col {
float: left;
margin-bottom: $spacing-unit / 2;
padding-left: $spacing-unit / 2;
}

.footer-col-1 {
width: -webkit-calc(35% - (#{$spacing-unit} / 2));
width: calc(35% - (#{$spacing-unit} / 2));
}

.footer-col-2 {
width: -webkit-calc(20% - (#{$spacing-unit} / 2));
width: calc(20% - (#{$spacing-unit} / 2));
}

.footer-col-3 {
width: -webkit-calc(45% - (#{$spacing-unit} / 2));
width: calc(45% - (#{$spacing-unit} / 2));
}

@include media-query($on-laptop) {
.footer-col-1,
.footer-col-2 {
width: -webkit-calc(50% - (#{$spacing-unit} / 2));
width: calc(50% - (#{$spacing-unit} / 2));
}

.footer-col-3 {
width: -webkit-calc(100% - (#{$spacing-unit} / 2));
width: calc(100% - (#{$spacing-unit} / 2));
}
}

@include media-query($on-palm) {
.footer-col {
float: none;
width: -webkit-calc(100% - (#{$spacing-unit} / 2));
width: calc(100% - (#{$spacing-unit} / 2));
}
}



/**
* Page content
*/
.page-content {
padding: $spacing-unit 0;
flex: 1;
}

.page-heading {
@include relative-font-size(2);
}

.post-list-heading {
@include relative-font-size(1.75);
}

.post-list {
margin-left: 0;
list-style: none;

> li {
margin-bottom: $spacing-unit;
}
}

.post-meta {
font-size: $small-font-size;
color: $grey-color;
}

.post-link {
display: block;
@include relative-font-size(1.5);
}



/**
* Posts
*/
.post-header {
margin-bottom: $spacing-unit;
}

.post-title {
@include relative-font-size(2.625);
/* letter-spacing: -1px; */
line-height: 1;

@include media-query($on-laptop) {
@include relative-font-size(2.25);
}
}

.post-content {
margin-bottom: $spacing-unit;

h2 {
@include relative-font-size(2);

@include media-query($on-laptop) {
@include relative-font-size(1.75);
}
}

h3 {
@include relative-font-size(1.625);

@include media-query($on-laptop) {
@include relative-font-size(1.375);
}
}

h4 {
@include relative-font-size(1.25);

@include media-query($on-laptop) {
@include relative-font-size(1.125);
}
}
}
Loading

0 comments on commit 3935d7e

Please sign in to comment.