You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.9 KiB

  1. /**
  2. * Platform
  3. * --------------------------------------------------
  4. * Platform specific tweaks
  5. */
  6. .platform-ios.platform-cordova {
  7. // iOS has a status bar which sits on top of the header.
  8. // Bump down everything to make room for it. However, if
  9. // if its in Cordova, and set to fullscreen, then disregard the bump.
  10. &:not(.fullscreen) {
  11. .bar-header:not(.bar-subheader) {
  12. height: $bar-height + $ios-statusbar-height;
  13. &.item-input-inset .item-input-wrapper {
  14. margin-top: 19px !important;
  15. }
  16. > * {
  17. margin-top: $ios-statusbar-height;
  18. }
  19. }
  20. .tabs-top > .tabs,
  21. .tabs.tabs-top {
  22. top: $bar-height + $ios-statusbar-height;
  23. }
  24. .has-header,
  25. .bar-subheader {
  26. top: $bar-height + $ios-statusbar-height;
  27. }
  28. .has-subheader {
  29. top: $bar-height + $bar-subheader-height + $ios-statusbar-height;
  30. }
  31. .has-header.has-tabs-top {
  32. top: $bar-height + $tabs-height + $ios-statusbar-height;
  33. }
  34. .has-header.has-subheader.has-tabs-top {
  35. top: $bar-height + $bar-subheader-height + $tabs-height + $ios-statusbar-height;
  36. }
  37. }
  38. .popover{
  39. .bar-header:not(.bar-subheader) {
  40. height: $bar-height;
  41. &.item-input-inset .item-input-wrapper {
  42. margin-top: -1px;
  43. }
  44. > * {
  45. margin-top: 0;
  46. }
  47. }
  48. .has-header,
  49. .bar-subheader {
  50. top: $bar-height;
  51. }
  52. .has-subheader {
  53. top: $bar-height + $bar-subheader-height;
  54. }
  55. }
  56. &.status-bar-hide {
  57. // Cordova doesn't adjust the body height correctly, this makes up for it
  58. margin-bottom: 20px;
  59. }
  60. }
  61. @media (orientation:landscape) {
  62. .platform-ios.platform-browser.platform-ipad {
  63. position: fixed; // required for iPad 7 Safari
  64. }
  65. }
  66. .platform-c:not(.enable-transitions) * {
  67. // disable transitions on grade-c devices (Android 2)
  68. -webkit-transition: none !important;
  69. transition: none !important;
  70. }