bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Normalise screen size notation

Open JustinDrake opened this issue 13 years ago • 6 comments

Assuming that the col-lg-* and col-sm-* proposal goes through (which I like, see https://github.com/twitter/bootstrap/pull/7704) then we could use consistent names for different screen sizes:

sm for phone md for tablet (stands for "medium") lg for desktop

Therefore:

.visible-phone -> .visible-sm .visible-tablet -> .visible-md (md for "medium") .visible-desktop -> .visible-lg [similarly for .hidden-*]

Just a though.

JustinDrake avatar Apr 27 '13 14:04 JustinDrake

Fur sure. I can get behind that.

mdo avatar Apr 27 '13 18:04 mdo

Similarly, can this nomenclature also be applied to other classes that use size-related modifiers in their name? Or would this open up a small can of worms due to the inclusion of -mini? Not sure how genrally accepted a two-letter abbreviation would be in that case. Maybe -min?

.btn-lg
.btn-sm
.btn-min

.pagination-lg
.pagination-sm
.pagination-min

erikjung avatar May 02 '13 18:05 erikjung

Don't think it's wise to mix device depedent code with size related code.

but shortening the .visible-xxx seems like a cool idea ;-)

Marcohj avatar May 02 '13 19:05 Marcohj

I've changed the phone, tablet and desktop alone.

.visible-phone -> .visible-sm .visible-tablet -> .visible-md (md for "medium") .visible-desktop -> .visible-lg [similarly for .hidden-*]

vinayraghu avatar May 04 '13 14:05 vinayraghu

nice. :)

Merg1255 avatar May 06 '13 23:05 Merg1255

Changed as of #7850 in v3.

mdo avatar May 17 '13 06:05 mdo