mobile.css 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /* --------------------------------------------------
  2. :: Typography
  3. -------------------------------------------------- */
  4. @media handheld, only screen and (max-width: 767px) {
  5. h1 { font-size: 32px; font-size: 3.2rem; line-height: 1.3; }
  6. h2 { font-size: 28px; font-size: 2.8rem; line-height: 1.3; }
  7. h3 { font-size: 21px; font-size: 2.1rem; line-height: 1.3; }
  8. h4 { font-size: 18px; font-size: 1.8rem; line-height: 1.2; }
  9. h5 { font-size: 16px; font-size: 1.6rem; line-height: 1.2; }
  10. h6 { font-size: 15px; font-size: 1.5rem; line-height: 1.2; }
  11. body, p { font-size: 15px; font-size: 1.5rem; line-height: 1.4; }
  12. }
  13. /* --------------------------------------------------
  14. :: Grid
  15. -------------------------------------------------- */
  16. /* Tablet screens */
  17. @media only screen and (device-width: 768px), (device-width: 800px) {
  18. /* Currently unused */
  19. }
  20. /* Mobile */
  21. @media only screen and (max-width: 767px) {
  22. body { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; width: 100%; min-width: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  23. .container { min-width: 0; margin-left: 0; margin-right: 0; }
  24. .row { width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
  25. .row .row .column, .row .row .columns { padding: 0; }
  26. .column, .columns { width: auto !important; float: none; margin-left: 0; margin-right: 0; }
  27. .column:last-child, .columns:last-child { margin-right: 0; }
  28. .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; }
  29. .push-two, .push-three, .push-four, .push-five, .push-six, .push-seven, .push-eight, .push-nine, .push-ten { left: auto; }
  30. .pull-two, .pull-three, .pull-four, .pull-five, .pull-six, .pull-seven, .pull-eight, .pull-nine, .pull-ten { right: auto; }
  31. /* Mobile 4-column Grid */
  32. .row .phone-one.column:first-child, .row .phone-two.column:first-child, .row .phone-three.column:first-child, .row .phone-four.column:first-child, .row .phone-one.columns:first-child, .row .phone-two.columns:first-child, .row .phone-three.columns:first-child, .row .phone-four.columns:first-child { margin-left: 0; }
  33. .row .phone-one.column, .row .phone-two.column, .row .phone-three.column, .row .phone-four.column,
  34. .row .phone-one.columns, .row .phone-two.columns, .row .phone-three.columns, .row .phone-four.columns { margin-left: 4.4%; float: left; min-height: 1px; position: relative; padding: 0; }
  35. .row .phone-one.columns { width: 21.68% !important; }
  36. .row .phone-two.columns { width: 47.8% !important; }
  37. .row .phone-three.columns { width: 73.9% !important; }
  38. .row .phone-four.columns { width: 100% !important; }
  39. .row .columns.push-one-phone { left: 26.08%; }
  40. .row .columns.push-two-phone { left: 52.2% }
  41. .row .columns.push-three-phone { left: 78.3% }
  42. .row .columns.pull-one-phone { right: 26.08% }
  43. .row .columns.pull-two-phone { right: 52.2% }
  44. .row .columns.pull-three-phone { right: 78.3%; }
  45. }
  46. /* --------------------------------------------------
  47. :: Block Grids
  48. -------------------------------------------------- */
  49. @media only screen and (max-width: 767px) {
  50. .block-grid.mobile { margin-left: 0; }
  51. .block-grid.mobile > li { float: none; width: 100%; margin-left: 0; }
  52. }
  53. /* --------------------------------------------------
  54. :: Mobile Visibility Affordances
  55. ---------------------------------------------------*/
  56. .show-on-phones { display: none !important; }
  57. .show-on-tablets { display: none !important; }
  58. .show-on-desktops { display: block !important; }
  59. .hide-on-phones { display: block !important; }
  60. .hide-on-tablets { display: block !important; }
  61. .hide-on-desktops { display: none !important; }
  62. @media only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-height: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px) {
  63. .hide-on-phones { display: block !important; }
  64. .hide-on-tablets { display: none !important; }
  65. .hide-on-desktops { display: block !important; }
  66. .show-on-phones { display: none !important; }
  67. .show-on-tablets { display: block !important; }
  68. .show-on-desktops { display: none !important; }
  69. }
  70. /* Modernizr-enabled tablet targeting */
  71. @media only screen and (max-width: 1280px) and (min-width: 768px) {
  72. .touch .hide-on-phones { display: block !important; }
  73. .touch .hide-on-tablets { display: none !important; }
  74. .touch .hide-on-desktops { display: block !important; }
  75. .touch .show-on-phones { display: none !important; }
  76. .touch .show-on-tablets { display: block !important; }
  77. .touch .show-on-desktops { display: none !important; }
  78. }
  79. @media only screen and (max-width: 767px) {
  80. .hide-on-phones { display: none !important; }
  81. .hide-on-tablets { display: block !important; }
  82. .hide-on-desktops { display: block !important; }
  83. .show-on-phones { display: block !important; }
  84. .show-on-tablets { display: none !important; }
  85. .show-on-desktops { display: none !important; }
  86. }
  87. /* only screen and (device-width: 1280px), only screen and (max-device-width: 1280px), /*
  88. /* Keeping this in as a reminder to address support for other tablet devices like the Xoom in the future */
  89. /* Specific overrides for elements that require something other than display: block */
  90. table.show-on-desktops { display: table !important; }
  91. table.hide-on-phones { display: table !important; }
  92. table.hide-on-tablets { display: table !important; }
  93. @media only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-height: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px) {
  94. table.hide-on-phones { display: block !important; }
  95. table.hide-on-desktops { display: block !important; }
  96. table.show-on-tablets { display: block !important; }
  97. }
  98. @media only screen and (max-width: 767px) {
  99. table.hide-on-tablets { display: block !important; }
  100. table.hide-on-desktops { display: block !important; }
  101. table.show-on-phones { display: block !important; }
  102. }
  103. /* --------------------------------------------------
  104. :: Forms
  105. ---------------------------------------------------*/
  106. @media only screen and (max-width: 767px) {
  107. 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,
  108. 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; }
  109. 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; border-radius: 2px; }
  110. form.nice div.form-field.error small, form.nice small.error { padding: 6px 2%; display: block; }
  111. form.nice div.form-field.error .small + small, form.nice .small + .error { width: auto; }
  112. form.nice div.form-field.error .medium + small, form.nice .medium + .error { width: auto; }
  113. form.nice div.form-field.error .large + small, form.nice .large + .error { width: auto; }
  114. }
  115. /* --------------------------------------------------
  116. :: UI
  117. ---------------------------------------------------*/
  118. /* Buttons */
  119. @media only screen and (max-width: 767px) {
  120. .button { display: block; }
  121. button.button { width: 100%; padding-left: 0; padding-right: 0; }
  122. }
  123. /* Tabs */
  124. @media only screen and (max-width: 767px) {
  125. dl.tabs.mobile, dl.nice.tabs.mobile { width: auto; margin: 20px -20px 40px; height: auto; }
  126. dl.tabs.mobile dt, dl.tabs.mobile dd, dl.nice.tabs.mobile dt, dl.nice.tabs.mobile dd { float: none; height: auto; }
  127. dl.tabs.mobile dd a { display: block; width: auto; height: auto; padding: 18px 20px; line-height: 1; border: solid 0 #ccc; border-width: 1px 0 0; margin: 0; color: #555; background: #eee; font-size: 15px; font-size: 1.5rem; }
  128. dl.tabs.mobile dd a.active { height: auto; margin: 0; border-width: 1px 0 0; }
  129. .nice.tabs.mobile { border-bottom: solid 1px #ccc; height: auto; }
  130. .nice.tabs.mobile dd a { padding: 18px 20px; border: none; border-left: none; border-right: none; border-top: 1px solid #ccc; background: #fff; }
  131. .nice.tabs.mobile dd a.active { border: none; background: #00a6fc; color: #fff; margin: 0; position: static; top: 0; height: auto; }
  132. .nice.tabs.mobile dd:first-child a.active { margin: 0; }
  133. dl.contained.mobile, dl.nice.contained.mobile { margin-bottom: 0; }
  134. dl.contained.tabs.mobile dd a { padding: 18px 20px; }
  135. dl.nice.contained.tabs.mobile dd a { padding: 18px 20px; }
  136. }
  137. /* Nav Bar */
  138. @media only screen and (max-width: 767px) {
  139. .nav-bar { height: auto; }
  140. .nav-bar>li { float: none; display: block; border-right: none; }
  141. .nav-bar>li>a { text-align: left; border-top: 1px solid #ddd; border-right: none; }
  142. .nav-bar>li:first-child>a { border-top: none; }
  143. .nav-bar>li.has-flyout>a:after { content: ""; width: 0; height: 0; border-left: 4px solid transparent;border-right: 4px solid transparent; border-top: 4px solid #2a85e8; display: block; }
  144. .nav-bar>li:hover>a { font-weight: bold; }
  145. .nav-bar>li:hover ul { position: relative; }
  146. .flyout { position: relative; width: auto; top: auto; margin-right: -2px; border-width: 1px 1px 0px 1px; }
  147. .flyout.right { float: none; right: auto; left: -1px; }
  148. .flyout.small, .flyout.large { width: auto; }
  149. .flyout p:last-child { margin-bottom: 18px; }
  150. }
  151. /* Nav Bar */
  152. @media only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-height: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px), only screen and (max-width: 767px) {
  153. .video { padding-top: 0; }
  154. }