快速入门

直接导入 Markdown.Lite 的样式文件。Markdown.Lite 支持标准的 Markdown 语法.

案例

正在使用 Markdown.Lite 的文档:

样式表

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  border-left: 2px #5b3cc4;
  -webkit-box-shadow: 0 20px 40px -15px rgba(0,0,0,.05);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.05);
  -webkit-transition: all .25s ease;
  transition: all .25s ease;
  border-bottom: 1px solid #f0f0f0;
}

h1 {
  padding: 15px;
  padding-left: 0;
  color: #5b3cc4;
  border-radius: 0;
  font-size: 30px;
}

h1 a {
  margin-left: 10px;
}

h2, h3, h4, h5, h6{
  padding: 10px;
  width: calc(100% - 30px);
  border-bottom: 0!important;
  font-weight: 700;
  font-size: 1.4rem;
}

h1:hover , h2:hover ,h3:hover ,h4:hover, h5:hover ,h6:hover {
  padding-left: 30px;
}

h1 >a::before , h2 >a::before ,h3 >a::before ,h4 >a::before, h5 >a::before ,h6 >a::before {
  content: '#' !important;
}

h1 >a , h2 >a ,h3 >a ,h4 >a, h5 >a ,h6 >a {
  font-size: .85em;
  float: left;
  margin-left: -.87em;
  padding-right: .23em;
  margin-top: .125em;
  opacity: 0;
  -webkit-transform: translate(-10px);
  transform: translate(-10px);
  -webkit-transition: all .3s ease!important;
  transition: all .3s ease!important;
}

p {
  width: 100%;
  padding: 6px 20px;
  background: transparent!important;
  margin-top: 0;
  border-radius: 10px;
}

pre {
  background-color: #f5f7fb!important;
  line-height: 1.4;
  border-radius: 6px;
  padding: .6rem 1rem!important;
  margin: .85rem 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  position: relative;
  border-radius: 0!important;
  font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;
}

pre code {
  color: rgba(0,0,0,.65)!important;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  margin: 0;
  font-size: .85em;
}

table {
  padding: 10px;
  margin-top: 10px;
  background: #fbfbfb;
  border-radius: 5px;
  -webkit-box-shadow: 0 20px 40px -15px rgba(0,0,0,.05);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.05);
}

table th {
  border: none;
}

tbody tr {
  background: #fff;
  border-radius: 5px;
  transition: all .3s ease;
  width: calc(100% - 10px);
  margin-left: 5px;
  z-index: 100;
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 5px;
  background: #fff;
  padding: 6px 0;
  position: relative;
  -webkit-transition: all .25s ease;
  transition: all .3s ease;
}

tbody tr:hover {
  border-radius: 5px;
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
}
tbody tr td {
  padding: 10px;
  border: 0;
}

ul {
  border-radius: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  -webkit-box-shadow: 0 20px 40px -15px rgba(0,0,0,.05);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.05);
}

ul li {
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 5px;
  list-style-type: none;
}