Skip to content

Commit

Permalink
fix(typography): margin in nested ol/ul
Browse files Browse the repository at this point in the history
  • Loading branch information
memset0 committed Sep 16, 2024
1 parent b32b5e4 commit f26f0cb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ tmp
obsidian-vault
/content
/content*
/src/**/*.min.css

# Logs
logs
Expand Down
7 changes: 4 additions & 3 deletions src/style/typography-extend.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@mdui-timing-fuction: cubic-bezier(0.4, 0, 0.2, 1);
@mdui-shadow-1: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14),
0px 1px 5px 0px rgba(0, 0, 0, 0.12);

Expand All @@ -24,7 +25,7 @@
cursor: pointer;
border-radius: 4px;
text-decoration: none;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
transition: color 250ms @mdui-timing-fuction, background-color 250ms @mdui-timing-fuction;
&:hover {
color: inherit;
background-color: inherit;
Expand All @@ -45,8 +46,8 @@
font-weight: bold;
// font-family: Consolas, monospace;
}
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
transition: color 250ms @mdui-timing-fuction, background-color 250ms @mdui-timing-fuction,
box-shadow 250ms @mdui-timing-fuction;
background: white;
color: @color;
border: 1px solid @color;
Expand Down
7 changes: 7 additions & 0 deletions src/style/typography.less
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
margin-block-start: @pd;
margin-block-end: @pd;
}
ul ul,
ul ol,
ol ul,
ol ol {
margin-block-start: 0;
margin-block-end: 0;
}

ul,
ol {
Expand Down

0 comments on commit f26f0cb

Please sign in to comment.