From d62091c361ac0b3c7ee80fb3e05851596d8560c5 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 9 Jul 2014 13:25:05 +0200 Subject: [PATCH] add .centered class to center child elements in both directions --- app/assets/stylesheets/layout.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/assets/stylesheets/layout.css b/app/assets/stylesheets/layout.css index 09d71997f..5fd507828 100755 --- a/app/assets/stylesheets/layout.css +++ b/app/assets/stylesheets/layout.css @@ -164,6 +164,19 @@ body.fit { align-items: center; } +.centered { + -webkit-box-align: center; + -ms-flex-align: center; + -moz-align-items: center; + -webkit-align-items: center; + align-items: center; + -webkit-box-pack: center; + -ms-flex-pack: center; + -moz-justify-content: center; + -webkit-justify-content: center; + justify-content: center; +} + .end { -webkit-box-align: end; -ms-flex-align: end;