super-productivity/electron/overlay-indicator/overlay.css
2025-09-04 18:30:09 +02:00

158 lines
2.6 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', sans-serif;
overflow: hidden;
background: transparent;
user-select: none;
}
/* Prevent all auxiliary button interactions */
body,
body * {
pointer-events: auto;
}
/* Disable right-click context menu globally */
body {
-webkit-context-menu: none;
}
#overlay-container {
display: flex;
align-items: center;
height: 100vh;
padding: 8px;
background-color: rgba(255, 255, 255, 0.95);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
transition:
background-color 0.3s,
color 0.3s;
-webkit-app-region: drag;
}
@media (prefers-color-scheme: dark) {
#overlay-container {
background-color: rgba(32, 32, 32, 0.95);
color: #e0e0e0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
}
#content {
flex: 1;
padding: 0 16px;
min-width: 0;
display: flex;
justify-content: center;
align-content: center;
}
#task-title {
font-size: 16px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 4px;
color: #333;
}
@media (prefers-color-scheme: dark) {
#task-title {
color: #e0e0e0;
}
}
#time-display {
font-size: 16px;
font-weight: 600;
font-variant-numeric: tabular-nums;
color: #666;
margin-left: auto;
padding-left: 16px;
}
@media (prefers-color-scheme: dark) {
#time-display {
color: #aaa;
}
}
/* Mode-specific colors */
.mode-pomodoro #time-display {
color: #dc3545;
}
.mode-focus #time-display {
color: #007bff;
}
.mode-task #time-display {
color: #28a745;
}
@media (prefers-color-scheme: dark) {
.mode-pomodoro #time-display {
color: #ff6b7a;
}
.mode-focus #time-display {
color: #5cb3ff;
}
.mode-task #time-display {
color: #5dd66f;
}
}
#show-main {
width: 32px;
height: 32px;
border: none;
background: rgba(0, 0, 0, 0.05);
border-radius: 4px;
cursor: pointer;
color: #666;
font-size: 12px;
transition: all 0.2s;
-webkit-app-region: no-drag;
}
@media (prefers-color-scheme: dark) {
#show-main {
background: rgba(255, 255, 255, 0.1);
color: #aaa;
}
}
#show-main:hover {
background: rgba(0, 0, 0, 0.1);
transform: scale(1.1);
}
@media (prefers-color-scheme: dark) {
#show-main:hover {
background: rgba(255, 255, 255, 0.2);
}
}
#show-main:active {
transform: scale(0.95);
}
/* Handle resize cursor on edges */
body {
resize: both;
}
/* Make sure content doesn't overflow on resize */
#overlay-container {
width: 100%;
height: 100%;
}