css [WooCommerce预订]日历CSS样式元素

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css [WooCommerce预订]日历CSS样式元素相关的知识,希望对你有一定的参考价值。

/* 
   Modify the color styles of the WooCommerce Bookings datepicker calendar.
   Add any/all of these styles to your theme's custom CSS, but be sure to change
   the color hex codes to your choice. They're all black here.
*/

/* Month header background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker-header {
	background-color: #000000;
}

/* Previous/Next month arrow background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker .ui-datepicker-next, 
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker .ui-datepicker-prev {
	background-color: #000000;
}

/* Previous/Next month arrows if not allowed, and calendar dates that are not available */
.ui-state-disabled, 
.ui-widget-content .ui-state-disabled, 
.ui-widget-header .ui-state-disabled {
	opacity: 0.35;
}

/* Days of the week header background color */
.ui-datepicker-calendar thead {
	background-color: #000000;
}

/* Days of the week header font color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker th {
	color: #000000;
}

/* Past calendar days background color (not available) */
.ui-datepicker-calendar tbody {
	background-color: #000000;
}

/* Available calendar days background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.bookable a {
	background-color: #000000 !important;
}

/* Available calendar day hover background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.bookable a:hover {
	background-color: #000000 !important;
}

/* Fully booked calendar days */
.wc-bookings-date-picker .ui-datepicker td.fully_booked a, 
.wc-bookings-date-picker .ui-datepicker td.fully_booked span {
	background-color: #000000 !important;
}

/* Days not bookable based on the availability rules */
.wc-bookings-date-picker .ui-datepicker td.not_bookable {
	background-color: #FFFFFF !important;
}

/* Today's date on calendar background color */ 
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.ui-datepicker-today a { 
	background-color: #000000 !important; 
}

/* Partially Booked Red Triangle */
.wc-bookings-date-picker .ui-datepicker td.partial_booked a:before {
    border-top: none; /* This style removes the red triangle */
}

/* Time Blocks */
#wc-bookings-booking-form .block-picker li a {
	background-color: #FFFFFF !important;
}

/* Time Blocks Hover */
#wc-bookings-booking-form .block-picker li a:hover {
	background-color: #000000 !important;
}

/* Selected Date*/ 
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.ui-datepicker-current-day a {
	background-color: #000000 !important; 
} 

以上是关于css [WooCommerce预订]日历CSS样式元素的主要内容,如果未能解决你的问题,请参考以下文章

php [WooCommerce预订]将日历默认为第一次预订

php [WooCommerce预订]在前端未使用日历选择器时更改日期格式

woocommerce 预订状态更改 woocommerce 订单状态

FacetWp 预订不适用于 woocommerce 预订?

css 预订Datepicker颜色样式

WooCommerce 页面 css 文件