Giter Club home page Giter Club logo

wp-datepicker-styling's Introduction

jQuery UI Datepicker CSS for WordPress

This is a CSS file you include with WordPress plugins or themes to make the jQuery UI Datepicker widget match WordPress color schemes. It's goal is to make the jQuery UI Datepicker widget look as natural as possible inside of the WordPress dashboard.

As new color schemes are introduced and old ones are updated, this file will be maintained to match.

It is updated for changes to WordPress 5.7 colors.

It is used by the Sugar Calendar plugin for WordPress, if you'd like an example.

Screenshots

The following screenshots show off what this CSS file looks like in the Sugar Calendar plugin.

Fresh

Fresh

Light

Light

Modern

Modern

Blue

Blue

Coffee

Coffee

Ectoplasm

Ectoplasm

Midnight

Midnight

Ocean

Ocean

Sunrise

Sunrise

Evergreen

Evergreen

Mint

Mint

FAQ

Is this a WordPress plugin?

No, it's just a CSS file.

You'll want to include this in your plugin & enqueue it however you feel is best.

How will I use it, then?

Probably something like:

/**
 * Enqueue calendar styles
 *
 * @since 0.1.0
 */
function enqueue_my_calendar_styles() {

	// Enqueue the datepicker JS
	wp_enqueue_script( 'jquery-ui-datepicker' );

	// Enqueue the datepicker CSS
	wp_enqueue_style( 'my-jquery-ui-datepicker', dirname( __FILE__ ) . '/datepicker.css' );
}
add_action( 'admin_head', 'enqueue_my_calendar_styles' );

But you'll want to basically rename all of this to fit your needs, and if you're reading this, chances are you already know how to do this bit.

What exactly is supported?

  • All WordPress color schemes (including Modern)
  • Both bbPress color schemes (Evergreen, Mint)
  • Current day (light yellow)
  • Selected day (green)
  • Hover days (matched to scheme)
  • Disabled days (opacity 50%)
  • Adjacent month days (opacity 30%)
  • Naturally responsive (this could be improved)

Where can I get support?

https://github.com/stuttter/wp-datepicker-styling/discussions

Can I contribute?

Yes, please!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.