New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

genesis-column-classes

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genesis-column-classes

CSS and Sass for Genesis Column Classes

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Genesis Column Classes

Add Genesis column classes CSS to your project through Node.

SCSS

This package also contains an SCSS version of the styles with helpful variables and mixins.

Variables

The $genesis-columns-breakpoint variable can be overridden in your project. This is the minimum screen size at which the column widths should be applied.

$genesis-columns: (
	margin: 2.564102564102564%,
	one-half: 48.71794871794871%,
	one-third: 31.62393162393162%,
	one-fifth: 17.94871794871794%,
	one-fourth: 23.07692307692307%,
	one-sixth: 14.52991452991453%,
	one-seventh: 12.08791208791208%,
	one-eighth: 10.25641025641025%,
	one-ninth: 8.831908831908832%,
	two-thirds: 65.81196581196582%,
	two-fourths: 48.71794871794871%,
	two-fifths: 38.46153846153846%,
	two-sixths: 31.62393162393162%,
	three-fourths: 74.35897435897436%,
	three-fifths: 58.97435897435897%,
	three-sixths: 48.71794871794871%,
	four-fifths: 79.48717948717948%,
	four-sixths: 65.81196581196582%,
	five-sixths: 82.90598290598291%,
);

Variables can be called with the map-get function. For example:

.footer-widget-area {
    width: map_get($genesis-columns, one-third);
}

Mixins

@mixin genesis-column($width: null, $first: null) {
	clear: if($first, both, none);
	margin-left: if($first, 0, map_get($genesis-columns, margin));

	@if null != $width {
		float: left;
		width: map_get($genesis-columns, $width);
	}
}

To use the genesis-column mixin, simply enter the column class as the width argument and optionally pass in the second argument, e.g:

.footer-widget-area {
    @include genesis-column(one-third);
    
    &:nth-of-type(1) {
        @include genesis-column(null, first);
    }
}

Keywords

genesis-framework

FAQs

Package last updated on 17 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts