Git Product home page Git Product logo

typecsset's Issues

Seperate Mixins and Styles?

Would there be any big negative to separating the mixins from styles?

There are some scenarios where the default styles may need some additional attributes for each element which means either duplicating the class names in a separate Sass file or not using typecsset.

Separating the mixins means the awesome sauce for line heights and font sizes can be used while being able to define extra styles for each element.

Suggestion: Remove the dependence on Basehold.it

The intention

Typecsset uses this quick/painless/JavaScript-free service to get a baseline grid overlay from the simplest way.
This choice might please everybody but users have different contraints:

  • their env. is not always connected
  • for accessibility reasons, you might want to make your text larger (with the help of Text Zoom)

The proposal

Prefer a plain CSS method using the CSS Backgrounds module level 3.

/**
 * 1. Draw (from the bottom to up) a linear gradient of colours which represents
 *    a line with a defined thickness.
 * 2. Define the line box height as the height of the background image.
 */

background-image: linear-gradient(to top, rgba(0, 0, 0, .21) .1em, transparent .1em) !important; /* [1] */
background-size: auto $typecsset-magic-ratio * 1em !important; /* [2] */

Pros:

  • Drop out all external dependencies
  • No regression compared to the first idea
  • Would be possible to draw a correct baseline grid overlay even if the user has set a font size higher than 16px on the root element (or if he zoomed with Text Zoom)

Cons:

  • Need necessarily a modern browser
  • Would not be possible to have a dashed render

Here is an exemple which superimposes the two methods: http://jsfiddle.net/7studio/RKh7z/

Precision Settings

You might want to mention in the readme.md that users can also set the precision setting in the project config.rb Compass file. Just add this at the end of that file, then restart Compass:

Sass::Script::Number.precision = 7

Add responsive typography

Suggestion: write a function that allows you to specify $typecsset-base-font-size and $typecsset-base-line-height for any number of breakpoints.

More and more these days I'm modifying text size based on viewport, so it would be really neat to be able to do this out of the box.

I'd be more than willing to take a hack at it, just seeing if this functionality is something you'd be interested in having in the project.

Install with Bower

Any reason why this isn't on Bower? I'd much rather run bower install typecsset than browse the repo and download the .scss file. Not to mention updating: bower update vs paying attention to the repo and downloading the file again.

Blockquotes - Safari Issue

Unfortunately at least the old Safari Browsers don't have CSS 2.1 quote property support. So the blockquotes are breaking there.

Remove unused code

The if-function at line 126-130 is empty and unused. The real function is nested under HTML a few lines below and working as it should. This doesn't change a thing once preprocessed, so quite a minor detail ๐Ÿ˜ƒ

@if $typecsset-show-baseline == true {
/**
 * 3. If you have chosen to display a baseline grid, we turn it on here.
 */
}

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.