From f7f782b51ef3a5f8f8b0eae945d7dd5282720a6f Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Tue, 29 May 2018 11:08:24 -0500 Subject: [PATCH] Fix grid with one row and multiples columns - refs BT#14342 Works for .col-sm-6.col-md-4.col-lg-3 --- app/Resources/public/css/base.css | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css index 26590de3c6..8dd76e02e8 100644 --- a/app/Resources/public/css/base.css +++ b/app/Resources/public/css/base.css @@ -9458,4 +9458,30 @@ ul.dropdown-menu.inner > li > a { margin: 16px 6px; } -/* end document mp3 preview */ \ No newline at end of file +/* end document mp3 preview */ + +/* Fix grid with one row and multiples columns. Works for .col-sm-6.col-md-4.col-lg-3 */ +.row.clear-rows-6-4-3 { +} +@media (min-width: 768px) { + .clear-rows-6-4-3 .col-sm-6:nth-child(2n+1) { + clear: left; + } +} +@media (min-width: 992px) { + .clear-rows-6-4-3 .col-sm-6:nth-child(2n+1) { + clear: none; + } + .clear-rows-6-4-3 .col-sm-6:nth-child(3n+1) { + clear: left; + } +} +@media (min-width: 1200px) { + .clear-rows-6-4-3 .col-sm-6:nth-child(3n+1) { + clear: none; + } + .clear-rows-6-4-3 .col-sm-6:nth-child(4n+1) { + clear: left; + } +} +/*-------------------------------------------------------------------------------------*/