mirror of https://github.com/abpframework/abp.git
4 changed files with 196 additions and 1 deletions
@ -0,0 +1,182 @@ |
|||||
|
@page |
||||
|
@model Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo.Pages.Components.GridsModel |
||||
|
@{ |
||||
|
ViewData["Title"] = "Cards"; |
||||
|
} |
||||
|
|
||||
|
<h2>Cards</h2> |
||||
|
|
||||
|
@* |
||||
|
<h4># Example</h4> |
||||
|
|
||||
|
<div class="demo-with-code"> |
||||
|
<div class="demo-area"> |
||||
|
</div> |
||||
|
<div class="code-area"> |
||||
|
<pre></pre> |
||||
|
</div> |
||||
|
</div> |
||||
|
*@ |
||||
|
|
||||
|
<p>Based on <a href="http://getbootstrap.com/docs/4.1/layout/grid/" target="_blank"> Bootstrap grid</a>.</p> |
||||
|
|
||||
|
<h4># Example</h4> |
||||
|
|
||||
|
<div class="demo-with-code"> |
||||
|
<div class="demo-area"> |
||||
|
<abp-container> |
||||
|
<abp-row> |
||||
|
<abp-column size="sm-6">One of two columns</abp-column> |
||||
|
<abp-column size="sm-6">One of two columns</abp-column> |
||||
|
</abp-row> |
||||
|
<abp-row> |
||||
|
<abp-column size="sm-4">One of three columns</abp-column> |
||||
|
<abp-column size="sm-4">One of three columns</abp-column> |
||||
|
<abp-column size="sm-4">One of three columns</abp-column> |
||||
|
</abp-row> |
||||
|
</abp-container> |
||||
|
</div> |
||||
|
<div class="code-area"> |
||||
|
<pre> |
||||
|
<div class="container"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-6"> |
||||
|
One of two columns |
||||
|
</div> |
||||
|
<div class="col-sm-6"> |
||||
|
One of two columns |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-4"> |
||||
|
One of three columns |
||||
|
</div> |
||||
|
<div class="col-sm-4"> |
||||
|
One of three columns |
||||
|
</div> |
||||
|
<div class="col-sm-4"> |
||||
|
One of three columns |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</pre> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<h4># Break Column Example</h4> |
||||
|
|
||||
|
<div class="demo-with-code"> |
||||
|
<div class="demo-area"> |
||||
|
<abp-container> |
||||
|
<abp-row> |
||||
|
<abp-column>One of three columns</abp-column> |
||||
|
<abp-column>One of three columns</abp-column> |
||||
|
<abp-break-col/> |
||||
|
<abp-column>One of three columns</abp-column> |
||||
|
</abp-row> |
||||
|
</abp-container> |
||||
|
</div> |
||||
|
<div class="code-area"> |
||||
|
<pre> |
||||
|
<div class="container"> |
||||
|
<div class="row"> |
||||
|
<div class="col"> |
||||
|
One of three columns |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
One of three columns |
||||
|
</div> |
||||
|
<div class="w-100"></div> |
||||
|
<div class="col"> |
||||
|
One of three columns |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</pre> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<h4># Order Example</h4> |
||||
|
|
||||
|
<div class="demo-with-code"> |
||||
|
<div class="demo-area"> |
||||
|
<abp-container> |
||||
|
<abp-row> |
||||
|
<abp-column> First, but unordered</abp-column> |
||||
|
<abp-column order="12">Second, but last</abp-column> |
||||
|
<abp-column order="1">Third, but first</abp-column> |
||||
|
</abp-row> |
||||
|
<abp-row> |
||||
|
<abp-column> First, but unordered</abp-column> |
||||
|
<abp-column order="last">Second, but last</abp-column> |
||||
|
<abp-column order="first">Third, but first</abp-column> |
||||
|
</abp-row> |
||||
|
</abp-container> |
||||
|
</div> |
||||
|
<div class="code-area"> |
||||
|
<pre> |
||||
|
<div class="container"> |
||||
|
<div class="row"> |
||||
|
<div class="col"> |
||||
|
First, but unordered |
||||
|
</div> |
||||
|
<div class="col order-12"> |
||||
|
Second, but last |
||||
|
</div> |
||||
|
<div class="col order-1"> |
||||
|
Third, but first |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col"> |
||||
|
First, but unordered |
||||
|
</div> |
||||
|
<div class="col order-last"> |
||||
|
Second, but last |
||||
|
</div> |
||||
|
<div class="col order-first"> |
||||
|
Third, but first |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</pre> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<h4># Offset Example</h4> |
||||
|
|
||||
|
<div class="demo-with-code"> |
||||
|
<div class="demo-area"> |
||||
|
|
||||
|
<abp-row> |
||||
|
<abp-column> .col-md-4</abp-column> |
||||
|
<abp-column offset="md-4">.col-md-4 .offset-md-4</abp-column> |
||||
|
</abp-row> |
||||
|
<abp-row> |
||||
|
<abp-column offset="md-3">.col-md-3 .offset-md-3</abp-column> |
||||
|
<abp-column offset="md-3">.col-md-3 .offset-md-3</abp-column> |
||||
|
</abp-row> |
||||
|
<abp-row> |
||||
|
<abp-column offset="md-3">.col-md-6 .offset-md-3</abp-column> |
||||
|
</abp-row> |
||||
|
</div> |
||||
|
<div class="code-area"> |
||||
|
<pre> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-4">.col-md-4</div> |
||||
|
<div class="col-md-4 offset-md-4">.col-md-4 .offset-md-4</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-3 offset-md-3">.col-md-3 .offset-md-3</div> |
||||
|
<div class="col-md-3 offset-md-3">.col-md-3 .offset-md-3</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-6 offset-md-3">.col-md-6 .offset-md-3</div> |
||||
|
</div> |
||||
|
</pre> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<hr /> |
||||
|
|
||||
|
<a asp-page="../">< back</a> |
||||
@ -0,0 +1,12 @@ |
|||||
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo.Pages.Components |
||||
|
{ |
||||
|
public class GridsModel : PageModel |
||||
|
{ |
||||
|
public void OnGet() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue