Styling

How to change the Custom Colors

Changing Colors in Dispatch are mainly done via the Theme Customizer. Certain elements such as Page Heros are controlled within the Header Element and are covered in that article. There are a few colors that are controlled by CSS. The rules for them are found in the Customizer > Additional CSS:

Primary Navigation

Hairline Border above desktop navigation

.main-navigation .inside-navigation {
    border-top: 0.5px solid #d4d7d8;
}

Menu item underline on hover

.main-navigation ul li:after {
    background-color: #000;
}

Navigation Search

.navigation-search.nav-search-active {
    background-color: rgba(255,255,255,0.95);
    top: 100%;
}

Buttons

All of the colors are controlled via the customizer. However the button border inherits the color of the font. This is set by this CSS:

button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.button:visited, a.wp-block-button__link:not(.has-background) {
    pointer-events: initial ;
    border-color: inherit;
    border: 1px solid;
}

WP Show Posts - Card Style

Entry Title, Summary and Meta text color

.wpsp-card, .wpsp-card a, .wpsp-card .wp-show-posts-meta a, .wpsp-card .wp-show-posts-meta a:visited {
    color: #fff;
}

Gradient overlay

To improve contrast of text a subtle gradient overlay is applied to the cards content wrapper.

.wpsp-card .wpsp-content-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5% 8%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.35);
    background: -webkit-gradient(linear, left bottom, left top, color-stop(80%, rgba(0, 0, 0, 0.6)), to(rgba(0, 0, 0, 0)));
    background: linear-gradient(0deg, rgba(80, 50, 50, 0.5) 30%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

Custom Featured Image Post Navigation Next/Previous

.post-nav {
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.7em;
    text-transform: uppercase;
    background-color: #ff1956;
    color: #fff ;
}

jorge ocampo

Compartir
Publicado por
jorge ocampo

Entradas recientes

'The Pope's Exorcist' recibe luz verde oficial para una secuela

El exorcista del Papa se centra en las historias del Padre Amorth, conocido como “el legendario…

5 horas hace

'Extraction 3' tendrá los regresos de Chris Hemsworth, Sam Hargrave, y Joe Russo

El guion está siendo desarrollado por Joe Russo. Chris Hemsworth regresa como protagonista, y Sam…

6 horas hace

La temporada final de 'Cobra Kai' se dividirá en 3 partes (teaser)

"El fin de un legado merece un gran final". La última temporada será un evento…

7 horas hace

Nuevo vistazo a 'Alien: Romulus' de Fede Álvarez

'Alien: Romulus' es un largometraje independiente original, cuya trama se ubica entre la línea de…

9 horas hace

Jake Gyllenhall va a juicio en teaser de la serie 'Presumed Innocent'

La serie 'Se presume inocente' stá inspirada en el thriller judicial de 1990 del mismo…

1 día hace

La historia de 'Happy Death Day 3' está lista y resuelta

La franquicia slasher Happy Death Day del cineasta Christopher Landon, el productor Jason Blum de Blumhouse…

1 día hace