UI for Zipcoin Blue

item.md.scss 7.1KB

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