a zip code crypto-currency system good for red ONLY

tabs.ios.scss 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. @import "../../themes/ionic.globals.ios";
  2. // iOS Tabs
  3. // --------------------------------------------------
  4. /// @prop - Border on the tabbar (border-top when [tabsPlacement=bottom] and border-bottom when [tabsPlacement=top])
  5. $tabs-ios-border: $hairlines-width solid $tabs-ios-border-color !default;
  6. // deprecated
  7. $tabs-ios-tab-padding: null !default;
  8. /// @prop - Padding top on the tab button
  9. $tabs-ios-tab-padding-top: 0 !default;
  10. /// @prop - Padding end on the tab button
  11. $tabs-ios-tab-padding-end: 2px !default;
  12. /// @prop - Padding bottom on the tab button
  13. $tabs-ios-tab-padding-bottom: $tabs-ios-tab-padding-top !default;
  14. /// @prop - Padding start on the tab button
  15. $tabs-ios-tab-padding-start: $tabs-ios-tab-padding-end !default;
  16. /// @prop - Max width of the tab button
  17. $tabs-ios-tab-max-width: 240px !default;
  18. /// @prop - Minimum height of the tab button
  19. $tabs-ios-tab-min-height: 49px !default;
  20. /// @prop - Text color of the inactive tab button
  21. $tabs-ios-tab-text-color: $tabs-ios-tab-color-inactive !default;
  22. /// @prop - Text color of the active tab button
  23. $tabs-ios-tab-text-color-active: $tabs-ios-tab-color-active !default;
  24. /// @prop - Icon color of the inactive tab button
  25. $tabs-ios-tab-icon-color: $tabs-ios-tab-color-inactive !default;
  26. /// @prop - Icon color of the active tab button
  27. $tabs-ios-tab-icon-color-active: $tabs-ios-tab-color-active !default;
  28. /// @prop - Font size of the tab button text
  29. $tabs-ios-tab-font-size: 10px !default;
  30. /// @prop - Font weight of the tab button text
  31. $tabs-ios-tab-font-weight: 500 !default;
  32. /// @prop - Size of the tab button icon
  33. $tabs-ios-tab-icon-size: 30px !default;
  34. .tabs-ios .tabbar {
  35. justify-content: center;
  36. border-top: $tabs-ios-border;
  37. background: $tabs-ios-background;
  38. }
  39. .tabs-ios[tabsPlacement=top] .tabbar {
  40. border-top: 0;
  41. border-bottom: $tabs-ios-border;
  42. }
  43. .tabs-ios .tab-button {
  44. max-width: $tabs-ios-tab-max-width;
  45. min-height: $tabs-ios-tab-min-height;
  46. font-size: $tabs-ios-tab-font-size;
  47. font-weight: $tabs-ios-tab-font-weight;
  48. color: $tabs-ios-tab-text-color;
  49. @include deprecated-variable(padding, $tabs-ios-tab-padding) {
  50. @include padding($tabs-ios-tab-padding-top, $tabs-ios-tab-padding-end, $tabs-ios-tab-padding-bottom, $tabs-ios-tab-padding-start);
  51. }
  52. }
  53. .tabs-ios .tab-button:hover:not(.disable-hover),
  54. .tabs-ios .tab-button[aria-selected=true] {
  55. color: $tabs-ios-tab-text-color-active;
  56. }
  57. .tabs-ios .tab-button[aria-selected=true] .tab-button-icon {
  58. color: $tabs-ios-tab-icon-color-active;
  59. }
  60. .tabs-ios .tab-button-text {
  61. @include margin(0, null, 1px, null);
  62. min-height: $tabs-ios-tab-font-size + 1;
  63. }
  64. .tabs-ios .has-title-only .tab-button-text {
  65. font-size: $tabs-ios-tab-font-size + 2;
  66. }
  67. .tabs-ios .tab-button-icon {
  68. @include margin(4px, null, 1px, null);
  69. min-width: $tabs-ios-tab-icon-size + 5;
  70. height: $tabs-ios-tab-icon-size;
  71. font-size: $tabs-ios-tab-icon-size;
  72. color: $tabs-ios-tab-icon-color;
  73. }
  74. .tabs-ios .tab-button-icon::before {
  75. vertical-align: top;
  76. }
  77. .tabs-ios[tabsLayout=icon-right] .tab-button .tab-button-text, // deprecated
  78. .tabs-ios[tabsLayout=icon-left] .tab-button .tab-button-text, // deprecated
  79. .tabs-ios[tabsLayout=icon-end] .tab-button .tab-button-text,
  80. .tabs-ios[tabsLayout=icon-start] .tab-button .tab-button-text {
  81. font-size: 1.4rem;
  82. line-height: 1.1;
  83. }
  84. .tabs-ios[tabsLayout=icon-right] .tab-button ion-icon, // deprecated
  85. .tabs-ios[tabsLayout=icon-left] .tab-button ion-icon, // deprecated
  86. .tabs-ios[tabsLayout=icon-end] .tab-button ion-icon,
  87. .tabs-ios[tabsLayout=icon-start] .tab-button ion-icon {
  88. min-width: 24px;
  89. height: 26px;
  90. font-size: 24px;
  91. }
  92. .tabs-ios[tabsLayout=icon-hide] .tab-button,
  93. .tabs-ios .tab-button.has-title-only {
  94. min-height: $tabs-ios-tab-min-height - 8;
  95. }
  96. .tabs-ios[tabsLayout=icon-hide] .tab-button .tab-button-text,
  97. .tabs-ios .tab-button.has-title-only .tab-button-text {
  98. @include margin(2px, 0);
  99. font-size: 1.4rem;
  100. line-height: 1.1;
  101. }
  102. .tabs-ios[tabsLayout=title-hide] .tab-button,
  103. .tabs-ios .tab-button.icon-only {
  104. min-height: $tabs-ios-tab-min-height - 8;
  105. }
  106. // iOS Tabbar Color Mixin
  107. // --------------------------------------------------
  108. @mixin tabbar-ios($color-name, $color-base, $color-contrast) {
  109. .tabs-ios-#{$color-name} .tabbar {
  110. border-color: darken($color-base, 10%);
  111. background-color: $color-base;
  112. }
  113. .tabs-ios-#{$color-name} .tab-button,
  114. .tabs-ios-#{$color-name} .tab-button-icon,
  115. .tabs-ios-#{$color-name} .tab-button:hover:not(.disable-hover),
  116. .tabs-ios-#{$color-name} .tab-button:hover:not(.disable-hover) .tab-button-icon {
  117. color: rgba($color-contrast, .7);
  118. }
  119. .tabs-ios-#{$color-name} .tab-button[aria-selected=true],
  120. .tabs-ios-#{$color-name} .tab-button[aria-selected=true] .tab-button-icon {
  121. color: $color-contrast;
  122. }
  123. }
  124. // iOS Tabbar Color Generation
  125. // --------------------------------------------------
  126. @each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
  127. @include tabbar-ios($color-name, $color-base, $color-contrast);
  128. }