You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_atlaskit_overrides.scss 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /**
  2. * Mixins that mimic the way Atlaskit fills the screen with modals at low screen widths.
  3. */
  4. @mixin full-size-modal-positioner() {
  5. height: 100%;
  6. left: 0;
  7. position: fixed;
  8. top: 0;
  9. max-width: 100%;
  10. width: 100%;
  11. }
  12. @mixin full-size-modal-dialog() {
  13. height: 100%;
  14. max-height: 100%;
  15. border-radius: 0;
  16. }
  17. /**
  18. * Move the @atlaskit/flag container up a little bit so it does not cover the
  19. * toolbar with the first notification.
  20. */
  21. .atlaskit-portal > #notifications-container {
  22. bottom: calc(#{$newToolbarSizeWithPadding}) !important;
  23. }
  24. /**
  25. * Keep overflow menu within screen vertical bounds and make it scrollable.
  26. */
  27. .toolbox-button-wth-dialog > div:nth-child(2) {
  28. background: $menuBG;
  29. max-height: calc(100vh - #{$newToolbarSizeWithPadding} - 46px);
  30. margin-bottom: 4px;
  31. padding: 0;
  32. overflow-y: auto;
  33. }
  34. .audio-preview > div:nth-child(2),
  35. .video-preview > div:nth-child(2),
  36. .reactions-menu-popup > div:nth-child(2) {
  37. margin-bottom: 4px;
  38. outline: none;
  39. padding: 0;
  40. }
  41. .reactions-menu-popup > div:nth-child(2) {
  42. margin-bottom: 6px;
  43. box-shadow: none;
  44. }
  45. /**
  46. * The following selectors keep the chat modal full-size anywhere between 100px
  47. * and 580px for desktop or 680px for mobile.
  48. */
  49. @media (min-width: 100px) and (max-width: 320px) {
  50. .smiley-input {
  51. display: none;
  52. }
  53. .shift-right .focus-lock > div > div {
  54. @include full-size-modal-positioner();
  55. }
  56. .shift-right .focus-lock [role="dialog"] {
  57. @include full-size-modal-dialog();
  58. }
  59. }
  60. @media (min-width: 480px) and (max-width: 580px) {
  61. .shift-right .focus-lock > div > div {
  62. @include full-size-modal-positioner();
  63. }
  64. .shift-right .focus-lock [role="dialog"] {
  65. @include full-size-modal-dialog();
  66. }
  67. }
  68. @media (max-width: 580px) {
  69. // Override Atlaskit inline style for the modal background.
  70. // Important is unfortunately needed for that.
  71. .shift-right .focus-lock [role="dialog"][style] {
  72. background-color: $chatBackgroundColor !important;
  73. }
  74. // Remove Atlaskit padding from the chat dialog.
  75. .shift-right .focus-lock [role="dialog"] > div:first-child > div:nth-child(2) {
  76. padding: 0;
  77. }
  78. }
  79. div.Tooltip {
  80. color: #fff;
  81. font-size: 12px;
  82. line-height: 14px;
  83. padding: 8px;
  84. }
  85. // make modal full screen on landscape orientation
  86. @media (max-height: 420px) {
  87. .atlaskit-portal {
  88. .css-1oc7v0j {
  89. height: 100%;
  90. padding: 0;
  91. max-width: 100%;
  92. top: 0;
  93. width: 100%;
  94. &> div {
  95. height: 100%;
  96. }
  97. }
  98. }
  99. }