Giter Club home page Giter Club logo

scss-form-reset's Introduction

SCSS Form Reset

SASS Mixins/Placeholders to reset all form elements Forked from https://gist.github.com/mjlescano/fc472f778e77c4b760ab

Table of contents

Instalation

Download _form-reset.scss or install via NPM npm install scss-form-reset --save

Then, import _form-reset.scss depending of your configuration and file structure.

  • @import "~scss-form-reset"; with sass-loader or node-sass-package-importer (recommended)
  • @import "sass-form-reset/form-reset"; when using node-sass’ includePaths to resolve node_modules dir
  • @import "./../../node_modules/sass-form-reset/form-reset"; if none of the above and working in something like ./src/scss/main.scss
  • @import "vendor/form-reset"; if manually copied _form-reset.scss in a vendor folder, for example

Usage

MIXINS: for very specific use cases, when you don't want to reset absolutly all the forms, very verbose output.

PLACEHOLDER SELECTORS: use as extending classes. Less verbose, more generic overrides.

input {
  @extend %form-reset-input;
}

label {
  @extend %form-reset-label;
}

select {
  @extend %form-reset-select;
}

button {
  @extend %form-reset-button;
}

textarea {
  @extend %form-reset-textarea;
}

License

SCSS Form Reset is open-sourced software licensed under the MIT license.

Credits

Anthony Short

Matías Lescano

scss-form-reset's People

Contributors

zeindelf avatar

Stargazers

Kaio Santana avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.