123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. @import "../../themes/ionic.globals";
  2. // Toolbar
  3. // --------------------------------------------------
  4. ion-toolbar {
  5. position: relative;
  6. z-index: $z-index-toolbar;
  7. }
  8. .toolbar {
  9. display: flex;
  10. overflow: hidden;
  11. flex-direction: row;
  12. align-items: center;
  13. justify-content: space-between;
  14. width: 100%;
  15. contain: content;
  16. }
  17. .toolbar-background {
  18. @include position(0, null, null, 0);
  19. position: absolute;
  20. z-index: $z-index-toolbar-background;
  21. width: 100%;
  22. height: 100%;
  23. border: 0;
  24. transform: translateZ(0);
  25. pointer-events: none;
  26. contain: strict;
  27. }
  28. ion-title {
  29. display: flex;
  30. flex: 1;
  31. align-items: center;
  32. transform: translateZ(0);
  33. }
  34. .toolbar-title {
  35. display: block;
  36. overflow: hidden;
  37. width: 100%;
  38. text-overflow: ellipsis;
  39. white-space: nowrap;
  40. }
  41. ion-buttons {
  42. @include margin(0, .2rem);
  43. display: block;
  44. transform: translateZ(0);
  45. pointer-events: none;
  46. }
  47. ion-buttons button,
  48. ion-buttons a,
  49. ion-buttons input,
  50. ion-buttons textarea,
  51. ion-buttons div {
  52. pointer-events: auto;
  53. }
  54. // Transparent Toolbar
  55. // --------------------------------------------------
  56. .toolbar[transparent] .toolbar-background {
  57. border-color: transparent;
  58. background: transparent;
  59. }
  60. // TODO this is a temp hack to fix segment overlapping ion-nav-item
  61. ion-buttons,
  62. .bar-button-menutoggle {
  63. z-index: 99;
  64. transform: translateZ(0);
  65. }
  66. // Navbar
  67. // --------------------------------------------------
  68. ion-navbar.toolbar {
  69. display: flex;
  70. transform: translateZ(0);
  71. }