aesthetics-rails 0.1.0.pre.alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/README.md +35 -0
- data/Rakefile +2 -0
- data/aesthetics-rails.gemspec +25 -0
- data/assets/stylesheets/_mixins.scss +65 -0
- data/assets/stylesheets/_normalize.scss +394 -0
- data/assets/stylesheets/aesthetics.scss +46 -0
- data/assets/stylesheets/components/_buttons.scss +182 -0
- data/assets/stylesheets/components/_container.scss +47 -0
- data/assets/stylesheets/components/_forms.scss +58 -0
- data/assets/stylesheets/components/_global.scss +43 -0
- data/assets/stylesheets/components/_navbar.scss +29 -0
- data/assets/stylesheets/components/_utilities.scss +159 -0
- data/assets/stylesheets/settings/_colors.scss +28 -0
- data/assets/stylesheets/settings/_devices.scss +91 -0
- data/assets/stylesheets/settings/_type.scss +38 -0
- data/assets/stylesheets/settings/_z-index.scss +60 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/aesthetics/rails.rb +40 -0
- data/lib/aesthetics/rails/version.rb +5 -0
- metadata +108 -0
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            SHA1:
         | 
| 3 | 
            +
              metadata.gz: 00cc5a846636f0c0d4dabf1b612ae5b606cf3c66
         | 
| 4 | 
            +
              data.tar.gz: 65699b2fdbedce8ecab4d664928da8ea863ac04c
         | 
| 5 | 
            +
            SHA512:
         | 
| 6 | 
            +
              metadata.gz: 7eadc60b5fdcdf7b5a88178fedef1df480320b648f813b3776f0a9949c6ca91c84b01c91d0644583d9e14d36fb74c19470d9e05dd46aa1381f83c6e052bc736d
         | 
| 7 | 
            +
              data.tar.gz: 7cea9464dc314412763e21a8a772aab373ed2be61cca1765af9921efa9bdd49c9cb8c3ecd36b47c3bf065c76cda972c5f62cb70f59463b8ae70f51dfb1648c33
         | 
    
        data/.gitignore
    ADDED
    
    
    
        data/.travis.yml
    ADDED
    
    
    
        data/Gemfile
    ADDED
    
    
    
        data/README.md
    ADDED
    
    | @@ -0,0 +1,35 @@ | |
| 1 | 
            +
            # Aesthetics::Rails
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            Aesthetics::Rails is a gem of the Aesthetics CSS Framework.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            ## Installation
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            Add this line to your application's Gemfile:
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            ```ruby
         | 
| 10 | 
            +
            gem 'aesthetics-rails'
         | 
| 11 | 
            +
            ```
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            And then execute:
         | 
| 14 | 
            +
             | 
| 15 | 
            +
                $ bundle
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            Or install it yourself as:
         | 
| 18 | 
            +
             | 
| 19 | 
            +
                $ gem install aesthetics-rails
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            ### Usage
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            Add this line to your application.scss:
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            ```ruby
         | 
| 26 | 
            +
            @import "aesthetics";
         | 
| 27 | 
            +
            ```
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            ## Contributing
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            1. Fork it ( https://github.com/[my-github-username]/aesthetics-rails/fork )
         | 
| 32 | 
            +
            2. Create your feature branch (`git checkout -b my-new-feature`)
         | 
| 33 | 
            +
            3. Commit your changes (`git commit -am 'Add some feature'`)
         | 
| 34 | 
            +
            4. Push to the branch (`git push origin my-new-feature`)
         | 
| 35 | 
            +
            5. Create a new Pull Request
         | 
    
        data/Rakefile
    ADDED
    
    
| @@ -0,0 +1,25 @@ | |
| 1 | 
            +
            # coding: utf-8
         | 
| 2 | 
            +
            lib = File.expand_path('../lib', __FILE__)
         | 
| 3 | 
            +
            $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
         | 
| 4 | 
            +
            require 'aesthetics/rails/version'
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            Gem::Specification.new do |spec|
         | 
| 7 | 
            +
              spec.name          = "aesthetics-rails"
         | 
| 8 | 
            +
              spec.version       = Aesthetics::Rails::VERSION
         | 
| 9 | 
            +
              spec.authors       = ["Duane Adam"]
         | 
| 10 | 
            +
              spec.email         = ["contact@duaneadam.me"]
         | 
| 11 | 
            +
             | 
| 12 | 
            +
              spec.summary       = %q{Light Modular CSS Framework}
         | 
| 13 | 
            +
              spec.description   = %q{A light and modular CSS framework that focuses more on conventions.}
         | 
| 14 | 
            +
              spec.homepage      = "http://github.com/duaneadam/aesthetics-rails/"
         | 
| 15 | 
            +
             | 
| 16 | 
            +
              spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
         | 
| 17 | 
            +
              spec.bindir        = "exe"
         | 
| 18 | 
            +
              spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
         | 
| 19 | 
            +
              spec.require_paths = ["lib"]
         | 
| 20 | 
            +
             | 
| 21 | 
            +
              spec.add_runtime_dependency 'sass', '~> 3.2'
         | 
| 22 | 
            +
             | 
| 23 | 
            +
              spec.add_development_dependency "bundler", "~> 1.8"
         | 
| 24 | 
            +
              spec.add_development_dependency "rake", "~> 10.0"
         | 
| 25 | 
            +
            end
         | 
| @@ -0,0 +1,65 @@ | |
| 1 | 
            +
            //==================================================
         | 
| 2 | 
            +
            // Mixins
         | 
| 3 | 
            +
            //
         | 
| 4 | 
            +
            // Index
         | 
| 5 | 
            +
            // -----
         | 
| 6 | 
            +
            // 1) Flexbox Layout
         | 
| 7 | 
            +
            // 2) Positioning
         | 
| 8 | 
            +
            //==================================================
         | 
| 9 | 
            +
             | 
| 10 | 
            +
             | 
| 11 | 
            +
            //=========================
         | 
| 12 | 
            +
            // 1) Flexbox Layout
         | 
| 13 | 
            +
            //=========================
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            //=======================
         | 
| 16 | 
            +
              // Flex Container
         | 
| 17 | 
            +
            //=======================
         | 
| 18 | 
            +
            @mixin flexbox($flex-direction: row, $flex-wrap: nowrap, $justify-content: flex-start, $align-items: flex-start) {
         | 
| 19 | 
            +
              display: -webkit-flex;
         | 
| 20 | 
            +
              display: flex;
         | 
| 21 | 
            +
             | 
| 22 | 
            +
              -webkit-flex-direction: $flex-direction;
         | 
| 23 | 
            +
                      flex-direction: $flex-direction;
         | 
| 24 | 
            +
             | 
| 25 | 
            +
              -webkit-flex-wrap: $flex-wrap;
         | 
| 26 | 
            +
                      flex-wrap: $flex-wrap;
         | 
| 27 | 
            +
             | 
| 28 | 
            +
              -webkit-justify-content: $justify-content;
         | 
| 29 | 
            +
                      justify-content: $justify-content;
         | 
| 30 | 
            +
             | 
| 31 | 
            +
              -webkit-align-items: $align-items;
         | 
| 32 | 
            +
                      align-items: $align-items;
         | 
| 33 | 
            +
            }
         | 
| 34 | 
            +
             | 
| 35 | 
            +
            //=======================
         | 
| 36 | 
            +
              // Flex Item
         | 
| 37 | 
            +
            //=======================
         | 
| 38 | 
            +
            // Use on flex item
         | 
| 39 | 
            +
            @mixin flex($flex-grow: 0, $flex-shrink: 1, $flex-basis: auto) {
         | 
| 40 | 
            +
              -webkit-flex: $flex-grow, $flex-shrink, $flex-basis;
         | 
| 41 | 
            +
              flex: $flex-grow, $flex-shrink, $flex-basis;
         | 
| 42 | 
            +
            }
         | 
| 43 | 
            +
             | 
| 44 | 
            +
            //=======================
         | 
| 45 | 
            +
              // Flex Order
         | 
| 46 | 
            +
            //=======================
         | 
| 47 | 
            +
            @mixin flex-order($order: 0) {
         | 
| 48 | 
            +
              -webkit-order: $order;
         | 
| 49 | 
            +
              order:         $order;
         | 
| 50 | 
            +
            }
         | 
| 51 | 
            +
             | 
| 52 | 
            +
            //=========================
         | 
| 53 | 
            +
            // 2) Positioning
         | 
| 54 | 
            +
            //=========================
         | 
| 55 | 
            +
             | 
| 56 | 
            +
            //=======================
         | 
| 57 | 
            +
              // Vertical Align
         | 
| 58 | 
            +
            //=======================
         | 
| 59 | 
            +
            @mixin vertical-align {
         | 
| 60 | 
            +
              position: relative;
         | 
| 61 | 
            +
              top: 50%;
         | 
| 62 | 
            +
              -webkit-transform: translateY(-50%);
         | 
| 63 | 
            +
              -ms-transform: translateY(-50%);
         | 
| 64 | 
            +
              transform: translateY(-50%);
         | 
| 65 | 
            +
            }
         | 
| @@ -0,0 +1,394 @@ | |
| 1 | 
            +
            /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
         | 
| 2 | 
            +
             | 
| 3 | 
            +
              // 1. Set default font family to sans-serif.
         | 
| 4 | 
            +
              // 2. Prevent iOS text size adjust after orientation change, without disabling
         | 
| 5 | 
            +
              //    user zoom.
         | 
| 6 | 
            +
              //==========================================================================
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            html {
         | 
| 9 | 
            +
              font-family: sans-serif; // 1
         | 
| 10 | 
            +
              -ms-text-size-adjust: 100%; // 2
         | 
| 11 | 
            +
              -webkit-text-size-adjust: 100%; // 2
         | 
| 12 | 
            +
            }
         | 
| 13 | 
            +
             | 
| 14 | 
            +
              // Remove default margin.
         | 
| 15 | 
            +
              //==========================================================================
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            body {
         | 
| 18 | 
            +
              margin: 0;
         | 
| 19 | 
            +
            }
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            // HTML5 display definitions
         | 
| 22 | 
            +
            //==========================================================================
         | 
| 23 | 
            +
             | 
| 24 | 
            +
             | 
| 25 | 
            +
              // Correct `block` display not defined for any HTML5 element in IE 8/9.
         | 
| 26 | 
            +
              // Correct `block` display not defined for `details` or `summary` in IE 10/11
         | 
| 27 | 
            +
              // and Firefox.
         | 
| 28 | 
            +
              // Correct `block` display not defined for `main` in IE 11.
         | 
| 29 | 
            +
              //==========================================================================
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            article,
         | 
| 32 | 
            +
            aside,
         | 
| 33 | 
            +
            details,
         | 
| 34 | 
            +
            figcaption,
         | 
| 35 | 
            +
            figure,
         | 
| 36 | 
            +
            footer,
         | 
| 37 | 
            +
            header,
         | 
| 38 | 
            +
            hgroup,
         | 
| 39 | 
            +
            main,
         | 
| 40 | 
            +
            menu,
         | 
| 41 | 
            +
            nav,
         | 
| 42 | 
            +
            section,
         | 
| 43 | 
            +
            summary {
         | 
| 44 | 
            +
              display: block;
         | 
| 45 | 
            +
            }
         | 
| 46 | 
            +
             | 
| 47 | 
            +
             | 
| 48 | 
            +
              // 1. Correct `inline-block` display not defined in IE 8/9.
         | 
| 49 | 
            +
              // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
         | 
| 50 | 
            +
              //==========================================================================
         | 
| 51 | 
            +
             | 
| 52 | 
            +
            audio,
         | 
| 53 | 
            +
            canvas,
         | 
| 54 | 
            +
            progress,
         | 
| 55 | 
            +
            video {
         | 
| 56 | 
            +
              display: inline-block; // 1
         | 
| 57 | 
            +
              vertical-align: baseline; // 2
         | 
| 58 | 
            +
            }
         | 
| 59 | 
            +
             | 
| 60 | 
            +
              // Prevent modern browsers from displaying `audio` without controls.
         | 
| 61 | 
            +
              // Remove excess height in iOS 5 devices.
         | 
| 62 | 
            +
              //==========================================================================
         | 
| 63 | 
            +
             | 
| 64 | 
            +
            audio:not([controls]) {
         | 
| 65 | 
            +
              display: none;
         | 
| 66 | 
            +
              height: 0;
         | 
| 67 | 
            +
            }
         | 
| 68 | 
            +
             | 
| 69 | 
            +
              // Address `[hidden]` styling not present in IE 8/9/10.
         | 
| 70 | 
            +
              // Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
         | 
| 71 | 
            +
              //==========================================================================
         | 
| 72 | 
            +
             | 
| 73 | 
            +
            [hidden],
         | 
| 74 | 
            +
            template {
         | 
| 75 | 
            +
              display: none;
         | 
| 76 | 
            +
            }
         | 
| 77 | 
            +
             | 
| 78 | 
            +
            // Links
         | 
| 79 | 
            +
            //==========================================================================
         | 
| 80 | 
            +
             | 
| 81 | 
            +
              // Remove the gray background color from active links in IE 10.
         | 
| 82 | 
            +
              //==========================================================================
         | 
| 83 | 
            +
             | 
| 84 | 
            +
            a {
         | 
| 85 | 
            +
              background-color: transparent;
         | 
| 86 | 
            +
            }
         | 
| 87 | 
            +
             | 
| 88 | 
            +
              // Improve readability when focused and also mouse hovered in all browsers.
         | 
| 89 | 
            +
              //==========================================================================
         | 
| 90 | 
            +
             | 
| 91 | 
            +
            a:active,
         | 
| 92 | 
            +
            a:hover {
         | 
| 93 | 
            +
              outline: 0;
         | 
| 94 | 
            +
            }
         | 
| 95 | 
            +
             | 
| 96 | 
            +
            // Text-level semantics
         | 
| 97 | 
            +
            //==========================================================================
         | 
| 98 | 
            +
             | 
| 99 | 
            +
              // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
         | 
| 100 | 
            +
              //==========================================================================
         | 
| 101 | 
            +
             | 
| 102 | 
            +
            abbr[title] {
         | 
| 103 | 
            +
              border-bottom: 1px dotted;
         | 
| 104 | 
            +
            }
         | 
| 105 | 
            +
             | 
| 106 | 
            +
              // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
         | 
| 107 | 
            +
              //==========================================================================
         | 
| 108 | 
            +
             | 
| 109 | 
            +
            b,
         | 
| 110 | 
            +
            strong {
         | 
| 111 | 
            +
              font-weight: bold;
         | 
| 112 | 
            +
            }
         | 
| 113 | 
            +
             | 
| 114 | 
            +
              // Address styling not present in Safari and Chrome.
         | 
| 115 | 
            +
              //==========================================================================
         | 
| 116 | 
            +
             | 
| 117 | 
            +
            dfn {
         | 
| 118 | 
            +
              font-style: italic;
         | 
| 119 | 
            +
            }
         | 
| 120 | 
            +
             | 
| 121 | 
            +
              // Address variable `h1` font-size and margin within `section` and `article`
         | 
| 122 | 
            +
              // contexts in Firefox 4+, Safari, and Chrome.
         | 
| 123 | 
            +
              //==========================================================================
         | 
| 124 | 
            +
             | 
| 125 | 
            +
            h1 {
         | 
| 126 | 
            +
              font-size: 2em;
         | 
| 127 | 
            +
              margin: 0.67em 0;
         | 
| 128 | 
            +
            }
         | 
| 129 | 
            +
             | 
| 130 | 
            +
              // Address styling not present in IE 8/9.
         | 
| 131 | 
            +
              //
         | 
| 132 | 
            +
             | 
| 133 | 
            +
            mark {
         | 
| 134 | 
            +
              background: #ff0;
         | 
| 135 | 
            +
              color: #000;
         | 
| 136 | 
            +
            }
         | 
| 137 | 
            +
             | 
| 138 | 
            +
             // Address inconsistent and variable font size in all browsers.
         | 
| 139 | 
            +
             //==========================================================================
         | 
| 140 | 
            +
             | 
| 141 | 
            +
            small {
         | 
| 142 | 
            +
              font-size: 80%;
         | 
| 143 | 
            +
            }
         | 
| 144 | 
            +
             | 
| 145 | 
            +
              // Prevent `sub` and `sup` affecting `line-height` in all browsers.
         | 
| 146 | 
            +
              //==========================================================================
         | 
| 147 | 
            +
             | 
| 148 | 
            +
            sub,
         | 
| 149 | 
            +
            sup {
         | 
| 150 | 
            +
              font-size: 75%;
         | 
| 151 | 
            +
              line-height: 0;
         | 
| 152 | 
            +
              position: relative;
         | 
| 153 | 
            +
              vertical-align: baseline;
         | 
| 154 | 
            +
            }
         | 
| 155 | 
            +
             | 
| 156 | 
            +
            sup {
         | 
| 157 | 
            +
              top: -0.5em;
         | 
| 158 | 
            +
            }
         | 
| 159 | 
            +
             | 
| 160 | 
            +
            sub {
         | 
| 161 | 
            +
              bottom: -0.25em;
         | 
| 162 | 
            +
            }
         | 
| 163 | 
            +
             | 
| 164 | 
            +
            // Embedded content
         | 
| 165 | 
            +
            //===========================================================================
         | 
| 166 | 
            +
             | 
| 167 | 
            +
             // Remove border when inside `a` element in IE 8/9/10.
         | 
| 168 | 
            +
             //==========================================================================
         | 
| 169 | 
            +
             | 
| 170 | 
            +
            img {
         | 
| 171 | 
            +
              border: 0;
         | 
| 172 | 
            +
            }
         | 
| 173 | 
            +
             | 
| 174 | 
            +
             | 
| 175 | 
            +
              // Correct overflow not hidden in IE 9/10/11.
         | 
| 176 | 
            +
              //==========================================================================
         | 
| 177 | 
            +
             | 
| 178 | 
            +
             | 
| 179 | 
            +
            svg:not(:root) {
         | 
| 180 | 
            +
              overflow: hidden;
         | 
| 181 | 
            +
            }
         | 
| 182 | 
            +
             | 
| 183 | 
            +
            // Grouping content
         | 
| 184 | 
            +
            //===========================================================================
         | 
| 185 | 
            +
             | 
| 186 | 
            +
              // Address margin not present in IE 8/9 and Safari.
         | 
| 187 | 
            +
              //
         | 
| 188 | 
            +
             | 
| 189 | 
            +
            figure {
         | 
| 190 | 
            +
              margin: 1em 40px;
         | 
| 191 | 
            +
            }
         | 
| 192 | 
            +
             | 
| 193 | 
            +
              // Address differences between Firefox and other browsers.
         | 
| 194 | 
            +
              //==========================================================================
         | 
| 195 | 
            +
             | 
| 196 | 
            +
            hr {
         | 
| 197 | 
            +
              -moz-box-sizing: content-box;
         | 
| 198 | 
            +
              box-sizing: content-box;
         | 
| 199 | 
            +
              height: 0;
         | 
| 200 | 
            +
            }
         | 
| 201 | 
            +
             | 
| 202 | 
            +
              // Contain overflow in all browsers.
         | 
| 203 | 
            +
              //==========================================================================
         | 
| 204 | 
            +
             | 
| 205 | 
            +
            pre {
         | 
| 206 | 
            +
              overflow: auto;
         | 
| 207 | 
            +
            }
         | 
| 208 | 
            +
             | 
| 209 | 
            +
              // Address odd `em`-unit font size rendering in all browsers.
         | 
| 210 | 
            +
              //==========================================================================
         | 
| 211 | 
            +
             | 
| 212 | 
            +
            code,
         | 
| 213 | 
            +
            kbd,
         | 
| 214 | 
            +
            pre,
         | 
| 215 | 
            +
            samp {
         | 
| 216 | 
            +
              font-family: monospace, monospace;
         | 
| 217 | 
            +
              font-size: 1em;
         | 
| 218 | 
            +
            }
         | 
| 219 | 
            +
             | 
| 220 | 
            +
            // Forms
         | 
| 221 | 
            +
            //==========================================================================
         | 
| 222 | 
            +
             | 
| 223 | 
            +
              // Known limitation: by default, Chrome and Safari on OS X allow very limited
         | 
| 224 | 
            +
              // styling of `select`, unless a `border` property is set.
         | 
| 225 | 
            +
              //
         | 
| 226 | 
            +
              // 1. Correct color not being inherited.
         | 
| 227 | 
            +
              //    Known issue: affects color of disabled elements.
         | 
| 228 | 
            +
              // 2. Correct font properties not being inherited.
         | 
| 229 | 
            +
              // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
         | 
| 230 | 
            +
              //==========================================================================
         | 
| 231 | 
            +
             | 
| 232 | 
            +
            button,
         | 
| 233 | 
            +
            input,
         | 
| 234 | 
            +
            optgroup,
         | 
| 235 | 
            +
            select,
         | 
| 236 | 
            +
            textarea {
         | 
| 237 | 
            +
              color: inherit; // 1
         | 
| 238 | 
            +
              font: inherit; // 2
         | 
| 239 | 
            +
              margin: 0; // 3
         | 
| 240 | 
            +
            }
         | 
| 241 | 
            +
             | 
| 242 | 
            +
             | 
| 243 | 
            +
              // Address `overflow` set to `hidden` in IE 8/9/10/11.
         | 
| 244 | 
            +
              //==========================================================================
         | 
| 245 | 
            +
             | 
| 246 | 
            +
            button {
         | 
| 247 | 
            +
              overflow: visible;
         | 
| 248 | 
            +
            }
         | 
| 249 | 
            +
             | 
| 250 | 
            +
              // Address inconsistent `text-transform` inheritance for `button` and `select`.
         | 
| 251 | 
            +
              // All other form control elements do not inherit `text-transform` values.
         | 
| 252 | 
            +
              // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
         | 
| 253 | 
            +
              // Correct `select` style inheritance in Firefox.
         | 
| 254 | 
            +
              //==========================================================================
         | 
| 255 | 
            +
             | 
| 256 | 
            +
            button,
         | 
| 257 | 
            +
            select {
         | 
| 258 | 
            +
              text-transform: none;
         | 
| 259 | 
            +
            }
         | 
| 260 | 
            +
             | 
| 261 | 
            +
             | 
| 262 | 
            +
              // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
         | 
| 263 | 
            +
              //    and `video` controls.
         | 
| 264 | 
            +
              // 2. Correct inability to style clickable `input` types in iOS.
         | 
| 265 | 
            +
              // 3. Improve usability and consistency of cursor style between image-type
         | 
| 266 | 
            +
              //    `input` and others.
         | 
| 267 | 
            +
              //==========================================================================
         | 
| 268 | 
            +
             | 
| 269 | 
            +
            button,
         | 
| 270 | 
            +
            html input[type="button"], // 1
         | 
| 271 | 
            +
            input[type="reset"],
         | 
| 272 | 
            +
            input[type="submit"] {
         | 
| 273 | 
            +
              -webkit-appearance: button; // 2
         | 
| 274 | 
            +
              cursor: pointer; // 3
         | 
| 275 | 
            +
            }
         | 
| 276 | 
            +
             | 
| 277 | 
            +
              // Re-set default cursor for disabled elements.
         | 
| 278 | 
            +
              //==========================================================================
         | 
| 279 | 
            +
             | 
| 280 | 
            +
            button[disabled],
         | 
| 281 | 
            +
            html input[disabled] {
         | 
| 282 | 
            +
              cursor: default;
         | 
| 283 | 
            +
            }
         | 
| 284 | 
            +
             | 
| 285 | 
            +
              // Remove inner padding and border in Firefox 4+.
         | 
| 286 | 
            +
              //==========================================================================
         | 
| 287 | 
            +
             | 
| 288 | 
            +
            button::-moz-focus-inner,
         | 
| 289 | 
            +
            input::-moz-focus-inner {
         | 
| 290 | 
            +
              border: 0;
         | 
| 291 | 
            +
              padding: 0;
         | 
| 292 | 
            +
            }
         | 
| 293 | 
            +
             | 
| 294 | 
            +
              // Address Firefox 4+ setting `line-height` on `input` using `!important` in
         | 
| 295 | 
            +
              // the UA stylesheet.
         | 
| 296 | 
            +
              //==========================================================================
         | 
| 297 | 
            +
             | 
| 298 | 
            +
            input {
         | 
| 299 | 
            +
              line-height: normal;
         | 
| 300 | 
            +
            }
         | 
| 301 | 
            +
             | 
| 302 | 
            +
              // It's recommended that you don't attempt to style these elements.
         | 
| 303 | 
            +
              // Firefox's implementation doesn't respect box-sizing, padding, or width.
         | 
| 304 | 
            +
              // 1. Address box sizing set to `content-box` in IE 8/9/10.
         | 
| 305 | 
            +
              // 2. Remove excess padding in IE 8/9/10.
         | 
| 306 | 
            +
              //==========================================================================
         | 
| 307 | 
            +
             | 
| 308 | 
            +
            input[type="checkbox"],
         | 
| 309 | 
            +
            input[type="radio"] {
         | 
| 310 | 
            +
              box-sizing: border-box; // 1
         | 
| 311 | 
            +
              padding: 0; // 2
         | 
| 312 | 
            +
            }
         | 
| 313 | 
            +
             | 
| 314 | 
            +
              // Fix the cursor style for Chrome's increment/decrement buttons. For certain
         | 
| 315 | 
            +
              // `font-size` values of the `input`, it causes the cursor style of the
         | 
| 316 | 
            +
              // decrement button to change from `default` to `text`.
         | 
| 317 | 
            +
              //==========================================================================
         | 
| 318 | 
            +
             | 
| 319 | 
            +
            input[type="number"]::-webkit-inner-spin-button,
         | 
| 320 | 
            +
            input[type="number"]::-webkit-outer-spin-button {
         | 
| 321 | 
            +
              height: auto;
         | 
| 322 | 
            +
            }
         | 
| 323 | 
            +
             | 
| 324 | 
            +
              //1. Address `appearance` set to `searchfield` in Safari and Chrome.
         | 
| 325 | 
            +
              //2. Address `box-sizing` set to `border-box` in Safari and Chrome
         | 
| 326 | 
            +
              //   (include `-moz` to future-proof).
         | 
| 327 | 
            +
              //==========================================================================
         | 
| 328 | 
            +
             | 
| 329 | 
            +
            input[type="search"] {
         | 
| 330 | 
            +
              -webkit-appearance: textfield; // 1
         | 
| 331 | 
            +
              -moz-box-sizing: content-box;
         | 
| 332 | 
            +
              -webkit-box-sizing: content-box; // 2
         | 
| 333 | 
            +
              box-sizing: content-box;
         | 
| 334 | 
            +
            }
         | 
| 335 | 
            +
             | 
| 336 | 
            +
              //Remove inner padding and search cancel button in Safari and Chrome on OS X.
         | 
| 337 | 
            +
              //Safari (but not Chrome) clips the cancel button when the search input has
         | 
| 338 | 
            +
              //padding (and `textfield` appearance).
         | 
| 339 | 
            +
              //==========================================================================
         | 
| 340 | 
            +
             | 
| 341 | 
            +
            input[type="search"]::-webkit-search-cancel-button,
         | 
| 342 | 
            +
            input[type="search"]::-webkit-search-decoration {
         | 
| 343 | 
            +
              -webkit-appearance: none;
         | 
| 344 | 
            +
            }
         | 
| 345 | 
            +
             | 
| 346 | 
            +
              // Define consistent border, margin, and padding.
         | 
| 347 | 
            +
              //==========================================================================
         | 
| 348 | 
            +
             | 
| 349 | 
            +
            fieldset {
         | 
| 350 | 
            +
              border: 1px solid #c0c0c0;
         | 
| 351 | 
            +
              margin: 0 2px;
         | 
| 352 | 
            +
              padding: 0.35em 0.625em 0.75em;
         | 
| 353 | 
            +
            }
         | 
| 354 | 
            +
             | 
| 355 | 
            +
             | 
| 356 | 
            +
              // 1. Correct `color` not being inherited in IE 8/9/10/11.
         | 
| 357 | 
            +
              // Remove padding so people aren't caught out if they zero out fieldsets.
         | 
| 358 | 
            +
              //==========================================================================
         | 
| 359 | 
            +
             | 
| 360 | 
            +
            legend {
         | 
| 361 | 
            +
              border: 0; // 1
         | 
| 362 | 
            +
              padding: 0; // 2
         | 
| 363 | 
            +
            }
         | 
| 364 | 
            +
             | 
| 365 | 
            +
              // Remove default vertical scrollbar in IE 8/9/10/11.
         | 
| 366 | 
            +
              //==========================================================================
         | 
| 367 | 
            +
             | 
| 368 | 
            +
            textarea {
         | 
| 369 | 
            +
              overflow: auto;
         | 
| 370 | 
            +
            }
         | 
| 371 | 
            +
             | 
| 372 | 
            +
              // Don't inherit the `font-weight` (applied by a rule above).
         | 
| 373 | 
            +
              // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
         | 
| 374 | 
            +
              //==========================================================================
         | 
| 375 | 
            +
             | 
| 376 | 
            +
            optgroup {
         | 
| 377 | 
            +
              font-weight: bold;
         | 
| 378 | 
            +
            }
         | 
| 379 | 
            +
             | 
| 380 | 
            +
            // Tables
         | 
| 381 | 
            +
            //==========================================================================
         | 
| 382 | 
            +
             | 
| 383 | 
            +
              // Remove most spacing between table cells.
         | 
| 384 | 
            +
              //==========================================================================
         | 
| 385 | 
            +
             | 
| 386 | 
            +
            table {
         | 
| 387 | 
            +
              border-collapse: collapse;
         | 
| 388 | 
            +
              border-spacing: 0;
         | 
| 389 | 
            +
            }
         | 
| 390 | 
            +
             | 
| 391 | 
            +
            td,
         | 
| 392 | 
            +
            th {
         | 
| 393 | 
            +
              padding: 0;
         | 
| 394 | 
            +
            }
         |