Markdown编辑器中文回车有时不换行 #249

This commit is contained in:
lealife
2015-10-30 14:12:32 +08:00
parent 0f5e683a4f
commit 20b085aeae
6 changed files with 1814 additions and 7829 deletions

6221
public/dist/main.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,334 +0,0 @@
/** lifelife */
/* Pretty printing styles. Used with prettify.js. */
pre.prettyprint * {
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
}
pre.prettyprint {
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
code.prettyprint,
pre.prettyprint {
padding: 8px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-o-border-radius: 3px;
-ms-border-radius: 3px;
-khtml-border-radius: 3px;
border-radius: 3px;
display: block;
}
/*行号*/
code.prettyprint .linenums,
pre.prettyprint .linenums {
/*
-webkit-box-shadow: inset 0px 0 0 #f7f7f9,inset 0px 0 0 #ececf0;
-moz-box-shadow: inset 0px 0 0 #f7f7f9,inset 0px 0 0 #ececf0;
box-shadow: inset 0px 0 0 #f7f7f9,inset 0px 0 0 #ececf0
*/
}
code.prettyprint ol.linenums,
pre.prettyprint ol.linenums {
padding: 0 0 0 30px;
margin: 0;
}
code.prettyprint ol.linenums li,
pre.prettyprint ol.linenums li {
padding-left: 0;
color: #bebec5;
line-height: 20px;
}
code.prettyprint .com,
pre.prettyprint .com {
color: #93a1a1;
font-style: italic;
}
code.prettyprint .lit,
pre.prettyprint .lit {
color: #195f91;
}
code.prettyprint .pun,
pre.prettyprint .pun {
color: #93a1a1;
}
code.prettyprint .opn,
pre.prettyprint .opn {
color: #93a1a1;
}
code.prettyprint .clo,
pre.prettyprint .clo {
color: #93a1a1;
}
code.prettyprint .fun,
pre.prettyprint .fun {
color: #dc322f;
}
code.prettyprint .str,
pre.prettyprint .str {
color: #dd1144;
}
code.prettyprint .atv,
pre.prettyprint .atv {
color: #dd1144;
}
code.prettyprint .kwd,
pre.prettyprint .kwd {
color: #1e347b;
}
code.prettyprint .tag,
pre.prettyprint .tag {
color: #1e347b;
}
code.prettyprint .typ,
pre.prettyprint .typ {
color: #008080;
}
code.prettyprint .atn,
pre.prettyprint .atn {
color: #008080;
}
code.prettyprint .dec,
pre.prettyprint .dec {
color: #008080;
}
code.prettyprint .var,
pre.prettyprint .var {
color: #008080;
}
code.prettyprint .pln,
pre.prettyprint .pln {
color: #48484c;
}
/*
@font-face {
font-family: 'fontello';
src: url('../font/fontello.svg#fontello') format('svg'),
url('../font/fontello.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 300;
src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url("../font/SourceSansPro-Light-webfont.woff") format('woff');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('Source Sans Pro'), local('SourceSansPro'), url("../font/SourceSansPro-Regular-webfont.woff") format('woff');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 700;
src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url("../font/SourceSansPro-Bold-webfont.woff") format('woff');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: italic;
font-weight: 300;
src: local('Source Sans Pro Light Italic'), local('SourceSansProLight-Italic'), url("../font/SourceSansPro-LightItalic-webfont.woff") format('woff');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: italic;
font-weight: 400;
src: local('Source Sans Pro Italic'), local('SourceSansPro-Italic'), url("../font/SourceSansPro-Italic-webfont.woff") format('woff');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: italic;
font-weight: 700;
src: local('Source Sans Pro Bold Italic'), local('SourceSansPro-BoldItalic'), url("../font/SourceSansPro-BoldItalic-webfont.woff") format('woff');
}
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
src: local('Source Code Pro'), local('SourceCodePro-Regular'), url("../font/SourceCodePro-Regular-webfont.woff") format('woff');
}
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 700;
src: local('Source Code Pro Bold'), local('SourceCodePro-Bold'), url("../font/SourceCodePro-Bold-webfont.woff") format('woff');
}
*/
.container {
margin-bottom: 180px;
text-align: justify;
}
a code {
color: inherit;
}
/*
h1 { font-size: @title-base-size * 2.60; }
h2 { font-size: @title-base-size * 2.15; }
h3 { font-size: @title-base-size * 1.70; }
h4 { font-size: @title-base-size * 1.25; }
h5 { font-size: @title-base-size; }
h6 { font-size: @title-base-size * 0.85; }
h1, h2, h3, h4, h5, h6 {
margin: 1.5em 0;
text-align: start;
}
*/
pre {
word-break: break-word;
}
p,
blockquote {
margin: 0 0 1.1em;
}
hr {
margin: 2em 0;
}
img {
max-width: 100%;
}
.sequence-diagram,
.flow-chart {
text-align: center;
margin-bottom: 1.1em;
}
.sequence-diagram text,
.flow-chart text {
font-size: 15px !important;
font-family: "Source Sans Pro", sans-serif !important;
}
.sequence-diagram [fill="#ffffff"],
.flow-chart [fill="#ffffff"] {
fill: #ffffff;
}
.sequence-diagram [stroke="#000000"],
.flow-chart [stroke="#000000"] {
stroke: #000000;
}
.sequence-diagram text[stroke="#000000"],
.flow-chart text[stroke="#000000"] {
stroke: none;
}
.sequence-diagram [fill="#000"],
.flow-chart [fill="#000"],
.sequence-diagram [fill="#000000"],
.flow-chart [fill="#000000"],
.sequence-diagram [fill="black"],
.flow-chart [fill="black"] {
fill: #000000;
}
code,
pre {
font-family: "Source Code Pro", monospace;
font-size: 0.9em;
}
code {
white-space: normal;
}
pre {
border-radius: 5px;
}
pre.prettyprint {
text-align: start;
border: 0;
padding: 10px 20px;
}
pre.prettyprint code {
background-color: transparent !important;
}
/* Definition list */
dt,
dd {
margin-top: 5px;
margin-bottom: 5px;
}
dd {
margin-left: 40px;
}
/* Table style */
table {
margin-bottom: 20px;
}
table th,
table td {
padding: 8px;
line-height: 20px;
vertical-align: top;
border-top: 1px solid #dddddd;
}
table th {
font-weight: bold;
}
table thead th {
vertical-align: bottom;
}
table caption + thead tr:first-child th,
table caption + thead tr:first-child td,
table colgroup + thead tr:first-child th,
table colgroup + thead tr:first-child td,
table thead:first-child tr:first-child th,
table thead:first-child tr:first-child td {
border-top: 0;
}
table tbody + tbody {
border-top: 2px solid #dddddd;
}
blockquote {
border-left-width: 10px;
background-color: #f8f8f8;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
padding: 15px 20px;
}
blockquote p {
margin-bottom: 1.1em;
font-size: 1em;
line-height: 1.45;
}
blockquote ul:last-child,
blockquote ol:last-child {
margin-bottom: 0;
}
ul,
ol {
margin-bottom: 1.1em;
}
ul ul,
ol ul,
ul ol,
ol ol {
margin-bottom: 1.1em;
}
kbd {
padding: 0.1em 0.6em;
border: 1px solid rgba(0, 0, 0, 0.25);
-webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.25);
box-shadow: 0 1px 0px rgba(0, 0, 0, 0.25);
font-size: 0.7em;
font-family: sans-serif;
background-color: #ffffff;
color: #333333;
border-radius: 3px;
display: inline-block;
margin: 0 0.1em;
white-space: nowrap;
}
.toc ul {
list-style-type: none;
margin-bottom: 15px;
}
.footnote {
vertical-align: top;
position: relative;
top: -0.5em;
font-size: 0.8em;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1545
public/dist/themes/default.less vendored Normal file

File diff suppressed because it is too large Load Diff