diff options
| author | Chris Rebert <[email protected]> | 2013-06-25 12:23:56 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2013-06-25 12:23:56 -0700 |
| commit | 83c4073ec76a4cc0d600b1c5fdb426d2adb69309 (patch) | |
| tree | 6dabe9757b0a62f7bb357253e22788966c25cca2 | |
| parent | e9951385b0507d2f28e332d7d5dcaea41b7e1d41 (diff) | |
| download | bootstrap-83c4073ec76a4cc0d600b1c5fdb426d2adb69309.tar.xz bootstrap-83c4073ec76a4cc0d600b1c5fdb426d2adb69309.zip | |
refactor responsive-utilities slightly
| -rw-r--r-- | less/responsive-utilities.less | 54 |
1 files changed, 15 insertions, 39 deletions
diff --git a/less/responsive-utilities.less b/less/responsive-utilities.less index 082109e5e..e6a8bf7e9 100644 --- a/less/responsive-utilities.less +++ b/less/responsive-utilities.less @@ -34,29 +34,26 @@ } // Visibility utilities - -// For Phones -.visible-sm { +.responsive-visibility() { display: block !important; tr& { display: table-row !important; } th&, td& { display: table-cell !important; } } + +// For Phones +.visible-sm { + .responsive-visibility; +} .visible-md { display: none !important; } .visible-lg { display: none !important; } .hidden-sm { display: none !important; } .hidden-md { - display: block !important; - tr& { display: table-row !important; } - th&, - td& { display: table-cell !important; } + .responsive-visibility; } .hidden-lg { - display: block !important; - tr& { display: table-row !important; } - th&, - td& { display: table-cell !important; } + .responsive-visibility; } @@ -64,25 +61,16 @@ @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) { .visible-sm { display: none !important; } .visible-md { - display: block !important; - tr& { display: table-row !important; } - th&, - td& { display: table-cell !important; } + .responsive-visibility; } .visible-lg { display: none !important; } .hidden-sm { - display: block !important; - tr& { display: table-row !important; } - th&, - td& { display: table-cell !important; } + .responsive-visibility; } .hidden-md { display: none !important; } .hidden-lg { - display: block !important; - tr& { display: table-row !important; } - th&, - td& { display: table-cell !important; } + .responsive-visibility; } } @@ -91,23 +79,14 @@ .visible-sm { display: none !important; } .visible-md { display: none !important; } .visible-lg { - display: block !important; - tr& { display: table-row !important; } - th&, - td& { display: table-cell !important; } + .responsive-visibility; } .hidden-sm { - display: block !important; - tr& { display: table-row !important; } - th&, - td& { display: table-cell !important; } + .responsive-visibility; } .hidden-md { - display: block !important; - tr& { display: table-row !important; } - th&, - td& { display: table-cell !important; } + .responsive-visibility; } .hidden-lg { display: none !important; } } @@ -118,10 +97,7 @@ @media print { .visible-print { - display: block !important; - tr& { display: table-row !important; } - th&, - td& { display: table-cell !important; } + .responsive-visibility; } .hidden-print { display: none !important; } } |
