Skip to content

itty-bitty-committee/scrollbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The itty bitty Committee

Style modifications that improve accessibility

Scrollbar

The Committee has denied your itty bitty scrollbar!

Requirements

Install the stylus browser extension.

Chrome | Firefox

Installation

Click here and use the install style button.

Alternatively, install the itty-bitty bundle which includes all accessibility improvements so far.

Customize

Use the style settings via the stylus extension to input custom modification values

Contributing

The Committee has invited you to submit an itty bitty scrollbar violation report.

Submit separate pull requests per domain with style modifications in the following syntax using customizable variables whenever possible:

/* ==UserStyle==
@preprocessor [processor]
@var [type] [name] [label] [value]
==/UserStyle== */
@-moz-document domain("[domain]") {
  /* [affects] */
  [selector][identifier] {
    [property]: [name] !important;
  }
}
Input Description
processor Compatible style preprocessor (default, uso, less, stylus)
type Value type (text, color, checkbox, select, range, number)
name Name to reference formatted as [domain name]_[component]_[css property]
label Settings menu title formatted as "[Component]: [CSS Property]"
value Default improvement value
domain Domain name to apply styles
affects Describes what the block changes
selector CSS selector (., #, etc.)
identifier CSS selector name to modify
property CSS property to modify

Example

/* ==UserStyle==
@preprocessor stylus
@var text twitch_scrollbar_width "Scrollbar: Width" 13px
==/UserStyle== */
@-moz-document domain("twitch.tv") {
  /* width */
  .simplebar-scrollbar {
    width: twitch_scrollbar_width !important;
  }
}

Compatibility

If running into issues with variable usage due to preprocessor compatibility, hardcoded values may be used.

Example

/* ==UserStyle==
@preprocessor default
==/UserStyle== */
@-moz-document domain("discord.com") {
  /* width */
  .messagesWrapper-RpOMA3 ::-webkit-scrollbar {
    width: 19px !important;
  }
  /* color */
  #app-mount {
    --scrollbar-auto-thumb: #b5bac1 !important;
  }
}

Resources

Writing UserCSS

About

Improve scrollbar accessibility

Topics

Resources

License

Stars

Watchers

Forks

Languages