pax_global_header00006660000000000000000000000064123327206010014506gustar00rootroot0000000000000052 comment=3773f9b27ead016cb6ba245311b30e39c0d0dedd compass-normalize/000077500000000000000000000000001233272060100145155ustar00rootroot00000000000000compass-normalize/.gitignore000066400000000000000000000000151233272060100165010ustar00rootroot00000000000000builds *.gem compass-normalize/README.md000066400000000000000000000060171233272060100160000ustar00rootroot00000000000000# Compass Normalize.css This simple plugin for [Compass](http://compass-style.org/) enables you to use [normalize.css](http://necolas.github.com/normalize.css/) in your stylesheets without having to download it. ## Installation It is highly encouraged to install from the [RubyGems build](http://rubygems.org/gems/compass-normalize) which can be found [here](http://rubygems.org/gems/compass-normalize). From the command line: ``` $ gem install compass-normalize ``` You can also install the gem from your local clone: ``` $ git clone git://github.com/ksmandersen/compass-normalize.git $ rake build $ rake install ``` ## Normalize Versions Since v3, Normalize only has one version for modern browsers (Firefox 4+, Chrome, Safari 5+, Opera, and Internet Explorer 8+). If you need support for older browsers, please use the older version of Compass normalize, that include a legacy Normalize. ## Usage When creating a new project with compass: ``` $ compass create -r compass-normalize --using compass-normalize ``` If using an existing project, edit your config.rb and add this line: ```ruby require 'compass-normalize' ``` To use the normalize plugin, just import and include normalize: ```scss @import "normalize"; ``` You can also just import parts you need: ```scss @import 'normalize/html5'; @import 'normalize/base'; @import 'normalize/links'; @import 'normalize/typography'; @import 'normalize/embeds'; @import 'normalize/groups'; @import 'normalize/forms'; @import 'normalize/tables'; ``` ## Acknowledgements Many thanks to [Frederic Hemberger](https://github.com/fhemberger/), [Sam Richard](https://github.com/snugug) and [Ian Carrico](https://github.com/ChinggizKhan) who contributed greatly to this project. ## License This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to [The Unlicense](http://unlicense.org/) ### Major components: * [normalize.css](http://necolas.github.com/normalize.css/): Public domain compass-normalize/Rakefile000066400000000000000000000000331233272060100161560ustar00rootroot00000000000000require "bundler/gem_tasks"compass-normalize/compass-normalize.gemspec000066400000000000000000000015571233272060100215350ustar00rootroot00000000000000Gem::Specification.new do |s| # Release information s.version = "2.0" s.date = "2014-04-01" # Gem details s.name = "compass-normalize" s.authors = ["Kristian Andersen", "Michaƫl Gallego", "Frederic Hemberger", "Sam Richard", "Ian Carrico"] s.summary = %q{A compass plugin for using normalize.css} s.description = %q{This simple plugin for Compass enables you to use normalize.css in your stylesheets without having to download it.} s.email = ["me@kristianandersen.me", "mail@frederic-hemberger.de"] s.homepage = "http://github.com/ksmandersen/compass-normalize/" s.has_rdoc = false # Gem files s.files = %w(README.md) s.files += Dir.glob("lib/**/*.*") s.files += Dir.glob("stylesheets/**/*.*") s.files += Dir.glob("templates/**/*.*") # Gem specifics s.rubygems_version = %q{1.3.6} s.add_dependency("compass", [">= 1.0.0.alpha.18"]) end compass-normalize/lib/000077500000000000000000000000001233272060100152635ustar00rootroot00000000000000compass-normalize/lib/compass-normalize.rb000066400000000000000000000001321233272060100212470ustar00rootroot00000000000000Compass::Frameworks.register("compass-normalize", :path => "#{File.dirname(__FILE__)}/..")compass-normalize/stylesheets/000077500000000000000000000000001233272060100170715ustar00rootroot00000000000000compass-normalize/stylesheets/_normalize-version.scss000066400000000000000000000004041233272060100236060ustar00rootroot00000000000000@mixin normalize-version($partial: false) { $version: 'v3.0.0'; @if $partial { /*! normalize.css #{$version} | #{$partial} | MIT License | git.io/normalize */ } @else { /*! normalize.css #{$version} | MIT License | git.io/normalize */ } } compass-normalize/stylesheets/_normalize.scss000066400000000000000000000005221233272060100221240ustar00rootroot00000000000000// Normalize Version Comment @import 'normalize-version'; @include normalize-version; // Normalize Partial Imports @import 'normalize/html5'; @import 'normalize/base'; @import 'normalize/links'; @import 'normalize/typography'; @import 'normalize/embeds'; @import 'normalize/groups'; @import 'normalize/forms'; @import 'normalize/tables';compass-normalize/stylesheets/normalize/000077500000000000000000000000001233272060100210715ustar00rootroot00000000000000compass-normalize/stylesheets/normalize/_base.scss000066400000000000000000000010101233272060100230270ustar00rootroot00000000000000@include normalize-version('Base'); // ========================================================================== // Base // ========================================================================== // 1. Sets default font family to sans-serif. // 2. Prevents iOS text size adjust after orientation change, without disabling // user zoom. html { font-family: sans-serif; // 1 -webkit-text-size-adjust: 100%; // 2 -ms-text-size-adjust: 100%; // 2 } // Removes default margin. body { margin: 0; } compass-normalize/stylesheets/normalize/_embeds.scss000066400000000000000000000006071233272060100233670ustar00rootroot00000000000000@include normalize-version('Embedded Content'); // ========================================================================== // Embedded content // ========================================================================== // Removes border when inside `a` element in IE 8/9. img { border: 0; } // Corrects overflow displayed oddly in IE 9. svg:not(:root) { overflow: hidden; }compass-normalize/stylesheets/normalize/_forms.scss000066400000000000000000000073351233272060100232630ustar00rootroot00000000000000@include normalize-version('Forms'); // ========================================================================== // Forms // ========================================================================== // Known limitation: by default, Chrome and Safari on OS X allow very limited // styling of `select`, unless a `border` property is set. // 1. Correct color not being inherited. // Known issue: affects color of disabled elements. // 2. Correct font properties not being inherited. // 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. button, input, optgroup, select, textarea { color: inherit; // 1 font: inherit; // 2 margin: 0; // 3 } // Address `overflow` set to `hidden` in IE 8/9/10. button { overflow: visible; } // Address inconsistent `text-transform` inheritance for `button` and `select`. // All other form control elements do not inherit `text-transform` values. // Correct `button` style inheritance in Firefox, IE 8+, and Opera // Correct `select` style inheritance in Firefox. button, select { text-transform: none; } // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` // and `video` controls. // 2. Correct inability to style clickable `input` types in iOS. // 3. Improve usability and consistency of cursor style between image-type // `input` and others. button, html input[type="button"], // 1 input[type="reset"], input[type="submit"] { -webkit-appearance: button; // 2 cursor: pointer; // 3 } // Re-set default cursor for disabled elements. button[disabled], html input[disabled] { cursor: default; } // Remove inner padding and border in Firefox 4+. button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } // Address Firefox 4+ setting `line-height` on `input` using `!important` in // the UA stylesheet. input { line-height: normal; } // It's recommended that you don't attempt to style these elements. // Firefox's implementation doesn't respect box-sizing, padding, or width. // // 1. Address box sizing set to `content-box` in IE 8/9/10. // 2. Remove excess padding in IE 8/9/10. input[type="checkbox"], input[type="radio"] { box-sizing: border-box; // 1 padding: 0; // 2 } // Fix the cursor style for Chrome's increment/decrement buttons. For certain // `font-size` values of the `input`, it causes the cursor style of the // decrement button to change from `default` to `text`. input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } // 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. // 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome // (include `-moz` to future-proof). input[type="search"] { -webkit-appearance: textfield; // 1 -moz-box-sizing: content-box; -webkit-box-sizing: content-box; // 2 box-sizing: content-box; } // Remove inner padding and search cancel button in Safari and Chrome on OS X. // Safari (but not Chrome) clips the cancel button when the search input has // padding (and `textfield` appearance). input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } // Define consistent border, margin, and padding. fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } // 1. Correct `color` not being inherited in IE 8/9. // 2. Remove padding so people aren't caught out if they zero out fieldsets. legend { border: 0; // 1 padding: 0; // 2 } // Remove default vertical scrollbar in IE 8/9. textarea { overflow: auto; } // Don't inherit the `font-weight` (applied by a rule above). // NOTE: the default cannot safely be changed in Chrome and Safari on OS X. optgroup { font-weight: bold; } compass-normalize/stylesheets/normalize/_groups.scss000066400000000000000000000012231233272060100234420ustar00rootroot00000000000000@include normalize-version('Figures'); // ========================================================================== // Grouping // ========================================================================== // Addresses margin not present in IE 8/9 and Safari 5. figure { margin: 1em 40px; } // Address differences between Firefox and other browsers. hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } // Contain overflow in all browsers. pre { overflow: auto; } // Address odd `em`-unit font size rendering in all browsers. code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; }compass-normalize/stylesheets/normalize/_html5.scss000066400000000000000000000017551233272060100231660ustar00rootroot00000000000000@include normalize-version('HTML5 Display Definitions'); // ========================================================================== // HTML5 display definitions // ========================================================================== // Corrects `block` display not defined in IE 8/9. article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } // Corrects `inline-block` display not defined in IE 8/9. // 1. Correct `inline-block` display not defined in IE 8/9. // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. audio, canvas, progress, video { display: inline-block; // 1 vertical-align: baseline; // 2 } // Prevents modern browsers from displaying `audio` without controls. // Remove excess height in iOS 5 devices. audio:not([controls]) { display: none; height: 0; } // Addresses styling for `hidden` attribute not present in IE 8/9. [hidden], template { display: none; } compass-normalize/stylesheets/normalize/_links.scss000066400000000000000000000006451233272060100232520ustar00rootroot00000000000000@include normalize-version('Links'); // ========================================================================== // Links // ========================================================================== // Remove the gray background color from active links in IE 10. a { background: transparent; } // Improves readability when focused and also mouse hovered in all browsers. a:active, a:hover { outline: 0; } compass-normalize/stylesheets/normalize/_tables.scss000066400000000000000000000005261233272060100234020ustar00rootroot00000000000000@include normalize-version('Tables'); // ========================================================================== // Tables // ========================================================================== // Remove most spacing between table cells. table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; }compass-normalize/stylesheets/normalize/_typography.scss000066400000000000000000000021551233272060100243360ustar00rootroot00000000000000@include normalize-version('Typography'); // ========================================================================== // Typography // ========================================================================== // Addresses styling not present in IE 8/9, Safari 5, and Chrome. abbr[title] { border-bottom: 1px dotted; } // Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome. b, strong { font-weight: bold; } // Addresses styling not present in Safari 5 and Chrome. dfn { font-style: italic; } // Address variable `h1` font-size and margin within `section` and `article` // contexts in Firefox 4+, Safari 5, and Chrome. h1 { font-size: 2em; margin: 0.67em 0; } // Addresses styling not present in IE 8/9. mark { background: #ff0; color: #000; } // Addresses inconsistent and variable font size in all browsers. small { font-size: 80%; } // Prevents `sub` and `sup` affecting `line-height` in all browsers. sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } compass-normalize/templates/000077500000000000000000000000001233272060100165135ustar00rootroot00000000000000compass-normalize/templates/project/000077500000000000000000000000001233272060100201615ustar00rootroot00000000000000compass-normalize/templates/project/manifest.rb000066400000000000000000000012231233272060100223120ustar00rootroot00000000000000description "A compass plugin for using normalize.css" stylesheet 'screen.scss', :media => 'screen, projection' help %Q{ Please see the normalize.css website for documentation and more information http://necolas.github.com/normalize.css/ For more information on how normalize.css works please visit the wiki https://github.com/necolas/normalize.css/wiki } welcome_message %Q{ Please see the normalize.css website for documentation and more information http://necolas.github.com/normalize.css/ For more information on how normalize.css works please visit the wiki https://github.com/necolas/normalize.css/wiki }compass-normalize/templates/project/screen.scss000066400000000000000000000000641233272060100223350ustar00rootroot00000000000000// Import the normalize plugin @import "normalize";