diff options
| author | Mark Otto <[email protected]> | 2013-06-25 13:28:34 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-06-25 13:28:34 -0700 |
| commit | 03e67e44f9dfa95659ef904ad341d2301a43d82a (patch) | |
| tree | 745d4000afbdd868d51140483c291564fbe0c1f0 | |
| parent | 08ab44708d1dd85fc14fbcde3adc9d051903cbb5 (diff) | |
| parent | 83c4073ec76a4cc0d600b1c5fdb426d2adb69309 (diff) | |
| download | bootstrap-03e67e44f9dfa95659ef904ad341d2301a43d82a.tar.xz bootstrap-03e67e44f9dfa95659ef904ad341d2301a43d82a.zip | |
Merge pull request #8291 from cvrebert/refactor
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; } } |
