UI for Zipcoin Blue

content.scss 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. @import "../../themes/ionic.globals";
  2. // Content
  3. // --------------------------------------------------
  4. ion-content {
  5. @include position(0, null, null, 0);
  6. position: relative;
  7. display: block;
  8. width: 100%;
  9. height: 100%;
  10. contain: layout size style;
  11. }
  12. .ion-page > ion-content {
  13. position: absolute;
  14. }
  15. a {
  16. color: $link-color;
  17. }
  18. // Scrollable Content
  19. // --------------------------------------------------
  20. .scroll-content {
  21. @include position(0, 0, 0, 0);
  22. position: absolute;
  23. z-index: $z-index-scroll-content;
  24. display: block;
  25. overflow-x: hidden;
  26. overflow-y: scroll;
  27. -webkit-overflow-scrolling: touch;
  28. will-change: scroll-position;
  29. contain: size style layout;
  30. }
  31. ion-content.js-scroll > .scroll-content {
  32. position: relative;
  33. min-height: 100%;
  34. overflow-x: initial;
  35. overflow-y: initial;
  36. -webkit-overflow-scrolling: auto;
  37. will-change: initial;
  38. }
  39. .disable-scroll .ion-page {
  40. pointer-events: none;
  41. touch-action: none;
  42. }
  43. ion-content.has-refresher > .scroll-content {
  44. background-color: inherit;
  45. }
  46. // Fixed Content (ion-fixed and ion-fab)
  47. // --------------------------------------------------
  48. .fixed-content {
  49. @include position(0, 0, 0, 0);
  50. position: absolute;
  51. display: block;
  52. }
  53. [ion-fixed] {
  54. position: absolute;
  55. z-index: $z-index-fixed-content;
  56. transform: translateZ(0);
  57. }
  58. // Content Padding
  59. // --------------------------------------------------
  60. ion-app [no-padding],
  61. ion-app [no-padding] .scroll-content {
  62. @include padding(0);
  63. }
  64. @mixin content-padding($mode, $content-padding) {
  65. ion-app.#{$mode} [padding] {
  66. @include padding($content-padding);
  67. }
  68. ion-app.#{$mode} [padding-top] {
  69. @include padding($content-padding, null, null, null);
  70. }
  71. ion-app.#{$mode} [padding-left] {
  72. @include padding-horizontal($content-padding, null);
  73. }
  74. ion-app.#{$mode} [padding-right] {
  75. @include padding-horizontal(null, $content-padding);
  76. }
  77. ion-app.#{$mode} [padding-bottom] {
  78. @include padding(null, null, $content-padding, null);
  79. }
  80. ion-app.#{$mode} [padding-vertical] {
  81. @include padding($content-padding, null, $content-padding, null);
  82. }
  83. ion-app.#{$mode} [padding-horizontal] {
  84. @include padding-horizontal($content-padding);
  85. }
  86. // Scroll content should use safe-area-padding
  87. ion-app.#{$mode} [padding] .scroll-content {
  88. @include safe-area-padding($content-padding);
  89. }
  90. ion-app.#{$mode} [padding-top] .scroll-content {
  91. @include safe-area-padding($content-padding, null, null, null);
  92. }
  93. ion-app.#{$mode} [padding-left] .scroll-content {
  94. @include safe-area-padding-horizontal($content-padding, null);
  95. }
  96. ion-app.#{$mode} [padding-right] .scroll-content {
  97. @include safe-area-padding-horizontal(null, $content-padding);
  98. }
  99. ion-app.#{$mode} [padding-bottom] .scroll-content {
  100. @include safe-area-padding(null, null, $content-padding, null);
  101. }
  102. ion-app.#{$mode} [padding-vertical] .scroll-content {
  103. @include safe-area-padding($content-padding, null, $content-padding, null);
  104. }
  105. ion-app.#{$mode} [padding-horizontal] .scroll-content {
  106. @include safe-area-padding-horizontal($content-padding);
  107. }
  108. }
  109. // Content Margin
  110. // --------------------------------------------------
  111. ion-app [no-margin],
  112. ion-app [no-margin] .scroll-content {
  113. @include margin(0);
  114. }
  115. @mixin content-margin($mode, $content-margin) {
  116. ion-app.#{$mode} [margin],
  117. ion-app.#{$mode} [margin] .scroll-content {
  118. @include margin($content-margin);
  119. }
  120. ion-app.#{$mode} [margin-top],
  121. ion-app.#{$mode} [margin-top] .scroll-content {
  122. @include margin($content-margin, null, null, null);
  123. }
  124. ion-app.#{$mode} [margin-left],
  125. ion-app.#{$mode} [margin-left] .scroll-content {
  126. // scss-lint:disable PropertySpelling
  127. margin-left: $content-margin;
  128. }
  129. ion-app.#{$mode} [margin-start],
  130. ion-app.#{$mode} [margin-start] .scroll-content {
  131. @include margin-horizontal($content-margin, null);
  132. }
  133. ion-app.#{$mode} [margin-right],
  134. ion-app.#{$mode} [margin-right] .scroll-content {
  135. // scss-lint:disable PropertySpelling
  136. margin-right: $content-margin;
  137. }
  138. ion-app.#{$mode} [margin-end],
  139. ion-app.#{$mode} [margin-end] .scroll-content {
  140. @include margin-horizontal(null, $content-margin);
  141. }
  142. ion-app.#{$mode} [margin-bottom],
  143. ion-app.#{$mode} [margin-bottom] .scroll-content {
  144. @include margin(null, null, $content-margin, null);
  145. }
  146. ion-app.#{$mode} [margin-vertical],
  147. ion-app.#{$mode} [margin-vertical] .scroll-content {
  148. @include margin($content-margin, null, $content-margin, null);
  149. }
  150. ion-app.#{$mode} [margin-horizontal],
  151. ion-app.#{$mode} [margin-horizontal] .scroll-content {
  152. @include margin-horizontal($content-margin);
  153. }
  154. }