|
80 | 80 | div.plugin-bubble { background: linear-gradient(to bottom, #2a2a2a, #1f1f1f); border: 1px solid #333; border-left: 4px solid #4fc3f7; border-radius: 6px; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.3); overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
|
81 | 81 | div.plugin-header { font-size: 14px; font-weight: bold; color: #4fc3f7; padding: 10px 12px; cursor: pointer; user-select: none; position: relative; }
|
82 | 82 | span.plugin-indicator { position: absolute; right: 12px; top: 10px; font-size: 12px; transform-origin: center; transition: transform 0.3s ease; }
|
83 |
| - span.plugin-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 12px; } |
84 |
| - span.plugin-content.expended { padding: 10px 12px } |
85 |
| - span.plugin-content ul { list-style-type: none; padding-left: 0; margin: 0; } |
86 |
| - span.plugin-content ul li { margin-bottom: 4px; } |
87 |
| - span.plugin-content ul li span.plugin-prop-key { color: #bbbbbb; } |
88 |
| - span.plugin-content ul li span.plugin-prop-value { color: #ffffff; } |
| 83 | + div.plugin-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 12px; } |
| 84 | + div.plugin-content.expended { padding: 10px 12px } |
| 85 | + div.plugin-content ul { list-style-type: none; padding-left: 0; margin: 0; } |
| 86 | + div.plugin-content ul li { margin-bottom: 4px; } |
| 87 | + div.plugin-content ul li span.plugin-prop-key { color: #bbbbbb; } |
| 88 | + div.plugin-content ul li span.plugin-prop-value { color: #ffffff; } |
89 | 89 | #toggle-button { position: fixed; bottom: 10px; right: 10px; width: 32px; height: 32px; background: #333; border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; z-index: 9999998; box-shadow: 0 0 5px rgba(0,0,0,0.3); transition: opacity 0.2s ease-out; display: none; }
|
90 | 90 | #toggle-button:hover svg path { fill: #ccc; }
|
91 | 91 | ::-webkit-scrollbar { width: 6px; }
|
|
166 | 166 | expanded = $header.hasClass('expended');
|
167 | 167 |
|
168 | 168 | if (expanded) {
|
169 |
| - expanded.removeClass('expended'); |
170 |
| - $content.css('maxHeight', $(content)[0].scrollHeight + 'px'); |
| 169 | + $header.removeClass('expended'); |
| 170 | + $content.css('maxHeight', $content[0].scrollHeight + 'px'); |
171 | 171 | $indicator.text('▼');
|
172 | 172 | } else {
|
173 |
| - expanded.addClass('expended'); |
| 173 | + $header.addClass('expended'); |
174 | 174 | $content.css('maxHeight', '0');
|
175 | 175 | $indicator.text('─');
|
176 | 176 | }
|
|
0 commit comments