SillyBubble/style.css
Sven Olderaan 4ff645abd0 Add feature to render chat bubble images in collapsed tool calls
- Intercept tool call messages in chat and render markdown images

- Add setting to toggle feature on/off

- Add proper styling for rendered images

- Handle mutation observer for new messages

- Hide rendered images when details element is opened

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-16 11:48:08 +01:00

95 lines
1.9 KiB
CSS

/* SillyBubble Extension Styles */
.sillybubble-settings {
margin-bottom: 10px;
}
.sillybubble_block {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.sillybubble_block label {
margin-right: 10px;
min-width: 150px;
}
.sillybubble_block input[type="text"],
.sillybubble_block select {
flex-grow: 1;
}
.sillybubble_info {
background-color: rgba(0, 0, 0, 0.1);
border-radius: 5px;
padding: 10px;
margin: 10px 0;
font-size: 0.9em;
}
.sillybubble_info code {
background-color: rgba(0, 0, 0, 0.2);
padding: 2px 4px;
border-radius: 3px;
font-family: monospace;
}
.sillybubble_important {
margin-top: 10px;
padding: 10px;
border-left: 3px solid #e74c3c;
background-color: rgba(231, 76, 60, 0.1);
}
.sillybubble_important strong {
color: #e74c3c;
}
.sillybubble-test pre {
background-color: rgba(0, 0, 0, 0.1);
padding: 10px;
border-radius: 5px;
overflow-x: auto;
margin: 10px 0;
}
/* Rendered Images in Tool Calls */
.sillybubble-rendered-image {
padding: 10px;
background-color: rgba(0, 0, 0, 0.05);
border-radius: 5px;
margin: 5px 0;
text-align: center;
}
.sillybubble-rendered-image img {
max-width: 100%;
border-radius: 3px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Style adjustments for processed tool calls */
.smallSysMes.toolCall[data-sb-processed="true"] details {
margin-bottom: 0;
}
.smallSysMes.toolCall[data-sb-processed="true"] summary {
cursor: pointer;
opacity: 0.7;
transition: opacity 0.2s ease;
}
.smallSysMes.toolCall[data-sb-processed="true"] summary:hover {
opacity: 1;
}
/* Make sure details are properly styled when open */
.smallSysMes.toolCall[data-sb-processed="true"] details[open] .sillybubble-rendered-image {
display: none;
}
/* Remove the margin between details and summary when image is rendered */
.smallSysMes.toolCall[data-sb-processed="true"] details {
margin-bottom: 0;
}