Skip to content

Commit 6e9fab7

Browse files
Stephan AngoStephan Ango
authored andcommitted
Use native bullets for better mobile compatibility
1 parent 3d9253f commit 6e9fab7

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

obsidian.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,8 @@ h5:hover .heading-collapse-indicator.collapse-indicator svg,
23582358
padding-top:0px;}
23592359
.markdown-preview-view ul > li:not(.task-list-item) .collapse-indicator {
23602360
padding-right:20px;}
2361-
.markdown-preview-view ul > li:not(.task-list-item)::before {
2361+
2362+
/*.markdown-preview-view ul > li:not(.task-list-item)::before {
23622363
content:'\2022';
23632364
text-align:left;
23642365
padding:0;
@@ -2378,6 +2379,10 @@ h5:hover .heading-collapse-indicator.collapse-indicator svg,
23782379
color:var(--text-faint);
23792380
transform:translateX(-2px);
23802381
}
2382+
.markdown-preview-view ul > li:not(.task-list-item).is-collapsed::before {
2383+
background:var(--background-modifier-border);
2384+
box-shadow:3px 0 0px 4px var(--background-modifier-border);
2385+
}*/
23812386
.markdown-preview-view ul > li:not(.task-list-item).is-collapsed::before {
23822387
background:var(--background-modifier-border);
23832388
box-shadow:3px 0 0px 4px var(--background-modifier-border);
@@ -2983,7 +2988,9 @@ iframe {
29832988
}
29842989

29852990
/* Preview Mode Lists */
2986-
2991+
ul {
2992+
padding-inline-start:2em; }
2993+
/*
29872994
ul {
29882995
padding-inline-start:2em;
29892996
list-style:none;
@@ -2993,7 +3000,7 @@ ul ul, ol ul, ol ol ul, ol ul ul, ul ol ul, ul ul ul {
29933000
list-style:none;
29943001
list-style-type:none;
29953002
}
2996-
/* ul li p, ol li p {
3003+
ul li p, ol li p {
29973004
display:inline;
29983005
}*/
29993006
ol {
@@ -3005,6 +3012,7 @@ ol {
30053012
ul > li {
30063013
min-height:1.4em;
30073014
}
3015+
ul > li::marker,
30083016
ol > li::marker {
30093017
color:var(--text-faint);
30103018
}
@@ -3636,6 +3644,7 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
36363644
.is-mobile .markdown-preview-view input[type=checkbox].task-list-item-checkbox {
36373645
top:6px;
36383646
}
3647+
/*
36393648
.is-mobile .markdown-preview-view ul > li:not(.task-list-item)::before {
36403649
height:1em;
36413650
width:2px;
@@ -3645,7 +3654,7 @@ body:not(.is-ios).is-mobile .workspace-drawer-ribbon {
36453654
.is-mobile .markdown-preview-view ul > li:not(.task-list-item).is-collapsed::before {
36463655
box-shadow:none;
36473656
background:transparent;
3648-
}
3657+
}*/
36493658
.is-mobile .workspace-drawer {
36503659
border-width:var(--border-width);
36513660
}

0 commit comments

Comments
 (0)