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

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. box-shadow: none;
  38. .jitsi-icon {
  39. cursor: pointer;
  40. }
  41. .jitsi-icon svg {
  42. fill: #B8C7E0;
  43. }
  44. }
  45. /**
  46. * Override @atlaskit/modal-dialog footer styling.
  47. */
  48. .atlaskit-portal [role="dialog"] footer {
  49. box-shadow: none;
  50. }
  51. /**
  52. * Make header close button more easily tappable on mobile.
  53. */
  54. .mobile-browser .atlaskit-portal [role="dialog"] header .jitsi-icon {
  55. display: grid;
  56. place-items: center;
  57. height: 48px;
  58. width: 48px;
  59. background: #2a3a4b;
  60. border-radius: 3px;
  61. }
  62. /**
  63. * Override @atlaskit/theme styling for the top toolbar so it displays over
  64. * the video thumbnail while obscuring as little as possible.
  65. */
  66. .videocontainer__toptoolbar > div > div {
  67. background: none;
  68. }
  69. /**
  70. * Keep overflow menu within screen vertical bounds and make it scrollable.
  71. */
  72. .toolbox-button-wth-dialog > div:nth-child(2) {
  73. background: $menuBG;
  74. max-height: calc(100vh - #{$newToolbarSizeWithPadding} - 46px);
  75. margin-bottom: 4px;
  76. padding: 0;
  77. overflow-y: auto;
  78. }
  79. .audio-preview > div:nth-child(2),
  80. .video-preview > div:nth-child(2) {
  81. margin-bottom: 4px;
  82. outline: none;
  83. padding: 0;
  84. }
  85. /**
  86. * The following selectors keep the chat modal full-size anywhere between 100px
  87. * and 580px for desktop or 680px for mobile.
  88. */
  89. @media (min-width: 100px) and (max-width: 320px) {
  90. .smiley-input {
  91. display: none;
  92. }
  93. .shift-right .focus-lock > div > div {
  94. @include full-size-modal-positioner();
  95. }
  96. .shift-right .focus-lock [role="dialog"] {
  97. @include full-size-modal-dialog();
  98. }
  99. }
  100. @media (min-width: 480px) and (max-width: 580px) {
  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. @media (max-width: 580px) {
  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. }
  119. div.Tooltip {
  120. color: #fff;
  121. font-size: 12px;
  122. line-height: 14px;
  123. padding: 8px;
  124. }