From 8f3ed71bd1d61e742f81950be87dfe093c648fce Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Mon, 15 Feb 2016 17:05:23 -0800 Subject: [PATCH] Fix #3496 - Justified grid inside centered grid now justified --- RELEASE-NOTES.md | 1 + src/definitions/collections/grid.less | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 39b12d517..6b5447f45 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -13,6 +13,7 @@ -**Popup** - Fixed issue where checking `instanceof SVGGraphicsElement` caused error in IE11 #3043 -**Form Validation / Dropdown** - Fixed issue where using "enter" key in a `search dropdown` could cause a form to be submitted #3676 -**Button** - Fixes issue where `right icon` like `right arrow icon` would have additional margin inside an `icon button` #3525 +**Grid** - Fixed issue where `centered` content would cause `justified` content to appear aligned left. #3496 **Enhancements** - **Build Tools** - Added new `autoInstall` option to allow for Semantic to be installed without user interaction. See [docs explanation](http://www.semantic-ui.com/introduction/advanced-usage.html#Auto-Install) for how to use. #3616 **Thanks @algorithme** diff --git a/src/definitions/collections/grid.less b/src/definitions/collections/grid.less index d206a3e63..c01ca0f19 100755 --- a/src/definitions/collections/grid.less +++ b/src/definitions/collections/grid.less @@ -952,9 +952,9 @@ text-align: center; justify-content: center; } -.ui.centered.grid > .column:not(.aligned):not(.row), -.ui.centered.grid > .row > .column:not(.aligned), -.ui.grid .centered.row > .column:not(.aligned) { +.ui.centered.grid > .column:not(.aligned):not(:justified):not(.row), +.ui.centered.grid > .row > .column:not(.aligned):not(:justified), +.ui.grid .centered.row > .column:not(.aligned):not(:justified) { text-align: left; }