From 78b45bf7715031dd7fde3b9234fc966681c8b24e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 8 Dec 2013 19:19:06 -0800 Subject: [PATCH] (less) Fixes #11786: Nest media queries within print utilities for mixin-friendliness --- responsive-utilities.less | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/responsive-utilities.less b/responsive-utilities.less index df53e479dd14..5823c8fca2ce 100644 --- a/responsive-utilities.less +++ b/responsive-utilities.less @@ -194,16 +194,21 @@ } } + // Print utilities +// +// Media queries are placed on the inside to be mixin-friendly. + .visible-print { .responsive-invisibility(); -} -@media print { - .visible-print { + @media print { .responsive-visibility(); } - .hidden-print { +} + +.hidden-print { + @media print { .responsive-invisibility(); } }