Giter VIP home page Giter VIP logo

simple-css-reset's Introduction


A simple, no-nonsense CSS reset stylesheet to use as an NPM dependency.

Installation

$ npm install --save simple-css-reset

Usage

Ember.js

You need the ember-cli-node-assets package to be able to import the CSS file into your application. Then you need to add the reset file to the ember-cli build file.

$ npm install --save-dev ember-cli-node-assets
// ember-cli-build.js
module.exports = function(defaults) {
  const app = new EmberApp(defaults, {
    nodeAssets: {
      'simple-css-reset': {
        import: ['reset.css']
      }
    }
  });
};

Webpack

Assuming you have properly installed and configured CSS loader, you can simply require the reset.css file within the entry point of your app.

$ npm install --save-dev css-loader
// index.js
import 'simple-css-reset/reset.css';

Gatsby

Since simple-css-reset is meant to be used a global reset stylesheet, the best way to use it in Gatsby is including in gatsby-browser.js.

// gatsby-browser.js
import 'simple-css-reset';

License

simple-css-reset is ยฉ 2014-2019 Mirego and may be freely distributed under the New BSD license. See the LICENSE.md file.

The reset logo is based on this lovely icon by Hali Gali Harun, from The Noun Project. Used under a Creative Commons BY 3.0 license.

About Mirego

Mirego is a team of passionate people who believe that work is a place where you can innovate and have fun. We're a team of talented people who imagine and build beautiful Web and mobile applications. We come together to share ideas and change the world.

We also love open-source software and we try to give back to the community as much as we can.

simple-css-reset's People

Contributors

charlesdemers avatar dependabot[bot] avatar loboulet avatar madumo avatar pkvince avatar remi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple-css-reset's Issues

placeholder text

I find forms on different devices and browsers display placeholder text differently. Would be nice to reset that.

Why not use font: inherit?

Love the minimalism of this reset, nice work.

IMO, he only thing it's missing that almost everyone adds later is font-family:inherit for inputs, buttons, etc. You could do this and actually save bytes by changing your existing font-size:inherit declarations to font:inherit.

button reset

Hi,

can I understand rationale behind the button reset?

Button reset completely strips off the button's background, border and makes indistinguishable. IMO, the reset should ensure that it looks same across the browser but at least it should look like a button.

Can you provide your thoughts?

Improve README.md documentation

As mentioned in #19, we probably write better content for README.md to document what this "CSS reset" actually does.

Also, since we distribute it as an NPM package (and not a plain CSS file), I think we could provide references to external documentation URLs that explain how to use an NPM-provided stylesheet in popular frameworks / build tools.

@charlesdemers What do you think?

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.