ace editor, markdown editor

This commit is contained in:
life committed 2015-01-08 00:36:28 +08:00
1 parent be01c9c3f7
commit 2cfc89ca5f
1233 files changed
+24568 -10275

No files matched your search

+222 -7
View File
@@ -35,11 +35,30 @@
font-weight: normal;
font-style: normal;
}
html,body {
}
*,.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
font-family: @fontFamily;
}
body {
font-family: @fontFamily;
font-weight: 300;
font-size: @fontSize;
}
h1, h2, h3 {
font-family: @fontFamily;
font-weight: 300 !important;
}
/*"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue", Helvetica, "Microsoft Yahei", Verdana, Simsun, "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", "BBAlpha Sans", "S60 Sans", Arial, sans-serif;*/
#noteItemList, #notebook, #leftNotebook,
.slimScrollDiv,
#editorContent,
#editorContent_ifr,
.mce-edit-area,.mce-container-body,.mce-tinymce,
#editor .mce-ifr,
@@ -51,7 +70,47 @@
-webkit-overflow-scrolling: touch !important; // for iphone
}
.ios7-a {
display: inline-block;
padding: 0 10px 0 5px;
height: 36px;
vertical-align: middle;
line-height: 36px;
cursor: pointer;
}
#tool {
border-bottom: 1px solid #ddd;
height: 36px;
margin-left: -5px; // 为了和左边的底部线连接起来
}
#tag {
height: 36px;
line-height: 36px;
}
#editor, #mdEditor{
position: absolute;
z-index: 2;
top: 66px;
bottom: 0px;
right: 0;
left: 5px;
padding: 0; // 0px 0px 0px 0px;
display: none;
}
#mdEditor {
z-index: 1;
background-color: #fff;
bottom: 5px;
#md-section-helper, #wmd-input {
font-size: 14px;
line-height: 22px;
}
}
// 前面的38影响了dropdown
#tag .dropdown {
line-height: 30px;
}
.btn {
border-radius: 2px;
}
@@ -647,8 +706,8 @@
#tag {
position: absolute;
right: 300px;
left: 0;
top: 0;
left: 5px;
bottom: 0;
}
#tagColor {
@@ -734,13 +793,9 @@
}
#right-column {
border: 1px dashed #BBBBBB;
border-radius: 5px;
padding-left: 5px;
}
.preview-container {
overflow: auto;
}
.wmd-preview {
@@ -961,10 +1016,170 @@ top: 4px;
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}
/* leanote nav */
.leanoteNavTrigger {
}
.leanoteNav {
position: absolute;
right: 0px;
border: 1px solid #ccc;
border-radius: 3px;
background-color: #fff;
opacity: 0.5;
// display: none;
z-index: 11;
margin-top: 4px;
h1 {
margin: 0;
font-size: 16px;
padding: 3px;
cursor: pointer;
// padding-top: 3px;
}
i {
padding: 3px;
}
span {
display: none;
}
.leanoteNavContent {
display: none;
overflow: auto;
}
}
.leanoteNav.unfolder {
min-width: 200px;
max-width: 300px;
// bottom: 1px;
opacity: 0.8;
h1 {
border-bottom: 1px dashed @borderColor;
}
span {
display: inline;
}
.leanoteNavContent {
display: block;
min-height: 30px;
}
}
.leanoteNav ul {
margin:0;
padding-left: 23px;
li {
list-style-type: disc;
a {
&:hover {
color: @hColor;
}
}
}
}
.leanoteNav ul .nav-h1 {
}
.leanoteNav ul .nav-h2 {
margin-left: 20px;
}
.leanoteNav ul .nav-h3 {
margin-left: 30px;
}
.leanoteNav ul .nav-h4 {
margin-left: 40px;
}
.leanoteNav ul .nav-h5 {
margin-left: 50px;
}
.scrollTo-a {
cursor: pointer !important;
}
#editorContent {
border: 1px solid #ccc;
border-radius: 5px;
padding: 5px;
outline: none;
margin-top: 5px;
}
bottom: 5px !important;
pre {
position: relative;
// overflow: visible;
-mo-height: auto !important; // 防止ace设置了高度
.toggle-raw {
position: absolute;
left: 2px;
top: -2px;
z-index: 100;
display: none;
// cursor: default;
input {
}
}
&:hover .toggle-raw {
// cursor: default;
display: block;
}
}
}
// 不显示空白
.ace_invisible_space {
visibility: hidden !important;
}
.mce-tinymce-inline {
// visibility: hidden !important;
// border-width: 0px !important;
// z-index: -1 !important;
border-width: 0 !important;
}
#editorContent {
a {
color: #2a6496;
text-decoration: underline;
}
pre {
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
// background-color: #FFFFFF;
color: #4D4D4C;
// padding: 5px;
}
.ace-tomorrow {
padding: 0;
padding-left: 44px;
}
.ace-to-pre {
padding: 0;
padding-left: 5px;
// border-left: 10px solid #ccc;
}
// 垂直滚动条, 在windows下会显示的问题
.ace_scrollbar-v {
overflow-y: hidden;
}
.leanote-image-container {
display: inline-block;
width: 100px;
.loader {
display: inline-block;
vertical-align: top;
margin-right: 3px;
margin-top: 5px;
}
.progress {
display: inline-block;
margin: 0;
width: 80px;
}
}
}
.close:focus {
outline: none;
}