Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat(style): add some custom styles
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Mar 3, 2020
1 parent 8a48fba commit c7e389c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
10 changes: 7 additions & 3 deletions assets/css/_core/_base.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
html {
font-family: $global-font-family;
font-size: 16px;
font-size: $global-font-size;
font-weight: $global-font-weight;
line-height: $global-line-height;
width:100%;
}

Expand All @@ -27,8 +29,6 @@ html {
}

body {
font-weight: 400;
line-height: 1.5rem;
background-color: $global-background-color;
color: $global-font-color;
overflow-wrap: break-word;
Expand Down Expand Up @@ -76,6 +76,10 @@ a {
}
}

b, strong {
font-weight: bold;
}

#dynamic-to-top {
display: none;
overflow: hidden;
Expand Down
4 changes: 4 additions & 0 deletions assets/css/_partial/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ header {
.dark-theme & {
background-color: $header-background-color-dark;
}

.header-title {
font-weight: bold;
}
}

#header-desktop {
Expand Down
5 changes: 4 additions & 1 deletion assets/css/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
// ==============================

// ========== Global ========== //
// Font family
// Font and Line Height
$global-font-family: -apple-system, BlinkMacSystemFont, PingFang SC, Microsoft Yahei, Segoe UI, Helvetica, Arial, sans-serif, Segoe UI Emoji !default;
$global-font-size: 16px;
$global-font-weight: 300;
$global-line-height: 1.5rem;

// Color of the background
$global-background-color: #fff !default;
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{- end -}}

{{- /* Posts */ -}}
{{- if .Site.Params.home.posts.enable -}}
{{- if ne .Site.Params.home.posts.enable false -}}
{{- /* Paginate */ -}}
{{- $paginator := where .Site.RegularPages "Type" "posts" -}}
{{- if ne .Site.Params.home.posts.mode.defaultHiddenFromHomePage false -}}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Target":"css/style.min.22797a679118d2eb3f376ecb55adbba6052c813ae165d44e004bbf861d5a1ed1.css","MediaType":"text/css","Data":{"Integrity":"sha256-Inl6Z5EY0us/N27LVa27pgUsgTrhZdROAEu/hh1aHtE="}}
{"Target":"css/style.min.8d8ebcf734d4e8e32cab589f8df6e5bad5775d4d25d0cf2b66c6c5476831f18d.css","MediaType":"text/css","Data":{"Integrity":"sha256-jY689zTU6OMsq1ifjfblutV3XU0l0M8rZsbFR2gx8Y0="}}

0 comments on commit c7e389c

Please sign in to comment.