-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update homepage subtitle and disable API integration
- Loading branch information
1 parent
1b8da8a
commit fa18234
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hexo.extend.injector.register('head_begin', '<link rel="stylesheet" href="/css/avatar.css">', 'default'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
from https://github.com/Musicminion/blog | ||
*/ | ||
|
||
.avatar:hover { | ||
transform: rotate(360deg); | ||
/* 鼠标悬停时旋转 */ | ||
} | ||
|
||
/* 针对宽屏设备(桌面显示器)的样式 */ | ||
@media screen and (min-width: 1024px) { | ||
.avatar { | ||
width: 210px; | ||
height: 210px; | ||
border-radius: 50%; | ||
transition: transform 1s; /* 添加过渡效果 */ | ||
border: 5px solid #ddd; /* 添加边框 */ | ||
margin: 20px 0 75px 0; | ||
} | ||
} | ||
|
||
/* 针对平板设备的样式 */ | ||
@media screen and (min-width: 768px) and (max-width: 1023px) { | ||
.avatar { | ||
width: 190px; | ||
height: 190px; | ||
border-radius: 50%; | ||
transition: transform 1s; /* 添加过渡效果 */ | ||
border: 4px solid #ddd; /* 添加边框 */ | ||
/* 添加 bottom 的 margin 值,使其与下面的文字对齐 */ | ||
margin: 20px 0 80px 0; | ||
} | ||
} | ||
|
||
/* 针对手机设备的样式 */ | ||
@media screen and (max-width: 767px) { | ||
.avatar { | ||
width: 160px; | ||
height: 160px; | ||
border-radius: 50%; | ||
transition: transform 1s; /* 添加过渡效果 */ | ||
border: 3px solid #ddd; /* 添加边框 */ | ||
/* 添加 bottom 的 margin 值,使其与下面的文字对齐 */ | ||
margin: 60px 0 25px 0; | ||
} | ||
} |