Skip to content

Commit

Permalink
Merge pull request #153 from dillonzq/develop
Browse files Browse the repository at this point in the history
Release v0.1.3
  • Loading branch information
dillonzq authored Mar 14, 2020
2 parents ff4d2f2 + ca13e7d commit 9928d46
Show file tree
Hide file tree
Showing 54 changed files with 499 additions and 325 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ It is based on the original [LeaveIt Theme](https://github.com/liuzc/LeaveIt/) a
Since the three themes have a similar look, if you have questions about their differences,
read [Why choose LoveIt](#why-choose-loveit) so that you can choose the one that works best for you.

![Hugo Theme LoveIt](images/Apple-Devices-Preview.png)
![Hugo Theme LoveIt](https://github.com/dillonzq/LoveIt/raw/develop/images/Apple-Devices-Preview.png)

## [Demo Site](https://hugoloveit.com/)

Expand Down
2 changes: 1 addition & 1 deletion README.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

由于三个主题外观的相似性,如果你对于它们的不同之处有疑问,请阅读 [为什么选择 LoveIt](#为什么选择-LoveIt),以便你能选择最适合你的一个。

![Hugo 主题 LoveIt](images/Apple-Devices-Preview.png)
![Hugo 主题 LoveIt](https://github.com/dillonzq/LoveIt/raw/develop/images/Apple-Devices-Preview.png)

## 主题[预览](https://hugoloveit.com/zh-cn/)

Expand Down
50 changes: 4 additions & 46 deletions assets/css/_core/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,9 @@ body {
}
}

b, strong {
font-weight: bold;
}

a {
color: $global-link-color;
text-decoration: none;
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;

&:hover {
color: $global-link-hover-color;
Expand All @@ -82,47 +77,10 @@ a {

b, strong {
font-weight: bold;
}

#dynamic-to-top {
display: none;
overflow: hidden;
width: auto;
z-index: 90;
position: fixed;
bottom: 2rem;
right: 2rem;
top: auto;
left: auto;
font-family: sans-serif;
font-size: 1rem;
color: #fff;
text-decoration: none;
font-weight: bold;
padding: 1rem 1rem;
border: 1px solid $global-border-color;
background: #222;
outline: none;
&:hover {
background: #000;
cursor: pointer;
}
&:active {
background: #000;
outline: none;
}
&:focus, &:hover {
outline: none;
}
span {
display: block;
overflow: hidden;
width: .875rem;
height: .75rem;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAKCAYAAACE2W/HAAAACXBIWXMAAArwAAAK8AFCrDSYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTC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VZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAKVJREFUeNqUz7ENgzAURdErUSXQMgdTZJFIqeg8DFI2YQeEvAEbUJja3y9NEiwCUXIlN/62jww7Saok3Z+r4pckXSRNWpskXb5deClHfeo7ylGrLqnbTmOMs/e+9d63McZ554GOlFLId0IIvXOuAUqgdM41IYQ+P5NSCpjZkitADRTZTwqgznUzWzCzZaMc9dbNbGEYhuuOclQB1OM43gBO/N/5MQAeMwpyB1MtLQAAAABJRU5ErkJggg==') no-repeat center center;
}

.dark-theme &{
border: 1px solid $global-border-color-dark;
.dark-theme & {
color: #ddd;
}
}

@import "../_partial/dynamic-to-top";
4 changes: 2 additions & 2 deletions assets/css/_core/_media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@media only screen and (max-width: 960px) {
#header-desktop {
.header-wrapper {
margin: 0 1rem;
padding: 0 1rem;
}
}

Expand All @@ -48,7 +48,7 @@
}
}

@media only screen and (max-width: 720px) {
@media only screen and (max-width: 680px) {
#header-desktop {
display: none;
}
Expand Down
43 changes: 10 additions & 33 deletions assets/css/_page/_single.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/** Single **/
.single {
.single-title {
margin: 0;
font-size: 1.8rem;
line-height: 3rem;
margin: 0.8rem 0;
font-size: 1.6rem;
line-height: 140%;
}

.post-meta {
Expand All @@ -22,14 +22,14 @@
color: $single-link-color;

.dark-theme & {
color: $single-link-color-dark;
color: $global-link-color-dark;
}

&:hover {
color: $single-link-hover-color;

.dark-theme & {
color: $single-link-hover-color-dark;
color: $global-link-hover-color-dark;
}
}
}
Expand Down Expand Up @@ -101,7 +101,6 @@

.dark-theme &:hover {
color: $single-link-hover-color-dark;
font-weight: bold;
}
}

Expand Down Expand Up @@ -143,6 +142,7 @@
margin: .625rem 0;
border-spacing: 0;
background: $table-background-color;
border-collapse: collapse;

.dark-theme & {
background: $table-background-color-dark;
Expand Down Expand Up @@ -179,12 +179,10 @@
min-width: 20%;
max-width: 80%;
display: inline-block;
padding: .625rem;
padding: .5rem;
margin: 0 auto;
border-bottom: 1px solid #d9d9d9;
font-size: .875rem;
color: #969696;
line-height: 1.7;
}

img {
Expand Down Expand Up @@ -252,31 +250,10 @@
}

@import "../_partial/_single/code";
@import "../_partial/_single/instagram";
@import "../_partial/_single/admonition";

.echarts {
width: 100%;
height: 30rem;
margin: 3% auto;
text-align: center;
}

.bilibili {
position: relative;
width: 100%;
height: 0;
padding-bottom: 75%;
margin: 3% auto;
text-align: center;

iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
}
}
@import "../_partial/_single/echarts";
@import "../_partial/_single/bilibili";

hr {
margin: 1rem 0;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/_partial/_archive/_tags.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
&:focus,
&:hover {
color: $global-link-hover-color;
transform: scale(1.1);
transform: scale(1.2);

.dark-theme & {
color: $global-link-hover-color-dark;
Expand Down
39 changes: 39 additions & 0 deletions assets/css/_partial/_dynamic-to-top.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#dynamic-to-top {
display: none;
overflow: hidden;
width: auto;
z-index: 100;
position: fixed;
bottom: 2rem;
right: 2rem;
top: auto;
left: auto;
font-size: 1.4rem;
line-height: 1.8rem;
padding: .6rem .6rem;
color: $global-font-secondary-color;
background: $header-background-color;
border: 1px solid $global-border-color;
border-radius: 2rem;

&:hover, &:active {
color: $global-font-color;
background: $global-background-color;
cursor: pointer;
}

&:active, &:focus, &:hover {
outline: none;
}

.dark-theme & {
color: $global-font-secondary-color-dark;
background: $header-background-color-dark;
border-color: $global-border-color-dark;

&:hover, &:active {
color: $global-font-color-dark;
background: $global-background-color-dark;
}
}
}
49 changes: 19 additions & 30 deletions assets/css/_partial/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,21 @@ header {
}

.header-title {
font-size: 1.5rem;
font-weight: bold;
}

.language-select {
font-weight: $global-font-weight;
border: none;
box-shadow: none;
background: transparent;
background-image: none;
-webkit-appearance: none;
color: $global-font-color;

.dark-theme & {
color: $global-font-color-dark;
}
.menu .menu-item {
position: relative;
}

&:focus {
outline: none;
}
.language-select {
position: absolute;
opacity: 0;
left: 0;
top: 0;
width: 100%;
height: 100%;

&:hover {
cursor: pointer;
Expand All @@ -47,23 +43,20 @@ header {
.header-wrapper {
width: auto;
text-align: center;
margin: 0 4rem;
padding: 0 3rem;
display: flex;
justify-content: space-between;

.header-title a {
padding: 0 8px;
font-size: 1.25rem;
.menu {
.menu-item {
margin: 0 .5rem;

i {
line-height: 2rem;
&.theme-switch {
margin: 0 .3rem;
}
}
}

.menu a {
padding: 0 8px;

&.active {
a.active {
font-weight: 900;
color: $header-hover-color;

Expand Down Expand Up @@ -96,10 +89,6 @@ header {
padding-left: 1rem;
box-sizing: border-box;

.header-title {
font-size: 1.25rem;
}

.menu-toggle {
cursor: pointer;
line-height: 4rem;
Expand Down
Loading

0 comments on commit 9928d46

Please sign in to comment.