Link Search Menu Expand Document

블로그 사용법

Table of contents

  1. UI Components
    1. Typography
    2. Buttons
    3. Labels
    4. Tables
    5. Lists
    6. Image
    7. Code
  2. Utilities
    1. Responsive Modifiers
    2. Layout
    3. Color
    4. Typography
  3. Navigation Structure
    1. Main navigation
    2. Excluding pages
    3. Pages with children
    4. Children with children
    5. In-page navigation with Table of Contents
  4. Customization
  5. Search
    1. Hiding pages from search

UI Components

기본적으로 반응형 레이아웃

Typography

  • Responsive type scale
SelectorSmall screen size font-sizeLarge screen size font-size
h1, .text-alpha32px36px
h2, .text-beta18px24px
h3, .text-gamma16px18px
h4, .text-delta14px16px

epsilon, zeta도 있는데 폰트사이즈가 더 커짐 - 최대한 사용하지 않기

(기본 폰트사이즈 14px = h4 .text-delta)

  • Headings
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

기본적으로 테이블 레이아웃에 나옴

  • blockquote following a header

This is a blockquote following a header.

When something is important enough, you do it even if the odds are not in your favor.

> This is a blockquote following a header.
>
> When something is important enough, you do it even if the odds are not in your favor.
  • Inline elements
Text can be **bold**, _italic_, or ~~strikethrough~~.

[Link to another page](another-page).

Buttons

  • Button colors
