Site logo

Archived topic

Dispatch theme: Styling menu and links

17 replies · Started by Malin on August 1, 2021

Viewing posts 16–18 of 18

To sum it up, this is how the current css looks:

/* changed css */

table.paypal {
width: 220px;
border: 0;
}

table.paypal td {
padding: 0;
border: 0;
}

a {
color:#330066;
text-decoration: underline;
}

a:not(li.menu-item a; wpsp-card a; wp-show-posts-meta a):hover, a:not(li.menu-item a; wpsp-card a; wp-show-posts-meta a):visited {
text-decoration: underline;
color:#444;
}

.author-name {
font-style: italic;
padding-bottom: 8px;
}

.author-description {
font-style: italic;
padding: 16px 0 16px 0;
border-top: 1px solid #e0e0e0;
}

.intro {
color:#444444;
font-weight:bold;
font-size:105%;
line-height:150%;
}

.bigbold {
font-size:60px;
float:left;
width:50px;
line-height:80%;
color:#ffcc66;
margin-right:26px;
letter-spacing:-0.1em;
font-weight:bold;
}

.red {
font-weight:bold;
color:#993333;
}

.quote {
font-family:Georgia, Times New Roman, Times, serif;
font-size:16px;
text-align:center;
font-style:italic;
font-weight:bold;
color: #330066;
}

blockquote {
border-left:8px solid #e0f0fb;
}

.price {
font-family:Georgia, Times New Roman, Times, serif;
font-size:36px;
margin:0px;
padding:0px;
line-height:80%;
float:left;
}

.note {
font-size:10px;
line-height:150%;
}

.ap_icon {
padding-right:15px;
background:url(/wp-content/uploads/2020/12/ap_icon_mini.png) no-repeat right;
}

.pdf {
padding-left:15px;
background:url(/grafix/icon_pdf.gif) no-repeat left;
}

.divider {
font-weight: bold;
text-transform: uppercase;
color: #330066;
background-color: #ffffff;
margin: 0;
padding: 10px;
border-bottom: 4px solid #ffcc66;
clear:both;
}

.a-z {
width:130px;
}

.a-z img {
width:100px;
height:100px;
display: block;
margin-left: auto;
margin-right: auto;
border-radius: 8%;
}

.portrait img {
border-radius: 50%;
margin: 0px 24px 16px 0px;
float: left;
}

.side-by-side {
float:left;
padding:16px 32px 16px 0px;
}

.box {
background:#fffef7;
padding: 8px 24px 8px 24px;
border:solid 1px #993333;
}

.introbox {
float:left;
width:410px;
border-top:1px solid #e0e0e0;
border-left:1px solid #e0e0e0;
border-right:0px;
border-bottom:0px;
padding:24px 24px 24px 24px;
margin: 0px;
}

.introbox img {
float:left;
padding:0px 12px 0px 0px;
width:auto;
height:auto;
}

.thumbnail {
float:left;
width:351px;
border-top:1px solid #e0e0e0;
border-left:1px solid #e0e0e0;
border-right:0px;
border-bottom:0px;
padding:24px 24px 24px 24px;
margin: 0px;
}

.thumbnail img {
float:left;
padding:0px 12px 0px 0px;
}

.thumblist {
float:left;
width:240px;
padding:16px 16px 16px 16px;
}

.thumblist img {
display: block;
margin-left: auto;
margin-right: auto;
}

.thumblisttext {
float:left;
width:380px;
padding:4px 4px 4px 0px;
}

.thumblisttext img {
display: inline;
border:0px;
margin: 0px 8px 0px 0px;
}

.buyboxfull {
float: left;
width: 100%;
border: 1px solid #e0e0e0;
margin:0px 5px 5px 5px;
border-radius:4px;
}

.buyboxfull img {
float:left;
padding:0px 20px 8px 0px;
}

.buyboxform {
padding: 20px;
}

.buyboxfooter {
border-top: 1px solid #e0e0e0;
margin: 0;
font-size: 0.8em;
padding:8px 8px 8px 20px;
}

.clearfix {
clear:both;
}

/* GeneratePress Site CSS */ /* Colors */
.main-navigation ul li:after {
    background-color: #000;
}

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

.main-navigation .main-nav li.home a:hover {
text-decoration: none;
}

.wpsp-card, .wpsp-card a, .wpsp-card .wp-show-posts-meta a, .wpsp-card .wp-show-posts-meta a:visited {
    color: #fff;
	text-decoration: none;
	background-color:#444;
}

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

/* Theme Global */
@media (min-width: 769px) {
    body {
        margin: 0 30px;
    }
}

