markdown table theme

This commit is contained in:
life
2014-11-13 13:02:05 +08:00
parent b45e9eacb0
commit c0979be9f3
6 changed files with 77 additions and 3 deletions

View File

@ -35,7 +35,7 @@
{{end}}
</div>
<div class="desc" id="content">
<div class="desc {{if $.post.IsMarkdown }}markdown-content{{end}}" id="content">
{{if $.post.IsMarkdown }}
<div id="markdownContent" style="display: none">
<!-- 用textarea装html, 防止得到的值失真 -->

View File

@ -503,3 +503,28 @@ a:hover {
padding: 0 10px;
}
}
table {
margin-bottom: 16px;
}
table th, table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
table th {
font-weight: bold;
}
table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.mce-item-table, .mce-item-table td, .mce-item-table th, .mce-item-table caption {
border: 1px solid #ddd;
border-collapse: collapse;
padding: 6px 13px;
}

View File

@ -35,7 +35,7 @@
{{end}}
</div>
<div class="desc" id="content">
<div class="desc {{if $.post.IsMarkdown }}markdown-content{{end}}" id="content">
{{if $.post.IsMarkdown }}
<div id="markdownContent" style="display: none">
<!-- 用textarea装html, 防止得到的值失真 -->

View File

@ -517,3 +517,27 @@ a:hover {
padding: 0 10px;
}
}
table {
margin-bottom: 16px;
}
table th, table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
table th {
font-weight: bold;
}
table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.mce-item-table, .mce-item-table td, .mce-item-table th, .mce-item-table caption {
border: 1px solid #ddd;
border-collapse: collapse;
padding: 6px 13px;
}

View File

@ -35,7 +35,7 @@
{{end}}
</div>
<div class="desc" id="content">
<div class="desc {{if $.post.IsMarkdown }}markdown-content{{end}}" id="content">
{{if $.post.IsMarkdown }}
<div id="markdownContent" style="display: none">
<!-- 用textarea装html, 防止得到的值失真 -->

View File

@ -554,3 +554,28 @@ a:hover {
padding: 0 10px;
}
}
table {
margin-bottom: 16px;
}
table th, table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
table th {
font-weight: bold;
}
table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.mce-item-table, .mce-item-table td, .mce-item-table th, .mce-item-table caption {
border: 1px solid #ddd;
border-collapse: collapse;
padding: 6px 13px;
}