Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
website
提交
550331e7
W
website
项目概览
openeuler
/
website
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
website
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
550331e7
编写于
9月 11, 2019
作者:
E
edisonxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add docs mobile style
上级
ec49b854
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
87 addition
and
17 deletion
+87
-17
i18n/en.toml
i18n/en.toml
+4
-1
i18n/zh.toml
i18n/zh.toml
+3
-0
themes/project/layouts/docs/baseof.html
themes/project/layouts/docs/baseof.html
+18
-14
themes/project/layouts/partials/scripts.html
themes/project/layouts/partials/scripts.html
+18
-0
themes/project/static/css/custom.css
themes/project/static/css/custom.css
+4
-0
themes/project/static/css/custommobile.css
themes/project/static/css/custommobile.css
+40
-2
未找到文件。
i18n/en.toml
浏览文件 @
550331e7
...
...
@@ -36,4 +36,7 @@ other = "News"
[404_title]
other
=
"Page Not Found"
[404_homepage]
other
=
"Go to Homepage"
\ No newline at end of file
other
=
"Go to Homepage"
[docs_nav_menu_name]
other
=
"MENU"
\ No newline at end of file
i18n/zh.toml
浏览文件 @
550331e7
...
...
@@ -37,3 +37,6 @@ other = "新闻"
other
=
"没有找到页面"
[404_homepage]
other
=
"返回主页"
[docs_nav_menu_name]
other
=
"目录"
\ No newline at end of file
themes/project/layouts/docs/baseof.html
浏览文件 @
550331e7
<!DOCTYPE html>
<html
lang=
"{{ .Site.Language.Lang }}"
>
{{ partial "head.html" . }}
{{ partial "docs/html-head" . }}
{{ partial "docs/inject/head" . }}
{{ partial "head.html" . }}
{{ partial "docs/html-head" . }}
{{ partial "docs/inject/head" . }}
<body>
<div
id=
"all"
>
...
...
@@ -18,20 +19,23 @@
<div
id=
"content"
>
<div
class=
"container"
>
<input
type=
"checkbox"
style=
"display: none"
id=
"menu-control"
/>
<div
class=
"slide_nav"
id=
"slideNav"
>
<img
src=
"/svg/menu.svg"
alt=
"Menu"
><p>
{{ i18n "docs_nav_menu_name" }}
</p>
</div>
<main
class=
"flex container"
>
<aside
class=
"book-menu fixed
"
>
{{ partial "docs/menu" . }}
</aside>
<aside
class=
"book-menu fixed"
id=
"menu
"
>
{{ partial "docs/menu" . }}
</aside>
<div
class=
"book-
page"
>
{{ partial "docs/mobile-header" . }}
{{ template "main" . }}
{{ partial "docs/git-footer" . }}
{{ partial "docs/inject/footer" . }}
</div>
<div
class=
"book-page"
id=
"
page"
>
<!-- {{ partial "docs/mobile-header" . }} -->
{{ template "main" . }}
{{ partial "docs/git-footer" . }}
{{ partial "docs/inject/footer" . }}
</div>
{{ template "toc" . }}
{{ template "toc" . }}
</main>
{{ partial "docs/inject/body" . }}
...
...
@@ -42,4 +46,4 @@
{{ partial "scripts.html" . }}
</body>
</html>
</html>
\ No newline at end of file
themes/project/layouts/partials/scripts.html
浏览文件 @
550331e7
...
...
@@ -31,5 +31,23 @@
location
.
href
=
data
.
node
.
a_attr
.
href
;
});
}
function
showNav
()
{
$
(
'
#menu
'
).
css
({
"
transform
"
:
"
translateX(0)
"
}).
attr
(
"
onoff
"
,
"
on
"
);
}
function
hideNav
()
{
$
(
'
#menu
'
).
css
({
"
transform
"
:
"
translateX(-100%)
"
}).
attr
(
"
onoff
"
,
"
off
"
);
}
$
(
"
#slideNav
"
).
bind
(
'
click
'
,
function
(){
if
(
$
(
'
#menu
'
).
attr
(
"
onoff
"
)
==
"
on
"
)
{
hideNav
();
}
else
{
showNav
();
}
})
});
</script>
\ No newline at end of file
themes/project/static/css/custom.css
浏览文件 @
550331e7
...
...
@@ -513,6 +513,10 @@ footer .notice span {
display
:
none
;
}
#slideNav
{
display
:
none
;
}
html
,
body
{
position
:
relative
;
...
...
themes/project/static/css/custommobile.css
浏览文件 @
550331e7
...
...
@@ -66,13 +66,13 @@
}
header
#nav
{
position
:
absolute
;
top
:
5
3
px
;
top
:
5
1
px
;
left
:
0
;
width
:
100%
;
display
:
none
;
background
:
#fff
;
color
:
#333
;
z-index
:
100
;
z-index
:
100
0
;
padding
:
0
.3rem
;
box-shadow
:
0
5px
10px
0
#D3D3D3
;
}
...
...
@@ -176,6 +176,44 @@
.bannernew
.cards
ul
li
img
{
height
:
30px
;
}
/* doc_nav */
#heading-breadcrumbs
{
margin-bottom
:
20px
;
}
.container
{
position
:
relative
;
padding
:
0
;
}
.slide_nav
{
display
:
flex
!important
;
align-items
:
center
;
padding
:
10px
15px
5px
;
margin-bottom
:
20px
;
border-bottom
:
1px
solid
#b5b5b5
;
}
.slide_nav
p
{
margin
:
0
;
}
.book-menu
{
position
:
absolute
;
width
:
100%
;
z-index
:
100
;
background
:
#fff
;
top
:
0
;
left
:
0
;
padding
:
0
15px
;
transition
:
.3s
;
transform
:
translateX
(
-100%
);
}
.container
div
.book-page
{
margin-left
:
0
;
padding
:
0
15px
;
}
.reason
{
padding
:
6.7rem
.6rem
.6rem
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录