|
6 | 6 | /* Suggest */ |
7 | 7 | .monaco-editor .suggest-widget { |
8 | 8 | z-index: 40; |
| 9 | + width: 430px; |
9 | 10 | } |
10 | 11 |
|
11 | 12 | .monaco-editor .suggest-widget.docs-expanded { |
12 | 13 | width: 660px; |
13 | 14 | } |
14 | 15 |
|
15 | | -.monaco-editor .suggest-widget.docs-expanded > .tree { |
16 | | - width: 330px; |
17 | | -} |
18 | | - |
19 | | -.monaco-editor .suggest-widget > .details { |
20 | | - /* .details does not use border-box, so subtract the border height here (2px). This is the case |
21 | | - because the height of .details is set prorammatically based on .header and .docs, we don't want |
22 | | - our JS to care about the size of the border (which changes based on theme type). */ |
23 | | - width: 328px; |
24 | | -} |
25 | | - |
26 | | -.monaco-editor .suggest-widget > .details, |
27 | | -.monaco-editor .suggest-widget > .tree { |
28 | | - border-style: solid; |
29 | | - border-width: 1px; |
30 | | -} |
31 | | - |
32 | | -.monaco-editor .suggest-widget, |
33 | | -.monaco-editor .suggest-widget > .tree, |
34 | | -.monaco-editor .suggest-widget.small.docs-expanded > .tree, |
35 | | -.monaco-editor .suggest-widget.small > .details { |
36 | | - width: 430px; |
37 | | -} |
38 | | - |
39 | 16 | .monaco-editor .suggest-widget.visible { |
40 | 17 | -webkit-transition: left .05s ease-in-out; |
41 | 18 | -moz-transition: left .05s ease-in-out; |
|
49 | 26 | border-width: 1px; |
50 | 27 | } |
51 | 28 |
|
| 29 | +/** Styles for the list element **/ |
52 | 30 | .monaco-editor .suggest-widget > .tree { |
53 | 31 | height: 100%; |
| 32 | + width: 430px; |
54 | 33 | float: left; |
55 | 34 | box-sizing: border-box; |
| 35 | + border-style: solid; |
| 36 | + border-width: 1px; |
56 | 37 | } |
57 | 38 |
|
58 | 39 | .monaco-editor .suggest-widget.list-right > .tree { |
|
63 | 44 | float: none; |
64 | 45 | } |
65 | 46 |
|
| 47 | +.monaco-editor .suggest-widget.docs-expanded > .tree { |
| 48 | + width: 330px; |
| 49 | +} |
| 50 | + |
| 51 | +.monaco-editor .suggest-widget.small.docs-expanded > .tree { |
| 52 | + width: 430px; |
| 53 | +} |
| 54 | + |
| 55 | +/** Styles for each row in the list element **/ |
| 56 | + |
66 | 57 | .monaco-editor .suggest-widget .monaco-list .monaco-list-row { |
67 | 58 | display: flex; |
68 | 59 | -mox-box-sizing: border-box; |
|
90 | 81 | font-weight: bold; |
91 | 82 | } |
92 | 83 |
|
| 84 | +/** Icon styles **/ |
| 85 | + |
93 | 86 | .monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .close, |
94 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .docs-details { |
| 87 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .readMore { |
95 | 88 | opacity: 0.6; |
96 | 89 | background-position: center center; |
97 | 90 | background-repeat: no-repeat; |
|
104 | 97 | float: right; |
105 | 98 | } |
106 | 99 |
|
107 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .docs-details { |
| 100 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .readMore { |
108 | 101 | background-image: url('./info.svg'); |
109 | 102 | } |
110 | 103 |
|
111 | 104 | .monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .close:hover, |
112 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .docs-details:hover { |
| 105 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .readMore:hover { |
113 | 106 | opacity: 1; |
114 | 107 | } |
115 | 108 |
|
| 109 | +/** Type Info and icon next to the label in the focused completion item **/ |
| 110 | + |
116 | 111 | .monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .type-label { |
117 | 112 | margin-left: 0.8em; |
118 | 113 | flex: 1; |
|
126 | 121 | display: inline; |
127 | 122 | } |
128 | 123 |
|
129 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .docs-details, |
| 124 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .readMore, |
130 | 125 | .monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .type-label, |
131 | | -.monaco-editor .suggest-widget.docs-expanded .monaco-list .monaco-list-row.focused > .contents > .main > .docs-details, |
| 126 | +.monaco-editor .suggest-widget.docs-expanded .monaco-list .monaco-list-row.focused > .contents > .main > .readMore, |
132 | 127 | .monaco-editor .suggest-widget.docs-expanded .monaco-list .monaco-list-row.focused > .contents > .main > .type-label { |
133 | 128 | display: none; |
134 | 129 | } |
135 | 130 |
|
136 | | -.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .docs-details, |
| 131 | +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .readMore, |
137 | 132 | .monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .type-label, |
138 | 133 | .monaco-editor .suggest-widget.docs-expanded.small .monaco-list .monaco-list-row.focused > .contents > .main > .type-label { |
139 | 134 | display: inline; |
140 | 135 | } |
141 | 136 |
|
| 137 | +/** Styles for each row in the list **/ |
| 138 | + |
142 | 139 | .monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon { |
143 | 140 | display: block; |
144 | 141 | height: 16px; |
|
184 | 181 | display: inline-block; |
185 | 182 | } |
186 | 183 |
|
| 184 | +/** Styles for the docs of the completion item in focus **/ |
187 | 185 | .monaco-editor .suggest-widget .details { |
188 | 186 | max-height: 216px; |
189 | 187 | display: flex; |
190 | 188 | flex-direction: column; |
191 | 189 | cursor: default; |
| 190 | + /* .details does not use border-box, so subtract the border height here (2px). This is the case |
| 191 | + because the height of .details is set prorammatically based on .header and .docs, we don't want |
| 192 | + our JS to care about the size of the border (which changes based on theme type). */ |
| 193 | + width: 328px; |
| 194 | + border-style: solid; |
| 195 | + border-width: 1px; |
| 196 | +} |
| 197 | + |
| 198 | +.monaco-editor .suggest-widget.small > .details { |
| 199 | + width: 430px; |
192 | 200 | } |
193 | 201 |
|
194 | 202 | .monaco-editor .suggest-widget .details.no-docs { |
|
0 commit comments