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.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. /**
  35. * Remove background color and box-shadow for the context menu container.
  36. */
  37. .toolbox-button-wth-dialog.context-menu > div:nth-child(2) {
  38. background: transparent;
  39. box-shadow: none;
  40. overflow-y: initial;
  41. }
  42. .audio-preview > div:nth-child(2),
  43. .video-preview > div:nth-child(2) {
  44. margin-bottom: 4px;
  45. outline: none;
  46. padding: 0;
  47. }
  48. /**
  49. * The following selectors keep the chat modal full-size anywhere between 100px
  50. * and 580px for desktop or 680px for mobile.
  51. */
  52. @media (min-width: 100px) and (max-width: 320px) {
  53. .smiley-input {
  54. display: none;
  55. }
  56. .shift-right .focus-lock > div > div {
  57. @include full-size-modal-positioner();
  58. }
  59. .shift-right .focus-lock [role="dialog"] {
  60. @include full-size-modal-dialog();
  61. }
  62. }
  63. @media (min-width: 480px) and (max-width: 580px) {
  64. .shift-right .focus-lock > div > div {
  65. @include full-size-modal-positioner();
  66. }
  67. .shift-right .focus-lock [role="dialog"] {
  68. @include full-size-modal-dialog();
  69. }
  70. }
  71. @media (max-width: 580px) {
  72. // Override Atlaskit inline style for the modal background.
  73. // Important is unfortunately needed for that.
  74. .shift-right .focus-lock [role="dialog"][style] {
  75. background-color: $chatBackgroundColor !important;
  76. }
  77. // Remove Atlaskit padding from the chat dialog.
  78. .shift-right .focus-lock [role="dialog"] > div:first-child > div:nth-child(2) {
  79. padding: 0;
  80. }
  81. }
  82. div.Tooltip {
  83. color: #fff;
  84. font-size: 12px;
  85. line-height: 14px;
  86. padding: 8px;
  87. }
  88. // make modal full screen on landscape orientation
  89. @media (max-height: 420px) {
  90. .atlaskit-portal {
  91. .css-1oc7v0j {
  92. height: 100%;
  93. padding: 0;
  94. max-width: 100%;
  95. top: 0;
  96. width: 100%;
  97. &> div {
  98. height: 100%;
  99. }
  100. }
  101. }
  102. }