sl

sanitize.less

sanitize.css imported to LESS, with a bit of modifications.

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.1KB

License

CC0-1.0

Type Definitions

Tree-Shakeable

No?

Categories

Readme

sanitize.less

npm bower

sanitize.less is based on sanitize.css, with a bit of modifications.

Installation

Bower

bower install --save sanitize.less

NPM

npm install sanitize.less

Git

git clone https://github.com/luixxiul/sanitize.less.git

Differences

  • Imported to LESS
  • Added: font properties for :root
  • Removed: text-rendering from :root Addressed by sanitize.css v3.1.1

Options

To give you even more control, sanitize.less allows you to define your own defaults for box-sizing, selection, etc. - all without over-declaring them later.

// overwrite defaults in sanitize.less
@root-box-sizing: content-box;

@import "vendors/sanitize.less";
  • @root-background-color: the default background color is #FFFFFF.
  • @root-box-sizing: the default box-sizing is border-box.
  • @root-color: the default text color is #000000.
  • @root-cursor: the default cursor is default.
  • @root-font-family: the default cursor is sans-serif.
  • @root-font-size: the default cursor is 100%.
  • @root-line-height: the default line height is 1.5em.
  • @anchor-text-decoration: the default anchor text decoration is none.
  • @background-repeat: the default background repeat is no-repeat.
  • @form-element-background-color: the default form background color is transparent.
  • @form-element-min-height: the default form element minimum height is 1.5em
  • @media-element-vertical-align: the default vertical alignment for media elements is middle.
  • @monospace-font-family: the default font for code elements is monospace.
  • @nav-list-style: the default list style for navigation lists is none.
  • @selection-background-color: the default selection background color is #B3D4FC.
  • @selection-color: the default selection text color is #FFFFFF.
  • @selection-text-shadow: the default select text shadow is none.
  • @small-font-size: the default font size for small elements is 75%.
  • @table-border-collapse: the default border collapse for tables is collapse.
  • @table-border-spacing: the default border spacing for tables is 0.
  • @textarea-resize: the default resize for textarea’s is vertical.

Support

At present, we support the current and previous major releases of popular web browsers. When a new version is released, we begin supporting that version and stop supporting the third most recent version. Many older browsers happen to be remain supported using the same CSS without additional needs.

Currently tested and supported browsers include Android 4.3-4.4+, Chrome 39-45+, Edge 12+, Firefox 34-40+, Internet Explorer 9-11, iOS 7-8+, Safari 7-9+, Windows Phone 8.1+.

License

sanitize.less is dedicated to the public domain.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial