a zip code crypto-currency system good for red ONLY

item.wp.scss 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. @import "../../themes/ionic.globals.wp";
  2. // Windows Item
  3. // --------------------------------------------------
  4. /// @prop - Font size of the item text
  5. $item-wp-body-text-font-size: 1.4rem !default;
  6. /// @prop - line height of the item text
  7. $item-wp-body-text-line-height: 1.5 !default;
  8. /// @prop - Background color of the item
  9. $item-wp-body-background-color: $list-wp-background-color !default;
  10. /// @prop - Color of the item text
  11. $item-wp-body-text-color: $list-wp-text-color !default;
  12. /// @prop - Color of the item paragraph
  13. $item-wp-paragraph-text-color: #666 !default;
  14. /// @prop - Font size of the item
  15. $item-wp-font-size: 1.6rem !default;
  16. /// @prop - Size of the avatar in the item
  17. $item-wp-avatar-size: 40px !default;
  18. /// @prop - Border radius of the avatar in the item
  19. $item-wp-avatar-border-radius: 50% !default;
  20. /// @prop - Size of the thumbnail in the item
  21. $item-wp-thumbnail-size: 80px !default;
  22. /// @prop - Shows the detail arrow icon on an item
  23. $item-wp-detail-push-show: false !default;
  24. /// @prop - Color of the detail arrow icon
  25. $item-wp-detail-push-color: $input-wp-border-color !default;
  26. /// @prop - Icon for the detail arrow
  27. $item-wp-detail-push-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M2,20l-2-2l8-8L0,2l2-2l10,10L2,20z' fill='#{$item-wp-detail-push-color}'/></svg>" !default;
  28. /// @prop - Color for the divider
  29. $item-wp-divider-color: $list-wp-text-color !default;
  30. /// @prop - Background for the divider
  31. $item-wp-divider-background: #fff !default;
  32. /// @prop - Bodrer bottom for the divider
  33. $item-wp-divider-border-bottom: 1px solid $list-wp-border-color !default;
  34. /// @prop - Font size for the divider
  35. $item-wp-divider-font-size: 2rem !default;
  36. /// @prop - Background for the sliding content
  37. $item-wp-sliding-content-background: $list-wp-background-color !default;
  38. .item-wp {
  39. @include padding-horizontal($item-wp-padding-start, 0);
  40. position: relative;
  41. font-size: $item-wp-font-size;
  42. font-weight: normal;
  43. text-transform: none;
  44. color: $item-wp-body-text-color;
  45. background-color: $item-wp-body-background-color;
  46. box-shadow: none;
  47. }
  48. .item-wp.activated {
  49. background-color: $list-wp-activated-background-color;
  50. }
  51. .item-wp[no-lines] {
  52. border-width: 0;
  53. }
  54. .item-wp h1 {
  55. @include margin(0, 0, 2px);
  56. font-size: 2.4rem;
  57. font-weight: normal;
  58. }
  59. .item-wp h2 {
  60. @include margin(2px, 0);
  61. font-size: 1.6rem;
  62. font-weight: normal;
  63. }
  64. .item-wp h3,
  65. .item-wp h4,
  66. .item-wp h5,
  67. .item-wp h6 {
  68. @include margin(2px, 0);
  69. font-size: 1.4rem;
  70. font-weight: normal;
  71. line-height: normal;
  72. }
  73. .item-wp p {
  74. @include margin(0, 0, 2px);
  75. overflow: inherit;
  76. font-size: 1.4rem;
  77. line-height: normal;
  78. text-overflow: inherit;
  79. color: $item-wp-paragraph-text-color;
  80. }
  81. .item-wp.item-block .item-inner {
  82. @include padding-horizontal(null, ($item-wp-padding-end / 2));
  83. border-bottom: 1px solid $list-wp-border-color;
  84. }
  85. // Windows Item Detail Push
  86. // --------------------------------------------------
  87. // Only show the forward arrow icon if true
  88. @if $item-wp-detail-push-show == true {
  89. .item-wp[detail-push] .item-inner,
  90. button.item-wp:not([detail-none]) .item-inner,
  91. a.item-wp:not([detail-none]) .item-inner {
  92. @include svg-background-image($item-wp-detail-push-svg, true);
  93. @include padding-horizontal(null, 32px);
  94. @include background-position(end, $item-wp-padding-end - 2, center);
  95. background-repeat: no-repeat;
  96. background-size: 14px 14px;
  97. }
  98. }
  99. // Windows Item Media
  100. // --------------------------------------------------
  101. .item-wp [item-left], // deprecated
  102. .item-wp [item-right], // deprecated
  103. .item-wp [item-start],
  104. .item-wp [item-end] {
  105. @include margin($item-wp-padding-media-top, ($item-wp-padding-end / 2), $item-wp-padding-media-bottom, 0);
  106. }
  107. .item-wp ion-icon[item-left], // deprecated
  108. .item-wp ion-icon[item-right], // deprecated
  109. .item-wp ion-icon[item-start],
  110. .item-wp ion-icon[item-end] {
  111. @include margin($item-wp-padding-icon-top, null, $item-wp-padding-icon-bottom, 0);
  112. }
  113. .item-wp .item-button {
  114. @include padding(0, .6em);
  115. height: 25px;
  116. font-size: 1.2rem;
  117. }
  118. .item-wp .item-button[icon-only] ion-icon,
  119. .item-wp .item-button[icon-only] {
  120. @include padding(0, 1px);
  121. }
  122. .item-wp[text-wrap] ion-label {
  123. font-size: $item-wp-body-text-font-size;
  124. line-height: $item-wp-body-text-line-height;
  125. }
  126. .item-wp ion-icon[item-left] + .item-inner, // deprecated
  127. .item-wp ion-icon[item-left] + .item-input, // deprecated
  128. .item-wp ion-icon[item-start] + .item-inner,
  129. .item-wp ion-icon[item-start] + .item-input {
  130. @include margin-horizontal(($item-wp-padding-start / 2), null);
  131. }
  132. .item-wp ion-avatar[item-left], // deprecated
  133. .item-wp ion-thumbnail[item-left], // deprecated
  134. .item-wp ion-avatar[item-start],
  135. .item-wp ion-thumbnail[item-start] {
  136. @include margin(($item-wp-padding-end / 2), $item-wp-padding-end, ($item-wp-padding-end / 2), 0);
  137. }
  138. .item-wp ion-avatar[item-right], // deprecated
  139. .item-wp ion-thumbnail[item-right], // deprecated
  140. .item-wp ion-avatar[item-end],
  141. .item-wp ion-thumbnail[item-end] {
  142. @include margin($item-wp-padding-end / 2);
  143. }
  144. // Windows Item Avatar
  145. // --------------------------------------------------
  146. .item-wp ion-avatar {
  147. min-width: $item-wp-avatar-size;
  148. min-height: $item-wp-avatar-size;
  149. }
  150. .item-wp ion-avatar ion-img,
  151. .item-wp ion-avatar img {
  152. @include border-radius($item-wp-avatar-border-radius);
  153. overflow: hidden;
  154. width: $item-wp-avatar-size;
  155. height: $item-wp-avatar-size;
  156. }
  157. // Windows Item Thumbnail
  158. // --------------------------------------------------
  159. .item-wp ion-thumbnail {
  160. min-width: $item-wp-thumbnail-size;
  161. min-height: $item-wp-thumbnail-size;
  162. }
  163. .item-wp ion-thumbnail ion-img,
  164. .item-wp ion-thumbnail img {
  165. width: $item-wp-thumbnail-size;
  166. height: $item-wp-thumbnail-size;
  167. }
  168. // Windows Item Divider
  169. // --------------------------------------------------
  170. .item-divider-wp {
  171. @include padding-horizontal($item-wp-padding-start, null);
  172. border-bottom: $item-wp-divider-border-bottom;
  173. font-size: $item-wp-divider-font-size;
  174. color: $item-wp-divider-color;
  175. background-color: $item-wp-divider-background;
  176. }
  177. // Generate Windows Item and Item Divider Colors
  178. // --------------------------------------------------
  179. @each $color-name, $color-base, $color-contrast in get-colors($colors-wp) {
  180. // If there is text with a color it should use this color
  181. // and override whatever item sets it to
  182. .item-wp .text-wp-#{$color-name} {
  183. color: $color-base;
  184. }
  185. .item-wp-#{$color-name},
  186. .item-divider-wp-#{$color-name} {
  187. color: $color-contrast;
  188. background-color: $color-base;
  189. p {
  190. color: $color-contrast;
  191. }
  192. &.activated {
  193. background-color: color-shade($color-base);
  194. }
  195. }
  196. }
  197. // Windows Item Sliding
  198. // --------------------------------------------------
  199. .list-wp ion-item-sliding {
  200. background-color: $item-wp-sliding-content-background;
  201. }