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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. .modal-dialog-form {
  25. /**
  26. * Override @atlaskit/dropdown-menu styling when in a modal because the
  27. * dropdown backgrounds clash with the modal backgrounds.
  28. */
  29. .dropdown-menu div[style*="transform"] {
  30. outline: 1px solid #455166;
  31. }
  32. }
  33. /**
  34. * Override @atlaskit/modal-dialog header styling
  35. */
  36. .atlaskit-portal [role="dialog"] header {
  37. .jitsi-icon {
  38. cursor: pointer;
  39. }
  40. .jitsi-icon svg {
  41. fill: #B8C7E0;
  42. }
  43. }
  44. /**
  45. * Make header close button more easily tappable on mobile.
  46. */
  47. .mobile-browser .atlaskit-portal [role="dialog"] header .jitsi-icon {
  48. display: grid;
  49. place-items: center;
  50. height: 48px;
  51. width: 48px;
  52. background: #2a3a4b;
  53. border-radius: 3px;
  54. }
  55. /**
  56. * Override @atlaskit/theme styling for the top toolbar so it displays over
  57. * the video thumbnail while obscuring as little as possible.
  58. */
  59. .videocontainer__toptoolbar > div > div {
  60. background: none;
  61. }
  62. /**
  63. * Keep overflow menu within screen vertical bounds and make it scrollable.
  64. */
  65. .toolbox-button-wth-dialog > div:nth-child(2) {
  66. max-height: calc(100vh - #{$newToolbarSizeWithPadding} - 46px);
  67. margin-bottom: 4px;
  68. overflow-y: auto;
  69. }
  70. .audio-preview > div:nth-child(2),
  71. .video-preview > div:nth-child(2) {
  72. margin-bottom: 4px;
  73. outline: none;
  74. padding: 0;
  75. }
  76. /**
  77. * The following selectors keep the chat modal full-size anywhere between 100px
  78. * and 580px for desktop or 680px for mobile.
  79. */
  80. @media (min-width: 100px) and (max-width: 320px) {
  81. .smiley-input {
  82. display: none;
  83. }
  84. .shift-right .focus-lock > div > div {
  85. @include full-size-modal-positioner();
  86. }
  87. .shift-right .focus-lock [role="dialog"] {
  88. @include full-size-modal-dialog();
  89. }
  90. }
  91. @media (min-width: 480px) and (max-width: 580px) {
  92. .shift-right .focus-lock > div > div {
  93. @include full-size-modal-positioner();
  94. }
  95. .shift-right .focus-lock [role="dialog"] {
  96. @include full-size-modal-dialog();
  97. }
  98. }
  99. @media (min-width: 580px) and (max-width: 680px) {
  100. .mobile-browser {
  101. &.shift-right .focus-lock > div > div {
  102. @include full-size-modal-positioner();
  103. }
  104. &.shift-right .focus-lock [role="dialog"] {
  105. @include full-size-modal-dialog();
  106. }
  107. }
  108. }
  109. // Override Atlaskit inline style for the modal background.
  110. // Important is unfortunately needed for that.
  111. .shift-right .focus-lock [role="dialog"][style] {
  112. background-color: $chatBackgroundColor !important;
  113. }
  114. // Remove Atlaskit padding from the chat dialog.
  115. .shift-right .focus-lock [role="dialog"] > div:first-child > div:nth-child(2) {
  116. padding: 0;
  117. }
  118. div.Tooltip {
  119. color: #fff;
  120. font-size: 12px;
  121. line-height: 14px;
  122. padding: 8px;
  123. }