Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
c7312fba
R
Rust
项目概览
int
/
Rust
11 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c7312fba
编写于
5月 30, 2018
作者:
G
Guillaume Gomez
2
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes some style issues in rustdoc "implementations on Foreign types"
上级
3fd82a5e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
33 addition
and
8 deletion
+33
-8
src/librustdoc/html/static/main.js
src/librustdoc/html/static/main.js
+8
-2
src/librustdoc/html/static/rustdoc.css
src/librustdoc/html/static/rustdoc.css
+21
-2
src/librustdoc/html/static/themes/dark.css
src/librustdoc/html/static/themes/dark.css
+2
-2
src/librustdoc/html/static/themes/light.css
src/librustdoc/html/static/themes/light.css
+2
-2
未找到文件。
src/librustdoc/html/static/main.js
浏览文件 @
c7312fba
...
...
@@ -1979,7 +1979,7 @@
onEach
(
e
.
getElementsByClassName
(
'
associatedconstant
'
),
func
);
});
function
createToggle
(
otherMessage
)
{
function
createToggle
(
otherMessage
,
extraClass
)
{
var
span
=
document
.
createElement
(
'
span
'
);
span
.
className
=
'
toggle-label
'
;
span
.
style
.
display
=
'
none
'
;
...
...
@@ -1995,6 +1995,9 @@
var
wrapper
=
document
.
createElement
(
'
div
'
);
wrapper
.
className
=
'
toggle-wrapper
'
;
if
(
extraClass
)
{
wrapper
.
className
+=
'
'
+
extraClass
;
}
wrapper
.
appendChild
(
mainToggle
);
return
wrapper
;
}
...
...
@@ -2023,10 +2026,13 @@
}
if
(
e
.
parentNode
.
id
===
"
main
"
)
{
var
otherMessage
;
var
extraClass
;
if
(
hasClass
(
e
,
"
type-decl
"
))
{
otherMessage
=
'
Show declaration
'
;
}
else
if
(
hasClass
(
e
.
childNodes
[
0
],
"
impl-items
"
))
{
extraClass
=
"
marg-left
"
;
}
e
.
parentNode
.
insertBefore
(
createToggle
(
otherMessage
),
e
);
e
.
parentNode
.
insertBefore
(
createToggle
(
otherMessage
,
extraClass
),
e
);
if
(
otherMessage
&&
getCurrentValue
(
'
rustdoc-item-declarations
'
)
!==
"
false
"
)
{
collapseDocs
(
e
.
previousSibling
.
childNodes
[
0
],
"
toggle
"
);
}
...
...
src/librustdoc/html/static/rustdoc.css
浏览文件 @
c7312fba
...
...
@@ -474,11 +474,30 @@ h4 > code, h3 > code, .invisible > code {
margin-bottom
:
15px
;
}
.content
.impl-items
.method
,
.content
.impl-items
>
.type
,
.impl-items
>
.associatedconstant
{
margin-left
:
20px
;
}
.content
.impl-items
.docblock
,
.content
.impl-items
.stability
{
margin-bottom
:
.6em
;
}
.content
.
impl-items
.method
,
.content
.impl-items
>
.type
,
.impl-items
>
.associatedconstant
{
.content
.
docblock
>
.impl-items
{
margin-left
:
20px
;
margin-top
:
-34px
;
}
.content
.docblock
>
.impl-items
>
h4
{
border-bottom
:
0
;
}
.content
.docblock
>
.impl-items
.table-display
{
margin
:
0
;
}
.content
.docblock
>
.impl-items
table
td
{
padding
:
0
;
}
.toggle-wrapper.marg-left
>
.collapse-toggle
{
left
:
-24px
;
}
.content
.docblock
>
.impl-items
.table-display
,
.impl-items
table
td
{
border
:
none
;
}
.content
.stability
code
{
...
...
@@ -542,7 +561,7 @@ a {
content
:
'\2002\00a7\2002'
;
}
.docblock
a
:
hover
,
.docblock-short
a
:hover
,
.stability
a
{
.docblock
a
:
not
(
.srclink
)
:hover
,
.docblock-short
a
:not
(
.srclink
)
:hover
,
.stability
a
{
text-decoration
:
underline
;
}
...
...
src/librustdoc/html/static/themes/dark.css
浏览文件 @
c7312fba
...
...
@@ -33,7 +33,7 @@ h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.t
background
:
rgba
(
0
,
0
,
0
,
0
);
}
.docblock
code
,
.docblock-short
code
{
.docblock
p
>
code
,
.docblock-short
p
>
code
{
background-color
:
#2A2A2A
;
}
pre
{
...
...
@@ -163,7 +163,7 @@ a {
color
:
#ddd
;
}
.docblock
a
,
.docblock-short
a
,
.stability
a
{
.docblock
a
:not
(
.srclink
),
.docblock-short
a
:not
(
.srclink
)
,
.stability
a
{
color
:
#D2991D
;
}
...
...
src/librustdoc/html/static/themes/light.css
浏览文件 @
c7312fba
...
...
@@ -35,7 +35,7 @@ h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.t
background
:
rgba
(
0
,
0
,
0
,
0
);
}
.docblock
code
,
.docblock-short
code
{
.docblock
p
>
code
,
.docblock-short
p
>
code
{
background-color
:
#F5F5F5
;
}
pre
{
...
...
@@ -163,7 +163,7 @@ a {
color
:
#000
;
}
.docblock
a
,
.docblock-short
a
,
.stability
a
{
.docblock
a
:not
(
.srclink
),
.docblock-short
a
:not
(
.srclink
)
,
.stability
a
{
color
:
#3873AD
;
}
...
...
yitter
@yitter
mentioned in commit
28b26b7a
·
10月 08, 2022
mentioned in commit
28b26b7a
mentioned in commit 28b26b7aa6668162bb443d712da8c2bc7b223df2
开关提交列表
yitter
@yitter
mentioned in commit
d6c05fb9
·
10月 08, 2022
mentioned in commit
d6c05fb9
mentioned in commit d6c05fb9f170b9a8e2dce52e13ac57eac4cd51ea
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录