Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajouter le plugin initial (PostCSS) #64

Open
PhilippeVay opened this issue Nov 21, 2018 · 1 comment
Open

Ajouter le plugin initial (PostCSS) #64

PhilippeVay opened this issue Nov 21, 2018 · 1 comment

Comments

@PhilippeVay
Copy link

PostCSS plugin to fallback initial keyword.

Avec l'option replace à true:

Replace the initial with the fallback instead of adding it.

Permet d'écrire text-transform: initial; qui sera transformé en text-transform: none;. Évite d'aller sur MDN chercher la valeur par défaut des propriétés CSS quand on hésite (quoique DuckDuckGo l'affiche directement) tout en restant compatible avec IE (qui ne reconnait pas la récente valeur initial)

@raphaelgoetter
Copy link
Member

Très bonne idée.

À vrai dire, toutes les dernières améliorations postCSS de KNACSS pourraient être apportées dans Bretzel aussi (https://github.com/alsacreations/KNACSS/blob/master/changelog.md#changelog-v710-31-octobre-2018) :

  • mise à jour et meilleure intégration de gulp / postCSS :
    • autoprefixer version postCSS (avec browserslist officielle),
    • unprefix : pour supprimer les vieux préfixes inutiles
    • flexbox-fixes : pour corriger les erreurs connues sur IE
    • gap-properties : polyfill de gap -> grid-gap
    • minification CSS avec CSSnano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants