|
103 | 103 | border-top: 3px solid #4caf50; |
104 | 104 | } |
105 | 105 |
|
| 106 | +/* Rotating dotted border animation during drag-over */ |
| 107 | +@keyframes rotating-border { |
| 108 | + from { |
| 109 | + background-position: 0 0, 100% 100%, 0 100%, 100% 0; |
| 110 | + } |
| 111 | + to { |
| 112 | + background-position: 12px 0, calc(100% - 12px) 100%, 0 calc(100% - 12px), |
| 113 | + 100% 12px; |
| 114 | + } |
| 115 | +} |
| 116 | + |
| 117 | +.imgPanel.drag-border-active::before { |
| 118 | + content: ""; |
| 119 | + position: absolute; |
| 120 | + top: 0; |
| 121 | + left: 0; |
| 122 | + right: 0; |
| 123 | + bottom: 0; |
| 124 | + border-radius: inherit; |
| 125 | + pointer-events: none; |
| 126 | + z-index: 10; |
| 127 | + background-image: linear-gradient(90deg, #666 50%, transparent 50%), |
| 128 | + linear-gradient(90deg, #666 50%, transparent 50%), |
| 129 | + linear-gradient(0deg, #666 50%, transparent 50%), |
| 130 | + linear-gradient(0deg, #666 50%, transparent 50%); |
| 131 | + background-size: 12px 3px, 12px 3px, 3px 12px, 3px 12px; |
| 132 | + background-position: 0 0, 100% 100%, 0 100%, 100% 0; |
| 133 | + background-repeat: repeat-x, repeat-x, repeat-y, repeat-y; |
| 134 | + animation: rotating-border 0.5s linear infinite; |
| 135 | +} |
| 136 | + |
106 | 137 | .imgPanel:hover { |
107 | 138 | box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); |
108 | 139 | } |
|
0 commit comments