Files
changedetection.io/changedetectionio/static/styles/scss/diff-image.scss
T
dgtlmoon 3d14df6a11 Development branch merge into release/master
Multi-language / Translations Support (#3696)
  - Complete internationalization system implemented
  - Support for 7 languages: Czech (cs), German (de), French (fr), Italian (it), Korean (ko), Chinese Simplified (zh), Chinese Traditional (zh_TW)
  - Language selector with localized flags and theming
  - Flash message translations
  - Multiple translation fixes and improvements across all languages
  - Language setting preserved across redirects

  Pluggable Content Fetchers (#3653)
  - New architecture for extensible content fetcher system
  - Allows custom fetcher implementations

  Image / Screenshot Comparison Processor (#3680)
  - New processor for visual change detection (disabled for this release)
  - Supporting CSS/JS infrastructure added

  UI Improvements

  Design & Layout
  - Auto-generated tag color schemes
  - Simplified login form styling
  - Removed hard-coded CSS, moved to SCSS variables
  - Tag UI cleanup and improvements
  - Automatic tab wrapper functionality
  - Menu refactoring for better organization
  - Cleanup of offset settings
  - Hide sticky tabs on narrow viewports
  - Improved responsive layout (#3702)

  User Experience
  - Modal alerts/confirmations on delete/clear operations (#3693, #3598, #3382)
  - Auto-add https:// to URLs in quickwatch form if not present
  - Better redirect handling on login (#3699)
  - 'Recheck all' now returns to correct group/tag (#3673)
  - Language set redirect keeps hash fragment
  - More friendly human-readable text throughout UI

  Performance & Reliability

  Scheduler & Processing
  - Soft delays instead of blocking time.sleep() calls (#3710)
  - More resilient handling of same UUID being processed (#3700)
  - Better Puppeteer timeout handling
  - Improved Puppeteer shutdown/cleanup (#3692)
  - Requests cleanup now properly async

  History & Rendering
  - Faster server-side "difference" rendering on History page (#3442)
  - Show ignored/triggered rows in history
  - API: Retry watch data if watch dict changed (more reliable)

  API Improvements

  - Watch get endpoint: retry mechanism for changed watch data
  - WatchHistoryDiff API endpoint includes extra format args (#3703)

  Testing Improvements

  - Replace time.sleep with wait_for_notification_endpoint_output (#3716)
  - Test for mode switching (#3701)
  - Test for #3720 added (#3725)
  - Extract-text difference test fixes
  - Improved dev workflow

  Bug Fixes

  - Notification error text output (#3672, #3669, #3280)
  - HTML validation fixes (#3704)
  - Template discovery path fixes
  - Notification debug log now uses system locale for dates/times
  - Puppeteer spelling mistake in log output
  - Recalculation on anchor change
  - Queue bubble update disabled temporarily

  Dependency Updates

  - beautifulsoup4 updated (#3724)
  - psutil 7.1.0 → 7.2.1 (#3723)
  - python-engineio ~=4.12.3 → ~=4.13.0 (#3707)
  - python-socketio ~=5.14.3 → ~=5.16.0 (#3706)
  - flask-socketio ~=5.5.1 → ~=5.6.0 (#3691)
  - brotli ~=1.1 → ~=1.2 (#3687)
  - lxml updated (#3590)
  - pytest ~=7.2 → ~=9.0 (#3676)
  - jsonschema ~=4.0 → ~=4.25 (#3618)
  - pluggy ~=1.5 → ~=1.6 (#3616)
  - cryptography 44.0.1 → 46.0.3 (security) (#3589)

  Documentation

  - README updated with viewport size setup information

  Development Infrastructure

  - Dev container only built on dev branch
  - Improved dev workflow tooling
2026-01-12 17:50:53 +01:00

260 lines
4.8 KiB
SCSS

/**
* Image Comparison Diff Styles
* Styles for the interactive image comparison slider and screenshot diff visualization
*/
.comparison-score {
padding: 1em;
background: var(--color-table-stripe);
border-radius: 4px;
margin: 1em 0;
border: 1px solid var(--color-border-table-cell);
color: var(--color-text);
}
.change-detected {
color: #d32f2f;
font-weight: bold;
}
.no-change {
color: #388e3c;
font-weight: bold;
}
.comparison-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1em;
margin: 1em 1em;
@media (max-width: 1200px) {
grid-template-columns: 1fr;
}
}
/* Interactive Image Comparison Slider */
.image-comparison {
position: relative;
width: 100%;
overflow: hidden;
border: 1px solid var(--color-border-table-cell);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
user-select: none;
img {
display: block;
width: 100%;
height: auto;
max-width: 100%;
border: none;
box-shadow: none;
}
}
/* Image wrappers with checkered background */
.comparison-image-wrapper {
position: relative;
width: 100%;
display: flex;
align-items: flex-start;
justify-content: center;
/* Very light checkered background pattern */
background-color: var(--color-background);
background-image:
linear-gradient(45deg, var(--color-table-stripe) 25%, transparent 25%),
linear-gradient(-45deg, var(--color-table-stripe) 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, var(--color-table-stripe) 75%),
linear-gradient(-45deg, transparent 75%, var(--color-table-stripe) 75%);
background-size: 20px 20px;
background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
.comparison-after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
clip-path: inset(0 0 0 50%);
}
.comparison-slider {
position: absolute;
top: 0;
left: 50%;
width: 4px;
height: 100%;
background: #0078e7;
cursor: ew-resize;
transform: translateX(-2px);
z-index: 10;
}
.comparison-handle {
position: absolute;
top: 50%;
left: 50%;
width: 48px;
height: 48px;
background: #0078e7;
border: 3px solid white;
border-radius: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
display: flex;
align-items: center;
justify-content: center;
cursor: ew-resize;
transition: top 0.1s ease-out;
&::after {
content: '';
color: white;
font-size: 24px;
font-weight: bold;
pointer-events: none;
}
}
.comparison-labels {
position: absolute;
top: 10px;
width: 100%;
display: flex;
justify-content: space-between;
padding: 0 0px;
z-index: 5;
pointer-events: none;
}
.comparison-label {
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 0.5em 1em;
border-radius: 4px;
font-size: 0.9em;
font-weight: bold;
}
.screenshot-panel {
text-align: center;
background: var(--color-background);
border: 1px solid var(--color-border-table-cell);
border-radius: 4px;
padding: 1em;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
h3 {
margin: 0 0 1em 0;
font-size: 1.1em;
color: var(--color-text);
border-bottom: 2px solid var(--color-background-button-primary);
padding-bottom: 0.5em;
}
&.diff h3 {
border-bottom-color: #d32f2f;
}
img {
max-width: 100%;
height: auto;
border: 1px solid var(--color-border-table-cell);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
}
.version-selector {
display: inline-block;
margin: 0 0.5em;
label {
font-weight: bold;
margin-right: 0.5em;
color: var(--color-text);
}
}
#settings {
background: var(--color-background);
padding: 1.5em;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
margin-bottom: 2em;
border: 1px solid var(--color-border-table-cell);
h2 {
margin-top: 0;
color: var(--color-text);
}
}
.diff-fieldset {
border: none;
padding: 0;
margin: 0;
}
.edit-link {
float: right;
margin-top: -0.5em;
}
.comparison-description {
color: var(--color-text-input-description);
font-size: 0.9em;
margin-bottom: 1em;
}
.download-link {
color: var(--color-link);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.3em;
font-size: 0.85em;
&:hover {
text-decoration: underline;
}
}
.diff-section-header {
color: #d32f2f;
font-size: 0.9em;
margin-bottom: 1em;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
gap: 1em;
}
.comparison-history-section {
margin-top: 3em;
padding: 1em;
background: var(--color-background);
border: 1px solid var(--color-border-table-cell);
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
h3 {
color: var(--color-text);
}
p {
color: var(--color-text-input-description);
font-size: 0.9em;
}
}
.history-changed-yes {
color: #d32f2f;
font-weight: bold;
}
.history-changed-no {
color: #388e3c;
}