Added mobile grid
parent
53152b4adb
commit
17644ce7f0
@ -0,0 +1,52 @@
|
||||
---
|
||||
layout: default
|
||||
title: I need a doctor
|
||||
bodyClass: null
|
||||
---
|
||||
|
||||
<div class="container-fluid">
|
||||
<h2>Mobile Grid Demo</h2>
|
||||
</div>
|
||||
|
||||
<style scoped>
|
||||
|
||||
article {
|
||||
height: 30px;
|
||||
background-color: gray;
|
||||
color: white;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid m-row">
|
||||
<article class="span7 m-span3">
|
||||
span7 | m-span3
|
||||
</article>
|
||||
<article class="span4 m-span1">
|
||||
span4 | m-span1
|
||||
</article>
|
||||
<article class="span1 m-span2">
|
||||
span1 | m-span2
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row-fluid m-row">
|
||||
<article class="span6 m-span6"></article>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row-fluid m-row">
|
||||
<article class="span5 m-span3"></article>
|
||||
<article class="span7 m-span3"></article>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<article style="width:100%;text-align:center;">
|
||||
100%
|
||||
</article>
|
||||
</div>
|
@ -0,0 +1,24 @@
|
||||
|
||||
$columns: 6;
|
||||
$gutterWidth: 2; // 2% gutter width
|
||||
$columnWidth: (100 - ( $gutterWidth * ( $columns - 1 ))) / $columns;
|
||||
|
||||
@media ( max-width: 47.9375em ) {
|
||||
.m-row {
|
||||
|
||||
[class*="m-span"] {
|
||||
float: left;
|
||||
margin-left: $gutterWidth + 0%;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@for $i from 1 through 6 {
|
||||
.m-span#{$i} {
|
||||
width: ($i * $columnWidth) + (($i - 1) * $gutterWidth) + 0%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue