Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Latest commit

 

History

History
75 lines (56 loc) · 1.7 KB

DOCUMENTATION.md

File metadata and controls

75 lines (56 loc) · 1.7 KB

batteries-layout / Documentation

Table of contents

Containers

batteries containers are just like the containers you're used to, they stay in the center of the screen to match @viewport-width-desktop and resize as soon as the viewport is too small for the container to fit in.

<div class="container">
	content in container
</div>

Centered containers

Remember the last time you needed to search how to center something? It's now as simple as writing:

<div class="page sized container">
	<div class="fully centered">
		I'm centered
	</div>
</div>

The page sized class is optional, the inner container supports fully, vertically and horizontally centering.

Grid system

The batteries grid is similar to other grids. Please note that, depending on your configuration in the variables.less, the availabilty of certain percentages may differ from this example.

<div class="grid">
	<div class="row">
		<div class="column">
			100% wide
		</div>
	</div>
	<div class="forced stacked row">
		<div class="50% column">
			50% wide
		</div>
		<div class="3/6 column">
			50% wide. 
		</div>
	</div>
	<div class="mobile stacked row">
		<div class="1/3 column">
			33% wide
		</div>
		<div class="4/6 column">
			all fractions (in [0, 1]) of three and of six are available
		</div>
	</div>
</div>

The grid block can additionally be a container, so all container rules apply to it too.

Helpers

fluid blocks take up 100% width.

<input class="fluid text field">