mirror of
https://github.com/leanote/leanote-ios.git
synced 2025-10-13 14:29:23 +00:00
markdown与普通编辑器样式保存一致 #18
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>95C</string>
|
||||
<string>961</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
|
@@ -18,7 +18,7 @@
|
||||
<key>AutocorrectionType</key>
|
||||
<string>No</string>
|
||||
<key>DefaultValue</key>
|
||||
<string>1.0 (95C)</string>
|
||||
<string>1.0 (961)</string>
|
||||
<key>IsSecure</key>
|
||||
<false/>
|
||||
<key>Key</key>
|
||||
|
@@ -82,9 +82,9 @@ ZSSEditor.init = function(callbacker, logger) {
|
||||
// Change a few CSS values if the device is an iPad
|
||||
ZSSEditor.isiPad = (navigator.userAgent.match(/iPad/i) != null);
|
||||
if (ZSSEditor.isiPad) {
|
||||
$(document.body).addClass('ipad_body');
|
||||
$('#zss_field_title').addClass('ipad_field_title');
|
||||
$('#zss_field_content').addClass('ipad_field_content');
|
||||
$(document.body).addClass('ipad-body');
|
||||
// $('#zss_field_title').addClass('ipad_field_title');
|
||||
// $('#zss_field_content').addClass('ipad_field_content');
|
||||
}
|
||||
|
||||
document.execCommand('insertBrOnReturn', false, false);
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1,30 +1,5 @@
|
||||
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans-Italic");
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans-Bold");
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans-BoldItalic");
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
* {outline: 0px solid transparent;
|
||||
* {
|
||||
outline: 0px solid transparent;
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||
-webkit-touch-callout: none;
|
||||
}
|
||||
@@ -36,7 +11,7 @@ html {
|
||||
|
||||
html, body {
|
||||
margin:0;
|
||||
font-family:OpenSans, sans-serif;
|
||||
/*font-family:OpenSans, sans-serif;*/
|
||||
font-size:1em;
|
||||
color:#2D2D2D;
|
||||
}
|
||||
@@ -395,16 +370,16 @@ div.field[placeholderText][contenteditable=true]:empty:focus:before {
|
||||
cursor: none;
|
||||
}
|
||||
|
||||
.ipad_body {
|
||||
.ipad-body {
|
||||
padding-left: 80px;
|
||||
padding-right: 80px;
|
||||
}
|
||||
|
||||
.ipad_field_title {
|
||||
.ipad-body #zss_field_title {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.ipad_field_content {
|
||||
.ipad-body #ipad_field_content {
|
||||
font-size: 1.125em;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
@@ -66,6 +66,12 @@
|
||||
//
|
||||
$(document).ready(function() {
|
||||
ZSSEditor.init(callbacker, logger);
|
||||
|
||||
if (/ipad/.test(location)) {
|
||||
ZSSEditor.getField('zss_field_title').setHTML("你好啊 hello world");
|
||||
ZSSEditor.getField('zss_field_content').setHTML("你好 hello world");
|
||||
$('body').addClass('ipad-body');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="editor.css">
|
||||
|
@@ -41,5 +41,11 @@
|
||||
//
|
||||
$(document).ready(function() {
|
||||
ZSSEditor.init(callbacker, logger);
|
||||
|
||||
if (/ipad/.test(location)) {
|
||||
ZSSEditor.getField('zss_field_title').setHTML("你好啊 hello world");
|
||||
ZSSEditor.getField('zss_field_content').setHTML("你好 hello world");
|
||||
$('body').addClass('ipad-body');
|
||||
}
|
||||
});
|
||||
</script><link rel=stylesheet type=text/css href=editor.css></head><body><div contenteditable=false id=zss_field_title class=field nostyle></div><div contenteditable=false id=separatorDiv><hr></div><div contenteditable=false id=zss_field_content class=field></div></body></html>
|
@@ -1,66 +1,46 @@
|
||||
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans-Italic");
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans-Bold");
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans-BoldItalic");
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
* {
|
||||
outline: 0px solid transparent;
|
||||
/*点击没有高亮focus*/
|
||||
outline: 0px solid transparent;
|
||||
/*点击没有高亮focus*/
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||
-webkit-touch-callout: none;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
|
||||
html, body {
|
||||
margin:0;
|
||||
padding:0;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
body {
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
font-family:OpenSans, sans-serif;
|
||||
overflow-x: hidden;
|
||||
/*font-family:OpenSans, sans-serif;*/
|
||||
/*overflow-x: hidden;*/
|
||||
padding-left:5px;
|
||||
padding-right:5px;
|
||||
}
|
||||
.ipad_body {
|
||||
.ipad-body {
|
||||
padding-left: 80px;
|
||||
padding-right: 80px;
|
||||
}
|
||||
|
||||
.ipad-body #title {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.ipad-body #wmd-input,
|
||||
.ipad-body #wmd-preview {
|
||||
font-size: 1.125em;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
#title {
|
||||
font-family:'Merriweather', serif;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#left-column, #wmd-input,
|
||||
#right-column {
|
||||
font-size: 16px;
|
||||
@@ -70,7 +50,8 @@ h3 {
|
||||
/*font-family:'Merriweather', serif;*/
|
||||
}
|
||||
#title {
|
||||
line-height: 1;
|
||||
font-family:'Merriweather', serif;
|
||||
/*line-height: 1;*/
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 15px 10px 5px 10px;
|
||||
@@ -294,53 +275,6 @@ span.token.p {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
border-color: #f0f0f0;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025), 0 0 12px -1px rgba(128, 128, 128, 0.6);
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025), 0 0 12px -1px rgba(128, 128, 128, 0.6);
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.navbar-form .col-sm-1 {
|
||||
width: 8.33333333% !important;
|
||||
}
|
||||
.navbar-form .col-sm-2 {
|
||||
width: 16.66666667% !important;
|
||||
}
|
||||
.navbar-form .col-sm-3 {
|
||||
width: 25% !important;
|
||||
}
|
||||
.navbar-form .col-sm-4 {
|
||||
width: 33.33333333% !important;
|
||||
}
|
||||
.navbar-form .col-sm-5 {
|
||||
width: 41.66666667% !important;
|
||||
}
|
||||
.navbar-form .col-sm-6 {
|
||||
width: 50% !important;
|
||||
}
|
||||
.navbar-form .col-sm-7 {
|
||||
width: 58.33333333% !important;
|
||||
}
|
||||
.navbar-form .col-sm-8 {
|
||||
width: 66.66666667% !important;
|
||||
}
|
||||
.navbar-form .col-sm-9 {
|
||||
width: 75% !important;
|
||||
}
|
||||
.navbar-form .col-sm-10 {
|
||||
width: 83.33333333% !important;
|
||||
}
|
||||
.navbar-form .col-sm-11 {
|
||||
width: 91.66666667% !important;
|
||||
}
|
||||
.navbar-form .col-sm-12 {
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
.navbar-form * {
|
||||
float: none;
|
||||
}
|
||||
/** lifelife */
|
||||
/* Pretty printing styles. Used with prettify.js. */
|
||||
pre.prettyprint * {
|
||||
@@ -447,85 +381,10 @@ 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;
|
||||
}
|
||||
@@ -569,10 +428,6 @@ img {
|
||||
.flow-chart [fill="black"] {
|
||||
fill: #3f3f3f;
|
||||
}
|
||||
code,
|
||||
pre {
|
||||
/*font-family: "Source Code Pro", monospace;*/
|
||||
}
|
||||
code {
|
||||
white-space: normal;
|
||||
}
|
||||
@@ -624,24 +479,6 @@ table thead:first-child tr:first-child td {
|
||||
table tbody + tbody {
|
||||
border-top: 2px solid #dddddd;
|
||||
}
|
||||
/*
|
||||
blockquote {
|
||||
border-left-width: 10px;
|
||||
background-color: rgba(128, 128, 128, 0.05);
|
||||
border-top-right-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
padding: 15px 20px;
|
||||
}
|
||||
blockquote p {
|
||||
margin-bottom: 0.3em;
|
||||
font-size: 1em;
|
||||
line-height: 1.45;
|
||||
}
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
*/
|
||||
ul,
|
||||
ol {
|
||||
margin-bottom: 0.3em;
|
||||
@@ -803,544 +640,7 @@ div.jGrowl div.jGrowl-closer {
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
/** Hide jGrowl when printing **/
|
||||
@media print {
|
||||
div.jGrowl {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
/* Colors */
|
||||
/* Sizes */
|
||||
/* Bootstrap */
|
||||
.working {
|
||||
cursor: progress;
|
||||
}
|
||||
.dragging {
|
||||
cursor: move !important;
|
||||
}
|
||||
.btn,
|
||||
.dropdown-menu {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-o-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.dropdown-menu,
|
||||
.modal-content,
|
||||
.panel-content,
|
||||
.search-bar,
|
||||
.popover,
|
||||
.find-replace,
|
||||
.alertify {
|
||||
-webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.225);
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.225);
|
||||
}
|
||||
.collapsed > .icon-up-dir:before {
|
||||
content: '\e94d';
|
||||
}
|
||||
.modal.fade .modal-dialog {
|
||||
-webkit-transform: translate(0, 0);
|
||||
-ms-transform: translate(0, 0);
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
.modal-content {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
.modal-body {
|
||||
background-color: #ffffff;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
.modal-footer {
|
||||
margin-top: 0;
|
||||
}
|
||||
.modal-iframe {
|
||||
display: block;
|
||||
margin: 30px auto 0;
|
||||
z-index: 1040;
|
||||
border-radius: 0;
|
||||
}
|
||||
a {
|
||||
-webkit-transition: background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;
|
||||
transition: background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;
|
||||
}
|
||||
.nav-pills > li > a {
|
||||
border: 1px solid rgba(0, 0, 0, 0);
|
||||
}
|
||||
.nav-pills > li > a:hover,
|
||||
.nav-pills > li > a:focus {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
}
|
||||
.nav-pills > li.open > a .caret,
|
||||
.nav-pills > li > a:hover .caret,
|
||||
.nav-pills > li > a:focus .caret {
|
||||
border-top-color: #343434;
|
||||
border-bottom-color: #343434;
|
||||
}
|
||||
.nav-pills > li.disabled > a:hover,
|
||||
.nav-pills > li.disabled > a:focus {
|
||||
border-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
.nav-pills > li.open > a,
|
||||
.nav-pills > li.open > a:hover,
|
||||
.nav-pills > li.open > a:focus {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
}
|
||||
.list-group-item {
|
||||
padding: 10px 15px;
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.list-group .list-group-item {
|
||||
border-radius: 0;
|
||||
}
|
||||
a.list-group-item:hover,
|
||||
a.list-group-item:focus {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
}
|
||||
.list-group-item .checkbox {
|
||||
float: right;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.list-group-item .checkbox input {
|
||||
cursor: pointer;
|
||||
margin: 0 16px;
|
||||
height: 38px;
|
||||
}
|
||||
.form-group {
|
||||
margin-bottom: 1px;
|
||||
padding: 5px;
|
||||
}
|
||||
.text-danger:hover {
|
||||
color: #d82a1a;
|
||||
}
|
||||
.bring-to-front {
|
||||
z-index: 1050 !important;
|
||||
}
|
||||
.dialog-header-message {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 55px;
|
||||
font-weight: bold;
|
||||
}
|
||||
/*******************
|
||||
* Buttons
|
||||
*******************/
|
||||
.btn {
|
||||
padding: 8px 11px;
|
||||
-webkit-transition: background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;
|
||||
transition: background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;
|
||||
}
|
||||
.btn-default:hover,
|
||||
.alertify-button-cancel:hover,
|
||||
.btn-default:focus,
|
||||
.alertify-button-cancel:focus,
|
||||
.btn-default:active,
|
||||
.alertify-button-cancel:active,
|
||||
.open .btn-default.dropdown-toggle,
|
||||
.open .alertify-button-cancel.dropdown-toggle {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
background-color: rgba(128, 128, 128, 0.04) !important;
|
||||
}
|
||||
.btn-primary:hover,
|
||||
.alertify-button-ok:hover,
|
||||
.btn-primary:focus,
|
||||
.alertify-button-ok:focus,
|
||||
.btn-primary:active,
|
||||
.alertify-button-ok:active,
|
||||
.open .btn-primary.dropdown-toggle,
|
||||
.open .alertify-button-ok.dropdown-toggle {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
background-color: #e3e3e3 !important;
|
||||
}
|
||||
.btn-success:hover,
|
||||
.btn-success:focus,
|
||||
.btn-success:active,
|
||||
.open .btn-success.dropdown-toggle {
|
||||
color: #343434 !important;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
background-color: rgba(128, 128, 128, 0.05) !important;
|
||||
}
|
||||
.btn-info:hover,
|
||||
.btn-info:focus,
|
||||
.btn-info:active,
|
||||
.btn-info.info-tooltip,
|
||||
.info-tooltip .btn-info,
|
||||
.open .btn-info.dropdown-toggle {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.08);
|
||||
background-color: #f3f3f3 !important;
|
||||
}
|
||||
.btn-link:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn-group .btn + .btn,
|
||||
.btn-group .btn + .btn-group,
|
||||
.btn-group .btn-group + .btn,
|
||||
.btn-group .btn-group + .btn-group {
|
||||
margin-left: 0;
|
||||
}
|
||||
.btn-group > .btn + .dropdown-toggle {
|
||||
padding-right: 11px;
|
||||
padding-left: 11px;
|
||||
}
|
||||
/********************
|
||||
* Input
|
||||
********************/
|
||||
.form-control {
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.form-inline .col-sm-1 {
|
||||
width: 8.33333333% !important;
|
||||
}
|
||||
.form-inline .col-sm-2 {
|
||||
width: 16.66666667% !important;
|
||||
}
|
||||
.form-inline .col-sm-3 {
|
||||
width: 25% !important;
|
||||
}
|
||||
.form-inline .col-sm-4 {
|
||||
width: 33.33333333% !important;
|
||||
}
|
||||
.form-inline .col-sm-5 {
|
||||
width: 41.66666667% !important;
|
||||
}
|
||||
.form-inline .col-sm-6 {
|
||||
width: 50% !important;
|
||||
}
|
||||
.form-inline .col-sm-7 {
|
||||
width: 58.33333333% !important;
|
||||
}
|
||||
.form-inline .col-sm-8 {
|
||||
width: 66.66666667% !important;
|
||||
}
|
||||
.form-inline .col-sm-9 {
|
||||
width: 75% !important;
|
||||
}
|
||||
.form-inline .col-sm-10 {
|
||||
width: 83.33333333% !important;
|
||||
}
|
||||
.form-inline .col-sm-11 {
|
||||
width: 91.66666667% !important;
|
||||
}
|
||||
.form-inline .col-sm-12 {
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
.form-inline * {
|
||||
float: none;
|
||||
}
|
||||
.form-control.error {
|
||||
border-color: #e84c3d;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025), 0 0 8px #e84c3d;
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025), 0 0 8px #e84c3d;
|
||||
}
|
||||
.help-block {
|
||||
font-size: 12px;
|
||||
}
|
||||
.input-group-addon {
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
|
||||
}
|
||||
a.input-group-addon {
|
||||
color: #4fa1db;
|
||||
}
|
||||
.input-group-btn .btn i {
|
||||
font-size: 110%;
|
||||
}
|
||||
.input-group-btn:first-child .btn {
|
||||
margin-right: 6px;
|
||||
}
|
||||
.input-group-btn:last-child .btn {
|
||||
margin-left: 6px;
|
||||
}
|
||||
/*******************
|
||||
* Navbar
|
||||
*******************/
|
||||
.navbar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-top: 1px solid rgba(128, 128, 128, 0.1);
|
||||
border-bottom: 1px solid rgba(128, 128, 128, 0.1);
|
||||
border-radius: 0;
|
||||
z-index: 20;
|
||||
}
|
||||
.navbar .left-space,
|
||||
.navbar .right-space {
|
||||
width: 25px;
|
||||
height: 38px;
|
||||
}
|
||||
.navbar .nav {
|
||||
float: left;
|
||||
margin: 5px 9px;
|
||||
height: 38px;
|
||||
}
|
||||
.navbar .nav > li {
|
||||
display: inline-block;
|
||||
}
|
||||
.navbar .nav.pull-right {
|
||||
float: right;
|
||||
}
|
||||
.navbar .nav.pull-right > li > .dropdown-menu {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
.navbar .nav.pull-right > li > .dropdown-menu .dropdown-menu {
|
||||
right: 100%;
|
||||
left: auto;
|
||||
margin-right: -1px;
|
||||
margin-left: 0;
|
||||
}
|
||||
.navbar .btn {
|
||||
height: 38px;
|
||||
padding: 6px 8px;
|
||||
}
|
||||
.navbar .btn-group > .btn.disabled *,
|
||||
.navbar .btn-group > .btn.blocked *,
|
||||
.navbar .btn-group > .btn[disabled] * {
|
||||
color: rgba(77, 77, 77, 0.3);
|
||||
}
|
||||
.navbar .button-open-discussion.some {
|
||||
color: #e0b800 !important;
|
||||
}
|
||||
.navbar .button-open-discussion.replied {
|
||||
color: #e74434 !important;
|
||||
}
|
||||
.navbar .file-title-navbar {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
padding: 1px 15px;
|
||||
font-size: 1.5em;
|
||||
line-height: 1.45em;
|
||||
font-weight: 200;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.navbar .file-title-navbar a i {
|
||||
-webkit-transition: all ease-in-out .15s;
|
||||
transition: all ease-in-out .15s;
|
||||
}
|
||||
.navbar .file-title-navbar a .icon-link-ext-alt {
|
||||
color: transparent;
|
||||
position: relative;
|
||||
font-size: 12px;
|
||||
top: -12px;
|
||||
right: 6px;
|
||||
width: 0;
|
||||
}
|
||||
.navbar .file-title-navbar a:hover [class^="icon-provider-"],
|
||||
.navbar .file-title-navbar a:hover [class*=" icon-provider-"] {
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
}
|
||||
.navbar .file-title-navbar a:hover .icon-link-ext-alt {
|
||||
color: #343434;
|
||||
}
|
||||
.navbar .input-file-title-container {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.navbar .input-file-title-container .input-file-title {
|
||||
width: 400px;
|
||||
font-size: 16px;
|
||||
height: 38px;
|
||||
}
|
||||
.navbar .working-indicator {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
overflow: hidden;
|
||||
height: 38px;
|
||||
width: 60px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
.navbar .working-indicator .bar {
|
||||
display: inline-block;
|
||||
width: 14px;
|
||||
height: 6px;
|
||||
border-radius: 1px;
|
||||
margin: 0 2px;
|
||||
opacity: 0.25;
|
||||
filter: alpha(opacity=25);
|
||||
background-color: rgba(77, 77, 77, 0.75);
|
||||
}
|
||||
.navbar .offline-status > div {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
height: 38px;
|
||||
padding: 9px 10px;
|
||||
}
|
||||
.navbar .buttons-dropdown > .nav {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
.navbar div.dropdown-menu {
|
||||
top: initial;
|
||||
padding: 5px;
|
||||
margin: 10px;
|
||||
}
|
||||
/********************
|
||||
* Extensions buttons
|
||||
********************/
|
||||
.extension-buttons > .btn-group > .btn,
|
||||
.extension-preview-buttons > .btn-group > .btn,
|
||||
.extension-buttons > .btn-group > .btn,
|
||||
.extension-preview-buttons > .btn-group > .btn {
|
||||
border-radius: 0;
|
||||
}
|
||||
.extension-buttons > .btn-group:first-child > .btn,
|
||||
.extension-preview-buttons > .btn-group:first-child > .btn,
|
||||
.extension-buttons > .btn-group:first-child > .btn,
|
||||
.extension-preview-buttons > .btn-group:first-child > .btn {
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
}
|
||||
.extension-buttons > .btn-group:last-child > .btn,
|
||||
.extension-preview-buttons > .btn-group:last-child > .btn,
|
||||
.extension-buttons > .btn-group:last-child > .btn,
|
||||
.extension-preview-buttons > .btn-group:last-child > .btn {
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
.extension-preview-buttons {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 30px;
|
||||
bottom: auto;
|
||||
z-index: 40;
|
||||
background-color: #f0f0f0;
|
||||
border: 1px solid #dfdfdf;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.extension-preview-buttons .btn-success {
|
||||
padding: 3px;
|
||||
}
|
||||
.extension-preview-buttons.animate {
|
||||
-webkit-transition: 350ms ease-in-out all;
|
||||
transition: 350ms ease-in-out all;
|
||||
}
|
||||
.extension-preview-buttons .btn-group .btn {
|
||||
position: initial;
|
||||
border: 0;
|
||||
}
|
||||
.extension-preview-buttons .dropdown-menu {
|
||||
margin-top: 6px;
|
||||
margin-bottom: 6px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
.extension-preview-buttons .dropdown-menu h3 {
|
||||
margin: 3px;
|
||||
magin-left: 10px;
|
||||
}
|
||||
.extension-preview-buttons hr {
|
||||
margin: 0;
|
||||
}
|
||||
.extension-preview-buttons .markdown-syntax,
|
||||
.extension-preview-buttons .table-of-contents {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding-right: 20px;
|
||||
width: 300px;
|
||||
}
|
||||
.extension-preview-buttons .markdown-syntax {
|
||||
white-space: normal;
|
||||
}
|
||||
.extension-preview-buttons .table-of-contents {
|
||||
padding: 10px 0 10px;
|
||||
margin-left: -10px;
|
||||
}
|
||||
.extension-preview-buttons .table-of-contents ul {
|
||||
margin-left: 10px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
.extension-preview-buttons .table-of-contents li {
|
||||
height: auto;
|
||||
}
|
||||
.extension-preview-buttons .stat-button .value {
|
||||
vertical-align: text-top;
|
||||
}
|
||||
.extension-preview-buttons .drag-me {
|
||||
color: #4d4d4d;
|
||||
}
|
||||
.extension-preview-buttons .drag-me i:before {
|
||||
width: 5px;
|
||||
}
|
||||
/**************************
|
||||
* Settings dialog
|
||||
**************************/
|
||||
.modal-settings .modal-header {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.modal-settings textarea {
|
||||
max-width: 100%;
|
||||
min-height: 100px;
|
||||
}
|
||||
.modal-settings .panel {
|
||||
border: 0;
|
||||
border-radius: inherit;
|
||||
background: #ffffff;
|
||||
border-bottom: 1px solid #f5f5f5;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.modal-settings .accordion-heading {
|
||||
padding: 12px 15px;
|
||||
}
|
||||
.modal-settings .accordion-heading .checkbox {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.modal-settings .accordion-inner {
|
||||
border: 0;
|
||||
padding: 10px 40px 20px;
|
||||
}
|
||||
.modal-settings .accordion-inner .form-horizontal .control-label {
|
||||
text-align: left;
|
||||
}
|
||||
.modal-settings .accordion-inner .form-horizontal .form-inline .label-text {
|
||||
margin-left: 15px;
|
||||
}
|
||||
.modal-settings .tab-pane-button-container {
|
||||
width: 220px;
|
||||
margin: 10px auto 20px;
|
||||
}
|
||||
.modal-settings .tab-pane-button-container .btn {
|
||||
text-align: start;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.modal-settings .nav-tabs {
|
||||
margin: 15px 0 0;
|
||||
}
|
||||
.modal-settings .nav-tabs > li > a:hover,
|
||||
.modal-settings .nav-tabs > li > a:focus {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
background-color: rgba(128, 128, 128, 0.04);
|
||||
border-bottom-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
.modal-settings .nav-tabs > li.active > a,
|
||||
.modal-settings .nav-tabs > li.active > a:hover,
|
||||
.modal-settings .nav-tabs > li.active > a:focus {
|
||||
color: #3f3f3f;
|
||||
background-color: #ffffff;
|
||||
border-color: #f0f0f0;
|
||||
border-bottom-color: rgba(0, 0, 0, 0);
|
||||
margin-bottom: -1px;
|
||||
padding: 10px 15px 11px;
|
||||
}
|
||||
|
||||
/*********************************
|
||||
* Layout
|
||||
*********************************/
|
||||
@@ -1349,35 +649,6 @@ a.input-group-addon {
|
||||
.layout-wrapper-l3 {
|
||||
}
|
||||
|
||||
/*****************************
|
||||
* Editor
|
||||
*****************************/
|
||||
/*
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('PT Sans'), local('PTSans'), url("../font/PTSans-Regular-webfont.woff") format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('PT Sans Bold'), local('PTSans-Bold'), url("../font/PTSans-Bold-webfont.woff") format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('PT Sans Italic'), local('PTSans-Italic'), url("../font/PTSans-Italic-webfont.woff") format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('PT Sans Bold Italic'), local('PTSans-BoldItalic'), url("../font/PTSans-BoldItalic-webfont.woff") format('woff');
|
||||
}
|
||||
*/
|
||||
#wmd-input {
|
||||
padding: 0 3px;
|
||||
padding-top: 3px;
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang=zh><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Leanote Markdown Editor</title></head><body class="clearfix writting"><div id=title class=field contenteditable=false></div><div contenteditable=false id=separatorDiv><hr></div><div id=mdEditor><div class=layout-wrapper-l1><div class=layout-wrapper-l2><div class=layout-wrapper-l3><div id=left-column><pre id=wmd-input class=form-control><div id=wmd-input-sub class="editor-content mousetrap field" contenteditable=false></div><div class=editor-margin></div></pre></div><div id=right-column><div class="preview-panel panel-open" id=preview-panel><div class=preview-container><div id=preview-contents><div id=wmd-preview class=preview-content></div></div></div></div></div></div><div class="navbar navbar-default" id=tools><div class=navbar-inner id=wmd-button-bar><ul class="nav left-buttons"><li class="wmd-button-group1 btn-group"></li></ul><ul class="nav left-buttons"><li class="wmd-button-group2 btn-group"></li></ul><ul class="nav left-buttons"><li class="wmd-button-group3 btn-group"></li></ul><ul class="nav left-buttons"><li class="wmd-button-group5 btn-group"></li></ul></div></div></div></div></div><link rel=stylesheet href=all.css><script src=all.js></script></body></html>
|
||||
<!DOCTYPE html><html><head><meta name=viewport content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"><title>Leanote Markdown Editor</title></head><body class="clearfix writting"><div id=title class=field contenteditable=false></div><div contenteditable=false id=separatorDiv><hr></div><div id=mdEditor><div class=layout-wrapper-l1><div class=layout-wrapper-l2><div class=layout-wrapper-l3><div id=left-column><pre id=wmd-input class=form-control><div id=wmd-input-sub class="editor-content mousetrap field" contenteditable=false></div><div class=editor-margin></div></pre></div><div id=right-column><div class="preview-panel panel-open" id=preview-panel><div class=preview-container><div id=preview-contents><div id=wmd-preview class=preview-content></div></div></div></div></div></div><div class="navbar navbar-default" id=tools><div class=navbar-inner id=wmd-button-bar><ul class="nav left-buttons"><li class="wmd-button-group1 btn-group"></li></ul><ul class="nav left-buttons"><li class="wmd-button-group2 btn-group"></li></ul><ul class="nav left-buttons"><li class="wmd-button-group3 btn-group"></li></ul><ul class="nav left-buttons"><li class="wmd-button-group5 btn-group"></li></ul></div></div></div></div></div><link rel=stylesheet href=all.css><script src=all.js></script></body></html>
|
@@ -1,66 +1,46 @@
|
||||
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans-Italic");
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans-Bold");
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OpenSans';
|
||||
src: local("OpenSans-BoldItalic");
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
* {
|
||||
outline: 0px solid transparent;
|
||||
/*点击没有高亮focus*/
|
||||
outline: 0px solid transparent;
|
||||
/*点击没有高亮focus*/
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||
-webkit-touch-callout: none;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
|
||||
html, body {
|
||||
margin:0;
|
||||
padding:0;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
body {
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
font-family:OpenSans, sans-serif;
|
||||
overflow-x: hidden;
|
||||
/*font-family:OpenSans, sans-serif;*/
|
||||
/*overflow-x: hidden;*/
|
||||
padding-left:5px;
|
||||
padding-right:5px;
|
||||
}
|
||||
.ipad_body {
|
||||
.ipad-body {
|
||||
padding-left: 80px;
|
||||
padding-right: 80px;
|
||||
}
|
||||
|
||||
.ipad-body #title {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.ipad-body #wmd-input,
|
||||
.ipad-body #wmd-preview {
|
||||
font-size: 1.125em;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
#title {
|
||||
font-family:'Merriweather', serif;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#left-column, #wmd-input,
|
||||
#right-column {
|
||||
font-size: 16px;
|
||||
@@ -70,7 +50,8 @@ h3 {
|
||||
/*font-family:'Merriweather', serif;*/
|
||||
}
|
||||
#title {
|
||||
line-height: 1;
|
||||
font-family:'Merriweather', serif;
|
||||
/*line-height: 1;*/
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 15px 10px 5px 10px;
|
||||
|
@@ -1,50 +1,3 @@
|
||||
.form-control:focus {
|
||||
border-color: #f0f0f0;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025), 0 0 12px -1px rgba(128, 128, 128, 0.6);
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025), 0 0 12px -1px rgba(128, 128, 128, 0.6);
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.navbar-form .col-sm-1 {
|
||||
width: 8.33333333% !important;
|
||||
}
|
||||
.navbar-form .col-sm-2 {
|
||||
width: 16.66666667% !important;
|
||||
}
|
||||
.navbar-form .col-sm-3 {
|
||||
width: 25% !important;
|
||||
}
|
||||
.navbar-form .col-sm-4 {
|
||||
width: 33.33333333% !important;
|
||||
}
|
||||
.navbar-form .col-sm-5 {
|
||||
width: 41.66666667% !important;
|
||||
}
|
||||
.navbar-form .col-sm-6 {
|
||||
width: 50% !important;
|
||||
}
|
||||
.navbar-form .col-sm-7 {
|
||||
width: 58.33333333% !important;
|
||||
}
|
||||
.navbar-form .col-sm-8 {
|
||||
width: 66.66666667% !important;
|
||||
}
|
||||
.navbar-form .col-sm-9 {
|
||||
width: 75% !important;
|
||||
}
|
||||
.navbar-form .col-sm-10 {
|
||||
width: 83.33333333% !important;
|
||||
}
|
||||
.navbar-form .col-sm-11 {
|
||||
width: 91.66666667% !important;
|
||||
}
|
||||
.navbar-form .col-sm-12 {
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
.navbar-form * {
|
||||
float: none;
|
||||
}
|
||||
/** lifelife */
|
||||
/* Pretty printing styles. Used with prettify.js. */
|
||||
pre.prettyprint * {
|
||||
@@ -151,85 +104,10 @@ 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;
|
||||
}
|
||||
@@ -273,10 +151,6 @@ img {
|
||||
.flow-chart [fill="black"] {
|
||||
fill: #3f3f3f;
|
||||
}
|
||||
code,
|
||||
pre {
|
||||
/*font-family: "Source Code Pro", monospace;*/
|
||||
}
|
||||
code {
|
||||
white-space: normal;
|
||||
}
|
||||
@@ -328,24 +202,6 @@ table thead:first-child tr:first-child td {
|
||||
table tbody + tbody {
|
||||
border-top: 2px solid #dddddd;
|
||||
}
|
||||
/*
|
||||
blockquote {
|
||||
border-left-width: 10px;
|
||||
background-color: rgba(128, 128, 128, 0.05);
|
||||
border-top-right-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
padding: 15px 20px;
|
||||
}
|
||||
blockquote p {
|
||||
margin-bottom: 0.3em;
|
||||
font-size: 1em;
|
||||
line-height: 1.45;
|
||||
}
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
*/
|
||||
ul,
|
||||
ol {
|
||||
margin-bottom: 0.3em;
|
||||
@@ -507,544 +363,7 @@ div.jGrowl div.jGrowl-closer {
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
/** Hide jGrowl when printing **/
|
||||
@media print {
|
||||
div.jGrowl {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
/* Colors */
|
||||
/* Sizes */
|
||||
/* Bootstrap */
|
||||
.working {
|
||||
cursor: progress;
|
||||
}
|
||||
.dragging {
|
||||
cursor: move !important;
|
||||
}
|
||||
.btn,
|
||||
.dropdown-menu {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-o-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.dropdown-menu,
|
||||
.modal-content,
|
||||
.panel-content,
|
||||
.search-bar,
|
||||
.popover,
|
||||
.find-replace,
|
||||
.alertify {
|
||||
-webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.225);
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.225);
|
||||
}
|
||||
.collapsed > .icon-up-dir:before {
|
||||
content: '\e94d';
|
||||
}
|
||||
.modal.fade .modal-dialog {
|
||||
-webkit-transform: translate(0, 0);
|
||||
-ms-transform: translate(0, 0);
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
.modal-content {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
.modal-body {
|
||||
background-color: #ffffff;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
.modal-footer {
|
||||
margin-top: 0;
|
||||
}
|
||||
.modal-iframe {
|
||||
display: block;
|
||||
margin: 30px auto 0;
|
||||
z-index: 1040;
|
||||
border-radius: 0;
|
||||
}
|
||||
a {
|
||||
-webkit-transition: background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;
|
||||
transition: background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;
|
||||
}
|
||||
.nav-pills > li > a {
|
||||
border: 1px solid rgba(0, 0, 0, 0);
|
||||
}
|
||||
.nav-pills > li > a:hover,
|
||||
.nav-pills > li > a:focus {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
}
|
||||
.nav-pills > li.open > a .caret,
|
||||
.nav-pills > li > a:hover .caret,
|
||||
.nav-pills > li > a:focus .caret {
|
||||
border-top-color: #343434;
|
||||
border-bottom-color: #343434;
|
||||
}
|
||||
.nav-pills > li.disabled > a:hover,
|
||||
.nav-pills > li.disabled > a:focus {
|
||||
border-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
.nav-pills > li.open > a,
|
||||
.nav-pills > li.open > a:hover,
|
||||
.nav-pills > li.open > a:focus {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
}
|
||||
.list-group-item {
|
||||
padding: 10px 15px;
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.list-group .list-group-item {
|
||||
border-radius: 0;
|
||||
}
|
||||
a.list-group-item:hover,
|
||||
a.list-group-item:focus {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
}
|
||||
.list-group-item .checkbox {
|
||||
float: right;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.list-group-item .checkbox input {
|
||||
cursor: pointer;
|
||||
margin: 0 16px;
|
||||
height: 38px;
|
||||
}
|
||||
.form-group {
|
||||
margin-bottom: 1px;
|
||||
padding: 5px;
|
||||
}
|
||||
.text-danger:hover {
|
||||
color: #d82a1a;
|
||||
}
|
||||
.bring-to-front {
|
||||
z-index: 1050 !important;
|
||||
}
|
||||
.dialog-header-message {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 55px;
|
||||
font-weight: bold;
|
||||
}
|
||||
/*******************
|
||||
* Buttons
|
||||
*******************/
|
||||
.btn {
|
||||
padding: 8px 11px;
|
||||
-webkit-transition: background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;
|
||||
transition: background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;
|
||||
}
|
||||
.btn-default:hover,
|
||||
.alertify-button-cancel:hover,
|
||||
.btn-default:focus,
|
||||
.alertify-button-cancel:focus,
|
||||
.btn-default:active,
|
||||
.alertify-button-cancel:active,
|
||||
.open .btn-default.dropdown-toggle,
|
||||
.open .alertify-button-cancel.dropdown-toggle {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
background-color: rgba(128, 128, 128, 0.04) !important;
|
||||
}
|
||||
.btn-primary:hover,
|
||||
.alertify-button-ok:hover,
|
||||
.btn-primary:focus,
|
||||
.alertify-button-ok:focus,
|
||||
.btn-primary:active,
|
||||
.alertify-button-ok:active,
|
||||
.open .btn-primary.dropdown-toggle,
|
||||
.open .alertify-button-ok.dropdown-toggle {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
background-color: #e3e3e3 !important;
|
||||
}
|
||||
.btn-success:hover,
|
||||
.btn-success:focus,
|
||||
.btn-success:active,
|
||||
.open .btn-success.dropdown-toggle {
|
||||
color: #343434 !important;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
background-color: rgba(128, 128, 128, 0.05) !important;
|
||||
}
|
||||
.btn-info:hover,
|
||||
.btn-info:focus,
|
||||
.btn-info:active,
|
||||
.btn-info.info-tooltip,
|
||||
.info-tooltip .btn-info,
|
||||
.open .btn-info.dropdown-toggle {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.08);
|
||||
background-color: #f3f3f3 !important;
|
||||
}
|
||||
.btn-link:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn-group .btn + .btn,
|
||||
.btn-group .btn + .btn-group,
|
||||
.btn-group .btn-group + .btn,
|
||||
.btn-group .btn-group + .btn-group {
|
||||
margin-left: 0;
|
||||
}
|
||||
.btn-group > .btn + .dropdown-toggle {
|
||||
padding-right: 11px;
|
||||
padding-left: 11px;
|
||||
}
|
||||
/********************
|
||||
* Input
|
||||
********************/
|
||||
.form-control {
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.form-inline .col-sm-1 {
|
||||
width: 8.33333333% !important;
|
||||
}
|
||||
.form-inline .col-sm-2 {
|
||||
width: 16.66666667% !important;
|
||||
}
|
||||
.form-inline .col-sm-3 {
|
||||
width: 25% !important;
|
||||
}
|
||||
.form-inline .col-sm-4 {
|
||||
width: 33.33333333% !important;
|
||||
}
|
||||
.form-inline .col-sm-5 {
|
||||
width: 41.66666667% !important;
|
||||
}
|
||||
.form-inline .col-sm-6 {
|
||||
width: 50% !important;
|
||||
}
|
||||
.form-inline .col-sm-7 {
|
||||
width: 58.33333333% !important;
|
||||
}
|
||||
.form-inline .col-sm-8 {
|
||||
width: 66.66666667% !important;
|
||||
}
|
||||
.form-inline .col-sm-9 {
|
||||
width: 75% !important;
|
||||
}
|
||||
.form-inline .col-sm-10 {
|
||||
width: 83.33333333% !important;
|
||||
}
|
||||
.form-inline .col-sm-11 {
|
||||
width: 91.66666667% !important;
|
||||
}
|
||||
.form-inline .col-sm-12 {
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
.form-inline * {
|
||||
float: none;
|
||||
}
|
||||
.form-control.error {
|
||||
border-color: #e84c3d;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025), 0 0 8px #e84c3d;
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025), 0 0 8px #e84c3d;
|
||||
}
|
||||
.help-block {
|
||||
font-size: 12px;
|
||||
}
|
||||
.input-group-addon {
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
|
||||
}
|
||||
a.input-group-addon {
|
||||
color: #4fa1db;
|
||||
}
|
||||
.input-group-btn .btn i {
|
||||
font-size: 110%;
|
||||
}
|
||||
.input-group-btn:first-child .btn {
|
||||
margin-right: 6px;
|
||||
}
|
||||
.input-group-btn:last-child .btn {
|
||||
margin-left: 6px;
|
||||
}
|
||||
/*******************
|
||||
* Navbar
|
||||
*******************/
|
||||
.navbar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-top: 1px solid rgba(128, 128, 128, 0.1);
|
||||
border-bottom: 1px solid rgba(128, 128, 128, 0.1);
|
||||
border-radius: 0;
|
||||
z-index: 20;
|
||||
}
|
||||
.navbar .left-space,
|
||||
.navbar .right-space {
|
||||
width: 25px;
|
||||
height: 38px;
|
||||
}
|
||||
.navbar .nav {
|
||||
float: left;
|
||||
margin: 5px 9px;
|
||||
height: 38px;
|
||||
}
|
||||
.navbar .nav > li {
|
||||
display: inline-block;
|
||||
}
|
||||
.navbar .nav.pull-right {
|
||||
float: right;
|
||||
}
|
||||
.navbar .nav.pull-right > li > .dropdown-menu {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
.navbar .nav.pull-right > li > .dropdown-menu .dropdown-menu {
|
||||
right: 100%;
|
||||
left: auto;
|
||||
margin-right: -1px;
|
||||
margin-left: 0;
|
||||
}
|
||||
.navbar .btn {
|
||||
height: 38px;
|
||||
padding: 6px 8px;
|
||||
}
|
||||
.navbar .btn-group > .btn.disabled *,
|
||||
.navbar .btn-group > .btn.blocked *,
|
||||
.navbar .btn-group > .btn[disabled] * {
|
||||
color: rgba(77, 77, 77, 0.3);
|
||||
}
|
||||
.navbar .button-open-discussion.some {
|
||||
color: #e0b800 !important;
|
||||
}
|
||||
.navbar .button-open-discussion.replied {
|
||||
color: #e74434 !important;
|
||||
}
|
||||
.navbar .file-title-navbar {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
padding: 1px 15px;
|
||||
font-size: 1.5em;
|
||||
line-height: 1.45em;
|
||||
font-weight: 200;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.navbar .file-title-navbar a i {
|
||||
-webkit-transition: all ease-in-out .15s;
|
||||
transition: all ease-in-out .15s;
|
||||
}
|
||||
.navbar .file-title-navbar a .icon-link-ext-alt {
|
||||
color: transparent;
|
||||
position: relative;
|
||||
font-size: 12px;
|
||||
top: -12px;
|
||||
right: 6px;
|
||||
width: 0;
|
||||
}
|
||||
.navbar .file-title-navbar a:hover [class^="icon-provider-"],
|
||||
.navbar .file-title-navbar a:hover [class*=" icon-provider-"] {
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
}
|
||||
.navbar .file-title-navbar a:hover .icon-link-ext-alt {
|
||||
color: #343434;
|
||||
}
|
||||
.navbar .input-file-title-container {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.navbar .input-file-title-container .input-file-title {
|
||||
width: 400px;
|
||||
font-size: 16px;
|
||||
height: 38px;
|
||||
}
|
||||
.navbar .working-indicator {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
overflow: hidden;
|
||||
height: 38px;
|
||||
width: 60px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
.navbar .working-indicator .bar {
|
||||
display: inline-block;
|
||||
width: 14px;
|
||||
height: 6px;
|
||||
border-radius: 1px;
|
||||
margin: 0 2px;
|
||||
opacity: 0.25;
|
||||
filter: alpha(opacity=25);
|
||||
background-color: rgba(77, 77, 77, 0.75);
|
||||
}
|
||||
.navbar .offline-status > div {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
height: 38px;
|
||||
padding: 9px 10px;
|
||||
}
|
||||
.navbar .buttons-dropdown > .nav {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
.navbar div.dropdown-menu {
|
||||
top: initial;
|
||||
padding: 5px;
|
||||
margin: 10px;
|
||||
}
|
||||
/********************
|
||||
* Extensions buttons
|
||||
********************/
|
||||
.extension-buttons > .btn-group > .btn,
|
||||
.extension-preview-buttons > .btn-group > .btn,
|
||||
.extension-buttons > .btn-group > .btn,
|
||||
.extension-preview-buttons > .btn-group > .btn {
|
||||
border-radius: 0;
|
||||
}
|
||||
.extension-buttons > .btn-group:first-child > .btn,
|
||||
.extension-preview-buttons > .btn-group:first-child > .btn,
|
||||
.extension-buttons > .btn-group:first-child > .btn,
|
||||
.extension-preview-buttons > .btn-group:first-child > .btn {
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
}
|
||||
.extension-buttons > .btn-group:last-child > .btn,
|
||||
.extension-preview-buttons > .btn-group:last-child > .btn,
|
||||
.extension-buttons > .btn-group:last-child > .btn,
|
||||
.extension-preview-buttons > .btn-group:last-child > .btn {
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
.extension-preview-buttons {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 30px;
|
||||
bottom: auto;
|
||||
z-index: 40;
|
||||
background-color: #f0f0f0;
|
||||
border: 1px solid #dfdfdf;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.extension-preview-buttons .btn-success {
|
||||
padding: 3px;
|
||||
}
|
||||
.extension-preview-buttons.animate {
|
||||
-webkit-transition: 350ms ease-in-out all;
|
||||
transition: 350ms ease-in-out all;
|
||||
}
|
||||
.extension-preview-buttons .btn-group .btn {
|
||||
position: initial;
|
||||
border: 0;
|
||||
}
|
||||
.extension-preview-buttons .dropdown-menu {
|
||||
margin-top: 6px;
|
||||
margin-bottom: 6px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
.extension-preview-buttons .dropdown-menu h3 {
|
||||
margin: 3px;
|
||||
magin-left: 10px;
|
||||
}
|
||||
.extension-preview-buttons hr {
|
||||
margin: 0;
|
||||
}
|
||||
.extension-preview-buttons .markdown-syntax,
|
||||
.extension-preview-buttons .table-of-contents {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding-right: 20px;
|
||||
width: 300px;
|
||||
}
|
||||
.extension-preview-buttons .markdown-syntax {
|
||||
white-space: normal;
|
||||
}
|
||||
.extension-preview-buttons .table-of-contents {
|
||||
padding: 10px 0 10px;
|
||||
margin-left: -10px;
|
||||
}
|
||||
.extension-preview-buttons .table-of-contents ul {
|
||||
margin-left: 10px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
.extension-preview-buttons .table-of-contents li {
|
||||
height: auto;
|
||||
}
|
||||
.extension-preview-buttons .stat-button .value {
|
||||
vertical-align: text-top;
|
||||
}
|
||||
.extension-preview-buttons .drag-me {
|
||||
color: #4d4d4d;
|
||||
}
|
||||
.extension-preview-buttons .drag-me i:before {
|
||||
width: 5px;
|
||||
}
|
||||
/**************************
|
||||
* Settings dialog
|
||||
**************************/
|
||||
.modal-settings .modal-header {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.modal-settings textarea {
|
||||
max-width: 100%;
|
||||
min-height: 100px;
|
||||
}
|
||||
.modal-settings .panel {
|
||||
border: 0;
|
||||
border-radius: inherit;
|
||||
background: #ffffff;
|
||||
border-bottom: 1px solid #f5f5f5;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.modal-settings .accordion-heading {
|
||||
padding: 12px 15px;
|
||||
}
|
||||
.modal-settings .accordion-heading .checkbox {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.modal-settings .accordion-inner {
|
||||
border: 0;
|
||||
padding: 10px 40px 20px;
|
||||
}
|
||||
.modal-settings .accordion-inner .form-horizontal .control-label {
|
||||
text-align: left;
|
||||
}
|
||||
.modal-settings .accordion-inner .form-horizontal .form-inline .label-text {
|
||||
margin-left: 15px;
|
||||
}
|
||||
.modal-settings .tab-pane-button-container {
|
||||
width: 220px;
|
||||
margin: 10px auto 20px;
|
||||
}
|
||||
.modal-settings .tab-pane-button-container .btn {
|
||||
text-align: start;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.modal-settings .nav-tabs {
|
||||
margin: 15px 0 0;
|
||||
}
|
||||
.modal-settings .nav-tabs > li > a:hover,
|
||||
.modal-settings .nav-tabs > li > a:focus {
|
||||
color: #343434;
|
||||
border-color: rgba(128, 128, 128, 0.1);
|
||||
background-color: rgba(128, 128, 128, 0.04);
|
||||
border-bottom-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
.modal-settings .nav-tabs > li.active > a,
|
||||
.modal-settings .nav-tabs > li.active > a:hover,
|
||||
.modal-settings .nav-tabs > li.active > a:focus {
|
||||
color: #3f3f3f;
|
||||
background-color: #ffffff;
|
||||
border-color: #f0f0f0;
|
||||
border-bottom-color: rgba(0, 0, 0, 0);
|
||||
margin-bottom: -1px;
|
||||
padding: 10px 15px 11px;
|
||||
}
|
||||
|
||||
/*********************************
|
||||
* Layout
|
||||
*********************************/
|
||||
@@ -1053,35 +372,6 @@ a.input-group-addon {
|
||||
.layout-wrapper-l3 {
|
||||
}
|
||||
|
||||
/*****************************
|
||||
* Editor
|
||||
*****************************/
|
||||
/*
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('PT Sans'), local('PTSans'), url("../font/PTSans-Regular-webfont.woff") format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('PT Sans Bold'), local('PTSans-Bold'), url("../font/PTSans-Bold-webfont.woff") format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('PT Sans Italic'), local('PTSans-Italic'), url("../font/PTSans-Italic-webfont.woff") format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'PT Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('PT Sans Bold Italic'), local('PTSans-BoldItalic'), url("../font/PTSans-BoldItalic-webfont.woff") format('woff');
|
||||
}
|
||||
*/
|
||||
#wmd-input {
|
||||
padding: 0 3px;
|
||||
padding-top: 3px;
|
||||
|
@@ -1,9 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
|
||||
<title>Leanote Markdown Editor</title>
|
||||
</head>
|
||||
<body class="clearfix writting">
|
||||
|
@@ -137,9 +137,13 @@ function log(o) {
|
||||
// Use ?debug to serve original JavaScript files instead of minified
|
||||
window.baseDir = 'res-min';
|
||||
var isDebug = false;
|
||||
if (/debug/.test(location.search)) {
|
||||
var isDebugIPad = false;
|
||||
if (/debug/.test(location)) {
|
||||
isDebug = true;
|
||||
}
|
||||
if (/ipad/.test(location)) {
|
||||
isDebugIPad = true;
|
||||
}
|
||||
window.require = {
|
||||
baseUrl: window.baseDir,
|
||||
// deps: ['main']
|
||||
|
@@ -1,4 +1,3 @@
|
||||
|
||||
var MDInited = false;
|
||||
|
||||
function setEditorContent(content) {
|
||||
@@ -135,7 +134,7 @@ var LEAMD = {
|
||||
|
||||
this.isiPad = (navigator.userAgent.match(/iPad/i) != null);
|
||||
if (this.isiPad) {
|
||||
$(document.body).addClass('ipad_body');
|
||||
$(document.body).addClass('ipad-body');
|
||||
}
|
||||
|
||||
// tap事件
|
||||
@@ -475,9 +474,14 @@ ZSSEditor.getSelectedText = function() {
|
||||
ZSSEditor.logMainElementSizes = function() {};
|
||||
|
||||
// life test
|
||||
if(isDebug) {
|
||||
if(isDebug || isDebugIPad) {
|
||||
titleField.enableEditing();
|
||||
contentField.enableEditing();
|
||||
var content = $('#life').val();
|
||||
setEditorContent(content);
|
||||
|
||||
titleField.setHTML("你好啊 hello world");
|
||||
}
|
||||
if (isDebugIPad) {
|
||||
$('body').addClass('ipad-body');
|
||||
}
|
||||
|
Reference in New Issue
Block a user