Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
41d32a6b
Y
yanglr2010
项目概览
大白技术控
/
yanglr2010
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yanglr2010
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
41d32a6b
编写于
7月 12, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: Change & add responsive style of algolia
上级
a10d190a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
32 addition
and
34 deletion
+32
-34
README.md
README.md
+5
-5
README_en_US.md
README_en_US.md
+6
-6
source/css/_common/responsive.styl
source/css/_common/responsive.styl
+11
-0
source/css/_components/search/algolia.styl
source/css/_components/search/algolia.styl
+10
-23
未找到文件。
README.md
浏览文件 @
41d32a6b
...
...
@@ -34,15 +34,15 @@
进入 hexo 根目录,执行指令。
```
bash
git clone https://github.com/liuyib/hexo-theme-stun.git themes/stun
$
git clone https://github.com/liuyib/hexo-theme-stun.git themes/stun
```
-
安装 pug 和 stylus
如果你没有安装对 pug、stylus 的支持,执行指令(如果你不确定,直接执行指令就好了)
。
主题依赖于 pug 和 stylus,请执行指令
。
```
bash
npm
install
--save-dev
hexo-render-pug hexo-renderer-stylus
$
npm
install
--save-dev
hexo-render-pug hexo-renderer-stylus
```
## 使用
...
...
@@ -56,9 +56,9 @@ theme: stun
## 更新
```
bash
cd
themes/stun
$
cd
themes/stun
git pull
$
git pull
```
## 配置
...
...
README_en_US.md
浏览文件 @
41d32a6b
...
...
@@ -32,15 +32,15 @@ If you are using the stun theme and would like it to be shown here, you can fill
Enter your hexo directory, run this.
```
bash
git clone https://github.com/liuyib/hexo-theme-stun.git themes/stun
$
git clone https://github.com/liuyib/hexo-theme-stun.git themes/stun
```
-
Install
pug and stylus
-
Install
`pug`
and
`stylus`
If you don't have pug and stylus renderer, run this (If you
`re not sure, just do it)
.
The theme depends on
`pug`
and
`stylus`
, please run this
.
```
bash
npm install --save-dev hexo-render-pug hexo-renderer-stylus
$
npm
install
--save-dev
hexo-render-pug hexo-renderer-stylus
```
## How to use
...
...
@@ -54,9 +54,9 @@ theme: stun
## Update
```
bash
cd themes/stun
$
cd
themes/stun
git pull
$
git pull
```
## Configuration
...
...
source/css/_common/responsive.styl
浏览文件 @
41d32a6b
...
...
@@ -109,6 +109,11 @@
.site-info-subtitle
font-size: 1.5rem
div.algolia-popup
left: 0
margin: 0 1rem
width: calc(100% - 2rem)
// $xs-width: 576px
// -----------------------------------------
...
...
@@ -130,6 +135,12 @@
.header-nav-search
span
display: none
div.algolia-results
max-height: 10rem
.algolia-hit-item
margin: 0
.main-content
padding: 1rem
...
...
source/css/_components/search/algolia.styl
浏览文件 @
41d32a6b
...
...
@@ -18,16 +18,14 @@
border-radius: 5px
padding: 1rem
width: 700px
height: 80%
max-
height: 80%
font-size: $font-size-large
color: $font-color
background-color: $white-light
column-height = 2rem
.algolia-input-wrapper
display: flex
height: column-height * 2
margin: 1rem 0
flex-direction: column
.ais-search-box
...
...
@@ -55,31 +53,16 @@ column-height = 2rem
color: $black-light
cursor: pointer
if (hexo-config('algolia_search.labels.show_stats'))
$algolia-results
height: calc(100% - 8rem)
else
$algolia-results
height: calc(100% - 6rem)
.algolia-results
display: flex
overflow-x: hidden
overflow-y: auto
flex-direction: column
@extend $algolia-results
overflow-y: scroll
max-height: 16rem
em
font-style: normal
background-color: $yellow-light
#algolia-hits,
.ais-hits
flex: 1 0 auto
.algolia-hit-item
margin: .3rem 0
&::before
content: ''
display: inline-block
...
...
@@ -92,10 +75,11 @@ else
transition: color .2s
#algolia-pagination
margin
-bottom: .5rem
margin
: .5rem 0
ul
margin: 0
padding: 0
text-align: center
.ais-pagination
...
...
@@ -115,6 +99,9 @@ else
color: #fff
background-color: $blue-light
#algolia-stats
overflow: hidden
.algolia-logo
img
width: 4rem
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录