GitHub Commit Limit by stylishthemes

Imported from https://raw.githubusercontent.com/StylishThemes/GitHub-Commit-Limit/master/github-commit-limit.user.css

GitHub Commit Limit screenshot
Homepage Install Get Stylus Write a review

Details

Authorstylishthemes

LicenseCC-BY-SA-4.0

Created atApril 03, 2021 00:45

Updated atApril 03, 2021 00:45

Applies toGitHub

Statistics

Learn how we calculate statistics in the FAQ.

Total views59

Total installs17

Weekly installs0

Weekly updates0

Description

Show GitHub commit message limits

Notes

Userstyle doesn't have notes.

History

Daily snapshots of style statistics.

2021-07-072021-07-142021-07-202021-07-272021-08-022021-08-092021-08-152021-08-222021-08-282021-09-042021-09-102021-09-16Date0.000.380.751.131.501.882.252.633.00Daily countDaily installsDaily updatesDaily views
2021-07-072021-07-142021-07-202021-07-272021-08-022021-08-092021-08-152021-08-222021-08-282021-09-042021-09-102021-09-16Date1.007.8014.5021.3028.0034.8041.5048.3055.00Total countTotal installsTotal views

Source code

/* ==UserStyle==
@name         GitHub Commit Limit
@version      2.0.2
@description  Show GitHub commit message limits
@namespace    github.com/StylishThemes
@author       StylishThemes <https://github.com/StylishThemes>
@homepageURL  https://github.com/StylishThemes/GitHub-Commit-Limit
@supportURL   https://github.com/StylishThemes/GitHub-Commit-Limit/issues
@updateURL    https://raw.githubusercontent.com/StylishThemes/GitHub-Commit-Limit/master/github-commit-limit.user.css
@license      CC-BY-SA-4.0
@advanced     color overlimit-color "Base color" #fdd
@advanced     text font-choice "Monospace Font" "Menlo"
@preprocessor uso
==/UserStyle== */
@-moz-document domain("github.com") {
  :root {
    --overlimit-color: /*[[overlimit-color]]*/;
    --font-choice: /*[[font-choice]]*/;
  }
  /*! Github Commit Changes visual limts */
  /* See http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html */
  #commit-summary-input, #commit-description-textarea {
    font-family: var(--font-choice),
                     Consolas,
                     "Andale Mono WT",
                     "Andale Mono",
                     "Lucida Console",
                     "Lucida Sans Typewriter",
                     "DejaVu Sans Mono",
                     "Bitstream Vera Sans Mono",
                     "Liberation Mono",
                     "Nimbus Mono L",
                     Monaco,
                     "Courier New",
                     Courier,
                     monospace !important;
  }
  /* add red block after 50 characters to show suggested limit */
  #commit-summary-input, #merge_title_field {
    background-image: linear-gradient(to right, transparent 0%, transparent 51ch, var(--overlimit-color) 51ch) !important;
  }
  /* add red block after 72 characters to show suggested limit */
  #commit-description-textarea, #merge_message_field {
    background-image: linear-gradient(to right, transparent 0%, transparent 73ch, var(--overlimit-color) 73ch) !important;
  }
}

Reviews

No reviews yet.