PageRenderTime 111ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/assets/stylesheets/globals/vendor/jquery.mobile.custom.structure.scss

https://bitbucket.org/jeffpatzer/halifax
Sass | 344 lines | 274 code | 24 blank | 46 comment | 0 complexity | 0a80c4a4ae906eb18f7675fafa7a4bc5 MD5 | raw file
  1. /*
  2. * jQuery Mobile v1.3.1
  3. * http://jquerymobile.com
  4. *
  5. * Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
  6. * Released under the MIT license.
  7. * http://jquery.org/license
  8. *
  9. */
  10. /* some unsets - more probably needed */
  11. .ui-mobile, .ui-mobile body { height: 99.9%; }
  12. .ui-mobile fieldset, .ui-page { padding: 0; margin: 0; }
  13. .ui-mobile a img, .ui-mobile fieldset { border-width: 0; }
  14. /* responsive page widths */
  15. .ui-mobile-viewport { margin: 0; overflow-x: visible; -webkit-text-size-adjust: 100%; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
  16. /* Issue #2066 */
  17. body.ui-mobile-viewport,
  18. div.ui-mobile-viewport { overflow-x: hidden; }
  19. /* "page" containers - full-screen views, one should always be in view post-pageload */
  20. .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; }
  21. .ui-mobile .ui-page-active { display: block; overflow: visible; }
  22. /* on ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
  23. .ui-page { outline: none; }
  24. /*orientations from js are available */
  25. @media screen and (orientation: portrait){
  26. .ui-mobile .ui-page { min-height: 420px; }
  27. }
  28. @media screen and (orientation: landscape){
  29. .ui-mobile .ui-page { min-height: 300px; }
  30. }
  31. /* loading screen */
  32. .ui-loading .ui-loader { display: block; }
  33. .ui-loader { display: none; z-index: 9999999; position: fixed; top: 50%; left: 50%; border:0; }
  34. .ui-loader-default { background: none; opacity: .18; width: 46px; height: 46px; margin-left: -23px; margin-top: -23px; }
  35. .ui-loader-verbose { width: 200px; opacity: .88; box-shadow: 0 1px 1px -1px #fff; height: auto; margin-left: -110px; margin-top: -43px; padding: 10px; }
  36. .ui-loader-default h1 { font-size: 0; width: 0; height: 0; overflow: hidden; }
  37. .ui-loader-verbose h1 { font-size: 16px; margin: 0; text-align: center; }
  38. .ui-loader .ui-icon { background-color: #000; display: block; margin: 0; width: 44px; height: 44px; padding: 1px; -webkit-border-radius: 36px; border-radius: 36px; }
  39. .ui-loader-verbose .ui-icon { margin: 0 auto 10px; opacity: .75; }
  40. .ui-loader-textonly { padding: 15px; margin-left: -115px; }
  41. .ui-loader-textonly .ui-icon { display: none; }
  42. .ui-loader-fakefix { position: absolute; }
  43. /*fouc*/
  44. .ui-mobile-rendering > * { visibility: hidden; }
  45. /*headers, content panels*/
  46. .ui-bar, .ui-body { position: relative; padding: .4em 15px; overflow: hidden; display: block; clear:both; }
  47. .ui-bar { font-size: 16px; margin: 0; }
  48. .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; }
  49. .ui-header, .ui-footer { position: relative; zoom: 1; }
  50. .ui-mobile .ui-header, .ui-mobile .ui-footer { border-left-width: 0; border-right-width: 0; }
  51. .ui-header .ui-btn-left,
  52. .ui-header .ui-btn-right,
  53. .ui-footer .ui-btn-left,
  54. .ui-footer .ui-btn-right,
  55. .ui-header-fixed.ui-fixed-hidden .ui-btn-left,
  56. .ui-header-fixed.ui-fixed-hidden .ui-btn-right { position: absolute; top: 3px; }
  57. .ui-header-fixed .ui-btn-left,
  58. .ui-header-fixed .ui-btn-right { top: 4px;}
  59. .ui-header .ui-btn-left,
  60. .ui-footer .ui-btn-left { left: 5px; }
  61. .ui-header .ui-btn-right,
  62. .ui-footer .ui-btn-right { right: 5px; }
  63. .ui-footer > .ui-btn-icon-notext,
  64. .ui-header > .ui-btn-icon-notext,
  65. .ui-header-fixed.ui-fixed-hidden > .ui-btn-icon-notext { top: 6px; }
  66. .ui-header-fixed > .ui-btn-icon-notext { top: 7px;}
  67. .ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 30% .8em; padding: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
  68. .ui-footer .ui-title { margin: .6em 15px .8em; }
  69. /* content area*/
  70. .ui-content { border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px; }
  71. /* corner styling for dialogs and popups */
  72. .ui-corner-all > .ui-header:first-child,
  73. .ui-corner-all > .ui-content:first-child,
  74. .ui-corner-all > .ui-footer:first-child {
  75. -webkit-border-top-left-radius: inherit;
  76. border-top-left-radius: inherit;
  77. -webkit-border-top-right-radius: inherit;
  78. border-top-right-radius: inherit;
  79. }
  80. .ui-corner-all > .ui-header:last-child,
  81. .ui-corner-all > .ui-content:last-child,
  82. .ui-corner-all > .ui-footer:last-child {
  83. -webkit-border-bottom-left-radius: inherit;
  84. border-bottom-left-radius: inherit;
  85. -webkit-border-bottom-right-radius: inherit;
  86. border-bottom-right-radius: inherit;
  87. }
  88. /* icons sizing */
  89. .ui-icon { width: 18px; height: 18px; }
  90. /* non-js content hiding */
  91. .ui-nojs { position: absolute; left: -9999px; }
  92. /* accessible content hiding */
  93. .ui-hide-label label.ui-input-text, .ui-hide-label label.ui-select, .ui-hide-label label.ui-slider, .ui-hide-label label.ui-submit, .ui-hide-label .ui-controlgroup-label,
  94. .ui-hidden-accessible { position: absolute !important; left: -9999px; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
  95. /* panel */
  96. .ui-panel {
  97. width: 17em;
  98. min-height: 100%;
  99. max-height: none;
  100. border-width: 0;
  101. position: absolute;
  102. top: 0;
  103. display: block;
  104. }
  105. .ui-panel-closed {
  106. width: 0;
  107. max-height: 100%;
  108. overflow: hidden;
  109. visibility: hidden;
  110. }
  111. .ui-panel-fixed {
  112. position: fixed;
  113. bottom: -1px; /* fixes gap on Chrome for Android */
  114. padding-bottom: 1px;
  115. }
  116. .ui-panel-display-overlay {
  117. z-index: 1001; /* fixed toolbars have z-index 1000 */
  118. }
  119. .ui-panel-display-reveal {
  120. z-index: 0;
  121. }
  122. .ui-panel-display-push {
  123. z-index: 999;
  124. }
  125. .ui-panel-inner {
  126. padding: 15px;
  127. }
  128. /* content-wrap */
  129. .ui-panel-content-wrap {
  130. position: relative;
  131. left: 0;
  132. min-height: inherit;
  133. border: none;
  134. z-index: 999;
  135. }
  136. .ui-panel-content-wrap-display-overlay,
  137. .ui-panel-animate.ui-panel-content-wrap > .ui-header, /* ios4 fix */
  138. .ui-panel-content-wrap-closed {
  139. position: static;
  140. }
  141. /* dismiss */
  142. .ui-panel-dismiss {
  143. position: absolute;
  144. top: 0;
  145. left:0;
  146. height: 100%;
  147. width: 100%;
  148. z-index: 1002;
  149. display: none;
  150. }
  151. .ui-panel-dismiss-open {
  152. display: block;
  153. }
  154. /* animate class is added to panel, wrapper and fixed toolbars */
  155. .ui-panel-animate {
  156. -webkit-transition: -webkit-transform 350ms ease;
  157. -moz-transition: -moz-transform 350ms ease;
  158. transition: transform 350ms ease;
  159. }
  160. /* hardware acceleration for smoother transitions on WebKit browsers */
  161. .ui-panel-animate.ui-panel:not(.ui-panel-display-reveal),
  162. .ui-panel-animate.ui-panel:not(.ui-panel-display-reveal) > div,
  163. .ui-panel-animate.ui-panel-closed.ui-panel-display-reveal > div,
  164. .ui-panel-animate.ui-panel-content-wrap,
  165. .ui-panel-animate.ui-panel-content-fixed-toolbar {
  166. -webkit-backface-visibility: hidden;
  167. -webkit-transform: translate3d(0,0,0);
  168. }
  169. /* positioning: panel */
  170. /* panel left */
  171. .ui-panel-position-left {
  172. left: -17em;
  173. }
  174. /* animated: panel left (for overlay and push) */
  175. .ui-panel-animate.ui-panel-position-left.ui-panel-display-overlay,
  176. .ui-panel-animate.ui-panel-position-left.ui-panel-display-push {
  177. left: 0;
  178. -webkit-transform: translate3d(-17em,0,0);
  179. -moz-transform: translate3d(-17em,0,0);
  180. transform: translate3d(-17em,0,0);
  181. }
  182. /* panel left open */
  183. .ui-panel-position-left.ui-panel-display-reveal, /* negate "panel left" for reveal */
  184. .ui-panel-position-left.ui-panel-open {
  185. left: 0;
  186. }
  187. /* animated: panel left open (for overlay and push) */
  188. .ui-panel-animate.ui-panel-position-left.ui-panel-open.ui-panel-display-overlay,
  189. .ui-panel-animate.ui-panel-position-left.ui-panel-open.ui-panel-display-push {
  190. -webkit-transform: translate3d(0,0,0);
  191. transform: translate3d(0,0,0);
  192. -moz-transform: none;
  193. }
  194. /* panel right */
  195. .ui-panel-position-right {
  196. right: -17em;
  197. }
  198. /* animated: panel right (for overlay and push) */
  199. .ui-panel-animate.ui-panel-position-right.ui-panel-display-overlay,
  200. .ui-panel-animate.ui-panel-position-right.ui-panel-display-push {
  201. right: 0;
  202. -webkit-transform: translate3d(17em,0,0);
  203. -moz-transform: translate3d(17em,0,0);
  204. transform: translate3d(17em,0,0);
  205. }
  206. /* panel right open */
  207. .ui-panel-position-right.ui-panel-display-reveal, /* negate "panel right" for reveal */
  208. .ui-panel-position-right.ui-panel-open {
  209. right: 0;
  210. }
  211. /* animated: panel right open (for overlay and push) */
  212. .ui-panel-animate.ui-panel-position-right.ui-panel-open.ui-panel-display-overlay,
  213. .ui-panel-animate.ui-panel-position-right.ui-panel-open.ui-panel-display-push {
  214. -webkit-transform: translate3d(0,0,0);
  215. transform: translate3d(0,0,0);
  216. -moz-transform: none;
  217. }
  218. /* positioning: content wrap, fixed toolbars and dismiss */
  219. /* panel left open */
  220. .ui-panel-content-fixed-toolbar-position-left.ui-panel-content-fixed-toolbar-open,
  221. .ui-panel-content-wrap-position-left.ui-panel-content-wrap-open,
  222. .ui-panel-dismiss-position-left.ui-panel-dismiss-open {
  223. left: 17em;
  224. right: -17em;
  225. }
  226. /* animated: panel left open (for reveal and push) */
  227. .ui-panel-animate.ui-panel-content-fixed-toolbar-position-left.ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-reveal,
  228. .ui-panel-animate.ui-panel-content-fixed-toolbar-position-left.ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-push,
  229. .ui-panel-animate.ui-panel-content-wrap-position-left.ui-panel-content-wrap-open.ui-panel-content-wrap-display-reveal,
  230. .ui-panel-animate.ui-panel-content-wrap-position-left.ui-panel-content-wrap-open.ui-panel-content-wrap-display-push {
  231. left: 0;
  232. right: 0;
  233. -webkit-transform: translate3d(17em,0,0);
  234. -moz-transform: translate3d(17em,0,0);
  235. transform: translate3d(17em,0,0);
  236. }
  237. /* panel right open */
  238. .ui-panel-content-fixed-toolbar-position-right.ui-panel-content-fixed-toolbar-open,
  239. .ui-panel-content-wrap-position-right.ui-panel-content-wrap-open,
  240. .ui-panel-dismiss-position-right.ui-panel-dismiss-open {
  241. left: -17em;
  242. right: 17em;
  243. }
  244. /* animated: panel right open (for reveal and push) */
  245. .ui-panel-animate.ui-panel-content-fixed-toolbar-position-right.ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-reveal,
  246. .ui-panel-animate.ui-panel-content-fixed-toolbar-position-right.ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-push,
  247. .ui-panel-animate.ui-panel-content-wrap-position-right.ui-panel-content-wrap-open.ui-panel-content-wrap-display-reveal,
  248. .ui-panel-animate.ui-panel-content-wrap-position-right.ui-panel-content-wrap-open.ui-panel-content-wrap-display-push {
  249. left: 0;
  250. right: 0;
  251. -webkit-transform: translate3d(-17em,0,0);
  252. -moz-transform: translate3d(-17em,0,0);
  253. transform: translate3d(-17em,0,0);
  254. }
  255. /* negate "panel left/right open" for overlay */
  256. .ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-overlay,
  257. .ui-panel-content-wrap-open.ui-panel-content-wrap-display-overlay {
  258. left: 0;
  259. }
  260. /* always disable overflow-x to prevent zoom issue on Android */
  261. .ui-page-active.ui-page-panel {
  262. overflow-x: hidden;
  263. }
  264. /* shadows and borders */
  265. .ui-panel-display-reveal {
  266. -webkit-box-shadow: inset -5px 0 5px rgba(0,0,0,.15);
  267. -moz-box-shadow: inset -5px 0 5px rgba(0,0,0,.15);
  268. box-shadow: inset -5px 0 5px rgba(0,0,0,.15);
  269. }
  270. .ui-panel-position-right.ui-panel-display-reveal {
  271. -webkit-box-shadow: inset 5px 0 5px rgba(0,0,0,.15);
  272. -moz-box-shadow: inset 5px 0 5px rgba(0,0,0,.15);
  273. box-shadow: inset 5px 0 5px rgba(0,0,0,.15);
  274. }
  275. .ui-panel-display-overlay {
  276. -webkit-box-shadow: 5px 0 5px rgba(0,0,0,.15);
  277. -moz-box-shadow: 5px 0 5px rgba(0,0,0,.15);
  278. box-shadow: 5px 0 5px rgba(0,0,0,.15);
  279. }
  280. .ui-panel-position-right.ui-panel-display-overlay {
  281. -webkit-box-shadow: -5px 0 5px rgba(0,0,0,.15);
  282. -moz-box-shadow: -5px 0 5px rgba(0,0,0,.15);
  283. box-shadow: -5px 0 5px rgba(0,0,0,.15);
  284. }
  285. .ui-panel-display-push.ui-panel-open.ui-panel-position-left {
  286. border-right-width: 1px;
  287. margin-right: -1px;
  288. }
  289. .ui-panel-animate.ui-panel-content-fixed-toolbar-position-left.ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-push {
  290. margin-left: 1px;
  291. }
  292. .ui-panel-display-push.ui-panel-open.ui-panel-position-right {
  293. border-left-width: 1px;
  294. margin-left: -1px;
  295. }
  296. .ui-panel-animate.ui-panel-content-fixed-toolbar-position-right.ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-push {
  297. margin-right: 1px;
  298. }
  299. /* wrap on wide viewports once open */
  300. @media (min-width:55em){
  301. .ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-push.ui-panel-content-fixed-toolbar-position-left,
  302. .ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-reveal.ui-panel-content-fixed-toolbar-position-left,
  303. .ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-display-push.ui-panel-content-wrap-position-left,
  304. .ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-display-reveal.ui-panel-content-wrap-position-left {
  305. margin-right: 17em;
  306. }
  307. .ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-push.ui-panel-content-fixed-toolbar-position-right,
  308. .ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-reveal.ui-panel-content-fixed-toolbar-position-right,
  309. .ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-display-push.ui-panel-content-wrap-position-right,
  310. .ui-responsive-panel.ui-page-panel-open .ui-panel-content-wrap-display-reveal.ui-panel-content-wrap-position-right {
  311. margin-left: 17em;
  312. }
  313. .ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-push,
  314. .ui-responsive-panel.ui-page-panel-open .ui-panel-content-fixed-toolbar-display-reveal {
  315. width: auto;
  316. }
  317. .ui-responsive-panel .ui-panel-dismiss-display-push {
  318. display: none;
  319. }
  320. }