feat: add table full-width setting
This commit is contained in:
@@ -45,6 +45,12 @@ spec:
|
|||||||
value: false
|
value: false
|
||||||
help: 开启后隐藏左右侧边栏并让正文区域占满可用宽度
|
help: 开启后隐藏左右侧边栏并让正文区域占满可用宽度
|
||||||
|
|
||||||
|
- $formkit: checkbox
|
||||||
|
label: 表格宽度铺满父元素
|
||||||
|
name: table_full_width
|
||||||
|
value: false
|
||||||
|
help: 开启后文章内容中的 table 会占满正文内容区域宽度
|
||||||
|
|
||||||
- $formkit: checkbox
|
- $formkit: checkbox
|
||||||
label: 使用系统字体
|
label: 使用系统字体
|
||||||
name: system_font_enable
|
name: system_font_enable
|
||||||
|
|||||||
@@ -118,10 +118,6 @@ body[layout_mode='fullscreen'] {
|
|||||||
max-width: none !important;
|
max-width: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content table {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content img,
|
.content img,
|
||||||
.content video,
|
.content video,
|
||||||
.content figure {
|
.content figure {
|
||||||
@@ -131,6 +127,12 @@ body[layout_mode='fullscreen'] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body[table_full_width='true'] {
|
||||||
|
.content table {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
.sidebar-left,
|
.sidebar-left,
|
||||||
.sidebar-right {
|
.sidebar-right {
|
||||||
|
|||||||
@@ -177,7 +177,8 @@
|
|||||||
</th:block>
|
</th:block>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body th:attr="layout_mode=${theme.config.style.fullscreen_layout ? 'fullscreen' : 'normal'}">
|
<body th:attr="layout_mode=${theme.config.style.fullscreen_layout ? 'fullscreen' : 'normal'},
|
||||||
|
table_full_width=${theme.config.style.table_full_width ? 'true' : 'false'}">
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<header role="banner">
|
<header role="banner">
|
||||||
<div id="header-slot" aria-hidden="true"></div>
|
<div id="header-slot" aria-hidden="true"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user