css WordPress编辑器的常规样式
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css WordPress编辑器的常规样式相关的知识,希望对你有一定的参考价值。
/*
======================================================
STYLES FOR WORDPRESS EDITOR
======================================================
*/
.center {
text-align: center;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
.clear {
clear: both;
}
.alignright, .alignright {
float: right;
margin-left: 1em;
//margin-bottom: 1em;
}
.alignleft, a .alignleft {
float: left;
margin-right: 1em;
//margin-bottom: 1em;
}
.aligncenter, a .aligncenter {
display: block;
margin-right: auto;
margin-left: auto;
margin-bottom: 1em;
margin-top: 1em;
}
hr.clear {
clear: both;
visibility: hidden;
margin: 0px;
padding: 0px;
height: 0px;
}
.sticky {
background:red;
}
.gallery {
margin-left: -0.5em;
margin-right: -0.5em;
overflow-x: hidden;
br{
display: none;
}
}
.gallery:after {
display: table;
content: "";
clear: both;
}
.gallery-item {
margin: 0;
display:inline-block;
padding: 0.5em;
text-align: center;
padding: 6px;
box-sizing: border-box;
}
.gallery-item img {
width: 100%;
}
.gallery-columns-1 .gallery-item {
width: 100%;
}
.gallery-columns-2 .gallery-item {
width: 50%
}
.gallery-columns-3 .gallery-item {
width: 33.3333%
}
.gallery-columns-4 .gallery-item {
width: 25%
}
.gallery-columns-5 .gallery-item {
width: 20%
}
.gallery-columns-6 .gallery-item {
width: 16.6667%
}
.gallery-columns-7 .gallery-item {
width: 14.2857%
}
.gallery-columns-8 .gallery-item {
width: 12.5%
}
.gallery-columns-9 .gallery-item {
width: 11.1111%
}
.gallery-caption,
.bypostauthor{
color: #6e6e6e;
}
/* Text meant only for screen readers. */
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
}
.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
color: #21759b;
display: block;
font-size: 14px;
font-size: 0.875rem;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000; /* Above WP toolbar. */
}
.wp-caption {
background: #fff;
border: 1px solid #f0f0f0;
max-width: 96%; /* Image does not overflow the content area */
padding: 5px 3px 10px;
text-align: center;
}
.wp-caption-text {
font-size: 11px;
line-height: 17px;
margin: 0;
padding: 0 4px 5px;
}
以上是关于css WordPress编辑器的常规样式的主要内容,如果未能解决你的问题,请参考以下文章