popover.ios.scss 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. @import "../../themes/ionic.globals";
  2. // iOS Popover
  3. // --------------------------------------------------
  4. /// @prop - Width of the popover content
  5. $popover-ios-width: 200px !default;
  6. /// @prop - Min width of the popover content
  7. $popover-ios-min-width: 0 !default;
  8. /// @prop - Minimum height of the popover content
  9. $popover-ios-min-height: 0 !default;
  10. /// @prop - Maximum height of the popover content
  11. $popover-ios-max-height: 90% !default;
  12. /// @prop - Border radius of the popover content
  13. $popover-ios-border-radius: 10px !default;
  14. /// @prop - Text color of the popover content
  15. $popover-ios-text-color: $text-ios-color !default;
  16. /// @prop - Background of the popover content
  17. $popover-ios-background: $background-ios-color !default;
  18. /// @prop - Background of the popover arrow
  19. $popover-ios-arrow-background: $popover-ios-background !default;
  20. .popover-ios .popover-content {
  21. @include border-radius($popover-ios-border-radius);
  22. width: $popover-ios-width;
  23. min-width: $popover-ios-min-width;
  24. min-height: $popover-ios-min-height;
  25. max-height: $popover-ios-max-height;
  26. color: $popover-ios-text-color;
  27. background: $popover-ios-background;
  28. }
  29. // Popover Arrow
  30. // -----------------------------------------
  31. .popover-ios .popover-arrow {
  32. position: absolute;
  33. display: block;
  34. overflow: hidden;
  35. width: 20px;
  36. height: 10px;
  37. }
  38. .popover-ios .popover-arrow::after {
  39. @include position(3px, null, null, 3px);
  40. @include border-radius(3px);
  41. position: absolute;
  42. z-index: $z-index-overlay-wrapper;
  43. width: 14px;
  44. height: 14px;
  45. background-color: $popover-ios-arrow-background;
  46. content: "";
  47. transform: rotate(45deg);
  48. }
  49. .popover-ios.popover-bottom .popover-arrow {
  50. top: auto;
  51. bottom: -10px;
  52. }
  53. .popover-ios.popover-bottom .popover-arrow::after {
  54. top: -6px;
  55. }
  56. .popover-ios {
  57. .item-ios {
  58. @include padding-horizontal($item-ios-padding-start, null);
  59. }
  60. .item-ios[detail-push] .item-inner,
  61. button.item-ios:not([detail-none]) .item-inner,
  62. a.item-ios:not([detail-none]) .item-inner {
  63. @include background-position(end, $item-ios-padding-end - 2, center);
  64. }
  65. }