From 2beb2e9fcf20aa3624380b97df8a7ceb521e8849 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 17 Sep 2014 21:57:51 -0700 Subject: [PATCH] rename media query mixins to .media-* --- less/_utilities-responsive.less | 30 +++++++++++++++--------------- less/mixins/media-queries.less | 12 ++++++------ 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/less/_utilities-responsive.less b/less/_utilities-responsive.less index 423e06ce9a..24701a7c75 100644 --- a/less/_utilities-responsive.less +++ b/less/_utilities-responsive.less @@ -39,81 +39,81 @@ } .visible-xs-block { - .screen-xs({ + .media-xs({ display: block !important; }); } .visible-xs-inline { - .screen-xs({ + .media-xs({ display: inline !important; }); } .visible-xs-inline-block { - .screen-xs({ + .media-xs({ display: inline-block !important; }); } .visible-sm-block { - .screen-sm-max({ + .media-sm-max({ display: block !important; }); } .visible-sm-inline { - .screen-sm-max({ + .media-sm-max({ display: inline !important; }); } .visible-sm-inline-block { - .screen-sm-max({ + .media-sm-max({ display: inline-block !important; }); } .visible-md-block { - .screen-md-max({ + .media-md-max({ display: block !important; }); } .visible-md-inline { - .screen-md-max({ + .media-md-max({ display: inline !important; }); } .visible-md-inline-block { - .screen-md-max({ + .media-md-max({ display: inline-block !important; }); } .visible-lg-block { - .screen-lg({ + .media-lg({ display: block !important; }); } .visible-lg-inline { - .screen-lg({ + .media-lg({ display: inline !important; }); } .visible-lg-inline-block { - .screen-lg({ + .media-lg({ display: inline-block !important; }); } .hidden-sm { - .screen-sm-max({ + .media-sm-max({ .responsive-invisibility(); }); } .hidden-md { - .screen-md-max({ + .media-md-max({ .responsive-invisibility(); }); } .hidden-lg { - .screen-lg({ + .media-lg({ .responsive-invisibility(); }); } diff --git a/less/mixins/media-queries.less b/less/mixins/media-queries.less index 0f4a393dfa..e5fd7c43fb 100644 --- a/less/mixins/media-queries.less +++ b/less/mixins/media-queries.less @@ -1,26 +1,26 @@ // Media query mixins -.screen-xs(@rules) { +.media-xs(@rules) { @media (max-width: @screen-xs-max) { @rules(); } } -.screen-sm(@rules) { +.media-sm(@rules) { @media (min-width: @screen-sm-min) { @rules(); } } -.screen-sm-max(@rules) { +.media-sm-max(@rules) { @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { @rules(); } } -.screen-md(@rules) { +.media-md(@rules) { @media (min-width: @screen-md-min) { @rules(); } } -.screen-md-max(@rules) { +.media-md-max(@rules) { @media (min-width: @screen-md-min) and (max-width: @screen-md-max) { @rules(); } } -.screen-lg(@rules) { +.media-lg(@rules) { @media (min-width: @screen-lg-min) { @rules(); } }