1
0
mirror of synced 2026-01-03 15:05:54 -05:00
Files
docs/components/ui/MarkdownContent/stylesheets/lists.scss
2021-11-19 21:06:45 +00:00

75 lines
1.4 KiB
SCSS

.markdownBody {
ol:not(:global(.no-styling)) {
counter-reset: li;
list-style: none;
position: relative;
padding-bottom: 0.5rem;
padding-left: 0;
> li {
padding: 0.5rem 0 0.5rem 2.5rem;
border: 0;
position: relative;
margin-bottom: 0.25rem;
&:before {
width: calc(1.5rem - 2px);
height: calc(1.5rem - 2px);
font-size: calc(1rem - 2px);
margin: 1px 0 0 0.5rem;
content: counter(li);
counter-increment: li;
position: absolute;
left: 0;
color: var(--color-canvas-default);
font-weight: 500;
text-align: center;
border-radius: 50%;
background-color: var(--color-fg-default);
}
&:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
p {
margin: 0;
}
p:first-child {
margin-top: 0;
}
p:not(:first-child) {
margin-top: 1rem;
}
[class~="extended-markdown"] {
margin-top: 1rem;
}
}
ol li:before:global(.no-styling) {
display: none;
}
}
ul ul,
ul ol,
ol ol,
ol ul {
margin-top: 1rem;
margin-bottom: 1rem;
}
}
/* Override primer style */
.markdownBody div > ol:not([type]) {
list-style-type: none;
}