jqm-docs.css 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. /* jqm docs css
  2. Beware: lots of last-minute CSS going on in here
  3. cobblers, shoes,
  4. */
  5. body { background: #dddddd; }
  6. .ui-mobile .type-home .ui-content { margin: 0; background: #e5e5e5 url(../images/jqm-sitebg.png) top center repeat-x; }
  7. .ui-mobile #jqm-homeheader { padding: 40px 10px 0; text-align: center; margin: 0 auto; }
  8. .ui-mobile #jqm-homeheader h1 { margin: 0 0 ; }
  9. .ui-mobile #jqm-homeheader p { margin: .3em 0 0; line-height: 1.3; font-size: .9em; font-weight: bold; color: #666; }
  10. .ui-mobile #jqm-version { text-indent: -99999px; background: url(../images/version.png) top right no-repeat; width: 119px; height: 122px; overflow: hidden; position: absolute; z-index: 50; top: -11px; right: 0; }
  11. .ui-mobile .jqm-themeswitcher { margin: 10px 25px 10px 10px; }
  12. h2 { margin:1.2em 0 .4em 0; }
  13. p code { font-size:1.2em; font-weight:bold; }
  14. dt { font-weight: bold; margin: 2em 0 .5em; }
  15. dt code, dd code { font-size:1.3em; line-height:150%; }
  16. pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
  17. #jqm-homeheader img { width: 235px; }
  18. img { max-width: 100%; }
  19. .ui-header .jqm-home { top:0.65em; }
  20. nav { margin: 0; }
  21. p.intro {
  22. font-size: .96em;
  23. line-height: 1.3;
  24. border-top: 1px solid #75ae18;
  25. border-bottom: 0;
  26. background: none;
  27. margin: 1.5em 0;
  28. padding: 1.5em 15px 0;
  29. }
  30. p.intro strong {
  31. color: #558e08;
  32. }
  33. .footer-docs {
  34. padding: 5px 0;
  35. }
  36. .footer-docs p {
  37. float: left;
  38. margin-left:15px;
  39. font-weight: normal;
  40. font-size: .9em;
  41. }
  42. .type-interior .content-secondary {
  43. border-right: 0;
  44. border-left: 0;
  45. margin: 10px -15px 0;
  46. background: #fff;
  47. border-top: 1px solid #ccc;
  48. }
  49. .type-home .ui-content {
  50. margin-top: 5px;
  51. }
  52. .type-interior .ui-content {
  53. padding-bottom: 0;
  54. }
  55. .content-secondary .ui-collapsible {
  56. padding: 0 15px 10px;
  57. }
  58. .content-secondary .ui-collapsible-content {
  59. padding: 0;
  60. background: none;
  61. border-bottom: none;
  62. }
  63. .content-secondary .ui-listview {
  64. margin: 0;
  65. }
  66. /* new API additions */
  67. dt {
  68. margin: 35px 0 15px 0;
  69. background-color:#ddd;
  70. font-weight:normal;
  71. }
  72. dt code {
  73. display:inline-block;
  74. font-weight:bold;
  75. color:#56A00E;
  76. padding:3px 7px;
  77. margin-right:10px;
  78. background-color:#fff;
  79. }
  80. dd {
  81. margin-bottom:10px;
  82. }
  83. dd .default { font-weight:bold; }
  84. dd pre {
  85. margin:0 0 0 0;
  86. }
  87. dd code { font-weight: normal; }
  88. dd pre code {
  89. margin:0;
  90. border:none;
  91. font-weight:normal;
  92. font-size:100%;
  93. background-color:transparent;
  94. }
  95. dd h4 { margin:15px 0 0 0; }
  96. .localnav {
  97. margin:0 0 20px 0;
  98. overflow:hidden;
  99. }
  100. .localnav li {
  101. float:left;
  102. }
  103. .localnav .ui-btn-inner {
  104. padding: .6em 10px;
  105. font-size:80%;
  106. }
  107. /* F bar theme - just for the docs overview headers */
  108. .ui-bar-f {
  109. border-top: 1px solid #56A00E;
  110. border-bottom: 1px solid #56A00E;
  111. background: #74b042;
  112. color: #fff;
  113. font-weight: bold;
  114. text-shadow: 0 -1px 1px #234403;
  115. background-image: -webkit-gradient(linear, left top, left bottom, from(#74b042), to(#56A00E)); /* Saf4+, Chrome */
  116. background-image: -webkit-linear-gradient(#74b042, #56A00E); /* Chrome 10+, Saf5.1+ */
  117. background-image: -moz-linear-gradient(#74b042, #56A00E); /* FF3.6 */
  118. background-image: -ms-linear-gradient(#74b042, #56A00E); /* IE10 */
  119. background-image: -o-linear-gradient(#74b042, #56A00E); /* Opera 11.10+ */
  120. background-image: linear-gradient(#74b042, #56A00E);
  121. }
  122. .ui-bar-f,
  123. .ui-bar-f .ui-link-inherit {
  124. color: #fff;
  125. }
  126. .ui-bar-f .ui-link {
  127. color: #fff;
  128. font-weight: bold;
  129. }
  130. .ui-btn-up-f {
  131. border: 1px solid #3B6F07;
  132. background: #56A00E;
  133. font-weight: bold;
  134. color: #fff;
  135. text-shadow: 0 -1px 1px #234403;
  136. background-image: -webkit-gradient(linear, left top, left bottom, from(#74b042), to(#56A00E)); /* Saf4+, Chrome */
  137. background-image: -webkit-linear-gradient(#74b042, #56A00E); /* Chrome 10+, Saf5.1+ */
  138. background-image: -moz-linear-gradient(#74b042, #56A00E); /* FF3.6 */
  139. background-image: -ms-linear-gradient(#74b042, #56A00E); /* IE10 */
  140. background-image: -o-linear-gradient(#74b042, #56A00E); /* Opera 11.10+ */
  141. background-image: linear-gradient(#74b042, #56A00E);
  142. }
  143. .ui-btn-up-f a.ui-link-inherit {
  144. color: #fff;
  145. }
  146. .ui-btn-hover-f {
  147. border: 1px solid #3B6F07;
  148. background: #6EBC1F;
  149. font-weight: bold;
  150. color: #fff;
  151. text-shadow: 0 -1px 1px #234403;
  152. background-image: -webkit-gradient(linear, left top, left bottom, from(#8FC963), to(#6EBC1F)); /* Saf4+, Chrome */
  153. background-image: -webkit-linear-gradient(#8FC963, #6EBC1F); /* Chrome 10+, Saf5.1+ */
  154. background-image: -moz-linear-gradient(#8FC963, #6EBC1F); /* FF3.6 */
  155. background-image: -ms-linear-gradient(#8FC963, #6EBC1F); /* IE10 */
  156. background-image: -o-linear-gradient(#8FC963, #6EBC1F); /* Opera 11.10+ */
  157. background-image: linear-gradient(#8FC963, #6EBC1F);
  158. }
  159. .ui-btn-hover-f a.ui-link-inherit {
  160. color: #fff;
  161. }
  162. .ui-btn-down-f {
  163. border: 1px solid #3B6F07;
  164. background: #3d3d3d;
  165. font-weight: bold;
  166. color: #fff;
  167. text-shadow: 0 -1px 1px #234403;
  168. background-image: -webkit-gradient(linear, left top, left bottom, from(#56A00E), to(#64A234)); /* Saf4+, Chrome */
  169. background-image: -webkit-linear-gradient(#56A00E, #64A234); /* Chrome 10+, Saf5.1+ */
  170. background-image: -moz-linear-gradient(#56A00E, #64A234); /* FF3.6 */
  171. background-image: -ms-linear-gradient(#56A00E, #64A234); /* IE10 */
  172. background-image: -o-linear-gradient(#56A00E, #64A234); /* Opera 11.10+ */
  173. background-image: linear-gradient(#56A00E, #64A234);
  174. }
  175. .ui-btn-down-f a.ui-link-inherit {
  176. color: #fff;
  177. }
  178. .ui-btn-up-f,
  179. .ui-btn-hover-f,
  180. .ui-btn-down-f {
  181. font-family: Helvetica, Arial, sans-serif;
  182. text-decoration: none;
  183. }
  184. /* docs site layout */
  185. @media all and (min-width: 650px){
  186. .jqm-home {
  187. position: absolute;
  188. left: 10px;
  189. top: 0;
  190. }
  191. .type-home .ui-content {
  192. margin-top: 5px;
  193. }
  194. .ui-mobile #jqm-homeheader {
  195. max-width: 340px;
  196. }
  197. .ui-mobile .jqm-themeswitcher {
  198. float: right;
  199. }
  200. p.intro {
  201. margin: 2em 0;
  202. }
  203. .type-home .ui-content,
  204. .type-interior .ui-content {
  205. padding: 0;
  206. background: url(../images/px-ccc.gif) 50% 0 repeat-y;
  207. }
  208. .type-interior .ui-content {
  209. background-position: 45%;
  210. overflow: hidden;
  211. }
  212. .content-secondary {
  213. text-align: left;
  214. float: left;
  215. width: 45%;
  216. background: none;
  217. }
  218. .content-secondary,
  219. .type-interior .content-secondary {
  220. margin: 30px 0 20px 2%;
  221. padding: 20px 4% 0 0;
  222. background: none;
  223. border-top: none;
  224. }
  225. .type-index .content-secondary {
  226. padding: 0;
  227. }
  228. .content-secondary .ui-collapsible {
  229. margin: 0;
  230. padding: 0;
  231. }
  232. .content-secondary .ui-collapsible-content {
  233. border: none;
  234. }
  235. .type-index .content-secondary .ui-listview {
  236. margin: 0;
  237. }
  238. .ui-mobile #jqm-homeheader {
  239. padding: 0;
  240. }
  241. .content-primary {
  242. width: 45%;
  243. float: right;
  244. margin-top: 30px;
  245. margin-right: 1%;
  246. padding-right: 1%;
  247. }
  248. .content-primary ul:first-child {
  249. margin-top: 0;
  250. }
  251. .content-secondary h2 {
  252. position: absolute;
  253. left: -9999px;
  254. }
  255. .type-interior .content-primary {
  256. padding: 1.5em 6% 3em 0;
  257. margin: 0;
  258. }
  259. /* fix up the collapsibles - expanded on desktop */
  260. .content-secondary .ui-collapsible-heading {
  261. display: none;
  262. }
  263. .content-secondary .ui-collapsible-contain {
  264. margin:0;
  265. }
  266. .content-secondary .ui-collapsible-content {
  267. display: block;
  268. margin: 0;
  269. padding: 0;
  270. }
  271. .type-interior .content-secondary .ui-li-divider {
  272. padding-top: 1em;
  273. padding-bottom: 1em;
  274. }
  275. .type-interior .content-secondary {
  276. margin: 0;
  277. padding: 0;
  278. }
  279. }
  280. @media all and (min-width: 750px){
  281. .type-home .ui-content,
  282. .type-interior .ui-content {
  283. background-position: 39%;
  284. }
  285. .content-secondary {
  286. width: 34%;
  287. }
  288. .content-primary {
  289. width: 56%;
  290. padding-right: 1%;
  291. }
  292. .type-interior .ui-content {
  293. background-position: 34%;
  294. }
  295. }
  296. @media all and (min-width: 1200px){
  297. .type-home .ui-content{
  298. background-position: 38.5%;
  299. }
  300. .type-interior .ui-content {
  301. background-position: 30%;
  302. }
  303. .content-secondary {
  304. width: 30%;
  305. padding-right:6%;
  306. margin: 30px 0 20px 5%;
  307. }
  308. .type-interior .content-secondary {
  309. margin: 0;
  310. padding: 0;
  311. }
  312. .content-primary {
  313. width: 50%;
  314. margin-right: 5%;
  315. padding-right: 3%;
  316. }
  317. .type-interior .content-primary {
  318. width: 60%;
  319. }
  320. }