awesomemotive / sugarcalendar-core

Sugar Calendar plugin for WordPress
https://wordpress.org/plugins/sugar-calendar-lite/
38 stars 14 forks source link

Issue/221 - Legacy: styling improvements for all Default themes. #222

Closed JJJ closed 3 years ago

JJJ commented 3 years ago

This change swaps out colors for RGBA, allowing output to work with both light & dark themes.

It also rearranges some HTML elements to make them easier to style and degrade gracefully when themes do weird things. Specifically, it moves the H2 ahead of the form & pagination, allowing it to hover above both while also giving all inputs more room to work with.

Several related improvements are being made to calendar styling at the same time, specific to links, fonts, padding, margin, and hovers, allowing for Sugar Calendar to be a bit more strict about its output without worrying about themes overloading it unintentionally.

JJJ commented 3 years ago

Size-limited Customizer preview of a bunch of colors

jjj-on-2021-07-12-at-12-35-48

JJJ commented 3 years ago

The month-day color (in the upper right of each cell) may change to improve contrast, but otherwise this is working nicely.