提交 aa2a1c78 authored 作者: wangjiahao's avatar wangjiahao

refactor:代码格式化

上级 73e5bf47
...@@ -11,60 +11,72 @@ body { ...@@ -11,60 +11,72 @@ body {
line-height: 1.4; line-height: 1.4;
margin: 1rem; margin: 1rem;
} }
a { a {
color: #4099ff; color: #4099ff;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
/* Apply a default padding if legacy cellpadding attribute is missing */ /* Apply a default padding if legacy cellpadding attribute is missing */
table:not([cellpadding]) th, table:not([cellpadding]) th,
table:not([cellpadding]) td { table:not([cellpadding]) td {
padding: 0.4rem; padding: 0.4rem;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-width"]) th, table[border]:not([border="0"]):not([style*="border-width"]) th,
table[border]:not([border="0"]):not([style*="border-width"]) td { table[border]:not([border="0"]):not([style*="border-width"]) td {
border-width: 1px; border-width: 1px;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-style"]) th, table[border]:not([border="0"]):not([style*="border-style"]) th,
table[border]:not([border="0"]):not([style*="border-style"]) td { table[border]:not([border="0"]):not([style*="border-style"]) td {
border-style: solid; border-style: solid;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-color"]) th, table[border]:not([border="0"]):not([style*="border-color"]) th,
table[border]:not([border="0"]):not([style*="border-color"]) td { table[border]:not([border="0"]):not([style*="border-color"]) td {
border-color: #6d737b; border-color: #6d737b;
} }
figure { figure {
display: table; display: table;
margin: 1rem auto; margin: 1rem auto;
} }
figure figcaption { figure figcaption {
color: #8a8f97; color: #8a8f97;
display: block; display: block;
margin-top: 0.25rem; margin-top: 0.25rem;
text-align: center; text-align: center;
} }
hr { hr {
border-color: #6d737b; border-color: #6d737b;
border-style: solid; border-style: solid;
border-width: 1px 0 0 0; border-width: 1px 0 0 0;
} }
code { code {
background-color: #6d737b; background-color: #6d737b;
border-radius: 3px; border-radius: 3px;
padding: 0.1rem 0.2rem; padding: 0.1rem 0.2rem;
} }
.mce-content-body:not([dir=rtl]) blockquote { .mce-content-body:not([dir=rtl]) blockquote {
border-left: 2px solid #6d737b; border-left: 2px solid #6d737b;
margin-left: 1.5rem; margin-left: 1.5rem;
padding-left: 1rem; padding-left: 1rem;
} }
.mce-content-body[dir=rtl] blockquote { .mce-content-body[dir=rtl] blockquote {
border-right: 2px solid #6d737b; border-right: 2px solid #6d737b;
margin-right: 1.5rem; margin-right: 1.5rem;
......
...@@ -9,57 +9,68 @@ body { ...@@ -9,57 +9,68 @@ body {
line-height: 1.4; line-height: 1.4;
margin: 1rem; margin: 1rem;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
/* Apply a default padding if legacy cellpadding attribute is missing */ /* Apply a default padding if legacy cellpadding attribute is missing */
table:not([cellpadding]) th, table:not([cellpadding]) th,
table:not([cellpadding]) td { table:not([cellpadding]) td {
padding: 0.4rem; padding: 0.4rem;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-width"]) th, table[border]:not([border="0"]):not([style*="border-width"]) th,
table[border]:not([border="0"]):not([style*="border-width"]) td { table[border]:not([border="0"]):not([style*="border-width"]) td {
border-width: 1px; border-width: 1px;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-style"]) th, table[border]:not([border="0"]):not([style*="border-style"]) th,
table[border]:not([border="0"]):not([style*="border-style"]) td { table[border]:not([border="0"]):not([style*="border-style"]) td {
border-style: solid; border-style: solid;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-color"]) th, table[border]:not([border="0"]):not([style*="border-color"]) th,
table[border]:not([border="0"]):not([style*="border-color"]) td { table[border]:not([border="0"]):not([style*="border-color"]) td {
border-color: #ccc; border-color: #ccc;
} }
figure { figure {
display: table; display: table;
margin: 1rem auto; margin: 1rem auto;
} }
figure figcaption { figure figcaption {
color: #999; color: #999;
display: block; display: block;
margin-top: 0.25rem; margin-top: 0.25rem;
text-align: center; text-align: center;
} }
hr { hr {
border-color: #ccc; border-color: #ccc;
border-style: solid; border-style: solid;
border-width: 1px 0 0 0; border-width: 1px 0 0 0;
} }
code { code {
background-color: #e8e8e8; background-color: #e8e8e8;
border-radius: 3px; border-radius: 3px;
padding: 0.1rem 0.2rem; padding: 0.1rem 0.2rem;
} }
.mce-content-body:not([dir=rtl]) blockquote { .mce-content-body:not([dir=rtl]) blockquote {
border-left: 2px solid #ccc; border-left: 2px solid #ccc;
margin-left: 1.5rem; margin-left: 1.5rem;
padding-left: 1rem; padding-left: 1rem;
} }
.mce-content-body[dir=rtl] blockquote { .mce-content-body[dir=rtl] blockquote {
border-right: 2px solid #ccc; border-right: 2px solid #ccc;
margin-right: 1.5rem; margin-right: 1.5rem;
......
...@@ -10,9 +10,11 @@ ...@@ -10,9 +10,11 @@
min-height: 100%; min-height: 100%;
} }
} }
body { body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
} }
@media screen { @media screen {
body { body {
background-color: #fff; background-color: #fff;
...@@ -24,47 +26,56 @@ body { ...@@ -24,47 +26,56 @@ body {
padding: 4rem 6rem 6rem 6rem; padding: 4rem 6rem 6rem 6rem;
} }
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
/* Apply a default padding if legacy cellpadding attribute is missing */ /* Apply a default padding if legacy cellpadding attribute is missing */
table:not([cellpadding]) th, table:not([cellpadding]) th,
table:not([cellpadding]) td { table:not([cellpadding]) td {
padding: 0.4rem; padding: 0.4rem;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-width"]) th, table[border]:not([border="0"]):not([style*="border-width"]) th,
table[border]:not([border="0"]):not([style*="border-width"]) td { table[border]:not([border="0"]):not([style*="border-width"]) td {
border-width: 1px; border-width: 1px;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-style"]) th, table[border]:not([border="0"]):not([style*="border-style"]) th,
table[border]:not([border="0"]):not([style*="border-style"]) td { table[border]:not([border="0"]):not([style*="border-style"]) td {
border-style: solid; border-style: solid;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-color"]) th, table[border]:not([border="0"]):not([style*="border-color"]) th,
table[border]:not([border="0"]):not([style*="border-color"]) td { table[border]:not([border="0"]):not([style*="border-color"]) td {
border-color: #ccc; border-color: #ccc;
} }
figure figcaption { figure figcaption {
color: #999; color: #999;
margin-top: 0.25rem; margin-top: 0.25rem;
text-align: center; text-align: center;
} }
hr { hr {
border-color: #ccc; border-color: #ccc;
border-style: solid; border-style: solid;
border-width: 1px 0 0 0; border-width: 1px 0 0 0;
} }
.mce-content-body:not([dir=rtl]) blockquote { .mce-content-body:not([dir=rtl]) blockquote {
border-left: 2px solid #ccc; border-left: 2px solid #ccc;
margin-left: 1.5rem; margin-left: 1.5rem;
padding-left: 1rem; padding-left: 1rem;
} }
.mce-content-body[dir=rtl] blockquote { .mce-content-body[dir=rtl] blockquote {
border-right: 2px solid #ccc; border-right: 2px solid #ccc;
margin-right: 1.5rem; margin-right: 1.5rem;
......
...@@ -10,57 +10,68 @@ body { ...@@ -10,57 +10,68 @@ body {
margin: 1rem auto; margin: 1rem auto;
max-width: 900px; max-width: 900px;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
/* Apply a default padding if legacy cellpadding attribute is missing */ /* Apply a default padding if legacy cellpadding attribute is missing */
table:not([cellpadding]) th, table:not([cellpadding]) th,
table:not([cellpadding]) td { table:not([cellpadding]) td {
padding: 0.4rem; padding: 0.4rem;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-width"]) th, table[border]:not([border="0"]):not([style*="border-width"]) th,
table[border]:not([border="0"]):not([style*="border-width"]) td { table[border]:not([border="0"]):not([style*="border-width"]) td {
border-width: 1px; border-width: 1px;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-style"]) th, table[border]:not([border="0"]):not([style*="border-style"]) th,
table[border]:not([border="0"]):not([style*="border-style"]) td { table[border]:not([border="0"]):not([style*="border-style"]) td {
border-style: solid; border-style: solid;
} }
/* Set default table styles if a table has a positive border attribute /* Set default table styles if a table has a positive border attribute
and no inline css */ and no inline css */
table[border]:not([border="0"]):not([style*="border-color"]) th, table[border]:not([border="0"]):not([style*="border-color"]) th,
table[border]:not([border="0"]):not([style*="border-color"]) td { table[border]:not([border="0"]):not([style*="border-color"]) td {
border-color: #ccc; border-color: #ccc;
} }
figure { figure {
display: table; display: table;
margin: 1rem auto; margin: 1rem auto;
} }
figure figcaption { figure figcaption {
color: #999; color: #999;
display: block; display: block;
margin-top: 0.25rem; margin-top: 0.25rem;
text-align: center; text-align: center;
} }
hr { hr {
border-color: #ccc; border-color: #ccc;
border-style: solid; border-style: solid;
border-width: 1px 0 0 0; border-width: 1px 0 0 0;
} }
code { code {
background-color: #e8e8e8; background-color: #e8e8e8;
border-radius: 3px; border-radius: 3px;
padding: 0.1rem 0.2rem; padding: 0.1rem 0.2rem;
} }
.mce-content-body:not([dir=rtl]) blockquote { .mce-content-body:not([dir=rtl]) blockquote {
border-left: 2px solid #ccc; border-left: 2px solid #ccc;
margin-left: 1.5rem; margin-left: 1.5rem;
padding-left: 1rem; padding-left: 1rem;
} }
.mce-content-body[dir=rtl] blockquote { .mce-content-body[dir=rtl] blockquote {
border-right: 2px solid #ccc; border-right: 2px solid #ccc;
margin-right: 1.5rem; margin-right: 1.5rem;
......
...@@ -11,19 +11,24 @@ ...@@ -11,19 +11,24 @@
opacity: 0.5; opacity: 0.5;
position: absolute; position: absolute;
} }
body { body {
-webkit-text-size-adjust: none; -webkit-text-size-adjust: none;
} }
body img { body img {
/* this is related to the content margin */ /* this is related to the content margin */
max-width: 96vw; max-width: 96vw;
} }
body table img { body table img {
max-width: 95%; max-width: 95%;
} }
body { body {
font-family: sans-serif; font-family: sans-serif;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论