biofriction-wp-theme/node_modules/foundation-sites/test/visual/xy-grid/combo-grids.html

134 lines
5.2 KiB
HTML
Raw Normal View History

2021-10-26 14:18:09 +02:00
<!doctype html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>xy margin grid</title>
<link href="../assets/css/foundation.css" rel="stylesheet" />
<style>
body {
padding: 30px;
}
.demo {
background: #1779ba;
}
h2 {
margin: 0;
}
.cell {
/*background: dodgerblue;*/
background: tomato;
line-height: 50px;
color: white;
text-align: center;
}
</style>
</head>
<body>
<h1>Combo Grid</h1>
<h2>Sizing Classes, margin x, padding x & y</h2>
<div class="grid-x grid-margin-x grid-padding-x grid-padding-y">
<div class="cell medium-12"><div class="demo">12</div></div>
<div class="cell medium-11"><div class="demo">11</div></div>
<div class="cell medium-1"><div class="demo">1</div></div>
<div class="cell medium-10"><div class="demo">10</div></div>
<div class="cell medium-2"><div class="demo">2</div></div>
<div class="cell medium-9"><div class="demo">9</div></div>
<div class="cell medium-3"><div class="demo">3</div></div>
<div class="cell medium-8"><div class="demo">8</div></div>
<div class="cell medium-4"><div class="demo">4</div></div>
<div class="cell medium-7"><div class="demo">7</div></div>
<div class="cell medium-5"><div class="demo">5</div></div>
<div class="cell medium-6"><div class="demo">6</div></div>
<div class="cell medium-4"><div class="demo">4</div></div>
</div>
<h2>Block Grid With Margin xy and padding x</h2>
<div class="grid-x grid-margin-x grid-margin-y grid-padding-x small-up-2 medium-up-3 large-up-4">
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
<div class="cell"><div class="demo">6/4/3</div></div>
</div>
<h2>Auto and Shrink</h2>
<div class="grid-x grid-margin-x">
<div class="cell medium-shrink"><div class="demo">Shrink on medium</div></div>
<div class="cell medium-auto"><div class="demo">Auto on medium</div></div>
</div>
<h2>Auto/Shrink with static widths</h2>
<div class="grid-x grid-padding-x">
<div class="cell shrink medium-6 large-12"><div class="demo">Shrink, medium:6, large:12</div></div>
<div class="cell auto medium-4 large-12"><div class="demo">Auto, medium:4, large:12</div></div>
</div>
<br>
<div class="grid-x grid-padding-x">
<div class="cell shrink medium-auto large-7"><div class="demo">Shrink, medium:auto, large:7</div></div>
<div class="cell auto medium-shrink large-5"><div class="demo">Auto, medium:shrink, large:5</div></div>
</div>
<br>
<p>The following example must be tested without paddings/margins. See <a href"https://github.com/zurb/foundation-sites/issues/10891">#10891</a></p>
<div class="grid-x">
<div class="cell medium-auto large-12"><div class="demo">medium:auto, large:12</div></div>
<div class="cell medium-shrink large-12"><div class="demo">medium:shrink, large:12</div></div>
</div>
<h2>Collapse</h2>
<div class="grid-x grid-margin-x large-margin-collapse">
<div class="cell medium-12"><div class="demo">12</div></div>
<div class="cell medium-11"><div class="demo">11</div></div>
<div class="cell medium-1"><div class="demo">1</div></div>
<div class="cell medium-10"><div class="demo">10</div></div>
<div class="cell medium-2"><div class="demo">2</div></div>
<div class="cell medium-9"><div class="demo">9</div></div>
<div class="cell medium-3"><div class="demo">3</div></div>
<div class="cell medium-8"><div class="demo">8</div></div>
<div class="cell medium-4"><div class="demo">4</div></div>
<div class="cell medium-7"><div class="demo">7</div></div>
<div class="cell medium-5"><div class="demo">5</div></div>
<div class="cell medium-6"><div class="demo">6</div></div>
<div class="cell medium-4"><div class="demo">4</div></div>
</div>
<h2>Offset</h2>
<div class="grid-x grid-margin-x">
<div class="cell medium-3 medium-offset-2"><div class="demo">3</div></div>
<div class="cell medium-4"><div class="demo">4</div></div>
</div>
<script src="../assets/js/vendor.js"></script>
<script src="../assets/js/foundation.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>