a zip code crypto-currency system good for red ONLY

list.ios.scss 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. @import "../../themes/ionic.globals.ios";
  2. // iOS List
  3. // --------------------------------------------------
  4. /// @prop - Margin top of the list
  5. $list-ios-margin-top: 10px !default;
  6. // deprecated
  7. $list-ios-margin-right: 0 !default;
  8. /// @prop - Margin end of the list
  9. $list-ios-margin-end: $list-ios-margin-right !default;
  10. /// @prop - Margin bottom of the list
  11. $list-ios-margin-bottom: 32px !default;
  12. // deprecated
  13. $list-ios-margin-left: 0 !default;
  14. /// @prop - Margin start of the list
  15. $list-ios-margin-start: $list-ios-margin-left !default;
  16. /// @prop - Margin top of the inset list
  17. $list-inset-ios-margin-top: 16px !default;
  18. // deprecated
  19. $list-inset-ios-margin-right: 16px !default;
  20. /// @prop - Margin end of the inset list
  21. $list-inset-ios-margin-end: $list-inset-ios-margin-right !default;
  22. /// @prop - Margin bottom of the inset list
  23. $list-inset-ios-margin-bottom: 16px !default;
  24. // deprecated
  25. $list-inset-ios-margin-left: 16px !default;
  26. /// @prop - Margin start of the inset list
  27. $list-inset-ios-margin-start: $list-inset-ios-margin-left !default;
  28. /// @prop - Border radius of the inset list
  29. $list-inset-ios-border-radius: 4px !default;
  30. // deprecated
  31. $list-ios-header-padding-left: $item-ios-padding-start !default;
  32. /// @prop - Padding start of the header in a list
  33. $list-ios-header-padding-start: $list-ios-header-padding-left !default;
  34. /// @prop - Border bottom of the header in a list
  35. $list-ios-header-border-bottom: $hairlines-width solid $list-ios-border-color !default;
  36. /// @prop - Font size of the header in a list
  37. $list-ios-header-font-size: 1.2rem !default;
  38. /// @prop - Font weight of the header in a list
  39. $list-ios-header-font-weight: 500 !default;
  40. /// @prop - Letter spacing of the header in a list
  41. $list-ios-header-letter-spacing: .1rem !default;
  42. /// @prop - Text transform of the header in a list
  43. $list-ios-header-text-transform: uppercase !default;
  44. /// @prop - Text color of the header in a list
  45. $list-ios-header-color: #333 !default;
  46. /// @prop - Background color of the header in a list
  47. $list-ios-header-background-color: transparent !default;
  48. // iOS Default List
  49. // --------------------------------------------------
  50. .list-ios {
  51. @include margin(-1px, $list-ios-margin-end, $list-ios-margin-bottom, $list-ios-margin-start);
  52. }
  53. .list-ios > .item-block:first-child {
  54. border-top: $hairlines-width solid $list-ios-border-color;
  55. }
  56. .list-ios > .item-block:last-child,
  57. .list-ios > .item-wrapper:last-child .item-block {
  58. border-bottom: $hairlines-width solid $list-ios-border-color;
  59. }
  60. .list-ios > .item-block:last-child .item-inner,
  61. .list-ios > .item-wrapper:last-child .item-block .item-inner {
  62. border-bottom: 0;
  63. }
  64. .list-ios .item-block .item-inner {
  65. border-bottom: $hairlines-width solid $list-ios-border-color;
  66. }
  67. // If the item has the no-lines attribute remove the bottom border from:
  68. // the item itself (for last-child items)
  69. // the item-inner class (if it is not last)
  70. .list-ios .item[no-lines],
  71. .list-ios .item[no-lines] .item-inner {
  72. border-width: 0;
  73. }
  74. .list-ios ion-item-options {
  75. border-bottom: $hairlines-width solid $list-ios-border-color;
  76. }
  77. .list-ios ion-item-options .button {
  78. @include margin(0);
  79. @include border-radius(0);
  80. display: inline-flex;
  81. align-items: center;
  82. height: 100%;
  83. min-height: 100%;
  84. border: 0;
  85. box-sizing: border-box;
  86. }
  87. .list-ios ion-item-options .button::before {
  88. @include margin(0, auto);
  89. }
  90. .list-ios:not([inset]) + .list-ios:not([inset]) ion-list-header {
  91. @include margin(-$list-ios-margin-top, null, null, null);
  92. @include padding(0, null, null, null);
  93. }
  94. // iOS Inset List
  95. // --------------------------------------------------
  96. .list-ios[inset] {
  97. @include margin($list-inset-ios-margin-top, $list-inset-ios-margin-end, $list-inset-ios-margin-bottom, $list-inset-ios-margin-start);
  98. @include border-radius($list-inset-ios-border-radius);
  99. }
  100. .list-ios[inset] ion-list-header {
  101. background-color: $list-ios-background-color;
  102. }
  103. .list-ios[inset] .item {
  104. border-bottom: 1px solid $list-ios-border-color;
  105. }
  106. .list-ios[inset] .item-inner {
  107. border-bottom: 0;
  108. }
  109. .list-ios[inset] > .item:first-child,
  110. .list-ios[inset] > .item-wrapper:first-child .item {
  111. border-top: 0;
  112. }
  113. .list-ios[inset] > .item:last-child,
  114. .list-ios[inset] > .item-wrapper:last-child .item {
  115. border-bottom: 0;
  116. }
  117. .list-ios[inset] + ion-list[inset] {
  118. @include margin(0, null, null, null);
  119. }
  120. // iOS No Lines List
  121. // --------------------------------------------------
  122. .list-ios[no-lines] ion-list-header,
  123. .list-ios[no-lines] ion-item-options,
  124. .list-ios[no-lines] .item,
  125. .list-ios[no-lines] .item .item-inner {
  126. border-width: 0;
  127. }
  128. // iOS List Header
  129. // --------------------------------------------------
  130. .list-header-ios {
  131. @include padding-horizontal($list-ios-header-padding-start, null);
  132. @include safe-area-padding-horizontal($list-ios-header-padding-start, null);
  133. position: relative;
  134. border-bottom: $list-ios-header-border-bottom;
  135. font-size: $list-ios-header-font-size;
  136. font-weight: $list-ios-header-font-weight;
  137. letter-spacing: $list-ios-header-letter-spacing;
  138. text-transform: $list-ios-header-text-transform;
  139. color: $list-ios-header-color;
  140. background: $list-ios-header-background-color;
  141. }
  142. // Generate iOS List Header Colors
  143. // --------------------------------------------------
  144. @each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
  145. .list-header-ios-#{$color-name} {
  146. color: $color-contrast;
  147. background-color: $color-base;
  148. }
  149. }