The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Fixing the Google Calendar item editor CSS so the title 40% of my window width

Posted by jpluimers on 2024/10/08

When working on larger screens, I am always amazed at how little window estate most web sites actually use.

For sites that just try to look nice that is not so much or a problem, but for productivity sites it is.

The go-to solution for this is to manually modify the CSS. This can often be a pain because the CSS is either deeply nested or – even worse – uses semi-random HTML class attribute values.

This post is a reminder to myself to check if the below CSS modification in my Stylus library still works (gist link is at the bottom of this post):

/* ==UserStyle==
@name           calendar.google.com event editor: item title wider and normal font size
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    calendar.google.com event editor: item title wider and normal font size; experimental: hopefully the class names won't change
@author         jpluimers
==/UserStyle== */
@-moz-document url-prefix("https://calendar.google.com/calendar/u/0/r/eventedit") {
    .TgcD5e.CCDcoc .zHQkBf {
        font-size: 14px;
    }
    .kVw1pb {
        width: calc(max(65%, 578px + 56px + (100% - 1049px)*0.16666667))
    }
}

Remarks:

  • making it wider than 65% will cut of the dropdown despite there being enough Window estate for it
  • sometimes my calendar item titles are so large (they have lots of meta-data) that both the reduced font size and enlarged width are needed

Related blog post and tweets:

–jeroen



/* ==UserStyle==
@name calendar.google.com event editor: item title wider and normal font size
@namespace github.com/openstyles/stylus
@version 1.0.0
@description calendar.google.com event editor: item title wider and normal font size; experimental: hopefully the class names won't change
@author jpluimers
==/UserStyle== */
@-moz-document url-prefix("https://calendar.google.com/calendar/u/0/r/eventedit") {
.TgcD5e.CCDcoc .zHQkBf {
font-size: 14px;
}
.kVw1pb {
width: calc(max(65%, 578px + 56px + (100% – 1049px)*0.16666667))
}
}

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.