Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / themes / carmag / snippets / flex-grid.php
blob: 2cf6b2e543e284469caa59cb5dc871462308a395 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
 * This one is a bit different from the default flex grid from Foundation.
 * Here you get separated boxes with lines instead of basic grid elements next
 * to eachother. If possible use the default Foundation grid though.
 *
 * @since  CarMag v1.2.0
 * @uses  assets/sass/prebuilds/_flex-grid.scss
 */
?>

<?php
/**
 * Element only; Wrap it in a section for best use.
 * modifiers:
 * 		.separators - adds padding and lines between the boxes
 */
?>
<div class="flex-grid-wrapper separators">

	<?php // uses .col-4 .col-3 .col-2. Has responsive styles ?>
	<div class="flex-grid col-2">
		<div class="grid-item">
			<div class="your-box-element-here">
				<h3><i class="fa fa-star"></i> Example grid element heading</h3>
				<p>Even worse than being over-busy is being distracted by things with little or no value — like mindlessly surfing the web when your child wants to play.</p>
			</div><!-- .your-box-class-here -->
		</div><!-- .grid-item -->

		<div class="grid-item">
			<div class="your-box-element-here">
				<h3><i class="fa fa-star"></i> Example grid element heading</h3>
				<p>Even worse than being over-busy is being distracted by things with little or no value — like mindlessly surfing the web when your child wants to play.</p>
			</div><!-- .your-box-class-here -->
		</div><!-- .grid-item -->
	</div><!-- .flex-grid -->
</div><!-- .flex-grid-wrapper -->

<div class="flex-grid-wrapper separators">

	<?php // uses .col-4 .col-3 .col-2. Has responsive styles ?>
	<div class="flex-grid col-3">
		<div class="grid-item">
			<div class="your-box-element-here">
				<h3><i class="fa fa-star"></i> Example grid element heading</h3>
				<p>Even worse than being over-busy is being distracted by things with little or no value — like mindlessly surfing the web when your child wants to play.</p>
			</div><!-- .your-box-class-here -->
		</div><!-- .grid-item -->

		<div class="grid-item">
			<div class="your-box-element-here">
				<h3><i class="fa fa-star"></i> Example grid element heading</h3>
				<p>Even worse than being over-busy is being distracted by things with little or no value — like mindlessly surfing the web when your child wants to play.</p>
			</div><!-- .your-box-class-here -->
		</div><!-- .grid-item -->

		<div class="grid-item">
			<div class="your-box-element-here">
				<h3><i class="fa fa-star"></i> Example grid element heading</h3>
				<p>Even worse than being over-busy is being distracted by things with little or no value — like mindlessly surfing the web when your child wants to play.</p>
			</div><!-- .your-box-class-here -->
		</div><!-- .grid-item -->
	</div><!-- .flex-grid -->
</div><!-- .flex-grid-wrapper -->

<div class="flex-grid-wrapper separators">

	<?php // uses .col-4 .col-3 .col-2. Has responsive styles ?>
	<div class="flex-grid col-4">
		<div class="grid-item">
			<div class="your-box-element-here">
				<h3><i class="fa fa-star"></i> Example grid element heading</h3>
				<p>Even worse than being over-busy is being distracted by things with little or no value — like mindlessly surfing the web when your child wants to play.</p>
			</div><!-- .your-box-class-here -->
		</div><!-- .grid-item -->

		<div class="grid-item">
			<div class="your-box-element-here">
				<h3><i class="fa fa-star"></i> Example grid element heading</h3>
				<p>Even worse than being over-busy is being distracted by things with little or no value — like mindlessly surfing the web when your child wants to play.</p>
			</div><!-- .your-box-class-here -->
		</div><!-- .grid-item -->

		<div class="grid-item">
			<div class="your-box-element-here">
				<h3><i class="fa fa-star"></i> Example grid element heading</h3>
				<p>Even worse than being over-busy is being distracted by things with little or no value — like mindlessly surfing the web when your child wants to play.</p>
			</div><!-- .your-box-class-here -->
		</div><!-- .grid-item -->

		<div class="grid-item">
			<div class="your-box-element-here">
				<h3><i class="fa fa-star"></i> Example grid element heading</h3>
				<p>Even worse than being over-busy is being distracted by things with little or no value — like mindlessly surfing the web when your child wants to play.</p>
			</div><!-- .your-box-class-here -->
		</div><!-- .grid-item -->
	</div><!-- .flex-grid -->
</div><!-- .flex-grid-wrapper -->