findWidget.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. /* Find widget */
  6. .monaco-editor .find-widget {
  7. position: absolute;
  8. z-index: 35;
  9. height: 33px;
  10. overflow: hidden;
  11. line-height: 19px;
  12. transition: transform 200ms linear;
  13. padding: 0 4px;
  14. box-sizing: border-box;
  15. transform: translateY(calc(-100% - 10px)); /* shadow (10px) */
  16. }
  17. .monaco-editor .find-widget textarea {
  18. margin: 0px;
  19. }
  20. .monaco-editor .find-widget.hiddenEditor {
  21. display: none;
  22. }
  23. /* Find widget when replace is toggled on */
  24. .monaco-editor .find-widget.replaceToggled > .replace-part {
  25. display: flex;
  26. }
  27. .monaco-editor .find-widget.visible {
  28. transform: translateY(0);
  29. }
  30. .monaco-editor .find-widget .monaco-inputbox.synthetic-focus {
  31. outline: 1px solid -webkit-focus-ring-color;
  32. outline-offset: -1px;
  33. }
  34. .monaco-editor .find-widget .monaco-inputbox .input {
  35. background-color: transparent;
  36. min-height: 0;
  37. }
  38. .monaco-editor .find-widget .monaco-findInput .input {
  39. font-size: 13px;
  40. }
  41. .monaco-editor .find-widget > .find-part,
  42. .monaco-editor .find-widget > .replace-part {
  43. margin: 4px 0 0 17px;
  44. font-size: 12px;
  45. display: flex;
  46. }
  47. .monaco-editor .find-widget > .find-part .monaco-inputbox,
  48. .monaco-editor .find-widget > .replace-part .monaco-inputbox {
  49. min-height: 25px;
  50. }
  51. .monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .mirror {
  52. padding-right: 22px;
  53. }
  54. .monaco-editor .find-widget > .find-part .monaco-inputbox > .ibwrapper > .input,
  55. .monaco-editor .find-widget > .find-part .monaco-inputbox > .ibwrapper > .mirror,
  56. .monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .input,
  57. .monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .mirror {
  58. padding-top: 2px;
  59. padding-bottom: 2px;
  60. }
  61. .monaco-editor .find-widget > .find-part .find-actions {
  62. height: 25px;
  63. display: flex;
  64. align-items: center;
  65. }
  66. .monaco-editor .find-widget > .replace-part .replace-actions {
  67. height: 25px;
  68. display: flex;
  69. align-items: center;
  70. }
  71. .monaco-editor .find-widget .monaco-findInput {
  72. vertical-align: middle;
  73. display: flex;
  74. flex:1;
  75. }
  76. .monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element {
  77. /* Make sure textarea inherits the width correctly */
  78. width: 100%;
  79. }
  80. .monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical {
  81. /* Hide vertical scrollbar */
  82. opacity: 0;
  83. }
  84. .monaco-editor .find-widget .matchesCount {
  85. display: flex;
  86. flex: initial;
  87. margin: 0 0 0 3px;
  88. padding: 2px 0 0 2px;
  89. height: 25px;
  90. vertical-align: middle;
  91. box-sizing: border-box;
  92. text-align: center;
  93. line-height: 23px;
  94. }
  95. .monaco-editor .find-widget .button {
  96. width: 16px;
  97. height: 16px;
  98. padding: 3px;
  99. border-radius: 5px;
  100. display: flex;
  101. flex: initial;
  102. margin-left: 3px;
  103. background-position: center center;
  104. background-repeat: no-repeat;
  105. cursor: pointer;
  106. display: flex;
  107. align-items: center;
  108. justify-content: center;
  109. }
  110. /* find in selection button */
  111. .monaco-editor .find-widget .codicon-find-selection {
  112. width: 22px;
  113. height: 22px;
  114. padding: 3px;
  115. border-radius: 5px;
  116. }
  117. .monaco-editor .find-widget .button.left {
  118. margin-left: 0;
  119. margin-right: 3px;
  120. }
  121. .monaco-editor .find-widget .button.wide {
  122. width: auto;
  123. padding: 1px 6px;
  124. top: -1px;
  125. }
  126. .monaco-editor .find-widget .button.toggle {
  127. position: absolute;
  128. top: 0;
  129. left: 3px;
  130. width: 18px;
  131. height: 100%;
  132. border-radius: 0;
  133. box-sizing: border-box;
  134. }
  135. .monaco-editor .find-widget .button.toggle.disabled {
  136. display: none;
  137. }
  138. .monaco-editor .find-widget .disabled {
  139. opacity: 0.3;
  140. cursor: default;
  141. }
  142. .monaco-editor .find-widget > .replace-part {
  143. display: none;
  144. }
  145. .monaco-editor .find-widget > .replace-part > .monaco-findInput {
  146. position: relative;
  147. display: flex;
  148. vertical-align: middle;
  149. flex: auto;
  150. flex-grow: 0;
  151. flex-shrink: 0;
  152. }
  153. .monaco-editor .find-widget > .replace-part > .monaco-findInput > .controls {
  154. position: absolute;
  155. top: 3px;
  156. right: 2px;
  157. }
  158. /* REDUCED */
  159. .monaco-editor .find-widget.reduced-find-widget .matchesCount {
  160. display:none;
  161. }
  162. /* NARROW (SMALLER THAN REDUCED) */
  163. .monaco-editor .find-widget.narrow-find-widget {
  164. max-width: 257px !important;
  165. }
  166. /* COLLAPSED (SMALLER THAN NARROW) */
  167. .monaco-editor .find-widget.collapsed-find-widget {
  168. max-width: 170px !important;
  169. }
  170. .monaco-editor .find-widget.collapsed-find-widget .button.previous,
  171. .monaco-editor .find-widget.collapsed-find-widget .button.next,
  172. .monaco-editor .find-widget.collapsed-find-widget .button.replace,
  173. .monaco-editor .find-widget.collapsed-find-widget .button.replace-all,
  174. .monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {
  175. display:none;
  176. }
  177. .monaco-editor .findMatch {
  178. animation-duration: 0;
  179. animation-name: inherit !important;
  180. }
  181. .monaco-editor .find-widget .monaco-sash {
  182. left: 0 !important;
  183. }
  184. .monaco-editor.hc-black .find-widget .button:before {
  185. position: relative;
  186. top: 1px;
  187. left: 2px;
  188. }