markdown编辑器宽度与富文本一致

#18
This commit is contained in:
life
2015-11-02 19:45:49 +08:00
parent 6a27c18ac2
commit ab36c1f9cd
6 changed files with 34 additions and 12 deletions

View File

@@ -38,7 +38,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>95B</string>
<string>95C</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>

View File

@@ -18,7 +18,7 @@
<key>AutocorrectionType</key>
<string>No</string>
<key>DefaultValue</key>
<string>1.0 (95B)</string>
<string>1.0 (95C)</string>
<key>IsSecure</key>
<false/>
<key>Key</key>

View File

@@ -24,6 +24,11 @@
font-style: italic;
}
html, body {
margin:0;
padding:0;
}
* {
outline: 0px solid transparent;
/*点击没有高亮focus*/
@@ -37,7 +42,14 @@ body {
font-size: 14px;
font-family:OpenSans, sans-serif;
overflow-x: hidden;
padding-left:5px;
padding-right:5px;
}
.ipad_body {
padding-left: 80px;
padding-right: 80px;
}
h1,
h2,
h3 {
@@ -91,10 +103,6 @@ h3 {
right: 0;
bottom: 0;
}
#left-column,
#right-column
{
}
#wmd-input,
#wmd-input-sub {
@@ -285,6 +293,7 @@ span.token.p {
display: inline-block;
margin-bottom: 10px;
}
.form-control:focus {
border-color: #f0f0f0;
outline: 0;

File diff suppressed because one or more lines are too long

View File

@@ -24,6 +24,11 @@
font-style: italic;
}
html, body {
margin:0;
padding:0;
}
* {
outline: 0px solid transparent;
/*点击没有高亮focus*/
@@ -37,7 +42,14 @@ body {
font-size: 14px;
font-family:OpenSans, sans-serif;
overflow-x: hidden;
padding-left:5px;
padding-right:5px;
}
.ipad_body {
padding-left: 80px;
padding-right: 80px;
}
h1,
h2,
h3 {
@@ -91,10 +103,6 @@ h3 {
right: 0;
bottom: 0;
}
#left-column,
#right-column
{
}
#wmd-input,
#wmd-input-sub {
@@ -284,4 +292,4 @@ span.token.p {
{
display: inline-block;
margin-bottom: 10px;
}
}

View File

@@ -133,6 +133,11 @@ var LEAMD = {
// 绑定事件
init: function() {
this.isiPad = (navigator.userAgent.match(/iPad/i) != null);
if (this.isiPad) {
$(document.body).addClass('ipad_body');
}
// tap事件
tapLea('#preview-contents', 'img, a', function() {
if($(this).is('img')) {