mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 10:16:10 +01:00
This commit is contained in:
parent
0ca321f8d4
commit
0f5df03e87
3 changed files with 5 additions and 33 deletions
|
|
@ -504,30 +504,15 @@
|
|||
table {
|
||||
margin: 1em 0;
|
||||
|
||||
&[style*="direction: ltr"] {
|
||||
margin-left: unset;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
&[style*="direction: rtl"] {
|
||||
&[style*="direction: rtl"]:not([style*="text-align: left"]),
|
||||
&[style*="text-align: right"] {
|
||||
margin-left: auto;
|
||||
margin-right: unset;
|
||||
}
|
||||
|
||||
&[style*="text-align: left"] {
|
||||
margin-left: unset;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
&[style*="text-align: center"] {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
&[style*="text-align: right"] {
|
||||
margin-left: auto;
|
||||
margin-right: unset;
|
||||
}
|
||||
}
|
||||
|
||||
div[data-subtype="math"] {
|
||||
|
|
|
|||
|
|
@ -35,19 +35,8 @@ svg {
|
|||
}
|
||||
|
||||
.protyle-wysiwyg .table[data-node-id] {
|
||||
&[style*="direction: ltr"] {
|
||||
margin-left: unset;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
&[style*="direction: rtl"] {
|
||||
margin-left: auto;
|
||||
margin-right: unset;
|
||||
}
|
||||
|
||||
&[style*="text-align: left"] {
|
||||
margin-left: unset;
|
||||
margin-right: auto;
|
||||
&[style*="text-align: left"][style*="direction: rtl"] {
|
||||
direction: ltr !important;
|
||||
}
|
||||
|
||||
&[style*="text-align: center"] {
|
||||
|
|
@ -57,7 +46,6 @@ svg {
|
|||
|
||||
&[style*="text-align: right"] {
|
||||
margin-left: auto;
|
||||
margin-right: unset;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -273,9 +273,8 @@ export const setInlineStyle = async (set = true) => {
|
|||
right: 17px;
|
||||
left: auto;
|
||||
}
|
||||
.b3-typography table {
|
||||
.b3-typography table:not([style*="text-align: left"]) {
|
||||
margin-left: auto;
|
||||
margin-right: unset;
|
||||
}`;
|
||||
}
|
||||
style += `\n:root{--b3-font-size-editor:${window.siyuan.config.editor.fontSize}px}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue