Spaces:
Running
Running
File size: 2,253 Bytes
fba4209 b225f7d fba4209 6c68d01 fba4209 b225f7d fba4209 b225f7d 6c68d01 b225f7d fba4209 aec3a91 6c68d01 aec3a91 6c68d01 aec3a91 6c68d01 aec3a91 6c68d01 aec3a91 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | @tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--border-radius: 8px;
--transition: all 0.3s ease;
--shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Global styles can be added as Tailwind utility classes or custom classes */
body {
@apply bg-hmi-bg text-hmi-text font-hmi;
}
/* Scrollbar: wide enough to grab on touch, square corners */
::-webkit-scrollbar {
@apply w-3 h-3 bg-hmi-bg;
}
::-webkit-scrollbar-thumb {
@apply bg-hmi-line;
}
::-webkit-scrollbar-thumb:hover {
@apply bg-hmi-muted;
}
/* Keep the date picker icon visible on dark backgrounds */
input[type='date']::-webkit-calendar-picker-indicator {
filter: invert(0.8);
}
/* Operator panel (dark industrial theme) */
@layer components {
/* Ignored cell: color-independent cross-hatch pattern */
.hmi-hatch {
background-color: theme('colors.hmi.panel');
background-image: repeating-linear-gradient(
135deg,
rgba(145, 151, 160, 0.28) 0 2px,
transparent 2px 9px
);
}
/* Active cell: only the outer border blinks, not the cell itself */
.hmi-active-ring {
animation: hmi-ring 1.2s ease-in-out infinite;
}
.hmi-press-progress {
animation-name: hmi-progress;
animation-timing-function: linear;
animation-fill-mode: forwards;
}
}
@keyframes hmi-ring {
0%, 100% { box-shadow: 0 0 0 2px theme('colors.hmi.bg'), 0 0 0 5px rgba(250, 204, 21, 1); }
50% { box-shadow: 0 0 0 2px theme('colors.hmi.bg'), 0 0 0 5px rgba(250, 204, 21, 0.1); }
}
@keyframes hmi-progress {
from { width: 0; }
to { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
.hmi-active-ring {
animation: none;
box-shadow: 0 0 0 2px theme('colors.hmi.bg'), 0 0 0 5px theme('colors.hmi.warn');
}
}
/* Notifications match the panel style: square corners, bordered */
.Toastify {
--toastify-color-dark: theme('colors.hmi.raised');
--toastify-text-color-dark: theme('colors.hmi.text');
--toastify-color-success: theme('colors.hmi.ok');
--toastify-color-error: theme('colors.hmi.err');
--toastify-color-progress-dark: theme('colors.hmi.accent');
--toastify-font-family: inherit;
}
.Toastify .Toastify__toast {
border-radius: 0;
border: 1px solid theme('colors.hmi.line');
font-size: 15px;
}
|