| 1 |
.migration-container { |
| 2 |
max-width: 800px; |
| 3 |
margin: 20px auto; |
| 4 |
padding: 20px; |
| 5 |
background: #fff; |
| 6 |
border-radius: 5px; |
| 7 |
box-shadow: 0 1px 3px rgba(0,0,0,0.1); |
| 8 |
} |
| 9 |
|
| 10 |
.migration-header { |
| 11 |
margin-bottom: 20px; |
| 12 |
padding-bottom: 10px; |
| 13 |
border-bottom: 1px solid #eee; |
| 14 |
} |
| 15 |
|
| 16 |
.migration-header h2 { |
| 17 |
margin: 0; |
| 18 |
color: #23282d; |
| 19 |
} |
| 20 |
|
| 21 |
.migration-progress-bar { |
| 22 |
height: 20px; |
| 23 |
background-color: #f1f1f1; |
| 24 |
border-radius: 10px; |
| 25 |
margin: 20px 0; |
| 26 |
overflow: hidden; |
| 27 |
} |
| 28 |
|
| 29 |
#migration-progress { |
| 30 |
height: 100%; |
| 31 |
width: 0; |
| 32 |
background-color: #2271b1; |
| 33 |
transition: width 0.3s ease; |
| 34 |
} |
| 35 |
|
| 36 |
.migration-steps { |
| 37 |
margin: 20px 0; |
| 38 |
} |
| 39 |
|
| 40 |
.migration-step { |
| 41 |
display: flex; |
| 42 |
align-items: center; |
| 43 |
padding: 10px; |
| 44 |
margin: 5px 0; |
| 45 |
border-radius: 4px; |
| 46 |
background: #f8f9fa; |
| 47 |
} |
| 48 |
|
| 49 |
.step-icon { |
| 50 |
width: 24px; |
| 51 |
height: 24px; |
| 52 |
margin-right: 10px; |
| 53 |
border-radius: 50%; |
| 54 |
display: flex; |
| 55 |
align-items: center; |
| 56 |
justify-content: center; |
| 57 |
color: #fff; |
| 58 |
} |
| 59 |
|
| 60 |
.step-content { |
| 61 |
flex-grow: 1; |
| 62 |
} |
| 63 |
|
| 64 |
.step-title { |
| 65 |
font-weight: 600; |
| 66 |
margin-bottom: 2px; |
| 67 |
} |
| 68 |
|
| 69 |
.step-message { |
| 70 |
font-size: 12px; |
| 71 |
color: #666; |
| 72 |
} |
| 73 |
|
| 74 |
/* Step States */ |
| 75 |
.migration-step.pending .step-icon { |
| 76 |
background: #ccc; |
| 77 |
} |
| 78 |
|
| 79 |
.migration-step.running .step-icon { |
| 80 |
background: #2271b1; |
| 81 |
animation: pulse 1s infinite; |
| 82 |
} |
| 83 |
|
| 84 |
.migration-step.success .step-icon { |
| 85 |
background: #46b450; |
| 86 |
} |
| 87 |
|
| 88 |
.migration-step.error .step-icon { |
| 89 |
background: #dc3232; |
| 90 |
} |
| 91 |
|
| 92 |
/* Log Section */ |
| 93 |
.migration-log-container { |
| 94 |
margin-top: 20px; |
| 95 |
padding: 10px; |
| 96 |
background: #f8f9fa; |
| 97 |
border: 1px solid #e2e4e7; |
| 98 |
border-radius: 4px; |
| 99 |
} |
| 100 |
|
| 101 |
.log-header { |
| 102 |
display: flex; |
| 103 |
justify-content: space-between; |
| 104 |
align-items: center; |
| 105 |
margin-bottom: 10px; |
| 106 |
} |
| 107 |
|
| 108 |
.log-header h3 { |
| 109 |
margin: 0; |
| 110 |
} |
| 111 |
|
| 112 |
#copy-log { |
| 113 |
display: flex; |
| 114 |
align-items: center; |
| 115 |
gap: 5px; |
| 116 |
padding: 4px 8px; |
| 117 |
} |
| 118 |
|
| 119 |
#copy-log .dashicons { |
| 120 |
font-size: 16px; |
| 121 |
width: 16px; |
| 122 |
height: 16px; |
| 123 |
} |
| 124 |
|
| 125 |
#copy-log.copied { |
| 126 |
background: #46b450; |
| 127 |
color: #fff; |
| 128 |
border-color: #39943d; |
| 129 |
} |
| 130 |
|
| 131 |
#migration-log { |
| 132 |
height: 200px; |
| 133 |
overflow-y: auto; |
| 134 |
font-family: monospace; |
| 135 |
font-size: 12px; |
| 136 |
padding: 10px; |
| 137 |
background: #fff; |
| 138 |
border: 1px solid #e2e4e7; |
| 139 |
border-radius: 2px; |
| 140 |
white-space: pre-wrap; |
| 141 |
word-wrap: break-word; |
| 142 |
} |
| 143 |
|
| 144 |
.log-entry { |
| 145 |
margin: 2px 0; |
| 146 |
line-height: 1.4; |
| 147 |
} |
| 148 |
|
| 149 |
.log-time { |
| 150 |
color: #666; |
| 151 |
} |
| 152 |
|
| 153 |
.text-info { |
| 154 |
color: #2271b1; |
| 155 |
} |
| 156 |
|
| 157 |
.text-success { |
| 158 |
color: #46b450; |
| 159 |
} |
| 160 |
|
| 161 |
.text-warning { |
| 162 |
color: #ffb900; |
| 163 |
} |
| 164 |
|
| 165 |
.text-danger { |
| 166 |
color: #dc3232; |
| 167 |
} |
| 168 |
|
| 169 |
/* Error Message */ |
| 170 |
#migration-error { |
| 171 |
display: none; |
| 172 |
margin: 10px 0; |
| 173 |
padding: 10px; |
| 174 |
background: #dc3232; |
| 175 |
color: #fff; |
| 176 |
border-radius: 4px; |
| 177 |
} |
| 178 |
|
| 179 |
/* Button */ |
| 180 |
#start-migration { |
| 181 |
display: inline-block; |
| 182 |
padding: 8px 16px; |
| 183 |
font-size: 14px; |
| 184 |
font-weight: 600; |
| 185 |
color: #fff; |
| 186 |
background: #2271b1; |
| 187 |
border: none; |
| 188 |
border-radius: 4px; |
| 189 |
cursor: pointer; |
| 190 |
transition: background 0.2s; |
| 191 |
} |
| 192 |
|
| 193 |
#start-migration:hover { |
| 194 |
background: #135e96; |
| 195 |
} |
| 196 |
|
| 197 |
#start-migration:disabled { |
| 198 |
background: #ccc; |
| 199 |
cursor: not-allowed; |
| 200 |
} |
| 201 |
|
| 202 |
/* Animations */ |
| 203 |
@keyframes pulse { |
| 204 |
0% { |
| 205 |
transform: scale(1); |
| 206 |
} |
| 207 |
50% { |
| 208 |
transform: scale(1.1); |
| 209 |
} |
| 210 |
100% { |
| 211 |
transform: scale(1); |
| 212 |
} |
| 213 |
} |