Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

_atlaskit_overrides.scss 3.7KB

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