mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
💄 Improve the alignment in table exports (#14990)
This commit is contained in:
@@ -229,6 +229,16 @@
|
||||
border-spacing: 0;
|
||||
width: max-content;
|
||||
|
||||
&[style*="text-align: left"] {
|
||||
margin-right: auto;
|
||||
}
|
||||
&[style*="text-align: center"] {
|
||||
margin: auto;
|
||||
}
|
||||
&[style*="text-align: right"] {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
tr:nth-child(even) td {
|
||||
background-color: var(--b3-table-even-background);
|
||||
}
|
||||
|
||||
@@ -34,6 +34,18 @@ svg {
|
||||
}
|
||||
}
|
||||
|
||||
.protyle-wysiwyg .table[data-node-id] {
|
||||
&[style*="text-align: left"] {
|
||||
margin-right: auto;
|
||||
}
|
||||
&[style*="text-align: center"] {
|
||||
margin: auto;
|
||||
}
|
||||
&[style*="text-align: right"] {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
// 尽量避免块内分页
|
||||
.protyle-wysiwyg [data-node-id] {
|
||||
|
||||
Reference in New Issue
Block a user