chore: restructure repo as worker collection
This commit is contained in:
95
smsreceiver-worker/pages/public/app.css
Normal file
95
smsreceiver-worker/pages/public/app.css
Normal file
@@ -0,0 +1,95 @@
|
||||
:root {
|
||||
--bg: #e8e8e8;
|
||||
--card: #fefefe;
|
||||
--ink: #1b1b1b;
|
||||
--primary: #6c7cff;
|
||||
--primary-dark: #4f5de1;
|
||||
--danger: #e34a4a;
|
||||
--border: #1b1b1b;
|
||||
--shadow: 4px 4px 0 #1b1b1b;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Pixel", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
main { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
|
||||
|
||||
.pixel-card {
|
||||
background: var(--card);
|
||||
border: 2px solid var(--border);
|
||||
box-shadow: var(--shadow);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
|
||||
.title { font-size: 20px; font-weight: 700; }
|
||||
|
||||
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
padding: 6px 12px; border: 2px solid var(--border);
|
||||
background: #fff; cursor: pointer; text-decoration: none; color: var(--ink);
|
||||
box-shadow: 2px 2px 0 var(--border); border-radius: 6px; font-size: 14px;
|
||||
}
|
||||
.btn.active, .btn.primary { background: var(--primary); color: #fff; }
|
||||
.btn.danger { background: var(--danger); color: #fff; }
|
||||
.btn.small { padding: 4px 8px; font-size: 12px; }
|
||||
|
||||
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
|
||||
.stat-card { text-align: center; }
|
||||
.stat-card .label { font-size: 12px; color: #555; }
|
||||
.stat-card .value { font-size: 28px; font-weight: 700; }
|
||||
|
||||
.filter .tags { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.tag {
|
||||
padding: 4px 10px; border: 2px solid var(--border); border-radius: 6px;
|
||||
background: #fff; cursor: pointer; box-shadow: 2px 2px 0 var(--border);
|
||||
}
|
||||
.tag.active { background: var(--primary); color: #fff; }
|
||||
|
||||
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
||||
input {
|
||||
padding: 8px 10px; border: 2px solid var(--border); border-radius: 6px;
|
||||
box-shadow: 2px 2px 0 var(--border); outline: none; font-size: 14px;
|
||||
}
|
||||
|
||||
.table-wrap { overflow-x: auto; }
|
||||
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 720px; }
|
||||
.table-wrap th, .table-wrap td { padding: 10px; border-bottom: 2px dashed #ccc; text-align: left; }
|
||||
.table-wrap th { background: #f3f3f3; }
|
||||
.ellipsis { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
.badge { padding: 2px 8px; border: 2px solid var(--border); border-radius: 6px; box-shadow: 2px 2px 0 var(--border); }
|
||||
.badge.ok { background: #9be38b; }
|
||||
.badge.err { background: #f08c8c; }
|
||||
|
||||
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
|
||||
|
||||
.detail h3 { margin-top: 0; }
|
||||
.detail-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #ddd; }
|
||||
.detail-row .k { color: #666; }
|
||||
|
||||
.login-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
|
||||
.login-card { max-width: 420px; width: 100%; }
|
||||
.form-group { margin-bottom: 12px; }
|
||||
.form-group label { display: block; margin-bottom: 6px; }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
main { padding: 0 10px; }
|
||||
.header { padding: 12px; }
|
||||
.title { width: 100%; text-align: center; }
|
||||
.nav { width: 100%; justify-content: center; }
|
||||
.stats { grid-template-columns: 1fr; }
|
||||
.toolbar { flex-direction: column; align-items: stretch; }
|
||||
.filter .tags { max-height: 120px; overflow-y: auto; }
|
||||
.detail-row { grid-template-columns: 1fr; }
|
||||
.table-wrap table { min-width: 600px; }
|
||||
}
|
||||
Reference in New Issue
Block a user