javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.04k stars 67 forks source link

[Bug]: Indentation Guides missing in admonitions #312

Closed nousernameavailableanymore closed 1 year ago

nousernameavailableanymore commented 1 year ago

Check for existing bug reports before submitting.

Expected Behavior

Indentation guide shown for indented list items.

This is how it should look (built-in callout) image

Current behaviour

No indentation guide lines are shown for indented list items

This is how it looks with admonitions:

image

Reproduction

Create admonition block

```ad-info
- asdflkasdf
- sadfklsdflk
    - laskdflk
    - dsf
    - kl


### Which Operating Systems are you using?

- [ ] Android
- [ ] iPhone/iPad
- [ ] Linux
- [ ] macOS
- [X] Windows

### Obsidian Version Check

1.3.5 and 1.3.5

### Plugin Version

9.3.2

### Confirmation

- [X] I have disabled all other plugins and the issue still persists.

### Possible solution

_No response_
sigrunixia commented 1 year ago

The following code will solve this. Submitting PR.

.is-live-preview {
  & .admonition {
    & .admonition-content {
      & ul {
        > li {
          > ul {
            border-left: var(--blockquote-border-thickness);
            border-left-color: var(--list-marker-color);
            border-left-style: solid;
          }
        }
      }
    }
  }
}
image