393 lines
8.1 KiB
CSS
393 lines
8.1 KiB
CSS
/* MWeb:增大字体,便于阅读 */
|
||
.note2any {
|
||
font-size: 16px;
|
||
min-width: 200px;
|
||
max-width: 760px;
|
||
color: #333;
|
||
background: #fff;
|
||
-webkit-text-size-adjust: 100%;
|
||
-ms-text-size-adjust: 100%;
|
||
text-rendering: optimizelegibility;
|
||
/* 内外边距通常让各个浏览器样式的表现位置不同 */
|
||
/* 重设 HTML5 标签, IE 需要在 js 中 createElement(TAG) */
|
||
/* HTML5 媒体文件跟 img 保持一致 */
|
||
/* 去掉各Table cell 的边距并让其边重合 */
|
||
/* 去除默认边框 */
|
||
/* 块/段落引用 */
|
||
/* Firefox 以外,元素没有下划线,需添加 */
|
||
/* 添加鼠标问号,进一步确保应用的语义是正确的(要知道,交互他们也有洁癖,如果你不去掉,那得多花点口舌) */
|
||
/* 一致的 del 样式 */
|
||
/* 去掉列表前的标识, li 会继承,大部分网站通常用列表来很多内容,所以应该当去 */
|
||
/* 对齐是排版最重要的因素, 别让什么都居中 */
|
||
/* 统一上标和下标 */
|
||
/* 让链接在 hover 状态下显示下划线 */
|
||
/* 默认不显示下划线,保持页面简洁 */
|
||
/* 专名号:虽然 u 已经重回 html5 Draft,但在所有浏览器中都是可以使用的,
|
||
* 要做到更好,向后兼容的话,添加 class="typo-u" 来显示专名号
|
||
* 关于 <u> 标签:http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-u-element
|
||
* 被放弃的是 4,之前一直搞错 http://www.w3.org/TR/html401/appendix/changes.html#idx-deprecated
|
||
* 一篇关于 <u> 标签的很好文章:http://html5doctor.com/u-element/
|
||
*/
|
||
/* 标记,类似于手写的荧光笔的作用 */
|
||
/* 一致化 horizontal rule */
|
||
/* 底部印刷体、版本等标记 */
|
||
/* 可拖动文件添加拖动手势 */
|
||
/* 强制文本换行 */
|
||
/* 提供 serif 版本的字体设置: iOS 下中文自动 fallback 到 sans-serif */
|
||
/* 保证块/段落之间的空白隔行 */
|
||
/* 标题应该更贴紧内容,并与其他块区分,margin 值要相应做优化 */
|
||
/* 在文章中,应该还原 ul 和 ol 的样式 */
|
||
/* 同 ul/ol,在文章中应用 table 基本格式 */
|
||
/* Responsive images */
|
||
/* 代码片断 */
|
||
}
|
||
.note2any dl,
|
||
.note2any dt,
|
||
.note2any dd,
|
||
.note2any ul,
|
||
.note2any ol,
|
||
.note2any li,
|
||
.note2any h1,
|
||
.note2any h2,
|
||
.note2any h3,
|
||
.note2any h4,
|
||
.note2any h5,
|
||
.note2any h6,
|
||
.note2any pre,
|
||
.note2any code,
|
||
.note2any form,
|
||
.note2any fieldset,
|
||
.note2any legend,
|
||
.note2any input,
|
||
.note2any textarea,
|
||
.note2any p,
|
||
.note2any blockquote,
|
||
.note2any th,
|
||
.note2any td,
|
||
.note2any hr,
|
||
.note2any button,
|
||
.note2any article,
|
||
.note2any aside,
|
||
.note2any details,
|
||
.note2any figcaption,
|
||
.note2any figure,
|
||
.note2any footer,
|
||
.note2any header,
|
||
.note2any menu,
|
||
.note2any nav,
|
||
.note2any section {
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
.note2any article,
|
||
.note2any aside,
|
||
.note2any details,
|
||
.note2any figcaption,
|
||
.note2any figure,
|
||
.note2any footer,
|
||
.note2any header,
|
||
.note2any menu,
|
||
.note2any nav,
|
||
.note2any section {
|
||
display: block;
|
||
}
|
||
.note2any audio,
|
||
.note2any canvas,
|
||
.note2any video {
|
||
display: inline-block;
|
||
}
|
||
.note2any table {
|
||
border-collapse: collapse;
|
||
border-spacing: 0;
|
||
}
|
||
.note2any fieldset,
|
||
.note2any img {
|
||
border: 0;
|
||
}
|
||
.note2any blockquote {
|
||
position: relative;
|
||
color: #999;
|
||
font-weight: 400;
|
||
border-left: 1px solid #1abc9c;
|
||
padding-left: 1em;
|
||
margin: 1em 3em 1em 2em;
|
||
}
|
||
.note2any acronym,
|
||
.note2any abbr {
|
||
border-bottom: 1px dotted;
|
||
font-variant: normal;
|
||
text-decoration: none;
|
||
}
|
||
.note2any abbr {
|
||
cursor: help;
|
||
}
|
||
.note2any del {
|
||
text-decoration: line-through;
|
||
}
|
||
.note2any address,
|
||
.note2any caption,
|
||
.note2any cite,
|
||
.note2any code,
|
||
.note2any dfn,
|
||
.note2any em,
|
||
.note2any th,
|
||
.note2any var {
|
||
font-style: normal;
|
||
font-weight: 400;
|
||
}
|
||
.note2any ul,
|
||
.note2any ol {
|
||
list-style: none;
|
||
}
|
||
.note2any caption,
|
||
.note2any th {
|
||
text-align: left;
|
||
}
|
||
.note2any sub,
|
||
.note2any sup {
|
||
font-size: 75%;
|
||
line-height: 0;
|
||
position: relative;
|
||
}
|
||
.note2any :root sub,
|
||
.note2any :root sup {
|
||
vertical-align: baseline;
|
||
/* for ie9 and other modern browsers */
|
||
}
|
||
.note2any sup {
|
||
top: -0.5em;
|
||
}
|
||
.note2any sub {
|
||
bottom: -0.25em;
|
||
}
|
||
.note2any a {
|
||
color: #1abc9c;
|
||
}
|
||
.note2any a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
.note2any a {
|
||
border-bottom: 1px solid #1abc9c;
|
||
}
|
||
.note2any a:hover {
|
||
border-bottom-color: #555;
|
||
color: #555;
|
||
text-decoration: none;
|
||
}
|
||
.note2any ins,
|
||
.note2any a {
|
||
text-decoration: none;
|
||
}
|
||
.note2any u,
|
||
.note2any .typo-u {
|
||
text-decoration: underline;
|
||
}
|
||
.note2any mark {
|
||
background: #fffdd1;
|
||
border-bottom: 1px solid #ffedce;
|
||
padding: 2px;
|
||
/* margin: 0 5px; */
|
||
}
|
||
.note2any hr {
|
||
border: none;
|
||
border-bottom: 1px solid #cfcfcf;
|
||
margin-bottom: 0.8em;
|
||
height: 10px;
|
||
}
|
||
.note2any small,
|
||
.note2any .typo-small,
|
||
.note2any figcaption {
|
||
font-size: 0.9em;
|
||
color: #888;
|
||
}
|
||
.note2any strong,
|
||
.note2any b {
|
||
font-weight: bold;
|
||
color: #000;
|
||
}
|
||
.note2any [draggable] {
|
||
cursor: move;
|
||
}
|
||
.note2any .clearfix {
|
||
zoom: 1;
|
||
}
|
||
.note2any .textwrap,
|
||
.note2any .textwrap td,
|
||
.note2any .textwrap th {
|
||
word-wrap: break-word;
|
||
word-break: break-all;
|
||
}
|
||
.note2any .textwrap-table {
|
||
table-layout: fixed;
|
||
}
|
||
.note2any .serif {
|
||
font-family: Palatino, Optima, Georgia, serif;
|
||
}
|
||
.note2any p,
|
||
.note2any pre,
|
||
.note2any ul,
|
||
.note2any ol,
|
||
.note2any dl,
|
||
.note2any form,
|
||
.note2any hr,
|
||
.note2any table,
|
||
.note2any .typo-p,
|
||
.note2any .typo-pre,
|
||
.note2any .typo-ul,
|
||
.note2any .typo-ol,
|
||
.note2any .typo-dl,
|
||
.note2any .typo-form,
|
||
.note2any .typo-hr,
|
||
.note2any .typo-table,
|
||
.note2any blockquote {
|
||
margin-bottom: 1.2em;
|
||
}
|
||
.note2any h1,
|
||
.note2any h2,
|
||
.note2any h3,
|
||
.note2any h4,
|
||
.note2any h5,
|
||
.note2any h6 {
|
||
font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
|
||
font-weight: lighter;
|
||
color: #000;
|
||
line-height: 1.35;
|
||
}
|
||
.note2any h1,
|
||
.note2any h2,
|
||
.note2any h3,
|
||
.note2any h4,
|
||
.note2any h5,
|
||
.note2any h6,
|
||
.note2any .typo-h1,
|
||
.note2any .typo-h2,
|
||
.note2any .typo-h3,
|
||
.note2any .typo-h4,
|
||
.note2any .typo-h5,
|
||
.note2any .typo-h6 {
|
||
margin-top: 1.2em;
|
||
margin-bottom: 0.6em;
|
||
line-height: 1.35;
|
||
}
|
||
.note2any h1,
|
||
.note2any .typo-h1 {
|
||
font-size: 2em;
|
||
}
|
||
.note2any h2,
|
||
.note2any .typo-h2 {
|
||
font-size: 1.8em;
|
||
}
|
||
.note2any h3,
|
||
.note2any .typo-h3 {
|
||
font-size: 1.6em;
|
||
}
|
||
.note2any h4,
|
||
.note2any .typo-h4 {
|
||
font-size: 1.4em;
|
||
}
|
||
.note2any h5,
|
||
.note2any h6,
|
||
.note2any .typo-h5,
|
||
.note2any .typo-h6 {
|
||
font-size: 1.2em;
|
||
}
|
||
.note2any ul,
|
||
.note2any .typo-ul {
|
||
margin-left: 1.3em;
|
||
list-style: disc;
|
||
}
|
||
.note2any ol,
|
||
.note2any .typo-ol {
|
||
list-style: decimal;
|
||
margin-left: 1.9em;
|
||
}
|
||
.note2any li ul,
|
||
.note2any li ol,
|
||
.note2any .typo-ul ul,
|
||
.note2any .typo-ul ol,
|
||
.note2any .typo-ol ul,
|
||
.note2any .typo-ol ol {
|
||
margin-bottom: 0.8em;
|
||
margin-left: 2em;
|
||
}
|
||
.note2any li ul,
|
||
.note2any .typo-ul ul,
|
||
.note2any .typo-ol ul {
|
||
list-style: circle;
|
||
}
|
||
.note2any table th,
|
||
.note2any table td,
|
||
.note2any .typo-table th,
|
||
.note2any .typo-table td,
|
||
.note2any table caption {
|
||
border: 1px solid #ddd;
|
||
padding: 0.5em 1em;
|
||
color: #666;
|
||
}
|
||
.note2any table th,
|
||
.note2any .typo-table th {
|
||
background: #fbfbfb;
|
||
}
|
||
.note2any table thead th,
|
||
.note2any .typo-table thead th {
|
||
background: #f1f1f1;
|
||
}
|
||
.note2any table caption {
|
||
border-bottom: none;
|
||
}
|
||
.note2any .typo-em,
|
||
.note2any em,
|
||
.note2any legend,
|
||
.note2any caption {
|
||
color: #000;
|
||
font-weight: inherit;
|
||
}
|
||
.note2any img {
|
||
max-width: 100%;
|
||
}
|
||
.note2any .footnotes hr {
|
||
margin-top: 4em;
|
||
margin-bottom: 0.5em;
|
||
}
|
||
.note2any pre,
|
||
.note2any code,
|
||
.note2any pre tt {
|
||
font-family: Courier, "Courier New", monospace;
|
||
}
|
||
|
||
/* 代码块 */
|
||
.note2any .code-section {
|
||
display: flex;
|
||
border: solid 1px #ddd;
|
||
margin: 1.5em 0;
|
||
line-height: 26px;
|
||
padding: 0.5em;
|
||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||
}
|
||
.note2any .code-section pre {
|
||
margin: 0;
|
||
margin-block-start: 0;
|
||
margin-block-end: 0;
|
||
white-space: normal;
|
||
overflow-x: auto;
|
||
padding: 0 0 0 1em;
|
||
}
|
||
.note2any .code-section code {
|
||
display: flex;
|
||
text-wrap: nowrap;
|
||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||
}
|
||
.note2any .code-section ul {
|
||
margin: 0;
|
||
padding: 0;
|
||
margin-block-start: 0;
|
||
margin-block-end: 0;
|
||
width: fit-content;
|
||
flex-shrink: 0;
|
||
height: 100%;
|
||
line-height: 26px;
|
||
list-style-type: none;
|
||
}
|
||
.note2any .code-section ul > li {
|
||
text-align: right;
|
||
} |