Skip to content

Instantly share code, notes, and snippets.

@tinymachine
Created February 19, 2012 23:15
Show Gist options
  • Save tinymachine/1866406 to your computer and use it in GitHub Desktop.
Save tinymachine/1866406 to your computer and use it in GitHub Desktop.
Google Calendar Custom Stylesheet
/*
Google Calendar Custom Stylesheet
--------------------------
Highlights "today" in yellow, grays-out weekends.
*/
/* Gray-out weekends
----------------------------------------*/
.st-bg:nth-child(6), /* switch 6 to 1 if Sunday appears on the left */
.st-bg:nth-child(7),
.st-dtitle:nth-child(6), /* switch 6 to 1 if Sunday appears on the left */
.st-dtitle:nth-child(7),
.tg-weekend {
background-color: #fafafa /* light gray */ !important;
}
/* Make today yellow
----------------------------------------*/
.st-dtitle-today,
.st-bg-today,
.st-bg-td,
.st-bg-td-first,
.st-bg-td-last,
.wk-today,
.tg-today,
.mv-container .st-dtitle-today,
.mv-container .st-bg-td-first,
.mv-container .st-bg-td,
.mv-container .st-bg-td-last,
.lv-today .lv-datecell {
background-color: #ffd /* light yellow */ !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment