Git Product home page Git Product logo

base.page's Introduction

Page

The inuitcss page module is a very high-level module which styles very basic, global, page-level aspects such at the project’s base font-size and line-height.

Install using Bower:

$ bower install --save inuit-page

Install using npm:

$ npm install --save inuit-page

base.page's People

Contributors

anselmh avatar csswizardry avatar

Stargazers

 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

base.page's Issues

line-height issues in Chrome

Setting the line-height unitlessly seems to have caused issues for me in Chrome. When font-size is set to something like 14px (which becomes 0.875em) and line-height is set to 24px (which becomes 1.71), Chrome incorrectly renders the line-height as 22px instead of 24px. The fix was to set the line-height in em's instead of unitlessly. So, line 18 would read:

line-height: ($inuit-base-line-height / $inuit-base-font-size) * 1em; /* [1] */

Thoughts on this approach? Is there a reason to use unitless measurements over em's?

Font smoothing issue

https://github.com/inuitcss/base.page/blob/master/_base.page.scss#L16

Fonts on OSX will look more consistent with other systems that do not render text using sub-pixel anti-aliasing.

Can you provide examples of such systems? For me (non-retina macbook air) Finder and all the other stuff actually have the subpixel antialiasing.

And I just can't read (my eyes bleed, all that stuff) the text on sites without subpixel antialiasing, so every such time I need to go and disable it for each site in dev tools.

Without subpixel antialiasing most fonts become too thin to read, especially on small sizes.

An example from css guidelines as rendered on my screen:

image

The same, but with proper subpixel antialiasing:

image

And the final example, with the user styles I applied so I can finally read the thing (plus two zoom levels and subpixel aa):

image

Actually, if you'd sample the colors from the non-subpixel antialiased text, you'll get mostly the values like #6C6C6C which do not pass AAA WCAG 2.0 for small text:

image

While subpixel antialiasing is increasing the overall contrast, so it starts to fit the WCAG. And on larger font-sizes it becomes even better.


So, a suggestion: either use really larger font-size, or bring back the subpixel anti-alialiasing. Or do both: in most cases it is better to give people larger font size than the smaller one, especially if you're using serif font.

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.