Skip to content

Deshittify Forecast Timesheets by cameralibre

Details

Authorcameralibre

LicenseNo License

Categoryhttps://app.forecast.it/timesheets

Created

Updated

Size1.8 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Enlarges the things I use, and hides the things I don't.

Notes

Uses the :has() CSS selector. So if you're using Firefox, enter about:config in your address bar, search for 'has' and toggle layout.css.has-selector.enabled to true

Source code

/* ==UserStyle==
@name           Deshittify Forecast timesheets
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A new userstyle
@author         Me
==/UserStyle== */

@-moz-document url-prefix("https://app.forecast.it/timesheets") {

  
/* CALENDAR */
  
/* hide days off in the calendar */
/* (Use the final number to hide more or fewer columns, eg. n+6 hides Fri-Sun, n+7 hides Sat-Sun) */
[data-userpilot="timesheets-calendar"] :where(th, td):nth-child(n+7){
  display: none;
}
/* replace missing borders */
[data-userpilot="timesheets-calendar"] tr {
  border-right: 1px solid #e6e6e6;
}
  [data-userpilot="timesheets-calendar"] tr:last-child {
  border-bottom: 1px solid #e6e6e6;
}

  
/* TASK ENTRY FORM */
  
/* allow task entry form to stretch and fill horizontal space */
[data-userpilot="timesheets-new-time-entry"] {
  max-width: unset;
  flex-grow: 1;
}
/* increase size of notes textarea */
[class^='add_time_entry_component_styled__TextArea'] {
  min-height: 8rem;
}
/* increase height of task entry form */
[data-userpilot="timesheets-new-time-entry"] {
  min-height: 560px;
}
/* add space to the right of caret icons in task entry dropdowns so they're aligned */
span:has(svg.caret-icon) {
  margin-right: 10px;
}
/* add a noticeable focus style to the 'add' and 'update entry' buttons */
button:focus, .custom-button-container:focus.disabled, .custom-button-container:focus {
  outline: 2px solid #6e0fea;
  outline-offset: 1px;
}

/* ==UserStyle==
@name           Deshittify Forecast
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    Enlarges the things I use, and hides the things I don't.
@author         Me
==/UserStyle== */

}

Reviews

No reviews yet.