UI for Zipcoin Blue

segment.wp.scss 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. @import "../../themes/ionic.globals.wp";
  2. // Windows Segment
  3. // --------------------------------------------------
  4. /// @prop - Background of the segment button
  5. $segment-button-wp-background-color: transparent !default;
  6. /// @prop - Text color of the activated segment button
  7. $segment-button-wp-text-color-activated: $toolbar-wp-text-color !default;
  8. // deprecated
  9. $segment-button-wp-padding: null !default;
  10. /// @prop - Padding top of the segment button
  11. $segment-button-wp-padding-top: 0 !default;
  12. /// @prop - Padding end of the segment button
  13. $segment-button-wp-padding-end: 6px !default;
  14. /// @prop - Padding bottom of the segment button
  15. $segment-button-wp-padding-bottom: $segment-button-wp-padding-top !default;
  16. /// @prop - Padding start of the segment button
  17. $segment-button-wp-padding-start: $segment-button-wp-padding-end !default;
  18. /// @prop - Height of the segment button
  19. $segment-button-wp-height: 4rem !default;
  20. /// @prop - Line height of the segment button
  21. $segment-button-wp-line-height: 4rem !default;
  22. /// @prop - Font size of the segment button
  23. $segment-button-wp-font-size: 1.3rem !default;
  24. /// @prop - Text transform of the segment button
  25. $segment-button-wp-text-transform: uppercase !default;
  26. /// @prop - Font weight of the segment button
  27. $segment-button-wp-font-weight: bold !default;
  28. /// @prop - Opacity of the segment button
  29. $segment-button-wp-opacity: .5 !default;
  30. /// @prop - Opacity of the activated segment button
  31. $segment-button-wp-opacity-activated: 1 !default;
  32. /// @prop - Opacity of the disabled segment button
  33. $segment-button-wp-opacity-disabled: .3 !default;
  34. /// @prop - Size of an icon in the segment button
  35. $segment-button-wp-icon-size: 2.6rem !default;
  36. /// @prop - Line height of an icon in the segment button
  37. $segment-button-wp-icon-line-height: $segment-button-wp-line-height !default;
  38. /// @prop - Position of the buttons in the segment
  39. $segment-button-wp-buttons-justify-content: flex-start !default;
  40. .segment-wp {
  41. justify-content: $segment-button-wp-buttons-justify-content;
  42. }
  43. .segment-wp .segment-button {
  44. height: $segment-button-wp-height;
  45. font-size: $segment-button-wp-font-size;
  46. font-weight: $segment-button-wp-font-weight;
  47. line-height: $segment-button-wp-line-height;
  48. text-transform: $segment-button-wp-text-transform;
  49. color: $segment-button-wp-text-color-activated;
  50. background-color: $segment-button-wp-background-color;
  51. opacity: $segment-button-wp-opacity;
  52. @include deprecated-variable(padding, $segment-button-wp-padding) {
  53. @include padding($segment-button-wp-padding-top, $segment-button-wp-padding-end, $segment-button-wp-padding-bottom, $segment-button-wp-padding-start);
  54. }
  55. &.segment-activated {
  56. opacity: $segment-button-wp-opacity-activated;
  57. }
  58. ion-icon {
  59. font-size: $segment-button-wp-icon-size;
  60. line-height: $segment-button-wp-icon-line-height;
  61. }
  62. }
  63. .segment-wp.segment-disabled,
  64. .segment-wp .segment-button-disabled {
  65. opacity: $segment-button-wp-opacity-disabled;
  66. pointer-events: none;
  67. }
  68. .toolbar {
  69. .segment-wp {
  70. @include margin(0, auto);
  71. }
  72. }
  73. // Windows Segment Button Mixin
  74. // --------------------------------------------------
  75. @mixin wp-segment-button($color-name, $color-base) {
  76. .segment-wp-#{$color-name} .segment-button {
  77. color: $color-base;
  78. &.activated,
  79. &.segment-activated {
  80. border-color: $color-base;
  81. color: $color-base;
  82. opacity: $segment-button-wp-opacity-activated;
  83. }
  84. }
  85. }
  86. // Windows Segment Color Generation
  87. // --------------------------------------------------
  88. @each $color-name, $color-base, $color-contrast in get-colors($colors-wp) {
  89. @include wp-segment-button($color-name, $color-base);
  90. }