/**
 * Google Calendar Simplified userstyle
 * https://snarfed.org/google_calendar_simplified_userstyle
 * Ryan Barrett <userstyles@ryanb.org>
 *
 * Simplifies Google Calendar by removing the calendar header (except for the
 * settings link) and footer and many other things. Inspired by Aziz's original
 * (deprecated) Google Calendar Simplified userstyle,
 * http://userstyles.org/styles/20945 .
 *
 * If the visible calendar pane doesn't use the full width or height, make sure
 * this userstyle is enabled and reload the page. Calendar calculates the width
 * and height to use at load time, based on the browser dimensions and visible
 * DOM elements.
 *
 * Changelog:
 * 0.7, 2015/11/07
 * - bug fix for google apps, which now uses calendar.google.com
 * 0.6
 * - hide entire header, including search box
 * 0.5, 2012/01/17
 * - handle new google/calendar logo drop-down menu
 * 0.4, 2011/09/06
 * - overhaul for new UI
 * - hide left pane (current month, other calendars)
 * 0.3, 2011/07/26
 * - updates to handle google-wide visual redesign
 * 0.2, 2010/11/11
 * - drop the mouseover thing. always display left pane and search bar.
 * - hide new header sections
 * 0.1, 2010/9/12
 * - initial release
 */

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix(https://www.google.com/calendar/), domain(calendar.google.com) {

/* The primary list of things to hide.
 */
div#gb,
div#gbz,            /* sandbar left side links (Mail, Calendar, etc.) */
div#gbx3, div#gbx4, /* sandbar gray background */
ol.gbtc > li,       /* sandbar right side links */
.domainlogoparent,  /* old Google logo */
div#gbq1,           /* new "google bar" logo */
div#gbpr,           /* pop-up help bubble for new "google bar" */
#df-fdbk,           /* big red Send Feedback About New Look button */
.qnb-container,     /* big red Create button drop-down */
#nav,               /* left pane */
#vr-nav,            /* calendar header with date and layout control buttons */
div.msf-button,     /* old blue search button */
div#gbqfbw,         /* new blue search button */
form.msf-container >span.lk,  /* show search options link */
noop_end_selector_list
{
  display: none !important;
}

/* A whitelist of exceptions that shouldn't be hidden.
 */
ol.gbtc > li:last-child,      /* top-level header settings button */
/* div#gb,             /\* sandbar. inline makes it not take up vertical space *\/ */
noop_end_selector_list
{
  display: inline !important;
}

/* expand calendar content now that top headers and left pane are gone */
div#mainbody {
  margin-left: 0 !important;
}
div#gridcontainer {
  margin-right: 0 !important;
}

/* build signature */
#bdata {
  opacity: .2;
}

}