body.single-post.no-sidebar .site-content {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.second-nav.grid-container {
    padding: 0;
}

@media (min-width: 769px) {
    .main-navigation ul li {
        position: relative;
    }

    .main-navigation ul li:after {
        content: '';
        position: absolute;
        height: 0;
        width: 100%;
        bottom: 0;
        left: 0;
        pointer-events: none;
        filter: hue-rotation(90deg);
        -webkit-filter: hue-rotation(90deg);
        -webkit-transition: height 0.35s ease;
        transition: height 0.35s ease;
    }

    .main-navigation ul li:hover:after, .main-navigation ul li.current-menu-item:after {
        height: 6px;
    }
}

/* Widgets */
.widget-title {
    margin: 1em 0;
    font-size: 0.8em !Important;
}

.widget .wp-show-posts article {
    margin-bottom: 0.5em !important;
}

.zero-padding {
    padding: 0 !important;
}

.widget.no-background {
    background-color: transparent;
}

/* Buttons */
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 !important;
    border-color: inherit;
    border: 1px solid;
	text-decoration: none;
}

/* Blog */
.generate-columns .inside-article {
    padding: 0 0 15px;
}

@media (max-width: 768px) {
    .generate-columns .inside-article>*:not(.post-image) {
        padding: 0 15px;
    }
}

.generate-columns-container article .inside-article .post-image {
    margin-bottom: 0.5em;
}

.generate-columns-container article .inside-article .entry-summary {
    margin-top: 0.5em;
    font-size: 0.8em;
}

.generate-columns-container article .entry-header, .wp-show-posts-entry-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
}

.wpsp-grid.wpsp-card .wpsp-content-wrap {
    padding: 10px;
    background-color: rgba(0,0,0,0.5);
}

.wp-show-posts .wp-show-posts-inner {
    overflow: hidden;
}

@media (min-width: 420px) {
.wpsp-align .wp-show-posts-image {
    margin-bottom: 0;
}
}
.wpsp-align .wp-show-posts-image a, .wpsp-align .wp-show-posts-image img {
    height: 100%;
}

.generate-columns-container article .inside-article img, .wp-show-posts-image img {
    -o-object-fit: cover !important;
    object-fit: cover !important;
}

/* WPSP Grids */
/* Single column align side image */
/* Add wpsp-align class to to WPSP List shortcode wrapper */
@media (min-width: 420px) {
    .wpsp-align .wp-show-posts-inner {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .wpsp-align .wp-show-posts-inner>div {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

@media (max-width: 768px) and (min-width: 420px) {
    .wpsp-align .wp-show-posts-inner .wp-show-posts-image {
        margin-right: 1.5em;
    }
}

/* magazine Grid Golden Ratio 5 block standard */
/* Add wpsp-grid class to WPSP List shortcode wrapper */
@media (min-width: 600px) {
    .wpsp-grid .wp-show-posts {
        display: grid;
    }
}

@media (min-width: 900px) {
    .wpsp-grid .wp-show-posts {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: 1fr auto;
    }

    .wpsp-grid .wp-show-posts article:first-child {
        grid-column: 1 / 5;
        grid-row: 1 / 4;
    }

    .wpsp-grid .wp-show-posts article:nth-child(2) {
        grid-column: 5 / end;
        grid-row: 1 / 2;
    }

    .wpsp-grid .wp-show-posts article:nth-child(3) {
        grid-column: 5 / 7;
        grid-row: 2 / 4;
    }

    .wpsp-grid .wp-show-posts article:nth-child(4) {
        grid-column: 7 / end;
        grid-row: 2 / 4;
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .wpsp-grid .wp-show-posts article {
        grid-column: span 4;
    }

    .wpsp-grid .wp-show-posts article:nth-child(3), .wpsp-grid .wp-show-posts article:nth-child(4) {
        grid-row: 3;
        grid-column: span 2;
    }
}

.wpsp-grid article:not(:first-child) .wp-show-posts-image a img {
    height: 250px;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.wpsp-grid article:first-child .wp-show-posts-image a img {
    height: 500px;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.wpsp-grid article:not(:first-child) .wp-show-posts-entry-summary, .wpsp-grid article:not(:first-child) .wp-show-posts-entry-meta-below-post, .wpsp-grid article:not(:first-child) .wpsp-read-more {
    display: none;
}

/* WPSP Card Styling */
/* Add wpsp-card class to WPSP List shortcode wrapper */
.wpsp-card .wp-show-posts-meta a, .wpsp-card .wp-show-posts-meta a:visited {
    font-size: 1em;
    font-weight: 500;
    text-transform: uppercase;
}

:not(.widget).wpsp-card .wp-show-posts article, .wpsp-card .wp-show-posts-image {
    margin-bottom: 0 !important;
}

.wpsp-card .wp-show-posts-inner {
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.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(30%, rgba(80, 50, 50, 0.5)), 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;
}

.wpsp-card article {
    position: relative;
    overflow: hidden;
}

.wpsp-card article, .wpsp-card article .wp-show-posts-image img {
    -webkit-backface-visibility: hidden;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

.wpsp-card article:hover .wp-show-posts-image img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

.header-widget .lsi-social-icons li {
	margin-bottom: 0 !important;
}

body .happyforms-flex {
	padding: 0;
} /* End GeneratePress Site CSS */

So are the Link styles working as you want ?

Hi,
Yes, they are thank you. Thank you so much for your help!

This archived topic is closed to new replies.