美文网首页
测试简书的样式

测试简书的样式

作者: 三月懒驴 | 来源:发表于2016-05-31 09:21 被阅读229次

测试出简书的markdown中CSS的样式,因为不太喜欢代码的背景色,自己改了一下颜色。嗯。差不多就是这样。简书的markdown不支持公式这个有点难
接受。


/* *{font-size:10px }*/
.markdown{
  flex: 1;
  -webkit-flex: 1;
  word-wrap: break-word;
  overflow-y: auto;

  color: #2f2f2f;
  font-family: "lucida grande", "lucida sans unicode", lucida, helvetica, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 1.7;
}
/*标题*/
.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6{
  margin: 0;
  color: inherit;
  line-height: 1.8;
  text-rendering: optimizelegibility;
}
.markdown h1{font-size: 26px;}
.markdown h2{font-size: 24px;}
.markdown h3{font-size: 22px;}
.markdown h4{font-size: 20px;}
.markdown h5{font-size: 18px;}
.markdown h6{font-size: 16px;}
/*列表*/
ul, ol{
  text-align: justify;
  text-justify: inter-ideograph;
  padding: 0;
  margin: 0 0 20px 25px;
}
.markdown li{line-height: 30px;}
/*正文*/
.markdown p{
  margin: 0 0 25px 0;
}
/*引用*/
.markdown blockquote{
  padding: 10px 15px;
  margin: 0 0 20px;
  background-color: whitesmoke;
  border-left: 4px solid #009688;
  word-break: break-word;
  font-size: 15px;
  font-weight: 100;
  line-height: 30px;
}
.markdown blockquote p{
  font-size: 15px;
  font-weight: normal;
  line-height: 1.7;
}
.markdown blockquote p:last-child{margin: 0;}
blockquote:before, blockquote:after {content: "";}

/* 斜体 && 加粗 && 超链接 */
.markdown em{font-style: italic;}
.markdown strong{font-weight: bold;}
.markdown a{color: #4094c7;text-decoration: none;}

/*代码*/
.markdown pre{
  word-wrap: normal;
  word-break: break-all;
  white-space: pre;
  overflow: auto;
  overflow-x: auto;
  margin-bottom: 20px;

  background: #f6f6f6;
  color: #657b83;
  -webkit-text-size-adjust: none;

  max-height: 500px;

  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15)
}
.markdown pre code{
  padding: 0;
  background-color: transparent;
  white-space: pre;
  border: none;
  color: #657b83;
  font-size: 12px;
}

/*表格*/
.markdown table{
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #dddddd;
  border-collapse: collapse;
  border-left: none;
  max-width: 100%;
  background-color: transparent;
}
.markdown table th,.markdown table td{
  padding: 8px;
  border-left: 1px solid #dddddd;
  border-top: 1px solid #dddddd;
  line-height: 20px;
  text-align: center;
  vertical-align: center;
}
.markdown table th{
  font-weight: bold;
  vertical-align: center;
}

/* 图片 */
.markdown .image{
  margin: 0 auto 20px;
  text-align: center;
}
.markdown .image img{
  max-width: 100%;
  width: auto;
  height: auto;
  vertical-align: middle;
  border: 0;
  -ms-interpolation-mode: bicubic;
}
.markdown .imageDesc{
  min-width: 20%;
  min-height: 22px;
  display: inline-block;
  padding: 10px;
  margin: 0 auto;
  border-bottom: 1px solid #d9d9d9;
  font-size: 13px;
  color: #999999;
  font-style: italic;
  line-height: 1.7;
}

相关文章

  • 简书样式测试

    Python基本语法&结构 函数 定义 参数 位置参数 参数传入时, 实参与形参位置一一对应 默认参数 设置默认参...

  • 测试简书的样式

    测试出简书的markdown中CSS的样式,因为不太喜欢代码的背景色,自己改了一下颜色。嗯。差不多就是这样。简书的...

  • 测试简书

    测试简书 测试简书 测试简书 测试简书 测试简书 测试简 测试简书 测试简书 测试简书 测试简书 测试简书 测试简...

  • 无标题文章

    ####### 简书测试# 简书测试# 简书测试# 简书测试# 简书测试# 简书测试# 简书测试# 简书测试# 简...

  • 测试简书

    测试简书开始 测试简书介绍

  • 2021-10-13

    测试简书作为服务端1 测试简书作为服务端2

  • 简书

    简 书 简书日记本测试文档!

  • 测试文章

    此为测试文本,用于测试简书

  • 定制简书样式

    今天看到贴吧几年前的一个帖子有新回复,是关于Stylish的chrome插件的使用,于是就心血来潮,花了一点时间把...

  • 简书字体样式

    https://www.jianshu.com/p/d0523a0c23c1

网友评论

      本文标题:测试简书的样式

      本文链接:https://www.haomeiwen.com/subject/yaucdttx.html