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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. * Override @atlaskit/theme styling for the top toolbar so it displays over
  26. * the video thumbnail while obscuring as little as possible.
  27. */
  28. .videocontainer__toptoolbar > div > div {
  29. background: none;
  30. }
  31. /**
  32. * Keep overflow menu within screen vertical bounds and make it scrollable.
  33. */
  34. .toolbox-button-wth-dialog > div:nth-child(2) {
  35. background: $menuBG;
  36. max-height: calc(100vh - #{$newToolbarSizeWithPadding} - 46px);
  37. margin-bottom: 4px;
  38. padding: 0;
  39. overflow-y: auto;
  40. }
  41. .audio-preview > div:nth-child(2),
  42. .video-preview > div:nth-child(2),
  43. .reactions-menu-popup > div:nth-child(2) {
  44. margin-bottom: 4px;
  45. outline: none;
  46. padding: 0;
  47. }
  48. .reactions-menu-popup > div:nth-child(2) {
  49. margin-bottom: 6px;
  50. box-shadow: none;
  51. }
  52. /**
  53. * The following selectors keep the chat modal full-size anywhere between 100px
  54. * and 580px for desktop or 680px for mobile.
  55. */
  56. @media (min-width: 100px) and (max-width: 320px) {
  57. .smiley-input {
  58. display: none;
  59. }
  60. .shift-right .focus-lock > div > div {
  61. @include full-size-modal-positioner();
  62. }
  63. .shift-right .focus-lock [role="dialog"] {
  64. @include full-size-modal-dialog();
  65. }
  66. }
  67. @media (min-width: 480px) and (max-width: 580px) {
  68. .shift-right .focus-lock > div > div {
  69. @include full-size-modal-positioner();
  70. }
  71. .shift-right .focus-lock [role="dialog"] {
  72. @include full-size-modal-dialog();
  73. }
  74. }
  75. @media (max-width: 580px) {
  76. // Override Atlaskit inline style for the modal background.
  77. // Important is unfortunately needed for that.
  78. .shift-right .focus-lock [role="dialog"][style] {
  79. background-color: $chatBackgroundColor !important;
  80. }
  81. // Remove Atlaskit padding from the chat dialog.
  82. .shift-right .focus-lock [role="dialog"] > div:first-child > div:nth-child(2) {
  83. padding: 0;
  84. }
  85. }
  86. div.Tooltip {
  87. color: #fff;
  88. font-size: 12px;
  89. line-height: 14px;
  90. padding: 8px;
  91. }