Skip to content

Commit

Permalink
Continued work on dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kimcoleman committed Aug 25, 2024
1 parent af178de commit 53b3e7a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 49 deletions.
49 changes: 1 addition & 48 deletions css/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ tbody tr:nth-child(even) td,
background: none;
}
mark,
.ins {
ins {
color: #000;
}
.search-form input[type=search],
Expand Down Expand Up @@ -192,53 +192,6 @@ mark,
color: #FFFFFFCC;
}

/*--------------------------------------------------------------
Paid Memberships Pro Integrated Styles
--------------------------------------------------------------*/
#pmpro_levels .post h2,
.memberlite_signup h2,
.pmpro_signup_form h2 {
background: #FFFFFF11;
}
#pmpro_levels .post h2,
.memberlite_signup h2,
.pmpro_signup_form h2 {
color: #FFFFFF;
}
#pmpro_levels_table {
background: none;
}
#pmpro_levels_table.pmpro_checkout thead th,
#pmpro_form .pmpro_checkout thead th {
color: #FFF;
}
#pmpro_levels.pmpro_levels-table.pmpro_level-highlight,
#pmpro_levels.pmpro_levels-div .pmpro_level-highlight,
#pmpro_levels.pmpro_levels-2col .pmpro_level-highlight,
#pmpro_levels.pmpro_levels-3col .pmpro_level-highlight,
#pmpro_levels.pmpro_levels-4col .pmpro_level-highlight,
.memberlite_signup,
.pmpro_signup_form {
background: #FFFFFF19;
border-left: none;
border-right: none;
}
form#pmpro_form .pmpro_checkout h2,
form#pmpro_form .pmpro_checkout h3 {
background: #FFFFFF11;
border-color: #00000066;
}
.pmpro_checkout_gateway-stripe form.pmpro_form #pmpro_payment_information_fields div#AccountNumber,
.pmpro_checkout_gateway-stripe form.pmpro_form #pmpro_payment_information_fields div#Expiry,
.pmpro_checkout_gateway-stripe form.pmpro_form #pmpro_payment_information_fields div#CVV,
.pmpro_billing_gateway-stripe form.pmpro_form #pmpro_payment_information_fields div#AccountNumber,
.pmpro_billing_gateway-stripe form.pmpro_form #pmpro_payment_information_fields div#Expiry,
.pmpro_billing_gateway-stripe form.pmpro_form #pmpro_payment_information_fields div#CVV {
color: #FFF;
background: none;
border-color: #FFFFFF4C;
}

/*--------------------------------------------------------------
bbPress specific CSS
--------------------------------------------------------------*/
Expand Down
7 changes: 7 additions & 0 deletions inc/extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ function memberlite_body_classes( $classes ) {
// color scheme class
$classes[] = 'scheme_' . get_theme_mod( 'memberlite_color_scheme', $memberlite_defaults['memberlite_color_scheme'] );

// dark mode class
if ( get_theme_mod( 'memberlite_darkcss', $memberlite_defaults['memberlite_darkcss'] ) ) {
$classes[] = 'is-style-dark';
} else {
$classes[] = 'is-style-light';
}

// other classes
if ( is_multi_author() ) {
$classes[] = 'group-blog';
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,7 @@ a:active:not(.pmpro_btn:active) {
.meta-navigation li:last-child,
.header-right .widget_nav_menu li:last-child,
.footer-navigation li:last-child {
border-right: none;
padding-right: 0;
}
.footer-navigation ul {
Expand Down Expand Up @@ -2769,7 +2770,6 @@ a:active:not(.pmpro_btn:active) {
.pmpro_levels-2col .pmpro_level-highlight .pmpro_card,
.pmpro_levels-3col .pmpro_level-highlight .pmpro_card,
.pmpro_levels-4col .pmpro_level-highlight .pmpro_card {
background-color: var(--memberlite-color-site-background);
z-index: 100;
border-top: .9rem solid var(--memberlite-color-secondary);
border-bottom: 1.45rem solid var(--memberlite-color-secondary);
Expand Down

0 comments on commit 53b3e7a

Please sign in to comment.