| 1 |
/* 進捗バーコンテナ */ |
| 2 |
#progress-container { |
| 3 |
border: 1px solid #ccc; |
| 4 |
width: 100%; |
| 5 |
background: #f7f7f7; |
| 6 |
margin: 15px 0; |
| 7 |
} |
| 8 |
|
| 9 |
/* 進捗バー本体 */ |
| 10 |
#progress-bar { |
| 11 |
width: 0%; |
| 12 |
height: 30px; |
| 13 |
background: #0073aa; |
| 14 |
} |
| 15 |
|
| 16 |
/* 進捗テキスト */ |
| 17 |
#progress-text { |
| 18 |
font-size: 16px; |
| 19 |
margin-top: 5px; |
| 20 |
} |
| 21 |
|
| 22 |
/* インポート詳細部分 */ |
| 23 |
#import-details p { |
| 24 |
margin: 5px 0; |
| 25 |
} |
| 26 |
|
| 27 |
/* プレビュー用テーブルのヘッダー */ |
| 28 |
#csv-preview-thead th { |
| 29 |
background-color: #f0f0f0; |
| 30 |
font-weight: bold; |
| 31 |
white-space: nowrap; |
| 32 |
padding: 8px; |
| 33 |
} |
| 34 |
|
| 35 |
/* プレビュー用テーブルのデータセル */ |
| 36 |
#csv-preview-tbody td { |
| 37 |
white-space: nowrap; |
| 38 |
padding: 8px; |
| 39 |
} |
| 40 |
|
| 41 |
/* � |
| 42 |
�体レイアウト */ |
| 43 |
.wrap { |
| 44 |
margin: 20px; |
| 45 |
padding: 20px; |
| 46 |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 47 |
background-color: #fff; |
| 48 |
border: 1px solid #ddd; |
| 49 |
box-shadow: 0 2px 4px rgba(0,0,0,0.1); |
| 50 |
} |
| 51 |
|
| 52 |
/* ページタイトル */ |
| 53 |
.wrap h1 { |
| 54 |
font-size: 28px; |
| 55 |
margin-bottom: 10px; |
| 56 |
color: #333; |
| 57 |
} |
| 58 |
|
| 59 |
/* 説明文、ガイドエリア */ |
| 60 |
.wrap p { |
| 61 |
font-size: 14px; |
| 62 |
line-height: 1.6; |
| 63 |
color: #555; |
| 64 |
} |
| 65 |
|
| 66 |
/* ガイドエリア */ |
| 67 |
.guide-area { |
| 68 |
background-color: #f9f9f9; |
| 69 |
border-left: 4px solid #0073aa; |
| 70 |
padding: 15px; |
| 71 |
margin: 20px 0 10px 0; |
| 72 |
} |
| 73 |
.guide-area p { |
| 74 |
margin: 5px 0; |
| 75 |
} |
| 76 |
|
| 77 |
/* トグルボタン */ |
| 78 |
#toggle-upload-container { |
| 79 |
margin: 15px 0; |
| 80 |
} |
| 81 |
#toggle-upload { |
| 82 |
background-color: #99aa00; |
| 83 |
color: #fff; |
| 84 |
border: none; |
| 85 |
padding: 4px 8px; |
| 86 |
cursor: pointer; |
| 87 |
border-radius: 3px; |
| 88 |
transition: background-color 0.3s ease; |
| 89 |
} |
| 90 |
#toggle-upload:hover { |
| 91 |
background-color: #307700; |
| 92 |
} |
| 93 |
|
| 94 |
/* アップロードコンテナ */ |
| 95 |
#upload-container { |
| 96 |
margin-bottom: 20px; |
| 97 |
padding: 15px; |
| 98 |
background-color: #fafafa; |
| 99 |
border: 1px solid #ccc; |
| 100 |
border-radius: 3px; |
| 101 |
} |
| 102 |
|
| 103 |
/* フォームエリア */ |
| 104 |
.form-area { |
| 105 |
margin-bottom: 15px; |
| 106 |
} |
| 107 |
.form-area p { |
| 108 |
margin: 10px 0; |
| 109 |
} |
| 110 |
.form-area p.field-exp { |
| 111 |
font-size: 12px; |
| 112 |
} |
| 113 |
|
| 114 |
/* フィールドエリア */ |
| 115 |
.field-area { |
| 116 |
margin-bottom: 20px; |
| 117 |
} |
| 118 |
.field-area span { |
| 119 |
font-weight: bold; |
| 120 |
display: inline-block; |
| 121 |
margin-bottom: 5px; |
| 122 |
} |
| 123 |
|
| 124 |
/* セレクトボックス、ラジオボタン */ |
| 125 |
select, |
| 126 |
input[type="radio"] { |
| 127 |
margin-left: 20px; |
| 128 |
} |
| 129 |
select { |
| 130 |
padding: 5px; |
| 131 |
border: 1px solid #ccc; |
| 132 |
border-radius: 3px; |
| 133 |
} |
| 134 |
|
| 135 |
/* CSVプレビューエリア */ |
| 136 |
#csv-preview-container { |
| 137 |
margin: 0 0 40px 0; |
| 138 |
} |
| 139 |
#csv-preview-container p { |
| 140 |
font-weight: bold; |
| 141 |
margin-bottom: 0; |
| 142 |
} |
| 143 |
#csv-preview-container p.csvfile-name { |
| 144 |
font-weight: normal; |
| 145 |
margin: 0; |
| 146 |
} |
| 147 |
table.widefat { |
| 148 |
width: 100%; |
| 149 |
border-collapse: collapse; |
| 150 |
background-color: #fff; |
| 151 |
} |
| 152 |
table.widefat th, |
| 153 |
table.widefat td { |
| 154 |
padding: 10px; |
| 155 |
border: 1px solid #ddd; |
| 156 |
text-align: left; |
| 157 |
} |
| 158 |
|
| 159 |
/* データ・マッピングテーブル */ |
| 160 |
#mapping-container table.form-table { |
| 161 |
width: 100%; |
| 162 |
border-collapse: collapse; |
| 163 |
} |
| 164 |
#mapping-container table.form-table th, |
| 165 |
#mapping-container table.form-table td { |
| 166 |
padding: 10px; |
| 167 |
vertical-align: top; |
| 168 |
border: none; |
| 169 |
} |
| 170 |
#mapping-container table.form-table th { |
| 171 |
width: 30%; |
| 172 |
font-weight: bold; |
| 173 |
} |
| 174 |
|
| 175 |
/* 更新開始ボタン */ |
| 176 |
#submit-container { |
| 177 |
margin-top: 20px; |
| 178 |
text-align: right; |
| 179 |
} |
| 180 |
|
| 181 |
/* ボタン� |
| 182 |
�通スタイル(WordPressの管理画面風に) */ |
| 183 |
input[type="submit"]{ |
| 184 |
background-color: #0073aa; |
| 185 |
border: none; |
| 186 |
color: #fff; |
| 187 |
padding: 8px 16px; |
| 188 |
font-size: 14px; |
| 189 |
border-radius: 3px; |
| 190 |
cursor: pointer; |
| 191 |
transition: background-color 0.3s ease; |
| 192 |
} |
| 193 |
input[type="submit"]:hover { |
| 194 |
background-color: #005177; |
| 195 |
} |
| 196 |
|
| 197 |
/* レスポンシブ対応 */ |
| 198 |
@media (max-width: 768px) { |
| 199 |
.wrap { |
| 200 |
padding: 10px; |
| 201 |
} |
| 202 |
#mapping-container table.form-table th, |
| 203 |
#mapping-container table.form-table td { |
| 204 |
display: block; |
| 205 |
width: 100%; |
| 206 |
} |
| 207 |
#mapping-container table.form-table th { |
| 208 |
margin-top: 10px; |
| 209 |
} |
| 210 |
} |
| 211 |
|
| 212 |
/***************************************************/ |
| 213 |
|
| 214 |
/* # インポート終了画面 - 取込データ� |
| 215 |
報 */ |
| 216 |
.admin_page_welcart-csv-importer .wrap h1+p+table { |
| 217 |
margin-bottom: 30px; |
| 218 |
border-radius: 8px; |
| 219 |
} |
| 220 |
|
| 221 |
.admin_page_welcart-csv-importer .wrap h1+p+table th, |
| 222 |
.admin_page_welcart-csv-importer .wrap h1+p+table td { |
| 223 |
padding: 8px 16px; |
| 224 |
vertical-align: middle; |
| 225 |
} |
| 226 |
|
| 227 |
.admin_page_welcart-csv-importer .wrap h1+p+table th { |
| 228 |
width: 7rem; |
| 229 |
font-weight: bold; |
| 230 |
} |
| 231 |
|
| 232 |
.admin_page_welcart-csv-importer .wrap h1+p+table tr:first-child th, |
| 233 |
.admin_page_welcart-csv-importer .wrap h1+p+table tr:first-child td { |
| 234 |
padding-top: 24px; |
| 235 |
} |
| 236 |
|
| 237 |
.admin_page_welcart-csv-importer .wrap h1+p+table tr:last-child th, |
| 238 |
.admin_page_welcart-csv-importer .wrap h1+p+table tr:last-child td { |
| 239 |
padding-bottom: 24px; |
| 240 |
} |
| 241 |
|
| 242 |
/* # 3.インポート終了画面 - エラーログ */ |
| 243 |
.admin_page_welcart-csv-importer pre { |
| 244 |
margin-top: 1em; |
| 245 |
padding: 10px 16px !important; |
| 246 |
background-color: #fff4f4 !important; |
| 247 |
color: #d63638; |
| 248 |
line-height: 2; |
| 249 |
} |
| 250 |
|
| 251 |
|
| 252 |
/* # 1.CSVプレビュー&マッピング画面 - 文字コード・フィールド名 */ |
| 253 |
.form-area:not(#upload-container .form-area) { |
| 254 |
display: grid; |
| 255 |
grid-template-columns: max-content; |
| 256 |
width: fit-content; |
| 257 |
margin: 30px 0 10px; |
| 258 |
gap: 0 20px; |
| 259 |
} |
| 260 |
|
| 261 |
.form-area:not(#upload-container .form-area) .field-area { |
| 262 |
padding: 24px 16px 16px; |
| 263 |
border-bottom: none; |
| 264 |
border-radius: 8px; |
| 265 |
background-color: #fff; |
| 266 |
box-shadow: 1px 1px 4px rgba(0, 0, 0, .2); |
| 267 |
} |
| 268 |
|
| 269 |
.form-area:not(#upload-container .form-area) .field-area p:first-child { |
| 270 |
width: 100%; |
| 271 |
margin-top: 0; |
| 272 |
} |
| 273 |
|
| 274 |
.form-area:not(#upload-container .form-area) .field-area p:last-child { |
| 275 |
margin-bottom: 0; |
| 276 |
} |
| 277 |
|
| 278 |
.form-area:not(#upload-container .form-area) .field-area p span { |
| 279 |
display: block; |
| 280 |
margin: 0 0 12px; |
| 281 |
font-size: 14px; |
| 282 |
font-weight: bold; |
| 283 |
} |
| 284 |
|
| 285 |
/* ## 文字コード */ |
| 286 |
.form-area:not(#upload-container .form-area) .field-area:nth-child(1) { |
| 287 |
display: flex; |
| 288 |
grid-column: 1/2; |
| 289 |
flex-wrap: wrap; |
| 290 |
} |
| 291 |
|
| 292 |
/* ## � |
| 293 |
�頭行はフィールド名 */ |
| 294 |
.form-area:not(#upload-container .form-area) .field-area:nth-child(2) { |
| 295 |
grid-column: 2/3; |
| 296 |
} |
| 297 |
|
| 298 |
.form-area:not(#upload-container .form-area) .field-area:nth-child(2) label { |
| 299 |
margin-top: 4px; |
| 300 |
margin-bottom: 4px; |
| 301 |
margin-right: 20px; |
| 302 |
} |
| 303 |
|
| 304 |
/* # 1.CSVプレビュー&マッピング画面 - 再アップロード */ |
| 305 |
#upload-container form { |
| 306 |
margin-top: 10px; |
| 307 |
padding: 12px 16px !important; |
| 308 |
border: none !important; |
| 309 |
border-radius: 8px; |
| 310 |
background-color: #fff !important; |
| 311 |
box-shadow: 1px 1px 6px rgba(0, 0, 0, .2); |
| 312 |
} |
| 313 |
|
| 314 |
#upload-container form:hover { |
| 315 |
box-shadow: 1px 1px 6px rgba(0, 0, 0, .2); |
| 316 |
} |
| 317 |
|
| 318 |
#upload-container form p.submit { |
| 319 |
margin-bottom: 0; |
| 320 |
padding-top: 20px; |
| 321 |
padding-bottom: 10px; |
| 322 |
border-top: 1px solid #aaa; |
| 323 |
} |
| 324 |
|
| 325 |
/* # 1.CSVプレビュー&マッピング画面 - データ・マッピング */ |
| 326 |
#mapping-container { |
| 327 |
padding: 24px 16px 16px; |
| 328 |
border-radius: 8px; |
| 329 |
background-color: #fff; |
| 330 |
box-shadow: 1px 1px 6px rgba(0, 0, 0, .2); |
| 331 |
} |
| 332 |
|
| 333 |
#mapping-container h2 { |
| 334 |
margin: 0; |
| 335 |
} |
| 336 |
|
| 337 |
#mapping-container th, |
| 338 |
#mapping-container td { |
| 339 |
padding-top: 10px; |
| 340 |
padding-bottom: 10px; |
| 341 |
vertical-align: middle; |
| 342 |
} |
| 343 |
|
| 344 |
#mapping-container th { |
| 345 |
width: 7rem; |
| 346 |
} |
| 347 |
|
| 348 |
/* # 2.インポート進捗画面 */ |
| 349 |
#csv-preview-container table th, |
| 350 |
#csv-preview-container table td { |
| 351 |
padding: 4px 10px; |
| 352 |
} |
| 353 |
|
| 354 |
/* マッピング済みの列の背景色を変更(お好みの色に変更してください) */ |
| 355 |
.mapped-column { |
| 356 |
background-color: #ffffcc; |
| 357 |
} |
| 358 |
|