554 lines
14 KiB
CSS
554 lines
14 KiB
CSS
/* HMI Button Styles */
|
|
.hmi-button {
|
|
background: linear-gradient(145deg, #e6e6e6, #cccccc);
|
|
border: 2px solid #999999;
|
|
border-radius: 8px;
|
|
color: #333333;
|
|
font-weight: bold;
|
|
font-size: 18px;
|
|
padding: 0 16px;
|
|
margin: 0 4px;
|
|
min-width: 120px;
|
|
height: 80%;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), inset 1px 1px 3px rgba(255, 255, 255, 0.8);
|
|
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
|
|
position: relative;
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hmi-button:hover {
|
|
background: linear-gradient(145deg, #f0f0f0, #d6d6d6);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.hmi-button:active {
|
|
background: linear-gradient(145deg, #cccccc, #b3b3b3);
|
|
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3), inset 2px 2px 4px rgba(0, 0, 0, 0.2);
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.hmi-button.start {
|
|
background: linear-gradient(145deg, #4CAF50, #45a049);
|
|
color: white;
|
|
border-color: #2e7d32;
|
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.hmi-button.start:hover {
|
|
background: linear-gradient(145deg, #5cbf60, #4fa152);
|
|
}
|
|
|
|
.hmi-button.request {
|
|
background: linear-gradient(145deg, #2196F3, #1976D2);
|
|
color: white;
|
|
border-color: #0d47a1;
|
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.hmi-button.request:hover {
|
|
background: linear-gradient(145deg, #42a5f5, #1e88e5);
|
|
}
|
|
|
|
.hmi-button.close {
|
|
background: linear-gradient(145deg, #FF9800, #F57C00);
|
|
color: white;
|
|
border-color: #bf360c;
|
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.hmi-button.close:hover {
|
|
background: linear-gradient(145deg, #ffb74d, #fb8c00);
|
|
}
|
|
|
|
.hmi-button.onoff {
|
|
background: linear-gradient(145deg, #2196F3, #1976D2);
|
|
color: white;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
padding: 18px 8px;
|
|
height: 60px;
|
|
font-weight: bold;
|
|
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
|
|
box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), inset 1px 1px 3px rgba(255, 255, 255, 0.2);
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
.hmi-button.onoff:hover {
|
|
background: linear-gradient(145deg, #42a5f5, #1e88e5);
|
|
}
|
|
|
|
.hmi-button.off {
|
|
filter: grayscale(100%);
|
|
}
|
|
/* Station Direction Indicator Styles */
|
|
.station-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 90%;
|
|
height: 80%;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
background: transparent;
|
|
border: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.direction-track {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
padding: 0 15px;
|
|
}
|
|
|
|
.arrow-flow {
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
opacity: 0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.arrow-flow::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 8px solid transparent;
|
|
border-right: 8px solid transparent;
|
|
border-bottom: 12px solid #00ff00;
|
|
transform: translate(-50%, -50%) rotate(90deg);
|
|
}
|
|
|
|
/* Station States - COPIED EXACTLY FROM WORKING VERSION */
|
|
.station-indicator.request-in {
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
animation: none;
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow {
|
|
animation: flow-in-left 1.2s infinite linear;
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow:nth-child(1),
|
|
.station-indicator.request-in .arrow-flow:nth-child(3),
|
|
.station-indicator.request-in .arrow-flow:nth-child(5),
|
|
.station-indicator.request-in .arrow-flow:nth-child(7) {
|
|
animation: flow-in-left 0.8s infinite linear;
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow:nth-child(2),
|
|
.station-indicator.request-in .arrow-flow:nth-child(4),
|
|
.station-indicator.request-in .arrow-flow:nth-child(6),
|
|
.station-indicator.request-in .arrow-flow:nth-child(8) {
|
|
animation: flow-in-right 0.8s infinite linear;
|
|
}
|
|
|
|
/* Mũi tên bên trái hướng về phải (→) */
|
|
.station-indicator.request-in .arrow-flow:nth-child(1)::before,
|
|
.station-indicator.request-in .arrow-flow:nth-child(3)::before,
|
|
.station-indicator.request-in .arrow-flow:nth-child(5)::before,
|
|
.station-indicator.request-in .arrow-flow:nth-child(7)::before {
|
|
transform: translate(-50%, -50%) rotate(90deg);
|
|
}
|
|
|
|
/* Mũi tên bên phải hướng về trái (←) */
|
|
.station-indicator.request-in .arrow-flow:nth-child(2)::before,
|
|
.station-indicator.request-in .arrow-flow:nth-child(4)::before,
|
|
.station-indicator.request-in .arrow-flow:nth-child(6)::before,
|
|
.station-indicator.request-in .arrow-flow:nth-child(8)::before {
|
|
transform: translate(-50%, -50%) rotate(-90deg);
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow::before {
|
|
border-bottom-color: #00ff00;
|
|
color: #00ff00;
|
|
}
|
|
|
|
.station-indicator.request-out {
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
animation: none;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow {
|
|
animation: flow-out-left 1.2s infinite linear;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow:nth-child(1),
|
|
.station-indicator.request-out .arrow-flow:nth-child(3),
|
|
.station-indicator.request-out .arrow-flow:nth-child(5),
|
|
.station-indicator.request-out .arrow-flow:nth-child(7) {
|
|
animation: flow-out-left 0.8s infinite linear;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow:nth-child(2),
|
|
.station-indicator.request-out .arrow-flow:nth-child(4),
|
|
.station-indicator.request-out .arrow-flow:nth-child(6),
|
|
.station-indicator.request-out .arrow-flow:nth-child(8) {
|
|
animation: flow-out-right 0.8s infinite linear;
|
|
}
|
|
|
|
/* Mũi tên bên trái hướng ra trái (←) */
|
|
.station-indicator.request-out .arrow-flow:nth-child(1)::before,
|
|
.station-indicator.request-out .arrow-flow:nth-child(3)::before,
|
|
.station-indicator.request-out .arrow-flow:nth-child(5)::before,
|
|
.station-indicator.request-out .arrow-flow:nth-child(7)::before {
|
|
transform: translate(-50%, -50%) rotate(-90deg);
|
|
}
|
|
|
|
/* Mũi tên bên phải hướng ra phải (→) */
|
|
.station-indicator.request-out .arrow-flow:nth-child(2)::before,
|
|
.station-indicator.request-out .arrow-flow:nth-child(4)::before,
|
|
.station-indicator.request-out .arrow-flow:nth-child(6)::before,
|
|
.station-indicator.request-out .arrow-flow:nth-child(8)::before {
|
|
transform: translate(-50%, -50%) rotate(90deg);
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow::before {
|
|
border-bottom-color: #ff6600;
|
|
color: #ff6600;
|
|
transform: translate(-50%, -50%) rotate(-90deg);
|
|
}
|
|
|
|
.station-indicator.standby {
|
|
border-color: transparent;
|
|
animation: none;
|
|
}
|
|
|
|
.station-indicator.standby .center-dot {
|
|
background: radial-gradient(circle, #333 30%, #555 70%);
|
|
animation: none;
|
|
}
|
|
|
|
.station-indicator.hidden {
|
|
opacity: 0;
|
|
transform: scale(0.8);
|
|
filter: blur(2px);
|
|
}
|
|
|
|
/* Working state for station indicator */
|
|
.station-indicator.working {
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
animation: none;
|
|
background: transparent;
|
|
border: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.station-indicator.working .direction-track {
|
|
display: none;
|
|
}
|
|
|
|
.station-indicator.working::after {
|
|
content: 'WORKING';
|
|
color: #27ae60;
|
|
font-weight: bold;
|
|
font-size: 20px;
|
|
font-family: 'Courier New', monospace;
|
|
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
|
|
letter-spacing: 2px;
|
|
animation: working-pulse 1.5s infinite ease-in-out;
|
|
}
|
|
|
|
@keyframes working-pulse {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.7;
|
|
transform: scale(1.05);
|
|
}
|
|
}
|
|
|
|
/* Center Station Dot */
|
|
.center-dot {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle, #333 30%, #555 70%);
|
|
border: 2px solid #666;
|
|
box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
z-index: 10;
|
|
}
|
|
|
|
/* Flow from both sides to center (IN) */
|
|
@keyframes flow-in-left {
|
|
0% {
|
|
left: -25px;
|
|
opacity: 0;
|
|
transform: scale(0.5);
|
|
}
|
|
|
|
20% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
80% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
100% {
|
|
left: calc(50% - 15px);
|
|
opacity: 0;
|
|
transform: scale(1.2);
|
|
}
|
|
}
|
|
|
|
@keyframes flow-in-right {
|
|
0% {
|
|
right: -25px;
|
|
opacity: 0;
|
|
transform: scale(0.5);
|
|
}
|
|
|
|
20% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
80% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
100% {
|
|
right: calc(50% - 15px);
|
|
opacity: 0;
|
|
transform: scale(1.2);
|
|
}
|
|
}
|
|
|
|
/* Flow from center to both sides (OUT) */
|
|
@keyframes flow-out-left {
|
|
0% {
|
|
left: calc(50% - 15px);
|
|
opacity: 0;
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
20% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
80% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
100% {
|
|
left: -25px;
|
|
opacity: 0;
|
|
transform: scale(0.5);
|
|
}
|
|
}
|
|
|
|
@keyframes flow-out-right {
|
|
0% {
|
|
right: calc(50% - 15px);
|
|
opacity: 0;
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
20% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
80% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
100% {
|
|
right: -25px;
|
|
opacity: 0;
|
|
transform: scale(0.5);
|
|
}
|
|
}
|
|
|
|
/* Multiple Arrow Generation - COPIED EXACTLY FROM WORKING VERSION */
|
|
.station-indicator.request-in .arrow-flow:nth-child(1) {
|
|
animation-delay: 0s;
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow:nth-child(2) {
|
|
animation-delay: 0.05s;
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow:nth-child(3) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow:nth-child(4) {
|
|
animation-delay: 0.25s;
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow:nth-child(5) {
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow:nth-child(6) {
|
|
animation-delay: 0.45s;
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow:nth-child(7) {
|
|
animation-delay: 0.6s;
|
|
}
|
|
|
|
.station-indicator.request-in .arrow-flow:nth-child(8) {
|
|
animation-delay: 0.65s;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow:nth-child(1) {
|
|
animation-delay: 0s;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow:nth-child(2) {
|
|
animation-delay: 0.05s;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow:nth-child(3) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow:nth-child(4) {
|
|
animation-delay: 0.25s;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow:nth-child(5) {
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow:nth-child(6) {
|
|
animation-delay: 0.45s;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow:nth-child(7) {
|
|
animation-delay: 0.6s;
|
|
}
|
|
|
|
.station-indicator.request-out .arrow-flow:nth-child(8) {
|
|
animation-delay: 0.65s;
|
|
}
|
|
|
|
/* Inactive State for Images */
|
|
.image-inactive {
|
|
opacity: 0.3;
|
|
filter: grayscale(100%) brightness(0.7);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.image-inactive:hover {
|
|
opacity: 0.5;
|
|
filter: grayscale(80%) brightness(0.8);
|
|
}
|
|
|
|
.inactive {
|
|
opacity: 0.3;
|
|
filter: grayscale(100%) brightness(0.7);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.inactive:hover {
|
|
opacity: 0.5;
|
|
filter: grayscale(80%) brightness(0.8);
|
|
}
|
|
|
|
/* Specific inactive states for AMR and Trolley */
|
|
.amr-inactive {
|
|
opacity: 0.25;
|
|
filter: grayscale(100%) brightness(0.6) contrast(0.8);
|
|
transition: all 0.4s ease;
|
|
border-color: #666 !important;
|
|
background-color: rgba(120, 120, 120, 0.1) !important;
|
|
}
|
|
|
|
.trolley-inactive {
|
|
opacity: 0.3;
|
|
filter: grayscale(100%) brightness(0.7) contrast(0.9);
|
|
transition: all 0.4s ease;
|
|
border-color: #666 !important;
|
|
background-color: rgba(120, 120, 120, 0.1) !important;
|
|
}
|
|
|
|
/* Inactive hover effects */
|
|
.amr-inactive:hover,
|
|
.trolley-inactive:hover {
|
|
opacity: 0.4;
|
|
filter: grayscale(90%) brightness(0.8);
|
|
}
|
|
|
|
/* LED indicators with turning on effect */
|
|
.led-indicator {
|
|
width: 5.5%;
|
|
height: 7.5%;
|
|
background: linear-gradient(145deg, #27ae60, #2ecc71);
|
|
border: 2px solid #1e8449;
|
|
box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3), 0 0 10px rgba(39, 174, 96, 0.8), 0 0 20px rgba(39, 174, 96, 0.4);
|
|
animation: turning-on 2s infinite ease-in-out;
|
|
}
|
|
|
|
@keyframes turning-on {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3), 0 0 10px rgba(39, 174, 96, 0.8), 0 0 20px rgba(39, 174, 96, 0.4);
|
|
transform: scale(1);
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.6;
|
|
box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1), 0 0 5px rgba(39, 174, 96, 0.4), 0 0 10px rgba(39, 174, 96, 0.2);
|
|
transform: scale(0.95);
|
|
}
|
|
}
|
|
|
|
|
|
/* Access Status Indicator */
|
|
.access-status {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.access-status.access-allowed {
|
|
background-color: #28a745;
|
|
/*border: 2px solid #1e7e34;*/
|
|
}
|
|
|
|
.access-status.access-denied {
|
|
background-color: #dc3545;
|
|
/*border: 2px solid #bd2130;*/
|
|
}
|
|
|
|
.access-status.access-allowed::before {
|
|
content: "✓";
|
|
}
|
|
|
|
.access-status.access-denied::before {
|
|
content: "✗";
|
|
} |