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

Commit

Permalink
feat(style): improve style for header and image
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Mar 9, 2020
1 parent 9b4f4df commit 26727fd
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 14 deletions.
7 changes: 1 addition & 6 deletions assets/css/_page/_single.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
}

img {
max-width: 96%;
max-width: 100%;
min-height: 1.2rem;
}

Expand All @@ -192,11 +192,6 @@
height: auto;
margin: 0 auto;
overflow: hidden;
transition: all 0.2s ease-in-out;
}

a.lightgallery:hover img {
transform: scale(1.02);
}
}

Expand Down
6 changes: 5 additions & 1 deletion assets/css/_partial/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ header {
font-weight: bold;
}

.select-language {
.language-select {
font-weight: $global-font-weight;
border: none;
box-shadow: none;
Expand All @@ -32,6 +32,10 @@ header {
cursor: pointer;
}
}

.theme-switch i {
transform: rotate(225deg);
}
}

#header-desktop {
Expand Down
3 changes: 3 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ other = "More"
# === Pagination ===

# === partials/header.html ===
[selectLanguage]
other = "Select Language"

[switchTheme]
other = "Switch Theme"
# === partials/header.html ===
Expand Down
3 changes: 3 additions & 0 deletions i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ other = "Plus"
# === Pagination ===

# === partials/header.html ===
[selectLanguage]
other = "Choisir la langue"

[switchTheme]
other = "Changer de Thème"
# === partials/header.html ===
Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-CN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ other = "更多"
# === Pagination ===

# === partials/header.html ===
[selectLanguage]
other = "选择语言"

[switchTheme]
other = "切换主题"
# === partials/header.html ===
Expand Down
12 changes: 6 additions & 6 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
{{- end -}}
{{- if .Site.IsMultiLingual -}}
 | 
<a href="javascript:void(0);" class="menu-item">
<a href="javascript:void(0);" class="menu-item" title="{{ T "selectLanguage" }}">
<i class="fas fa-language fa-fw"></i>&nbsp;
<select class="select-language" onchange="location = this.value;">
<select class="language-select" onchange="location = this.value;">
{{- range .Page.AllTranslations -}}
{{- $translation := . -}}
{{- range $.Site.Languages -}}
Expand All @@ -33,7 +33,7 @@
</a>
{{- end -}}
<a href="javascript:void(0);" class="theme-switch" title="{{ T "switchTheme" }}">
<i class="fas fa-adjust fa-rotate-180 fa-fw"></i>
<i class="fas fa-adjust fa-fw "></i>
</a>
</div>
</div>
Expand All @@ -60,9 +60,9 @@
</a>
{{- end -}}
{{- if .Site.IsMultiLingual -}}
<a href="javascript:void(0);" class="menu-item">
<a href="javascript:void(0);" class="menu-item" title="{{ T "selectLanguage" }}">
<i class="fas fa-language fa-fw"></i>&nbsp;
<select class="select-language" onchange="location = this.value;">
<select class="language-select" onchange="location = this.value;">
{{- range .Page.AllTranslations -}}
{{- $translation := . -}}
{{- range $.Site.Languages -}}
Expand All @@ -79,7 +79,7 @@
</a>
{{- end -}}
<a href="javascript:void(0);" class="theme-switch" title="{{ T "switchTheme" }}">
<i class="fas fa-adjust fa-rotate-180 fa-fw"></i>
<i class="fas fa-adjust fa-fw"></i>
</a>
</div>
</div>
Expand Down

Large diffs are not rendered by default.

0 comments on commit 26727fd

Please sign in to comment.