/themes/default/jquery.mobile.core.css

https://github.com/kangaroo5383/jquery-mobile · CSS · 119 lines · 84 code · 15 blank · 20 comment · 0 complexity · 7369dc28dc0a2840e8f629a92cc9ca45 MD5 · raw file

  1. /*
  2. * jQuery Mobile Framework
  3. * Copyright (c) jQuery Project
  4. * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
  5. */
  6. /* some unsets - more probably needed */
  7. .ui-mobile, .ui-mobile body { height: 100%; }
  8. .ui-mobile fieldset, .ui-page { padding: 0; margin: 0; }
  9. .ui-mobile a img, .ui-mobile fieldset { border: 0; }
  10. /* responsive page widths */
  11. .ui-mobile-viewport { margin: 0; overflow-x: hidden; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
  12. /* "page" containers - full-screen views, one should always be in view post-pageload */
  13. .ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0; }
  14. .ui-mobile .ui-page-active { display: block; overflow: visible; }
  15. /*orientations from js are available */
  16. .portrait,
  17. .portrait .ui-page { min-height: 420px; }
  18. .landscape,
  19. .landscape .ui-page { min-height: 300px; }
  20. /* on ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
  21. .ui-page { outline: none; }
  22. /* native overflow scrolling */
  23. .ui-page.ui-mobile-touch-overflow,
  24. .ui-mobile-touch-overflow.ui-native-fixed .ui-content {
  25. overflow: auto;
  26. height: 100%;
  27. -webkit-overflow-scrolling: touch;
  28. -moz-overflow-scrolling: touch;
  29. -o-overflow-scrolling: touch;
  30. -ms-overflow-scrolling: touch;
  31. overflow-scrolling: touch;
  32. }
  33. .ui-page.ui-mobile-touch-overflow,
  34. .ui-page.ui-mobile-touch-overflow * {
  35. /* some level of transform keeps elements from blinking out of visibility on iOS */
  36. -webkit-transform: rotateY(0);
  37. }
  38. .ui-page.ui-mobile-pre-transition {
  39. display: block;
  40. }
  41. /* loading screen */
  42. .ui-loading .ui-mobile-viewport { overflow: hidden !important; }
  43. .ui-loading .ui-loader { display: block; }
  44. .ui-loading .ui-page { overflow: hidden; }
  45. .ui-loader { display: none; position: absolute; opacity: .85; z-index: 100; left: 50%; width: 200px; margin-left: -130px; margin-top: -35px; padding: 10px 30px; }
  46. .ui-loader h1 { font-size: 15px; text-align: center; }
  47. .ui-loader .ui-icon { position: static; display: block; opacity: .9; margin: 0 auto; width: 35px; height: 35px; background-color: transparent; }
  48. /*fouc*/
  49. .ui-mobile-rendering > * { visibility: hidden; }
  50. /*headers, content panels*/
  51. .ui-bar, .ui-body { position: relative; padding: .4em 15px; overflow: hidden; display: block; clear:both; }
  52. .ui-bar { font-size: 16px; margin: 0; }
  53. .ui-bar h1, .ui-bar h2, .ui-bar h3, .ui-bar h4, .ui-bar h5, .ui-bar h6 { margin: 0; padding: 0; font-size: 16px; display: inline-block; }
  54. .ui-header, .ui-footer { display: block; }
  55. .ui-page .ui-header, .ui-page .ui-footer { position: relative; }
  56. .ui-header .ui-btn-left { position: absolute; left: 10px; top: .4em; }
  57. .ui-header .ui-btn-right { position: absolute; right: 10px; top: .4em; }
  58. .ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 90px .8em; padding: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
  59. /*content area*/
  60. .ui-content { border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px; }
  61. .ui-page-fullscreen .ui-content { padding:0; }
  62. /* native fixed headers and footers */
  63. .ui-mobile-touch-overflow.ui-page.ui-native-fixed,
  64. .ui-mobile-touch-overflow.ui-page.ui-native-fullscreen {
  65. overflow: visible;
  66. }
  67. .ui-mobile-touch-overflow.ui-native-fixed .ui-header,
  68. .ui-mobile-touch-overflow.ui-native-fixed .ui-footer {
  69. position: fixed;
  70. left: 0;
  71. right: 0;
  72. top: 0;
  73. z-index: 200;
  74. }
  75. .ui-mobile-touch-overflow.ui-page.ui-native-fixed .ui-footer {
  76. top: auto;
  77. bottom: 0;
  78. }
  79. .ui-mobile-touch-overflow.ui-native-fixed .ui-content {
  80. padding-top: 2.5em;
  81. padding-bottom: 3em;
  82. top: 0;
  83. bottom: 0;
  84. height: auto;
  85. position: absolute;
  86. }
  87. .ui-mobile-touch-overflow.ui-native-fullscreen .ui-content {
  88. padding-top: 0;
  89. padding-bottom: 0;
  90. }
  91. .ui-mobile-touch-overflow.ui-native-fullscreen .ui-header,
  92. .ui-mobile-touch-overflow.ui-native-fullscreen .ui-footer {
  93. opacity: .9;
  94. }
  95. .ui-native-bars-hidden {
  96. display: none;
  97. }
  98. /* icons sizing */
  99. .ui-icon { width: 18px; height: 18px; }
  100. /* fullscreen class on ui-content div */
  101. .ui-fullscreen { }
  102. .ui-fullscreen img { max-width: 100%; }
  103. /* non-js content hiding */
  104. .ui-nojs { position: absolute; left: -9999px; }