mirror of
https://github.com/alberti42/obsidian-plugins-annotations.git
synced 2026-07-22 10:10:24 +00:00
33 lines
854 B
CSS
33 lines
854 B
CSS
/* styles.css */
|
|
|
|
/* Make sure the input field takes the full width of its parent */
|
|
.plugin-comment {
|
|
width: 100%;
|
|
box-sizing: border-box; /* Ensure padding is included in the element's total width and height */
|
|
transition: opacity 0.5s ease-in-out; /* Add transition for opacity */
|
|
opacity: 0; /* Hidden by default */
|
|
}
|
|
|
|
.plugin-comment-annotation.plugin-comment-placeholder {
|
|
color: #CCCCCC; /* Standard placeholder color */
|
|
font-style: italic;
|
|
}
|
|
|
|
.plugin-comment.plugin-comment-placeholder {
|
|
display: none;
|
|
}
|
|
|
|
/* Show comment container when hovering over the plugin container */
|
|
.setting-item:hover .plugin-comment.plugin-comment-placeholder {
|
|
opacity: 1; /* Show with opacity transition */
|
|
display: block;
|
|
}
|
|
|
|
/* Additional styles for consistency */
|
|
.plugin-comment-label {
|
|
padding-top: 5px;
|
|
}
|
|
|
|
.plugin-comment-annotation {
|
|
width: 100%;
|
|
}
|