Skip to content
代码片段 群组 项目
未验证 提交 12a68c36 编辑于 作者: Natalia Tepluhina's avatar Natalia Tepluhina 提交者: GitLab
浏览文件

Merge branch '26118-482771-clavimoniere-markdown-footnotes' into 'master'

No related branches found
No related tags found
无相关合并请求
......@@ -183,8 +183,9 @@ export default {
},
renderSortableLists() {
// We exclude GLFM table of contents which have a `section-nav` class on the root `ul`.
// We also exclude footnotes, which are in an `ol` inside a `section.footnotes`.
const lists = this.$el.querySelectorAll?.(
'.description .md > ul:not(.section-nav), .description .md > ul:not(.section-nav) ul, .description ol',
'.description .md > ul:not(.section-nav), .description .md > ul:not(.section-nav) ul, .description :not(section.footnotes) > ol',
);
lists?.forEach((list) => {
if (list.children.length <= 1) {
......
......@@ -861,3 +861,31 @@ wbr {
:root {
--code-editor-font: #{$monospace-font};
}
/**
* FOOTNOTES
*/
section.footnotes {
position: relative;
padding-top: $gl-spacing-scale-5;
margin-top: $gl-spacing-scale-7;
font-size: $gl-font-size-12;
&::before {
content: '';
width: 16rem;
max-width: 100%;
border-top: 1px solid $border-color;
position: absolute;
top: 0;
left: 0;
}
ol > li {
margin-inline-start: $gl-spacing-scale-6;
p {
margin-block-end: 0;
}
}
}
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册