Last active
October 27, 2016 16:44
-
-
Save salt-istanbul/d38295e780c464f8fc52 to your computer and use it in GitHub Desktop.
Revisions
-
salt-istanbul renamed this gist
Oct 28, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
salt-istanbul revised this gist
Oct 28, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,7 +21,7 @@ li[class*="col-"] > .rect-responsive{ .rect-responsive > *{ position:absolute; } .square-responsive > .content, .rect-responsive > .content { width:100%; height:100%; -
salt-istanbul revised this gist
Oct 28, 2014 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,11 @@ ul[class*="col-"] > .rect-responsive, li[class*="col-"] > .rect-responsive{ padding-bottom:50%; } .square-responsive, .rect-responsive{ position:relative; overflow:hidden; } .square-responsive > *, .rect-responsive > *{ position:absolute; -
salt-istanbul revised this gist
Oct 28, 2014 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,13 @@ ul[class*="col-"] > .square-responsive, li[class*="col-"] > .square-responsive{ padding-bottom:100%; } div[class*="col-"] > .rect-responsive, span[class*="col-"] > .rect-responsive, ol[class*="col-"] > .rect-responsive, ul[class*="col-"] > .rect-responsive, li[class*="col-"] > .rect-responsive{ padding-bottom:50%; } .square-responsive > *, .rect-responsive > *{ position:absolute; -
salt-istanbul created this gist
Oct 28, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ div[class*="col-"] > .square-responsive, span[class*="col-"] > .square-responsive, ol[class*="col-"] > .square-responsive, ul[class*="col-"] > .square-responsive, li[class*="col-"] > .square-responsive{ padding-bottom:100%; } .square-responsive > *, .rect-responsive > *{ position:absolute; } .square-responsive > .content .rect-responsive > .content { width:100%; height:100%; } /*usage <div class="row"> <div class="col-sm-6"> <div class="square-responsive"> <div class="content"> Hello </div> </div> </div> <div class="col-sm-6"> <div class="square-responsive"> <div class="content"> Hello </div> </div> </div> </div> */