a zip code crypto-currency system good for red ONLY

item-sliding.scss 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. @import "../../themes/ionic.globals";
  2. // Item Sliding
  3. // --------------------------------------------------
  4. // The hidden right-side buttons that can be exposed under a list item with dragging.
  5. ion-item-sliding {
  6. position: relative;
  7. display: block;
  8. overflow: hidden;
  9. width: 100%;
  10. }
  11. ion-item-sliding .item {
  12. position: static;
  13. }
  14. ion-item-options {
  15. position: absolute;
  16. z-index: $z-index-item-options;
  17. display: none;
  18. height: 100%;
  19. font-size: 14px;
  20. visibility: hidden;
  21. @include multi-dir() {
  22. // scss-lint:disable PropertySpelling
  23. top: 0;
  24. right: 0;
  25. }
  26. @include ltr() {
  27. justify-content: flex-end;
  28. }
  29. @include rtl() {
  30. justify-content: flex-start;
  31. &:not([side=right]) {
  32. justify-content: flex-end;
  33. // scss-lint:disable PropertySpelling
  34. right: auto;
  35. left: 0;
  36. }
  37. }
  38. }
  39. ion-item-options[side=left] {
  40. @include multi-dir() {
  41. // scss-lint:disable PropertySpelling
  42. right: auto;
  43. left: 0;
  44. }
  45. @include ltr() {
  46. justify-content: flex-start;
  47. }
  48. @include rtl() {
  49. justify-content: flex-end;
  50. }
  51. }
  52. ion-item-options .button {
  53. @include margin(0);
  54. @include padding(0, .7em);
  55. @include border-radius(0);
  56. height: 100%;
  57. box-shadow: none;
  58. box-sizing: content-box;
  59. &:last-child {
  60. @include safe-area-padding-horizontal(null, .7em);
  61. }
  62. }
  63. ion-item-options:not([icon-left]) .button:not([icon-only]), // deprecated
  64. ion-item-options:not([icon-start]) .button:not([icon-only]) {
  65. .button-inner {
  66. flex-direction: column;
  67. }
  68. ion-icon {
  69. @include padding(null, 0, .3em, 0);
  70. }
  71. }
  72. ion-item-sliding.active-slide {
  73. @include rtl() {
  74. &.active-options-left ion-item-options:not([side=right]) {
  75. width: 100%;
  76. visibility: visible;
  77. }
  78. }
  79. .item,
  80. .item.activated {
  81. position: relative;
  82. z-index: $z-index-item-options + 1;
  83. opacity: 1;
  84. transition: transform 500ms cubic-bezier(.36, .66, .04, 1);
  85. pointer-events: none;
  86. will-change: transform;
  87. }
  88. ion-item-options {
  89. display: flex;
  90. }
  91. &.active-options-left ion-item-options[side=left],
  92. &.active-options-right ion-item-options:not([side=left]) {
  93. width: 100%;
  94. visibility: visible;
  95. }
  96. }
  97. // Item Expandable Animation
  98. // --------------------------------------------------
  99. button[expandable] {
  100. flex-shrink: 0;
  101. transition-duration: 0;
  102. transition-property: none;
  103. transition-timing-function: cubic-bezier(.65, .05, .36, 1);
  104. }
  105. ion-item-sliding.active-swipe-right button[expandable] {
  106. transition-duration: .6s;
  107. transition-property: padding-left;
  108. @include multi-dir() {
  109. // scss-lint:disable PropertySpelling
  110. padding-left: 90%;
  111. }
  112. @include ltr() {
  113. order: 1;
  114. }
  115. @include rtl() {
  116. order: -1;
  117. }
  118. }
  119. ion-item-sliding.active-swipe-left button[expandable] {
  120. transition-duration: .6s;
  121. transition-property: padding-right;
  122. @include multi-dir() {
  123. // scss-lint:disable PropertySpelling
  124. padding-right: 90%;
  125. }
  126. @include ltr() {
  127. order: -1;
  128. }
  129. @include rtl() {
  130. order: 1;
  131. }
  132. }