未验证 提交 426e2459 编写于 作者: D Dillon 提交者: GitHub

Merge pull request #127 from dillonzq/feature/improve_style

feat(style): improve style for header and image
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
} }
img { img {
max-width: 96%; max-width: 100%;
min-height: 1.2rem; min-height: 1.2rem;
} }
...@@ -192,11 +192,6 @@ ...@@ -192,11 +192,6 @@
height: auto; height: auto;
margin: 0 auto; margin: 0 auto;
overflow: hidden; overflow: hidden;
transition: all 0.2s ease-in-out;
}
a.lightgallery:hover img {
transform: scale(1.02);
} }
} }
......
...@@ -11,7 +11,7 @@ header { ...@@ -11,7 +11,7 @@ header {
font-weight: bold; font-weight: bold;
} }
.select-language { .language-select {
font-weight: $global-font-weight; font-weight: $global-font-weight;
border: none; border: none;
box-shadow: none; box-shadow: none;
...@@ -32,6 +32,10 @@ header { ...@@ -32,6 +32,10 @@ header {
cursor: pointer; cursor: pointer;
} }
} }
.theme-switch i {
transform: rotate(225deg);
}
} }
#header-desktop { #header-desktop {
......
...@@ -29,6 +29,9 @@ other = "More" ...@@ -29,6 +29,9 @@ other = "More"
# === Pagination === # === Pagination ===
# === partials/header.html === # === partials/header.html ===
[selectLanguage]
other = "Select Language"
[switchTheme] [switchTheme]
other = "Switch Theme" other = "Switch Theme"
# === partials/header.html === # === partials/header.html ===
......
...@@ -29,6 +29,9 @@ other = "Plus" ...@@ -29,6 +29,9 @@ other = "Plus"
# === Pagination === # === Pagination ===
# === partials/header.html === # === partials/header.html ===
[selectLanguage]
other = "Choisir la langue"
[switchTheme] [switchTheme]
other = "Changer de Thème" other = "Changer de Thème"
# === partials/header.html === # === partials/header.html ===
......
...@@ -29,6 +29,9 @@ other = "更多" ...@@ -29,6 +29,9 @@ other = "更多"
# === Pagination === # === Pagination ===
# === partials/header.html === # === partials/header.html ===
[selectLanguage]
other = "选择语言"
[switchTheme] [switchTheme]
other = "切换主题" other = "切换主题"
# === partials/header.html === # === partials/header.html ===
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
{{- end -}} {{- end -}}
{{- if .Site.IsMultiLingual -}} {{- 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; <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 -}} {{- range .Page.AllTranslations -}}
{{- $translation := . -}} {{- $translation := . -}}
{{- range $.Site.Languages -}} {{- range $.Site.Languages -}}
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</a> </a>
{{- end -}} {{- end -}}
<a href="javascript:void(0);" class="theme-switch" title="{{ T "switchTheme" }}"> <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> </a>
</div> </div>
</div> </div>
...@@ -60,9 +60,9 @@ ...@@ -60,9 +60,9 @@
</a> </a>
{{- end -}} {{- end -}}
{{- if .Site.IsMultiLingual -}} {{- 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; <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 -}} {{- range .Page.AllTranslations -}}
{{- $translation := . -}} {{- $translation := . -}}
{{- range $.Site.Languages -}} {{- range $.Site.Languages -}}
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</a> </a>
{{- end -}} {{- end -}}
<a href="javascript:void(0);" class="theme-switch" title="{{ T "switchTheme" }}"> <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> </a>
</div> </div>
</div> </div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册