Git Product home page Git Product logo

meyer-reset's Introduction

Eric Meyer - CSS Reset Stylesheet

Eric Meyer's CSS reset stylesheet as Sass, delivered as a Compass Extension and Ruby Gem.

For more information: http://meyerweb.com/eric/tools/css/reset/

Installation and Usage

Compass Extension

To install as a Ruby Gem to use this as a Compass Extension, run the following in your Terminal app.

gem install meyer-reset

Then add require 'meyer-reset' to your Compass config file.

Using this in your Sass stylesheet is pretty easy. Simply import the extension into your stylesheet (preferably as the first import or declaration in your Sass stylesheet).

If you look at the extension, you will notice that we are "including" the mixin @include meyer-reset for you in the last line. All you will need to do is import and go.

@import "meyer-reset";

...

Simple Sass Partial

For non Compass users, or someone who just wants to use this as a simple Sass partial vs installing as a Ruby Gem and Compass extension. In your terminal app, navigate to where you want to download this to.

For example: cd path/to/project/sass

Then use curl to pull down the raw file.

curl -0 https://github.com/adamstac/meyer-reset/raw/master/stylesheets/_meyer-reset.scss

The same rules apply as mentioned above. All you will need to do is import and go.

@import "meyer-reset";

...

For fun

For those who want to learn about how to use Rake and want to play with how Sass and Compass work when compiling, run the command rake -T to see a list of rake tasks that: clear, build and release this gem, and compile and convert Sass.

Dig into the Rakefile to see what makes all this happen.

rake css:clear     # Clear the styles
rake gem:build     # Build the gem
rake gem:release   # Build and release the gem
rake sass:compile  # Compile new styles
rake sass:convert  # Converts the Sass to SCSS

License

None (public domain)

meyer-reset's People

Contributors

adamstac avatar alienresident avatar

Stargazers

 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  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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

meyer-reset's Issues

Compass Version Conflict

Getting this error, when trying to compile:
Unable to activate meyer-reset-2.0.1, because compass-1.0.3 conflicts with compass (~> 0.10)

Warning when using `meyer-reset`

When I compile for the first time. I get this warning:

WARNING: On line 1 of ../_eric_meyer_reset.scss:
  It's not clear which file to import for '@import "meyer-reset"'.
  Candidates:
    _meyer-reset.scss
    meyer-reset.scss
  For now I'll choose _meyer-reset.scss.
  This will be an error in future versions of Sass.

I ran gem unpack meyer-reset and checked the files. Both meyer-reset.scss and _meyer-reset.scss are in the stylesheets folder in the gem. I can see that meyer-reset.scss is in the git-ignore file but it's some how got into the gem.

I also forked the project and updated the Readme.md to reflect the changes in v 2.0.1.

Thanks,
Mark

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.