1 Star 0 Fork 38

HopEvan/mdeditor

forked from 笔心/mdeditor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mdeditor.css 4.68 KB
一键复制 编辑 原始数据 按行查看 历史
笔心 提交于 2016-01-22 17:18 . no commit message
.mdeditor,
.mdeditor-html {
display: block;
box-sizing: border-box;
height: inherit;
min-height: 200px;
padding: 10px;
font-size: 14px;
border: 1px solid #ccc;
}
.mdeditor {
float: left;
width: 50%;
line-height: 1.5em;
resize: none;
outline: none;
border: 1px solid #ccc;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.mdeditor:focus {
border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}
.mdeditor::-webkit-scrollbar,
.mdeditor-html::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.mdeditor::-webkit-scrollbar-track-piece,
.mdeditor-html::-webkit-scrollbar-track-piece {
background: #dedede;
border-radius: 5px;
}
.mdeditor::-webkit-scrollbar-thumb,
.mdeditor-html::-webkit-scrollbar-thumb {
background: #999;
border-radius: 5px;
}
.mdeditor::-webkit-scrollbar-thumb:hover,
.mdeditor-html::-webkit-scrollbar-thumb:hover {
background: #888;
border-radius: 5px;
}
.mdeditor-html {
background: #fff;
border-left: 0;
overflow-y: auto;
}
.mdeditor-html.preview {
border: 0;
padding: 0;
}
.mdeditor-html .mdeditor-toc {
color: #337ab7;
font-size: 14px;
line-height: 1.5em;
}
.mdeditor-html .mdeditor-toc a,
.mdeditor-html .mdeditor-toc a:link {
display: block;
text-decoration: none;
color: #337ab7;
}
.mdeditor-html .mdeditor-toc-1 {
font-size: 16px;
text-indent: 1em;
}
.mdeditor-html .mdeditor-toc-2 {
text-indent: 2em;
}
.mdeditor-html .mdeditor-toc-3 {
text-indent: 3em;
}
.mdeditor-html .mdeditor-toc-4 {
text-indent: 4em;
}
.mdeditor-html .mdeditor-toc-5 {
text-indent: 5em;
}
.mdeditor-html .mdeditor-toc-6 {
text-indent: 6em;
}
.mdeditor-html .mdeditor-toc a:visited {
color: inherit;
}
.mdeditor-html .mdeditor-toc a:hover {
color: #00f;
}
.mdeditor-html h1,
.mdeditor-html h2,
.mdeditor-html h3,
.mdeditor-html h4,
.mdeditor-html h5,
.mdeditor-html h6 {
margin-top: 20px;
margin-bottom: 10px;
font-weight: normal;
color: #000;
}
.mdeditor-html h1 {
font-size: 40px;
}
.mdeditor-html h2 {
margin-top: 30px;
margin-bottom: 20px;
font-size: 28px;
}
.mdeditor-html h3 {
font-size: 24px;
}
.mdeditor-html h4 {
font-size: 20px;
}
.mdeditor-html h5 {
font-size: 18px;
}
.mdeditor-html h6 {
font-size: 14px;
}
.mdeditor-html p {
font-size: 16px;
line-height: 1.9em;
margin-bottom: 18px;
}
.mdeditor-html .mdeditor-inline-code,
.mdeditor-html pre,
.mdeditor-html code {
font-family: "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
}
.mdeditor-html .mdeditor-inline-code {
padding: 3px 5px;
margin: 0 2px;
border: 1px solid #ccc;
color: #c7254e;
background-color: #f9f2f4;
white-space: nowrap;
-webkit-border-radius: 4px;
border-radius: 4px;
}
.mdeditor-ul,
.mdeditor-ol {
padding: 0 2em;
line-height: 2em;
}
.mdeditor-html .mdeditor-code {
padding: 0 0 0 10px;
margin: 20px 0;
border-radius: 0;
background: #3C3C37;
border: 0;
font-size: 14px;
}
.mdeditor-html .mdeditor-code ol {
margin: 0 0 0 50px;
padding: 0;
color: #aaa;
}
.mdeditor-html .mdeditor-code li {
padding: 0 20px;
line-height: 2em;
list-style: inherit;
background: #272822;
}
.mdeditor-html .mdeditor-code li code {
color: #efefef;
word-break: break-word;
}
.mdeditor-html .mdeditor-code li.mdeditor-code-line-first {
padding-top: 10px;
}
.mdeditor-html .mdeditor-code li.mdeditor-code-line-last {
padding-bottom: 10px;
}
.mdeditor-table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
}
.mdeditor-table th {
background: #f1f1f1;
color: #666;
font-weight: normal;
}
.mdeditor-table th,
.mdeditor-table td {
padding: 10px;
border: 1px solid #ddd;
}
.css-property-name {
font-style: italic;
color: #66D9EF;
}
.css-property-value {
color: #E6DB74;
}
.css-semicolon {
color: #eee;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/HopEvan/mdeditor.git
git@gitee.com:HopEvan/mdeditor.git
HopEvan
mdeditor
mdeditor
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385