Skip to content

rem(value) #188

@dbox

Description

@dbox

Okay, here's the last of my mixins folder, and then basically everything will have been completely ported to axis :)

I didn't write this initially, just inherited from a project, so, this will need a bit of cleanup to work properly with axis..

Basically, for many scenarios it is still much easier to think pixels, so this mixin calculates and returns a rem value based on px input.

Here's a demo:

http://codepen.io/dbox/pen/YXQYzR

Currently it requires a $base-font-size variable, but I assume there is a cleaner way to hook into that.

Lemme know @Jenius.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions