fss-mobile-iphone-layout.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. /*
  2. * Licensed to Jasig under one or more contributor license
  3. * agreements. See the NOTICE file distributed with this work
  4. * for additional information regarding copyright ownership.
  5. * Jasig licenses this file to you under the Apache License,
  6. * Version 2.0 (the "License"); you may not use this file
  7. * except in compliance with the License. You may obtain a
  8. * copy of the License at the following location:
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. :root {
  20. -webkit-background-origin: padding-box;
  21. -webkit-background-clip: content-box;
  22. -webkit-background-size: 10px 1px;
  23. }
  24. body {
  25. margin:0;
  26. padding:0;
  27. font:normal 17px Helvetica, sans-serif; /* Base font rules */
  28. -webkit-user-select: none; /* prevents child elements content from being selected - desired? */
  29. -webkit-text-size-adjust:none; /* http://website-engineering.blogspot.com/2009/07/stop-adjusting-text-size-in-iphone-when.html */
  30. }
  31. h1, h2, h3, h4, h5, h6 {margin:0.25em;}
  32. h1 {font-size:1.5em;}
  33. h2 {font-size:1.1em;}
  34. h3 {font-size:1em;}
  35. h4 {}
  36. h5 {}
  37. h6 {}
  38. img {border:none;}
  39. /***************************************/
  40. /**
  41. * Basic overrides for fss layout
  42. */
  43. .fl-icon {
  44. width:30px;
  45. height:30px;
  46. margin-top:-5px;
  47. -webkit-border-radius: 5px;
  48. }
  49. .fl-label {
  50. width:25%;
  51. }
  52. /***************************************/
  53. /* to override any widths for a mobile device.
  54. * This eliminates the width, allowing for device specific screen settings
  55. */
  56. .fl-panel {
  57. width:auto;
  58. }
  59. /***************************************/
  60. /* iPhone general purpose gel buttons */
  61. /* effect is applied anywhere but the navbar, which has its own button look */
  62. .fl-button {
  63. border-width: 10px;
  64. text-align:center;
  65. -webkit-border-radius:10px;
  66. -webkit-background-origin: border;
  67. -webkit-background-clip: border;
  68. }
  69. /*************************************************/
  70. /* Navigation Bar
  71. */
  72. body::before, .fl-navbar {
  73. width:100%;
  74. height:43px;
  75. text-align:center;
  76. }
  77. body::before {
  78. content:" ";
  79. margin-bottom:-43px;
  80. display:block;
  81. border-style:solid;
  82. border-width:1px 0;
  83. -webkit-background-origin: padding-box;
  84. -webkit-background-clip: content-box;
  85. }
  86. .fl-navbar .fl-table-cell:not(h1) {
  87. width:1px;
  88. white-space:nowrap;
  89. }
  90. .fl-navbar .fl-table-cell:first-child {
  91. padding-left:5px;
  92. }
  93. .fl-navbar .fl-table-cell:last-child {
  94. padding-right:5px;
  95. }
  96. .fl-navbar h1 {
  97. padding:0;
  98. text-align:center;
  99. font-size:1.17em;
  100. font-weight: bold;
  101. }
  102. .fl-navbar a {
  103. text-decoration:none;
  104. font-size: 0.7em;
  105. font-weight:bold;
  106. }
  107. .fl-navbar [class*=fl-button] {
  108. -webkit-border-radius:5px;
  109. padding:0;
  110. }
  111. .fl-navbar .fl-backButton {
  112. padding:10px 0;
  113. /*
  114. * To create the oddly shaped back button with fully customizable CSS colors, there are 2 main things:
  115. * 1) The stencil for the shadow and hilights along the angled edge
  116. * 2) The mask to crop the background along the angled edge
  117. */
  118. /* Angled effect is just a single border with a transaprent stencil image */
  119. border-width:0 0 0 15px;
  120. -webkit-border-top-right-radius: 5px;
  121. -webkit-border-bottom-right-radius: 5px;
  122. -webkit-background-origin: border;
  123. -webkit-background-clip: border;
  124. -webkit-mask-repeat: no-repeat;
  125. -webkit-mask-origin: border;
  126. -webkit-mask-clip: border;
  127. }
  128. .fl-navbar .fl-backButton .fl-button-inner {
  129. margin-left:-3px; /* close tiny gap between angled border + button-inner on Mobile Safari */
  130. border-left-width:0;
  131. }
  132. .fl-navbar .fl-button-inner {
  133. float:none;
  134. padding:5px;
  135. border-width:5px;
  136. -webkit-background-origin: border;
  137. -webkit-background-clip: border;
  138. }
  139. /*************************************************/
  140. /* iPhone tabs: general purpose dividers, or fixed to the bottom of the screen
  141. */
  142. /*************************************************/
  143. .fl-tabs {
  144. margin:0;
  145. padding:0;
  146. border:none;
  147. text-align:center;
  148. }
  149. .fl-tabs li {
  150. display:inline-block;
  151. margin-right:-5px;
  152. border-width:5px 0;
  153. text-align:center;
  154. }
  155. .fl-tabs li:first-child {
  156. border-left-width:5px;
  157. -webkit-border-top-left-radius:5px;
  158. -webkit-border-bottom-left-radius:5px;
  159. }
  160. .fl-tabs li:last-child {
  161. margin-right:0;
  162. border-right-width:5px;
  163. -webkit-border-top-right-radius:5px;
  164. -webkit-border-bottom-right-radius:5px;
  165. }
  166. .fl-tabs li.fl-tabs-active a,
  167. .fl-tabs li a {
  168. display:block;
  169. margin:-4px 0;
  170. text-decoration:none;
  171. padding:0.35em 0.5em;
  172. font-weight:bold;
  173. background:none;
  174. border-width:0 1px;
  175. border-style:solid;
  176. }
  177. .fl-tabs li:last-child a {
  178. border-right:none;
  179. }
  180. .fl-tabs li:first-child a {
  181. border-left:none;
  182. }
  183. .fl-tabs.fl-tabs-functionBar {
  184. }
  185. /*************************************************/
  186. /* iPhone list menu styles: Ordered lists, Unordererd lists, Thumbnail lists, Icon lists, Definition lists
  187. * By default, all list formats fit to width
  188. * When nested within a fl-panel element, they are indented and therefore contain rounded corners
  189. */
  190. /*************************************************/
  191. /* Default list system setup */
  192. [class*=fl-list] {
  193. border: none;
  194. list-style:none;
  195. margin:0 0 10px;
  196. padding:0;
  197. }
  198. [class*=fl-list] > li {
  199. display:block;
  200. padding: 12px 0px 12px 12px;
  201. text-decoration: none;
  202. font-weight: bold;
  203. outline: none;
  204. border-style:solid;
  205. border-width:1px 1px 0 1px;
  206. overflow:auto; /* to encapsulate floating elements within */
  207. }
  208. [class*=fl-list] > li:last-child {
  209. border-bottom-width:1px;
  210. }
  211. [class*=fl-list] .fl-link-loading .fl-link-secondary {
  212. display:none;
  213. }
  214. /* secondary link info behaviour */
  215. [class*=fl-list] > li .fl-link-secondary {
  216. float:right;
  217. margin-right:25px;
  218. font-weight:normal;
  219. font-size:.9em;
  220. }
  221. /* summary link info ehaviour */
  222. [class*=fl-list] > li .fl-link-summary {
  223. display:block;
  224. clear:right;
  225. margin:0 25px 0 0px;
  226. font-weight:normal;
  227. font-size:0.8em;
  228. }
  229. [class*=fl-list] li .fl-icon ~ .fl-link-summary {
  230. margin-left:30px; /* default size of fl-icon */
  231. }
  232. /* icon behaviour */
  233. [class*=fl-list] li .fl-icon {
  234. float:left;
  235. margin-left:-6px;
  236. }
  237. .fl-panel [class*=fl-list] > li:first-child,
  238. .fl-panel [class*=fl-list] > li:first-child a {
  239. -webkit-border-top-left-radius: 8px;
  240. -webkit-border-top-right-radius: 8px;
  241. }
  242. .fl-panel [class*=fl-list] > li:last-child,
  243. .fl-panel [class*=fl-list] > li:last-child a {
  244. -webkit-border-bottom-left-radius: 8px;
  245. -webkit-border-bottom-right-radius: 8px;
  246. }
  247. /*************************************************/
  248. /**
  249. * fl-listmenu is now the way to create a link list
  250. * The links create a hotspot over the entire list item, just like how it was by default
  251. */
  252. .fl-listmenu {
  253. }
  254. .fl-listmenu li {
  255. padding:0;
  256. }
  257. .fl-listmenu li a {
  258. display:block;
  259. padding: 12px 0px 12px 12px;
  260. text-decoration: none;
  261. font-weight: bold;
  262. outline: none;
  263. }
  264. /*************************************************/
  265. /* Thumbnail and Expanded Thumbnails list features */
  266. .fl-list-thumbnails > li {
  267. margin-bottom:5px;
  268. }
  269. .fl-list-thumbnails > li a {
  270. border-bottom-width:1px;
  271. padding-top:6px;
  272. overflow:auto;
  273. }
  274. /* summary behaviour */
  275. .fl-list-thumbnails > li a > .fl-icon ~ .fl-link-summary {
  276. margin:0 25px -12px 42px;
  277. }
  278. .fl-list-thumbnails:not(.fl-thumbnails-expanded):not(.fl-list-brief) > li a > .fl-icon ~ .fl-link-summary {
  279. padding-bottom:10px;
  280. }
  281. /* icon behaviour */
  282. .fl-list-thumbnails > li a > .fl-icon {
  283. width:44px;
  284. height:44px;
  285. margin:-6px 10px -12px -12px;
  286. -webkit-border-radius:0;
  287. }
  288. .fl-panel .fl-list-thumbnails > li a {
  289. -webkit-border-radius:8px;
  290. }
  291. .fl-panel .fl-list-thumbnails > li a > .fl-icon {
  292. -webkit-border-bottom-left-radius: 8px;
  293. -webkit-border-top-left-radius: 8px;
  294. }
  295. .fl-list-thumbnails.fl-thumbnails-expanded li {
  296. margin:0;
  297. }
  298. .fl-list-thumbnails.fl-thumbnails-expanded > li a {
  299. border-bottom-width:0;
  300. -webkit-border-radius:0;
  301. padding:10px;
  302. }
  303. .fl-list-thumbnails.fl-thumbnails-expanded > li a > .fl-icon {
  304. width:60px;
  305. height:60px;
  306. margin:-5px 5px -5px -5px;
  307. -webkit-border-radius:0;
  308. }
  309. .fl-list-thumbnails.fl-thumbnails-expanded > li:last-child a {
  310. border-bottom-width:1px;
  311. }
  312. .fl-list-thumbnails.fl-thumbnails-expanded > li a > .fl-icon ~ .fl-link-summary {
  313. margin: 0px 0px -5px 60px;
  314. }
  315. .fl-list-thumbnails.fl-thumbnails-expanded > li a > .fl-link-secondary {
  316. padding-top:0;
  317. }
  318. /*************************************************/
  319. /* Brief lists auto trim summary content + add ellipsis if necessary */
  320. .fl-list-brief > li a {
  321. padding-bottom:6px;
  322. }
  323. .fl-list-brief > li a > .fl-link-summary {
  324. height:1.3em;
  325. overflow:hidden;
  326. text-overflow:ellipsis;
  327. white-space:nowrap;
  328. }
  329. .fl-list-brief > li a > .fl-link-secondary {
  330. padding-top:6px;
  331. }
  332. .fl-list-brief > li a > .fl-icon ~ .fl-link-summary {
  333. margin-left:0;
  334. }
  335. .fl-list-brief.fl-list-thumbnails:not(.fl-thumbnails-expanded) > li a > .fl-icon {
  336. margin:-6px 10px -6px -12px;
  337. }
  338. .fl-list-brief.fl-list-thumbnails:not(.fl-thumbnails-expanded) > li a > .fl-link-secondary {
  339. padding-top:0px;
  340. }
  341. /*************************************************/
  342. /* Glossy icons (and thumbnails?) */
  343. /* Glossiness for 30x30 icons */
  344. .fl-list-glossy > li a::before {
  345. position:absolute;
  346. content:" ";
  347. float:left;
  348. width:28px;
  349. height:28px;
  350. margin:-4px 0 0 -5px;
  351. -webkit-border-radius:3px;
  352. -webkit-background-size: 30px 60px;
  353. background-repeat:no-repeat;
  354. }
  355. /* Glossiness for 44x44 thumbnails */
  356. .fl-list-thumbnails.fl-list-glossy > li a::before {
  357. width:42px;
  358. height:42px;
  359. margin:-11px;
  360. -webkit-border-radius:0px;
  361. -webkit-background-size: 44px 50px;
  362. }
  363. /* Glossiness for 60x60 thumbnails */
  364. .fl-list-thumbnails.fl-thumbnails-expanded.fl-list-glossy > li a::before {
  365. width:58px;
  366. height:58px;
  367. margin:-4px;
  368. -webkit-border-radius:0px;
  369. -webkit-background-size: 60px 40px;
  370. }
  371. /*************************************************/
  372. /* Content Panels */
  373. /*************************************************/
  374. [class*=fl-panel] {
  375. margin:10px;
  376. }
  377. /* Panel Auto Headings */
  378. /* The first element found becomes the "heading" */
  379. .fl-panel-autoHeading > *:first-child {
  380. padding:10px;
  381. margin:0;
  382. -webkit-border-top-left-radius: 8px;
  383. -webkit-border-top-right-radius: 8px;
  384. }
  385. /* The last element found becomes the "content" - list or otherwise */
  386. .fl-panel-autoHeading > *:last-child {
  387. margin:0;
  388. -webkit-border-radius:0;
  389. -webkit-border-bottom-left-radius:8px;
  390. -webkit-border-bottom-right-radius:8px;
  391. }
  392. .fl-panel-autoHeading [class*=fl-list] > li {
  393. margin:0;
  394. }
  395. .fl-panel-autoHeading [class*=fl-list] > li:first-child,
  396. .fl-panel-autoHeading [class*=fl-list] > li:first-child a {
  397. -webkit-border-radius:0;
  398. }
  399. .fl-panel-autoHeading [class*=fl-list] > li:first-child:last-child,
  400. .fl-panel-autoHeading [class*=fl-list] > li:first-child:last-child a {
  401. -webkit-border-bottom-left-radius:8px;
  402. -webkit-border-bottom-right-radius:8px;
  403. }
  404. .fl-panel-autoHeading .fl-list-thumbnails > li a {
  405. /*padding:5px;*/
  406. /*overflow:auto;*/
  407. }
  408. /* Collapsing and expanding panels */
  409. .fl-panel-collapsable {
  410. max-height:900px;
  411. overflow:hidden;
  412. -webkit-border-radius:8px;
  413. }
  414. /***************************/
  415. .fl-table {
  416. display:table;
  417. border-collapse:collapse;
  418. border:none;
  419. }
  420. .fl-table-row {
  421. display:table-row;
  422. border:none;
  423. }
  424. .fl-table-cell {
  425. display:table-cell;
  426. vertical-align:middle;
  427. border:none;
  428. }
  429. /***************************/