1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/components/ui/MarkdownContent/MarkdownContent.module.scss
Mike Surowiec d2199e3deb Use Doctocat link header style (#21615)
* update autolinkHeadings to use Doctocat link header style

* fix header link test

* update graphql/rest rendering to use doctocat header link

* fix: miniToc issue with stray anchor

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-09-21 18:14:38 -04:00

60 lines
915 B
SCSS

@import "./stylesheets/code.scss";
@import "./stylesheets/headers.scss";
@import "./stylesheets/lists.scss";
@import "./stylesheets/table.scss";
.markdownBody {
summary {
outline: none;
h1,
h2,
h3,
h4,
h5,
h6 {
display: inline-block;
margin-top: 10px;
margin-bottom: 10px;
p {
margin: 0;
padding: 0;
}
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
&:hover {
[class~="octicon-link"] {
visibility: visible !important;
}
}
& > a[class~="doctocat-link"] {
padding: 8px;
margin-left: -32px;
color: var(--color-text-secondary);
&:active,
&:focus {
outline: none;
}
}
}
[class~="note"],
[class~="tip"],
[class~="warning"],
[class~="danger"] {
// remove extra space under lists inside of notes
ul,
ol {
margin-bottom: 0;
}
}
}