Skip to content

Commit

Permalink
Add weekend grid header variable
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 21, 2025
1 parent 62dd62a commit ab87f14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/css/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
background: var(--grid-header-bg);
}

.mc-main th.weekend-heading {
color: var(--grid-weekend-color);
background: var(--grid-weekend-bg);
}

.mc-main th abbr, .mc-main .event-time abbr {
border-bottom: none;
text-decoration: none;
Expand Down
3 changes: 3 additions & 0 deletions src/my-calendar-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ function mc_style_variables( $styles = array() ) {
'--grid-cell-border' => '#0000001f',
'--grid-header-border' => '#313233',
'--grid-header-color' => '#313233',
'--grid-weekend-color' => '#313233',
'--grid-header-bg' => 'transparent',
'--grid-weekend-bg' => 'transparent',
'--grid-cell-background' => 'transparent',
'--current-day-border' => '#313233',
'--current-day-color' => '#313233',
Expand Down Expand Up @@ -2132,6 +2134,7 @@ function mc_get_support_form() {
$theme_name = $theme->get( 'Name' );
$theme_uri = $theme->get( 'ThemeURI' );
$theme_parent = $theme->get( 'Template' );
$theme_parent = ( $theme_parent ) ? $theme_parent : __( 'None', 'my-calendar' );
$theme_version = $theme->get( 'Version' );

// plugin data.
Expand Down

0 comments on commit ab87f14

Please sign in to comment.