Typecho富文本器标签样式CSS美化代码

2个月前 教程分享 109°C

这篇文章最后更新于09-30 10:50前,您需要注意相关的内容是否还可用,如有疑问请联系作者!

Typecho富文本器标签样式CSS美化代码

提示:相关代码取自Joe主题模板,在此非常感谢作者的奉献。

/*自定义样式(相关css样式代码取自Joe主题模板)*/
.xm-content-c h1,
.xm-content-c h2,
.xm-content-c h3,
.xm-content-c h4,
.xm-content-c h5,
.xm-content-c h6 {
 color:black;
 font-size:18px;
 line-height:24px;
 margin-bottom:18px;
 position:relative
}
.xm-content-c h1 {
 padding:0 15px 0 20px
}
.xm-content-c h1::before {
 content:'¶';
 color:#ffbb50;
 position:absolute;
 top:0;
 left:0;
 font-size:22px
}
.xm-content-c h2 {
 padding:0 15px
}
.xm-content-c h2::before {
 content:'';
 position:absolute;
 top:10%;
 bottom:10%;
 left:0;
 width:4px;
 border-radius:2px;
 background:#FD6363;
}
.xm-content-c h3 {
 padding:0 15px
}
.xm-content-c h3::before {
 content:'';
 position:absolute;
 top:0;
 bottom:0;
 left:0;
 width:4px;
 background:#ffbb50;
 border-radius:0 4px 4px 0
}
.xm-content-c h4::before {
 content:'「';
 color:#9999FF;
 font-weight:600;
 margin-right:5px
}
.xm-content-c h4::after {
 content:'」';
 color:#9999FF;
 font-weight:600;
 margin-left:5px
}
.xm-content-c h5 {
 padding:0 15px 0 28px
}
.xm-content-c h5::before {
 content:'';
 position:absolute;
 top:2px;
 left:0;
 width:20px;
 height:20px;
 background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAC8klEQVRYR+3WP2gTURwH8O/vKnVRRHKXP52cBO3g4p/BqYNIhy4muajUQRBFKjQV1En6ZxJBcmlRCoJDRe3FDiJVwamLS3FwqbgIgss1l2ZQF5XeT3I1Z3NJ7u5dLlAwN9699/t97vfe7/EIO/yhHe5DD9jpCv3fFVTu856+Xzi62Y/35hj9CFPNrlUwWeRJAJfBGADwBcBNI0/PRZFdAdo4xlQLjCqKjBzogat7hZCRAgPghJGBgbFnxglAOvS7b/fLb+q+qnv5BHBCyEBAWTdnANy2IxOtWSC1qsY+1jOFwAVG+gIVvXyHQbcaKuZCxmf5iMQogXFQtEsBeO5JT6BcMu+Bcb1lUhcyqfExACUAB6JEtgUqi+U5JrrmmcyFHCjwSYtQO+tSUSFbAmXdnAdwJVASdyWLPAS2kbFA8xsHNS13EzCmlx8R6KJQcBcypfFpho3cKxRna3ADsgEo6+ZjAKMhgjZ1d2KWR2gTSyD0h4jnIB2gXDIXwciFCPZvSnMl0wwshYrJGDImaMUGKovlLBPVOrDjh8APzFx8zDkjNa7FzYoGZsKT9XEarQOHmei1aJA246cqOWW6/i2l8VMGzoWIPW/k6eq2Ja6UwCz8pw2JGZ8sS8pUz8fWau/jGp+SgLchcGBgZD1Py41NUuoI+ZloV8ZU93+ogZKzfBiWfXAPCgMJU8Y42avQdMzI4ZBfmSizocqrUeJaAmsvBZGGBCtTziXeRY1rCxRAViEhXckqK93AeQJ9kYTvlmVlqmcTdhNEtefc+9X3utVmuX+CkK6oyqtu4nwrWP8bF5IZdGYjJ79wDuMCz4D+XmhFWnZbt7ab5ltBB6mbkyAaBPFCJassuwMmNb4L4EZgXwBc4AoGTZrUeA6A9x1yK6tzzvnFDlxBv0D176kCP2TCpbbjBXCRV9DZk0VeAONCE1IQ1zWg3dlF1sFQHWQIXFeBNrLAw5BwHBZWjQl6E3SbbB8X+R4Mg/Ca0wN2WtFeBTut4B84mFI4VpekyAAAAABJRU5ErkJggg==");
 background-size:100% 100%
}
.xm-content-c h6 {
 padding:0 15px 0 28px
}
.xm-content-c h6::before {
 content:'';
 position:absolute;
 top:2px;
 left:0;
 width:20px;
 height:20px;
 background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAEI0lEQVRYR+3Xb2wTZRwH8G/vL22RPy5GW8fK6rJpGeFFY9RO3TRRE1HfmEAammEyjZmOSEg1RrPZaTD6xjhU/Ndlf0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aq7ZZ3G10KBTqRQl3pQPGY1GEQgE4HQ6heVDAO5S1cklNmUDXQRB9KZSqXkfESaTCW63G7FYDKFQKDEyMoJoNKqfe/bbAJ7QGpcrxa8xDLOV5/k0kGXZv2ZnZ5FMJtNjmqYvURR1IpFInAcwAeD7ud/pUuDmAY1G41g8Hl9DkmScoqggx3FHAIyJMMlSQfI9V5zKagDC93dsoRFKimQx2dIWOV/U/yn6bx0WyDj8vgLOAAAAAElFTkSuQmCC");
 background-size:100% 100%
}
.xm-content-c hr {
  border: none;
  height: 1px;
  background-color: #f0f0f0;
  margin-bottom: 18px;
}

.xm-content-c blockquote{
line-height: 26px;
margin-bottom: 18px;
background: #ecf8ff;
border-left: 5px solid #50bfff;
color: #50bfff;
padding: 8px 15px;
}

.xm-content-c pre {
 position:relative;
 margin:0 0 18px;
 padding:30px 0 0;
 font-size:14px;
 overflow:hidden
}
.xm-content-c pre code {
 display:block;
 overflow:auto;
 padding:0 15px 12px
}
.xm-content-c pre::before {
 content:'';
 position:absolute;
 top:9px;
 left:15px;
 width:12px;
 height:12px;
 border-radius:50%;
 background:#fc625d;
 box-shadow:20px 0 #fdbc40, 40px 0 #35cd4b;
 z-index:1
}

.xm-content-c ol,
.xm-content-c ul {
 margin-bottom:18px;
 padding-left:36px
}
.xm-content-c ol li,
.xm-content-c ul li {
 line-height:26px;
 margin: 5px 0;
}
.xm-content-c ol li {
 list-style:decimal
}
.xm-content-c ul li {
 list-style:disc
}
/*自定义样式结束*/
版权说明:本站所提供的文章、图片等内容均为用户发布或互联网整理而来,仅供学习参考,如有侵犯您的版权,请联系我们客服人员删除。
本文链接:https://huue.cc/index.php/archives/1543.html
最后编辑: 21年09月30日

网友评论

1周前

感觉ci更简单轻便。

2周前

wwwww

3周前

支持awa

4周前

可以可以

1个月前

看看

2个月前

看一下