Sha256: e6ac757988702686148286ef4dda1ee9e4e07e06238843894e948925fbc709ad

Contents?: true

Size: 674 Bytes

Versions: 55

Compression:

Stored size: 674 Bytes

Contents

///*------------------------------------*\
//    #FUNCTIONS
//\*------------------------------------*/

// inuitcss makes use of a few functions that are also available for you to use
// later on in your extension of the framework.





// Maths helpers.
//
// Halve and double numbers, returning rounded integers. E.g.:
//
// .foo {
//     padding: halve(3.2px);
// }
//
@function quarter($inuit-number) {
    @return round($inuit-number / 4);
}

@function halve($inuit-number) {
    @return round($inuit-number / 2);
}

@function double($inuit-number) {
    @return round($inuit-number * 2);
}

@function quadruple($inuit-number) {
    @return round($inuit-number * 4);
}

Version data entries

55 entries across 55 versions & 4 rubygems

Version Path
lanes-0.8.0 node_modules/inuit-functions/_tools.functions.scss
wrgem-0.0.55 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.54 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.53 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.52 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.51 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
mifflin-0.1.1 vendor/assets/bower_components/inuit-functions/_tools.functions.scss
wrgem-0.0.50 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.49 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.48 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.47 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.46 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.45 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.44 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.43 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.42 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.41 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.40 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.39 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss
wrgem-0.0.38 lib/generators/wrstart/template/vendor/assets/components/inuit-functions/_tools.functions.scss