Skip to content

Commit

Permalink
feat(docs): list styling (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
Margar1ta authored and pimenovoleg committed Aug 27, 2019
1 parent 56900de commit 7ec670e
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions packages/docs/src/styles/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.docs-markdown {
max-width: 100%;

&__p {
&__p, &__li {
margin: 0;
padding-top: 8px;
}
Expand All @@ -12,6 +12,37 @@
text-decoration: none;
cursor: pointer;
}

&__ul {
position: relative;
list-style: none;
margin: 0;
padding: 0;

& .docs-markdown__li {
padding-left: 20px;
}

& .docs-markdown__li:before {
content: "";
position: absolute;
left: 0;
}
}

&__ol {
margin: 0;
padding-left: 25px;

& .docs-markdown__li {
padding-left: 4px;
}

& & {
list-style-type: lower-alpha;
padding-left: 16px;
}
}
}

@mixin docs-markdown-theme($theme) {
Expand All @@ -24,13 +55,14 @@
$color: mc-color($primary);
$color_hover: mc-color($primary, if($is-dark, lighter, darker));
$color_disabled: mc-color($foreground, disabled-text);
$fg-default: mc-color($foreground, text);

.docs-header-link {
color: map-get($second, 700);
}

.docs-markdown {
color: map-get($second, 700);
color: $fg-default;

&__a {
color: $color;
Expand Down Expand Up @@ -78,9 +110,7 @@
}

.docs-markdown {
&__p, &__a {
@include mc-typography-level-to-styles($config, body);
}
@include mc-typography-level-to-styles($config, body);
}
}

Expand Down

0 comments on commit 7ec670e

Please sign in to comment.