From c0974b9e056bf7113695f6e0c19ac9e1f5742311 Mon Sep 17 00:00:00 2001 From: Hans Kuijpers Date: Mon, 29 Sep 2014 15:17:38 +0200 Subject: [PATCH] add browser specific text-center --- less/_custom.less | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/less/_custom.less b/less/_custom.less index b864cfd..20117b9 100644 --- a/less/_custom.less +++ b/less/_custom.less @@ -55,6 +55,28 @@ h1 { margin: 0 auto; } +// Browser width specific .text-center +.text-xs-center { + @media (max-width: @screen-xs-max) { + text-align: center; + } +} +.text-sm-center { + @media (max-width: @screen-sm-max) { + text-align: center; + } +} +.text-md-center { + @media (max-width: @screen-md-max) { + text-align: center; + } +} +.text-lg-center { + @media (min-width: @screen-lg-min) { + text-align: center; + } +} + @media (min-width: 992px) { .col-md-one-third { float:left;