[Link button](http://example.com/){: .btn }
[Link button](http://example.com/){: .btn .btn-purple }
[Link button](http://example.com/){: .btn .btn-blue }
[Link button](http://example.com/){: .btn .btn-green }
[Link button](http://example.com/){: .btn .btn-outline }
  • Button size

span 태그를 부모로 감싸주고 클래스로 크기를 줘서 버튼크기 조절

<span class="fs-8">
[Link button](http://example.com/){: .btn }
</span>

<span class="fs-3">
[Tiny ass button](http://example.com/){: .btn }
</span>

마진 클래스를 줄수도 있음

Labels

형광펜처럼 강조를 하고싶을때 사용, 기본이 blue

Default label

Blue label

Stable

New release

Coming soon

Deprecated

Default label
{: .label }

Blue label
{: .label .label-blue }

Stable
{: .label .label-green }

New release
{: .label .label-purple }

Coming soon
{: .label .label-yellow }

Deprecated
{: .label .label-red }

Tables

기본 테이블구조

head1head twothree
okgood swedish fishnice
out of stockgood and plentynice
okgood oreoshmm
okgood zoute dropyumm
| head1        | head two          | three |
|:-------------|:------------------|:------|
| ok           | good swedish fish | nice  |
| out of stock | good and plenty   | nice  |
| ok           | good `oreos`      | hmm   |
| ok           | good `zoute` drop | yumm  |

Lists

  • 순서목록 : 동시에 같이써야 카운트됨 ㅠㅠ
  1. Item 1
  2. Item 2
  3. Item 3
1. Item 1
1. Item 2
1. Item 3
  • 비순서목록 : 둘다 점으로 나옴
- Item 1
- Item 2
- Item 3

_or_

* Item 1
* Item 2
* Item 3

! 이렇게 섞어서 써도 됨

- level 1 item (ul)
  1. level 2 item (ol)
  1. level 2 item (ol)
    - level 3 item (ul)
    - level 3 item (ul)
- level 1 item (ul)
  1. level 2 item (ol)
  1. level 2 item (ol)
    - level 3 item (ul)
    - level 3 item (ul)
  1. level 4 item (ol)
  1. level 4 item (ol)
    - level 3 item (ul)
    - level 3 item (ul)
- level 1 item (ul)
  • 체크박스
  • hello, this is a todo item
  • hello, this is another todo item
  • goodbye, this item is done
- [ ] hello, this is a todo item
- [ ] hello, this is another todo item
- [x] goodbye, this item is done
  • 정의목록
<dl>
  <dt>Name</dt>
  <dd>Godzilla</dd>
  <dt>Born</dt>
  <dd>1952</dd>
  <dt>Birthplace</dt>
  <dd>Japan</dd>
  <dt>Color</dt>
  <dd>Green</dd>
</dl>

Image

![](https://guides.github.com/activities/hello-world/branching.png)

Code

  • 인라인 코드

<inline code snippet>

짧은 코드를 쓸때 사용

  • 블록 코드
```js 
    //자바스크립트
```

```yaml or bash or scss or ruby... 와같이 사용언어 적기
```

Utilities

Responsive Modifiers

ModifierScreen size
(none)All screens until the next modifier
xs320px (20rem) and up
sm500px (31.25rem) and up
md740px (46.25rem) and up
lg1120px (70rem) and up
xl1400px (87.5rem) and up

Layout

  • Spacing
Classname prefixWhat it does
.m-margin
.mx-margin-left, margin-right
.my-margin top, margin bottom
.mt-margin-top
.mr-margin-right
.mb-margin-bottom
.ml-margin-left
Classname prefixWhat it does
.p-padding
.px-padding-left, padding-right
.py-padding top, padding bottom
.pt-padding-top
.pr-padding-right
.pb-padding-bottom
.pl-padding-left

Spacing values are based on a 1rem = 16px spacing scale, broken down into these units:

Spacer/suffixSize in remsRem converted to px
10.25rem4px
20.5rem8px
30.75rem12px
41rem16px
51.5rem24px
62rem32px
72.5rem40px
83rem48px

Examples

In Markdown, use the {: } wrapper to apply custom classes:

This paragraph will have a margin bottom of 1rem/16px at large screens.
{: .mb-lg-4 }

This paragraph will have 2rem/32px of padding on the right and left at all screen sizes.
{: .px-6 }
  • Vertical Alignment
ClassnameWhat it does
.v-align-baselinevertical-align: baseline
.v-align-bottomvertical-align: bottom
.v-align-middlevertical-align: middle
.v-align-text-bottomvertical-align: text-bottom
.v-align-text-topvertical-align: text-top
.v-align-topvertical-align: top
  • Display
Class 
.d-blockdisplay: block
.d-flexdisplay: flex
.d-inlinedisplay: inline
.d-inline-blockdisplay: inline-block
.d-nonedisplay: none

Use these classes in conjunction with the responsive modifiers.

Examples

In Markdown, use the {: } wrapper to apply custom classes:

This button will be hidden until medium screen sizes:

[ A button ](#url)
{: .d-none .d-md-inline-block }

These headings will be `inline-block`:

Color

텍스트나 배경 색상 클래스 모음

  • Light Greys
Color valueFont color utilityBackground color utility
grey-lt-000.text-grey-lt-000.bg-grey-lt-000
grey-lt-100.text-grey-lt-100.bg-grey-lt-100
grey-lt-200.text-grey-lt-200.bg-grey-lt-200
grey-lt-300.text-grey-lt-300.bg-grey-lt-300
  • Dark Greys
Color valueFont color utilityBackground color utility
grey-dk-000.text-grey-dk-000.bg-grey-dk-000
grey-dk-100.text-grey-dk-100.bg-grey-dk-100
grey-dk-200.text-grey-dk-200.bg-grey-dk-200
grey-dk-250.text-grey-dk-250.bg-grey-dk-250
grey-dk-300.text-grey-dk-300.bg-grey-dk-300
  • Purples
Color valueFont color utilityBackground color utility
purple-000.text-purple-000.bg-purple-000
purple-100.text-purple-100.bg-purple-100
purple-200.text-purple-200.bg-purple-200
purple-300.text-purple-300.bg-purple-300
  • Blues
Color valueFont color utilityBackground color utility
blue-000.text-blue-000.bg-blue-000
blue-100.text-blue-100.bg-blue-100
blue-200.text-blue-200.bg-blue-200
blue-300.text-blue-300.bg-blue-300
  • Greens
Color valueFont color utilityBackground color utility
green-000.text-green-000.bg-green-000
green-100.text-green-100.bg-green-100
green-200.text-green-200.bg-green-200
green-300.text-green-300.bg-green-300
  • Yellows
Color valueFont color utilityBackground color utility
yellow-000.text-yellow-000.bg-yellow-000
yellow-100.text-yellow-100.bg-yellow-100
yellow-200.text-yellow-200.bg-yellow-200
yellow-300.text-yellow-300.bg-yellow-300
  • Reds
Color valueFont color utilityBackground color utility
red-000.text-red-000.bg-red-000
red-100.text-red-100.bg-red-100
red-200.text-red-200.bg-red-200
red-300.text-red-300.bg-red-300

Typography

  • Font size

아래처럼 1부터 10까지 쓸수는 있는데 2-6사이가 제일 많이 쓰임

ClassSmall screen size font-sizeLarge screen size font-size
.fs-19px10px
.fs-211px12px
.fs-312px14px
.fs-414px16px
.fs-516px18px
.fs-618px24px
.fs-724px32px
.fs-832px38px
.fs-938px42px
.fs-1042px48px
  • Font weight

300~500 다같음

Font weight 300

Font weight 400

Font weight 500

Font weight 700

In Markdown, use the `{: }` wrapper to apply custom classes:

Font weight 300
{: .fw-300 }
Font weight 400
{: .fw-400 }
Font weight 500
{: .fw-500 }
Font weight 700
{: .fw-700 }
  • Line height
Classline-height valueNotes
.lh-00 
.lh-tight1.1Default for headings
.lh-default1.4Default for body (paragraphs)

네비게이션은 2차 자손까지 만들 수 있음, 순서는 nav_order에서 작성

Excluding pages

네비게이션에 포함되는걸 원치 않는 페이지(나만보는)

Example

---
layout: default
title: 404
nav_exclude: true
---

Pages with children

  • 부모 YAML
---
layout: default
title: UI Components
nav_order: 2
has_children: true
---
  • 자식 YAML
---
layout: default
title: Buttons
parent: UI Components
nav_order: 2
---

! 부모페이지에서 자동으로 자식 페이지를 table로 설정하는데 원하지 않을경우

---
layout: default
title: UI Components
nav_order: 2
has_children: true
has_toc: false
---

Children with children

자식이 자손을 가질경우 (투뎁스)

  • 부모 YAML
---
layout: default
title: Buttons
parent: UI Components
nav_order: 2
has_children: true
---
  • 자식 YAML
---
layout: default
title: Buttons Child Page
parent: Buttons
grand_parent: UI Components
nav_order: 1
---

In-page navigation with Table of Contents

: 목차범위 재설정

ol 다음 {:toc} 을 작성하면 테이블이 자동으로 작성됨, 테이블에 나타나고싶지 않은 헤딩은 {:no_toc}을 사용


Customization

변경은 대부분 _sass/custom/custom.scss 에서 하기. 삭제하지 않고 수정만!

_sass/support/variables.scss파일은 건들지 마세요

_sass/overrides.scss.파일에 클래스를 직접 지정해서 넣을 수 있음


객체지향 검색 인터페이스를 JSON으로 사용

검색되지 않길 원하는 페이지

---
layout: default
title: Page not found
nav_exclude: true
search_exclude: true
---

이 웹사이트는 jekyll로 제작되었습니다. Patrick Marsceill, Distributed by an MIT license.