html - Girdlayout for Squares of different size in bootstrap? -



html - Girdlayout for Squares of different size in bootstrap? -

i developing app (node-webkit) shows number of squares (tiles) in kind of gridlayout. tiles same size. when clicked, double theri width , height show more information. looks this, when 1 tile opened.

what want accomplish is, grid layout similiar this:

i using bootstrap v.3 layout. current html looks this:

<div class="form-group row tilecontainer ng-isolate-scope" ng-transclude="" delay="500"> <!-- ngrepeat: info in project.infos --> <div class="tile ng-scope" ng-transclude="" ng-repeat="info in project.infos"> <!-- nginclude: undefined --> <ng-include src="'/html/templates/info_small.html'" class="ng-scope"> <div class="sq-wrapper ng-scope col-xs-2 small" ng-class="open ? 'col-xs-4 medium' : 'col-xs-2 small'"> <div class="info-small" ng-click="addinfodata(info, !open || active)" style="overflow:hidden; overflow-y: auto;"> <!-- =============== little ================ --> <span class="info-title ng-binding" ng-click="toggle()" ng-hide="open || active">info1</span> <!-- =============== medium ================ --> <div ng-hide="!open || active" class="ng-hide"> <div class="row" ng-click="$event.stoppropagation();"> <input class="col-xs-8 col-xs-offset-2 label-input medium center ng-pristine ng-valid" style="text-decoration: underline;" ng-model="info.title"> </div> <!-- ngrepeat: d in info.data --><div ng-repeat="d in info.data" class="row ng-scope" ng-click="$event.stoppropagation();"> <input class="col-xs-5 col-xs-offset-1 label-input ng-pristine ng-valid" ng-model="d.key" ng-blur="deletedataifempty(d, info.data)"> <input class="col-xs-5 label-input ng-pristine ng-valid" ng-model="d.value" ng-blur="deletedataifempty(d, info.data)"> </div><!-- end ngrepeat: d in info.data --><div ng-repeat="d in info.data" class="row ng-scope" ng-click="$event.stoppropagation();"> <input class="col-xs-5 col-xs-offset-1 label-input ng-pristine ng-valid" ng-model="d.key" ng-blur="deletedataifempty(d, info.data)"> <input class="col-xs-5 label-input ng-pristine ng-valid" ng-model="d.value" ng-blur="deletedataifempty(d, info.data)"> </div><!-- end ngrepeat: d in info.data --> <div style="width:100%; height:5px;"> </div> </div> <!-- --> </div> </div> </ng-include> </div> <!-- end ngrepeat: info in project.infos -->

the squares styled via:

.sq-wrapper { padding-bottom: 45%; } .sq-wrapper.small { padding-bottom: 15%; } .sq-wrapper.medium { padding-bottom: 30%; } .sq-wrapper > * { position: absolute; top: 15px; bottom: 15px; left: 15px; right: 15px; } .sq-wrapper.small .sq-wrapper.medium> * { position:absolute; top: 5px; bottom: 5px; left: 5px; right: 5px; }

does know, how align little tiles in 2 rows, while showing big tile kind of 'colspan=2' & 'rowspan=2' ?

html css3 twitter-bootstrap grid-layout node-webkit

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -