You are here

mobile.css in Sassy 7.3

/* --------------------------------------------------
	:: Grid
	-------------------------------------------------- */
	
	/* Tablet screens */
	@media only screen and (device-width: 768px), (device-width: 800px) {
		/* Currently unused */
	}
	
	
	/* Mobile */
	@media only screen and (max-width: 767px) {
		body { -webkit-text-size-adjust: none; }
		
		.row, body, .container { width: 100%; min-width: 0; margin-left: 0px; margin-right: 0px; padding-left: 0px; padding-right: 0px; }
		.row .row .column, .row .row .columns { padding: 0; }
		.column, .columns { width: auto !important; float: none; margin-left: 0px; margin-right: 0px; padding-left: 20px; padding-right: 20px; }
		.column:last-child, .columns:last-child { margin-right: 0px; }
		.offset-by-one, .offset-by-two, .offset-by-three, .offset-by-four, .offset-by-five, .offset-by-six, .offset-by-seven, .offset-by-eight, .offset-by-nine, .offset-by-ten, .offset-by-eleven, .centered { margin-left: 0% !important; }
	}
	
	
/* --------------------------------------------------
	:: Block Grids
	-------------------------------------------------- */	
	
	@media only screen and (max-width: 767px) {
		.block-grid.mobile { margin-left: 0%; }
		.block-grid.mobile li { float: none; width: 100%; margin-left: 0%; }
	}
	
	

/* -------------------------------------------------- 
	:: Mobile Visibility Affordances
---------------------------------------------------*/
	
	
	.show-on-phones { display: none !important; }	
	.show-on-tablets { display: none !important; }
	.show-on-desktops { display: block; }
	
	.hide-on-phones { display: block !important; }	
	.hide-on-tablets { display: block !important; }
	.hide-on-desktops { display: none; }
	
	
	@media only screen and (max-device-width: 800px), only screen and (device-width: 800px) {
		.hide-on-phones { display: block !important; }
		.hide-on-tablets { display: none !important; }
		.hide-on-desktops { display: block !important; }
		
		.show-on-phones { display: none !important; }
		.show-on-tablets { display: block !important; }
		.show-on-desktops { display: none !important; }
	}
	
		
	@media only screen and (max-width: 767px) {
		.hide-on-phones { display: none !important; }
		.hide-on-tablets { display: block !important; }
		.hide-on-desktops { display: block !important; }
		
		.show-on-phones { display: block !important; }
		.show-on-tablets { display: none !important; }
		.show-on-desktops { display: none !important; }
	}
	
	/* only screen and (device-width: 1280px), only screen and (max-device-width: 1280px),  /*
	
	
/* -------------------------------------------------- 
	:: Forms
---------------------------------------------------*/	


	@media only screen and (max-width: 767px) {
		div.form-field input, div.form-field input.small, div.form-field input.medium, div.form-field input.large, div.form-field input.oversize, input.input-text, input.input-text.oversize, textarea,
		form.nice div.form-field input, form.nice div.form-field input.oversize, form.nice input.input-text, form.nice input.input-text.oversize, form.nice textarea { display: block; width: 96%; padding: 6px 2% 4px; font-size: 18px; }
		form.nice div.form-field input, form.nice div.form-field input.oversize, form.nice input.input-text, form.nice input.input-text.oversize, form.nice textarea { -webkit-border-radius: 2px; -moz-border-radius: 2px; }
		form.nice div.form-field.error small, form.nice small.error { padding: 6px 2%; display: block; }
		form.nice div.form-field.error .small + small, form.nice .small + .error { width: auto; }
		form.nice div.form-field.error .medium + small, form.nice .medium + .error { width: auto; }
		form.nice div.form-field.error .large + small, form.nice .large + .error { width: auto; }
	}
	
	
/* -------------------------------------------------- 
	:: UI
---------------------------------------------------*/	
	
	/* Buttons */
	@media only screen and (max-width: 767px) {
		.button { display: block; }
		button.button { width: 100%; padding-left: 0px; padding-right: 0px; }
	}
	
	/* Tabs */
	
	@media only screen and (max-width: 767px) {
		dl.tabs.mobile, dl.nice.tabs.mobile { width: auto; margin: 20px -20px 40px; height: auto; }
		dl.tabs.mobile dt, dl.tabs.mobile dd, dl.nice.tabs.mobile dt, dl.nice.tabs.mobile dd { float: none; height: auto; }

		dl.tabs.mobile dd a { display: block; width: auto; height: auto; padding: 18px 20px; line-height: 1; border: solid 0px #ccc; border-width: 1px 0px 0px; margin: 0; color: #555; background: #eee; font-size: 15px; font-size: 1.5rem; }
		dl.tabs.mobile dd a.active { height: auto; margin: 0; border-width: 1px 0px 0px; }
	
		.nice.tabs.mobile { border-bottom: solid 1px #ccc; height: auto; }
		.nice.tabs.mobile dd a { padding: 18px 20px; border: none; border-left: none; border-right: none; border-top: 1px solid #ccc; background: #fff; }
		.nice.tabs.mobile dd a.active { border: none; background: #00a6fc; color: #fff; margin: 0; position: static; top: 0px; height: auto; }
		.nice.tabs.mobile dd:first-child a.active { margin: 0; }
		
		dl.contained.mobile, dl.nice.contained.mobile { margin-bottom: 0px; }
		dl.contained.tabs.mobile dd a { padding: 18px 20px; }
		dl.nice.contained.tabs.mobile dd a { padding: 18px 20px; }
	}

File

sassy_foundation/foundation/stylesheets/mobile.css
View source
  1. /* --------------------------------------------------
  2. :: Grid
  3. -------------------------------------------------- */
  4. /* Tablet screens */
  5. @media only screen and (device-width: 768px), (device-width: 800px) {
  6. /* Currently unused */
  7. }
  8. /* Mobile */
  9. @media only screen and (max-width: 767px) {
  10. body { -webkit-text-size-adjust: none; }
  11. .row, body, .container { width: 100%; min-width: 0; margin-left: 0px; margin-right: 0px; padding-left: 0px; padding-right: 0px; }
  12. .row .row .column, .row .row .columns { padding: 0; }
  13. .column, .columns { width: auto !important; float: none; margin-left: 0px; margin-right: 0px; padding-left: 20px; padding-right: 20px; }
  14. .column:last-child, .columns:last-child { margin-right: 0px; }
  15. .offset-by-one, .offset-by-two, .offset-by-three, .offset-by-four, .offset-by-five, .offset-by-six, .offset-by-seven, .offset-by-eight, .offset-by-nine, .offset-by-ten, .offset-by-eleven, .centered { margin-left: 0% !important; }
  16. }
  17. /* --------------------------------------------------
  18. :: Block Grids
  19. -------------------------------------------------- */
  20. @media only screen and (max-width: 767px) {
  21. .block-grid.mobile { margin-left: 0%; }
  22. .block-grid.mobile li { float: none; width: 100%; margin-left: 0%; }
  23. }
  24. /* --------------------------------------------------
  25. :: Mobile Visibility Affordances
  26. ---------------------------------------------------*/
  27. .show-on-phones { display: none !important; }
  28. .show-on-tablets { display: none !important; }
  29. .show-on-desktops { display: block; }
  30. .hide-on-phones { display: block !important; }
  31. .hide-on-tablets { display: block !important; }
  32. .hide-on-desktops { display: none; }
  33. @media only screen and (max-device-width: 800px), only screen and (device-width: 800px) {
  34. .hide-on-phones { display: block !important; }
  35. .hide-on-tablets { display: none !important; }
  36. .hide-on-desktops { display: block !important; }
  37. .show-on-phones { display: none !important; }
  38. .show-on-tablets { display: block !important; }
  39. .show-on-desktops { display: none !important; }
  40. }
  41. @media only screen and (max-width: 767px) {
  42. .hide-on-phones { display: none !important; }
  43. .hide-on-tablets { display: block !important; }
  44. .hide-on-desktops { display: block !important; }
  45. .show-on-phones { display: block !important; }
  46. .show-on-tablets { display: none !important; }
  47. .show-on-desktops { display: none !important; }
  48. }
  49. /* only screen and (device-width: 1280px), only screen and (max-device-width: 1280px), /*
  50. /* --------------------------------------------------
  51. :: Forms
  52. ---------------------------------------------------*/
  53. @media only screen and (max-width: 767px) {
  54. div.form-field input, div.form-field input.small, div.form-field input.medium, div.form-field input.large, div.form-field input.oversize, input.input-text, input.input-text.oversize, textarea,
  55. form.nice div.form-field input, form.nice div.form-field input.oversize, form.nice input.input-text, form.nice input.input-text.oversize, form.nice textarea { display: block; width: 96%; padding: 6px 2% 4px; font-size: 18px; }
  56. form.nice div.form-field input, form.nice div.form-field input.oversize, form.nice input.input-text, form.nice input.input-text.oversize, form.nice textarea { -webkit-border-radius: 2px; -moz-border-radius: 2px; }
  57. form.nice div.form-field.error small, form.nice small.error { padding: 6px 2%; display: block; }
  58. form.nice div.form-field.error .small + small, form.nice .small + .error { width: auto; }
  59. form.nice div.form-field.error .medium + small, form.nice .medium + .error { width: auto; }
  60. form.nice div.form-field.error .large + small, form.nice .large + .error { width: auto; }
  61. }
  62. /* --------------------------------------------------
  63. :: UI
  64. ---------------------------------------------------*/
  65. /* Buttons */
  66. @media only screen and (max-width: 767px) {
  67. .button { display: block; }
  68. button.button { width: 100%; padding-left: 0px; padding-right: 0px; }
  69. }
  70. /* Tabs */
  71. @media only screen and (max-width: 767px) {
  72. dl.tabs.mobile, dl.nice.tabs.mobile { width: auto; margin: 20px -20px 40px; height: auto; }
  73. dl.tabs.mobile dt, dl.tabs.mobile dd, dl.nice.tabs.mobile dt, dl.nice.tabs.mobile dd { float: none; height: auto; }
  74. dl.tabs.mobile dd a { display: block; width: auto; height: auto; padding: 18px 20px; line-height: 1; border: solid 0px #ccc; border-width: 1px 0px 0px; margin: 0; color: #555; background: #eee; font-size: 15px; font-size: 1.5rem; }
  75. dl.tabs.mobile dd a.active { height: auto; margin: 0; border-width: 1px 0px 0px; }
  76. .nice.tabs.mobile { border-bottom: solid 1px #ccc; height: auto; }
  77. .nice.tabs.mobile dd a { padding: 18px 20px; border: none; border-left: none; border-right: none; border-top: 1px solid #ccc; background: #fff; }
  78. .nice.tabs.mobile dd a.active { border: none; background: #00a6fc; color: #fff; margin: 0; position: static; top: 0px; height: auto; }
  79. .nice.tabs.mobile dd:first-child a.active { margin: 0; }
  80. dl.contained.mobile, dl.nice.contained.mobile { margin-bottom: 0px; }
  81. dl.contained.tabs.mobile dd a { padding: 18px 20px; }
  82. dl.nice.contained.tabs.mobile dd a { padding: 18px 20px; }
  83. }