/**
 * A minimal responsive grid system for Elefant's apps.
 *
 * Usage:
 *
 *     <div class="e-row">
 *         <div class="e-col-75">
 *             <h1>Body</h1>
 *         </div>
 *         <div class="e-col-25">
 *             <h2>Sidebar</h2>
 *         </div>
 *     </div>
 *
 * Classes:
 *
 *     .e-row                A centered row of 98% that scales via media queries
 *     .e-row-variable       A row of variable width
 *     .e-row-equal          A variable width row of equal height columns
 *     .e-no-padding         Removes padding on an element
 *     .e-no-padding-left    Removes padding-left on an element
 *     .e-no-padding-right   Removes padding-right on an element
 *     .e-no-padding-top     Removes padding-top on an element
 *     .e-no-padding-bottom  Removes padding-bottom on an element
 *     .e-col-5              A column of 5%
 *     .e-col-10             A column of 10%
 *     .e-col-15             A column of 15%
 *     .e-col-20             A column of 20%
 *     .e-col-25             A column of 25%
 *     .e-col-30             A column of 30%
 *     .e-col-33             A column of 33%
 *     .e-col-35             A column of 35%
 *     .e-col-40             A column of 40%
 *     .e-col-45             A column of 45%
 *     .e-col-50             A column of 50%
 *     .e-col-55             A column of 55%
 *     .e-col-60             A column of 60%
 *     .e-col-65             A column of 65%
 *     .e-col-66             A column of 66%
 *     .e-col-70             A column of 70%
 *     .e-col-75             A column of 75%
 *     .e-col-80             A column of 80%
 *     .e-col-85             A column of 85%
 *     .e-col-90             A column of 90%
 *     .e-col-95             A column of 95%
 *     .e-col-100            A column of 100%
 *     .text-right           Right-align text
 *     .text-left            Left-align text
 *     .text-justify         Justify-align text
 *
 * Note that .e-row-equal does not wrap columns in IE10 and under. This is
 * fine for equal height columns in pre-defined rows, but won't work for
 * arbitrary numbers of columns. However, it will wrap and collapse correctly
 * on mobile and tablet devices, and works correctly for all single-row uses.
 */

[class^='e-'], [class^='e-']:after, [class^='e-']:before {
	margin: 0;
	padding: 0;
	outline: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	border-collapse: collapse;
}

/* equal height columns */
.e-row-equal {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	flex-wrap: wrap;
}

/* attribute selector */
[class^='e-col-'] {
	float: left;
	padding: 10px;
}

/* clearfix */
.e-row:after, .e-row-variable:after {
	content: "";
	display: table;
	table-layout: fixed;
	clear: both;
}

/* widths */
.e-col-100 { width: 100%; }
.e-col-95  { width: 95%; }
.e-col-90  { width: 90%; }
.e-col-85  { width: 85%; }
.e-col-80  { width: 80%; }
.e-col-75  { width: 75%; }
.e-col-70  { width: 70%; }
.e-col-66  { width: 66.66%; }
.e-col-65  { width: 65%; }
.e-col-60  { width: 60%; }
.e-col-55  { width: 55%; }
.e-col-50  { width: 50%; }
.e-col-45  { width: 45%; }
.e-col-40  { width: 40%; }
.e-col-35  { width: 35%; }
.e-col-33  { width: 33.33%; }
.e-col-30  { width: 30%; }
.e-col-25  { width: 25%; }
.e-col-20  { width: 20%; }
.e-col-15  { width: 15%; }
.e-col-10  { width: 10%; }
.e-col-5   { width: 5%; }

/* remove padding */
.e-no-padding { padding: 0; }
.e-no-padding-left { padding-left: 0; }
.e-no-padding-right { padding-right: 0; }
.e-no-padding-top { padding-top: 0; }
.e-no-padding-bottom { padding-bottom: 0; }

/* redactor/plugins/alignment.css */
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-justify {
    text-align: justify;
}

/* desktop */
.e-row {
	width: 98%;
	margin: 0px auto 0px auto;
}

/* tablets */
@media (max-width: 768px) {
	.e-col-10, .e-col-15, .e-col-20, .e-col-25, .e-col-30, .e-col-33, .e-col-35, .e-col-40, .e-col-45, .e-col-50, .e-col-66, .e-col-75 {
		width: 50%;
		max-width: 50%;
	}
	
	.e-col-55, .e-col-60, .e-col-65, .e-col-70, .e-col-75, .e-col-80, .e-col-85, .e-col-90, .e-col-95, .e-col-100 {
		width: 100%;
	}
	
	.e-col-5 {
		display: none;
	}
}

/* mobile */
@media (max-width: 480px) {
	.e-col-10, .e-col-15, .e-col-20, .e-col-25, .e-col-30, .e-col-33, .e-col-35, .e-col-40, .e-col-45, .e-col-50, .e-col-55,
	.e-col-60, .e-col-65, .e-col-66, .e-col-70, .e-col-75, .e-col-80, .e-col-85, .e-col-90, .e-col-95, .e-col-100 {
		width: 100%;
		max-width: 100%;
	}
	
	.e-col-5 {
		display: none;
	}
}
