mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00

# Description of Changes <!-- Please provide a summary of the changes, including: - What was changed - Why the change was made - Any challenges encountered Closes #(issue_number) --> --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md#6-testing) for more details. --------- Co-authored-by: ConnorYoh <40631091+ConnorYoh@users.noreply.github.com> Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com>
190 lines
4.4 KiB
CSS
190 lines
4.4 KiB
CSS
/* Tooltip Container */
|
|
.tooltip-container {
|
|
position: fixed;
|
|
border: 0.0625rem solid var(--border-default);
|
|
border-radius: 0.75rem;
|
|
background-color: var(--bg-raised);
|
|
box-shadow: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1), 0 0.25rem 0.375rem -0.125rem rgba(0, 0, 0, 0.05);
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
pointer-events: auto;
|
|
z-index: 9999;
|
|
transition: opacity 100ms ease-out, transform 100ms ease-out;
|
|
max-width: 50vh;
|
|
max-height: 80vh;
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Pinned tooltip indicator */
|
|
.tooltip-container.pinned {
|
|
border-color: var(--primary-color, #3b82f6);
|
|
box-shadow: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1), 0 0.25rem 0.375rem -0.125rem rgba(0, 0, 0, 0.05), 0 0 0 0.125rem rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
/* Pinned tooltip header */
|
|
.tooltip-container.pinned .tooltip-header {
|
|
background-color: var(--primary-color, #3b82f6);
|
|
color: white;
|
|
border-color: var(--primary-color, #3b82f6);
|
|
}
|
|
|
|
/* Close button */
|
|
.tooltip-pin-button {
|
|
position: absolute;
|
|
top: -0.5rem;
|
|
right: 0.5rem;
|
|
font-size: 0.875rem;
|
|
background: var(--bg-raised);
|
|
padding: 0.25rem;
|
|
border-radius: 0.25rem;
|
|
border: 0.0625rem solid var(--primary-color, #3b82f6);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 1.5rem;
|
|
min-height: 1.5rem;
|
|
}
|
|
|
|
.tooltip-pin-button .material-symbols-outlined {
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.tooltip-pin-button:hover {
|
|
background-color: #ef4444 !important;
|
|
border-color: #ef4444 !important;
|
|
}
|
|
|
|
/* Tooltip Header */
|
|
.tooltip-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1rem;
|
|
background-color: var(--tooltip-header-bg);
|
|
color: var(--tooltip-header-color);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
border-top-left-radius: 0.75rem;
|
|
border-top-right-radius: 0.75rem;
|
|
margin: -0.0625rem -0.0625rem 0 -0.0625rem;
|
|
border: 0.0625rem solid var(--tooltip-border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tooltip-logo {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.tooltip-title {
|
|
flex: 1;
|
|
}
|
|
|
|
/* Tooltip Body */
|
|
.tooltip-body {
|
|
padding: 1rem !important;
|
|
color: var(--text-primary) !important;
|
|
font-size: 0.875rem !important;
|
|
line-height: 1.6 !important;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.tooltip-body * {
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
/* Link styling within tooltips */
|
|
.tooltip-body a {
|
|
color: var(--link-color, #3b82f6) !important;
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--link-underline-color, rgba(59, 130, 246, 0.3));
|
|
transition: color 0.2s ease, text-decoration-color 0.2s ease;
|
|
}
|
|
|
|
.tooltip-body a:hover {
|
|
color: var(--link-hover-color, #2563eb) !important;
|
|
text-decoration-color: var(--link-hover-underline-color, rgba(37, 99, 235, 0.5));
|
|
}
|
|
|
|
.tooltip-container .tooltip-body {
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.tooltip-container .tooltip-body * {
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
/* Ensure links maintain their styling */
|
|
.tooltip-container .tooltip-body a {
|
|
color: var(--link-color, #3b82f6) !important;
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--link-underline-color, rgba(59, 130, 246, 0.3));
|
|
}
|
|
|
|
.tooltip-container .tooltip-body a:hover {
|
|
color: var(--link-hover-color, #2563eb) !important;
|
|
text-decoration-color: var(--link-hover-underline-color, rgba(37, 99, 235, 0.5));
|
|
}
|
|
|
|
|
|
/* Tooltip Arrows */
|
|
.tooltip-arrow {
|
|
position: absolute;
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
background: var(--bg-raised);
|
|
border: 0.0625rem solid var(--border-default);
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
|
|
.tooltip-arrow-sidebar {
|
|
top: 50%;
|
|
left: -0.25rem;
|
|
transform: translateY(-50%) rotate(45deg);
|
|
border-left: none;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.tooltip-arrow-top {
|
|
top: -0.25rem;
|
|
left: 50%;
|
|
transform: translateX(-50%) rotate(-135deg);
|
|
border-top: none;
|
|
border-left: none;
|
|
}
|
|
|
|
.tooltip-arrow-bottom {
|
|
bottom: -0.25rem;
|
|
left: 50%;
|
|
transform: translateX(-50%) rotate(45deg);
|
|
border-bottom: none;
|
|
border-right: none;
|
|
}
|
|
|
|
.tooltip-arrow-left {
|
|
right: -0.25rem;
|
|
top: 50%;
|
|
transform: translateY(-50%) rotate(45deg);
|
|
border-left: none;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.tooltip-arrow-right {
|
|
left: -0.25rem;
|
|
top: 50%;
|
|
transform: translateY(-50%) rotate(45deg);
|
|
border-right: none;
|
|
border-top: none;
|
|
} |