Difference between revisions of "Grid.rythm"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
</head> | </head> | ||
<body> | <body> | ||
− | <div class='container'> | + | <div class='container-fluid'> |
@{ | @{ | ||
int cols[]={1,2,3,4,6,12}; | int cols[]={1,2,3,4,6,12}; |
Revision as of 15:39, 8 November 2017
Links
- https://codepen.io/jaycbrf/pen/iBszr
- MediaWiki:Bootstrap.rythm
- MediaWiki:BITPlan.rythm
- MediaWiki:Form.rythm
- Grid
Rythm template
@// Rythm template for the WikiCMS approach
@include(wiki.MediaWiki.Bootstrap.rythm)
@header(lang,title)
@bootstrap()
</head>
<body>
<div class='container-fluid'>
@{
int cols[]={1,2,3,4,6,12};
}
@for (int colnum:cols) {
<div class='row' style='background:#FCFCFC;'>
@for (int cindex=1;cindex<=colnum;cindex++) {
@{ int colwidth=12/colnum;}
<div class='col-xs-@(colwidth)'>@(cindex)</div>
}
</div>
}
</div>
@(content)
</body>
</html>