@@ -565,7 +565,7 @@ class MarkdownOrderedList(MarkdownList):
565
565
566
566
MarkdownOrderedList Vertical {
567
567
height: auto;
568
- width: 1fr;
568
+ width: 1fr;
569
569
}
570
570
"""
571
571
@@ -607,29 +607,28 @@ class MarkdownTableContent(Widget):
607
607
608
608
DEFAULT_CSS = """
609
609
MarkdownTableContent {
610
- width: 1fr;
610
+ width: 1fr;
611
611
height: auto;
612
- layout: grid;
613
- grid-columns: auto;
614
- grid-rows: auto;
615
- grid-gutter: 1 1;
616
-
612
+ layout: grid;
613
+ grid-columns: auto;
614
+ grid-rows: auto;
615
+ grid-gutter: 1 1;
616
+
617
617
& > .cell {
618
618
margin: 0 0;
619
619
height: auto;
620
620
padding: 0 1;
621
621
text-overflow: ellipsis;
622
-
623
622
}
624
623
& > .header {
625
624
height: auto;
626
625
margin: 0 0;
627
626
padding: 0 1;
628
627
color: $primary;
629
- text-overflow: ellipsis;
630
- content-align: left bottom;
628
+ text-overflow: ellipsis;
629
+ content-align: left bottom;
631
630
}
632
- keyline: thin $foreground 20%;
631
+ keyline: thin $foreground 20%;
633
632
}
634
633
MarkdownTableContent > .markdown-table--header {
635
634
text-style: bold;
@@ -703,11 +702,11 @@ class MarkdownTable(MarkdownBlock):
703
702
704
703
DEFAULT_CSS = """
705
704
MarkdownTable {
706
- width: 1fr;
707
- margin-bottom: 1;
705
+ width: 1fr;
706
+ margin-bottom: 1;
708
707
&:light {
709
708
background: white 30%;
710
- }
709
+ }
711
710
}
712
711
"""
713
712
@@ -796,7 +795,7 @@ class MarkdownBullet(Widget):
796
795
DEFAULT_CSS = """
797
796
MarkdownBullet {
798
797
width: auto;
799
- color: $text-primary;
798
+ color: $text-primary;
800
799
&:light {
801
800
color: $text-secondary;
802
801
}
@@ -853,15 +852,15 @@ class MarkdownFence(MarkdownBlock):
853
852
scrollbar-size-horizontal: 0;
854
853
scrollbar-size-vertical: 0;
855
854
width: 1fr;
856
- height: auto;
855
+ height: auto;
857
856
color: rgb(210,210,210);
858
857
background: black 10%;
859
858
&:light {
860
859
background: white 30%;
861
- }
860
+ }
862
861
& > Label {
863
862
padding: 1 2;
864
- }
863
+ }
865
864
}
866
865
"""
867
866
@@ -904,15 +903,15 @@ def compose(self) -> ComposeResult:
904
903
905
904
class Markdown (Widget ):
906
905
DEFAULT_CSS = """
907
- Markdown {
908
- height: auto;
906
+ Markdown {
907
+ height: auto;
909
908
padding: 0 2 0 2;
910
909
layout: vertical;
911
- color: $foreground;
910
+ color: $foreground;
912
911
overflow-y: hidden;
913
-
912
+
914
913
MarkdownBlock {
915
- &:dark > .code_inline {
914
+ &:dark > .code_inline {
916
915
background: $warning 10%;
917
916
color: $text-warning 95%;
918
917
}
@@ -921,7 +920,7 @@ class Markdown(Widget):
921
920
color: $text-error 95%;
922
921
}
923
922
& > .em {
924
- text-style: italic;
923
+ text-style: italic;
925
924
}
926
925
& > .strong {
927
926
text-style: bold;
@@ -930,10 +929,7 @@ class Markdown(Widget):
930
929
text-style: strike;
931
930
}
932
931
}
933
-
934
932
}
935
-
936
-
937
933
"""
938
934
939
935
BULLETS = ["• " , "▪ " , "‣ " , "⭑ " , "◦ " ]
0 commit comments