Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

PostCSS plugin to fallback initial keyword

License

NotificationsYou must be signed in to change notification settings

filamentgroup/postcss-initial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This project is archived and the repository is no longer maintained.

Build StatusNPM ModuleDavid DM

PostCSS plugin to fallbackinitial keyword. Very useful in combination withpostcss-autoreset.

a {animation: initial;background: initial;white-space: initial;}
a {animation: none0s ease0s1 normal none running;animation: initial;background: transparent none repeat00/ auto auto padding-box border-box scroll;background: initial;white-space: normal;white-space: initial;}

Killer feature!
Universal reset from future css!

a {all: initial;}
a {animation: none0s ease0s1 normal none running;backface-visibility: visible;background: transparent none repeat00/ auto auto padding-box border-box scroll;border: medium none currentColor;border-collapse: separate;border-image: none;border-radius:0;border-spacing:0;bottom: auto;box-shadow: none;box-sizing: content-box;caption-side: top;clear: none;clip: auto;color:#000;columns: auto;column-count: auto;column-fill: balance;column-gap: normal;column-rule: medium none currentColor;column-span:1;column-width: auto;content: normal;counter-increment: none;counter-reset: none;cursor: auto;direction: ltr;display: inline;empty-cells: show;float: none;font-family: serif;font-size: medium;font-style: normal;font-variant: normal;font-weight: normal;font-stretch: normal;line-height: normal;height: auto;hyphens: none;left: auto;letter-spacing: normal;list-style: disc outside none;margin:0;max-height: none;max-width: none;min-height:0;min-width:0;opacity:1;orphans:2;outline: medium none invert;overflow: visible;overflow-x: visible;overflow-y: visible;padding:0;page-break-after: auto;page-break-before: auto;page-break-inside: auto;perspective: none;perspective-origin:50%50%;position: static;right: auto;tab-size:8;table-layout: auto;text-align: left;text-align-last: auto;text-decoration: none;text-indent:0;text-shadow: none;text-transform: none;top: auto;transform: none;transform-origin:50%50%0;transform-style: flat;transition: none0s ease0s;unicode-bidi: normal;vertical-align: baseline;visibility: visible;white-space: normal;widows:2;width: auto;word-spacing: normal;z-index: auto;all: initial;}

Options

reset

Takesstring.
Describes what subset of rules should be unsetted withall property (to reduce code weight).
Possible subsets:all,inherited.
Default value:'all'.

replace

Takesboolean.
Replace theinitial with the fallback instead of adding it.
Default value:false.

Usage

postcss([require('postcss-initial')({reset:'inherited'// reset only inherited rules})])

SeePostCSS docs for examples for your environment.

About

PostCSS plugin to fallback initial keyword

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp