Skip to content

Instantly share code, notes, and snippets.

@DavidPeralvarez
Last active November 10, 2018 15:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidPeralvarez/968916d12f5c73fd882a99bed8a0d69c to your computer and use it in GitHub Desktop.
Save DavidPeralvarez/968916d12f5c73fd882a99bed8a0d69c to your computer and use it in GitHub Desktop.
Estilos de los bloques en el editor
/* Audio */
.wp-block-audio audio {
}
/* Button (Botón) */
.wp-block-button {
}
/* Categories (Categorías) */
.wp-block-categories ul {
}
/* Code (Código) - Mejor no tocar */
.wp-block-code .editor-plain-text {
}
/* Columns (Columnas) - Mejor no tocar */
.wp-block-columns .editor-block-list__layout {
}
.wp-block-columns .editor-block-list__layout .editor-block-list__block{
}
.wp-block-columns .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit{
}
/* Cover Image (Imagen de fondo) - Mejor no tocar */
.wp-block-cover-image {
}
.wp-block-cover-image .editor-rich-text strong {
}
.wp-block-cover-image.components-placeholder h2 {
}
/* Embed (Incrustados) - Mejor no tocar */
.wp-block-embed {
}
/* File (Archivo) - Mejor no tocar */
.wp-block-file {
}
/* Gallery (Galería) - Mejor no tocar */
.wp-block-gallery {
}
/* Heading (Encabezado) */
.wp-block-heading {
}
.wp-block-heading h1 {
}
.wp-block-heading h2 {
}
.wp-block-heading h3 {
}
.wp-block-heading h4 {
}
.wp-block-heading h5 {
}
.wp-block-heading h6 {
}
/* HTML (HTML personalizado) - Mejor no tocar */
.wp-block-html {
}
/* Image (Image) */
.wp-block-image {
}
.wp-block-image img {
}
.wp-block-image figcaption {
}
/* Latest posts (Últimas entradas) */
.wp-block-latest-posts {
}
.wp-block-latest-posts.is-grid {
}
.wp-block-latest-posts__post-date {
}
/* List (Lista) */
.core-blocks-list .editor-rich-text__tinymce,
.core-blocks-list .editor-rich-text__tinymce ul,
.core-blocks-list .editor-rich-text__tinymce ol {
}
/* More (Más) - Mejor no tocar */
.wp-block-more {
}
/* Next Page (Salto de página) - Mejor no tocar */
.wp-block-nextpage {
}
/* Paragraph (Párrafo) - p que hayas definido */
p.is-small-text {
}
p.is-regular-text {
}
p.is-large-text {
}
p.has-drop-cap:not( :focus ):first-letter {
}
p.has-background {
}
/* Preformatted (Preformateado) */
.wp-block-preformatted {
}
.wp-block-preformatted pre{
}
/* Pullquote (Cita formatos) */
.wp-block-pullquote {
}
.wp-block-pullquote p{
}
.wp-block-pullquote cite{
}
/* Quote (Cita bloques comunes) */
.wp-block-quote {
}
.wp-block-quote p{
}
.wp-block-quote cite{
}
.wp-block-quote footer{
}
.wp-block-quote .is-style-large,
.wp-block-quote .is-large{
}
.wp-block-quote .is-style-large p,
.wp-block-quote .is-large p{
}
.wp-block-quote .is-style-large cite,
.wp-block-quote .is-large cite{
}
.wp-block-quote .is-style-large footer,
.wp-block-quote .is-large footer{
}
.wp-block-quote:not(.is-large):not(.is-style-large) {
}
/* Separator (Separador) */
.wp-block-separator {
}
.wp-block-separator.is-style-wide {
}
.wp-block-separator.is-style-dots {
}
.wp-block-separator.is-style-dots:before {
}
.wp-block-separator:not( .is-style-wide ):not( .is-style-dots ) {
}
/* Shortcode - No hay que modificar nada */
/* Spacer (Espaciador) - No hay que modificar nada */
/* Subhead (Subtítulo) */
.edit-post-visual-editor p.wp-block-subhead {
}
/* Table (Tabla) */
.wp-block-table {
}
.wp-block-table tbody {
}
.wp-block-table tr{
}
.wp-block-table td{
}
.wp-block-table td[data-mce-selected="1"] {
}
/* Text columns (Columnas de texto) - Mejor no tocar */
.wp-block-text-columns {
}
.wp-block-text-columns .wp-block-column{
}
/* Verse (Verso) */
pre.wp-block-verse,
.wp-block-verse pre {
}
/* Video (Vídeo) - No hay que modificar nada */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment