Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -15,6 +15,18 @@
|
|
| 15 |
--shadow:0 4px 20px rgba(0,0,0,.06);
|
| 16 |
}
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
*{box-sizing:border-box}
|
| 19 |
html,body{height:100%}
|
| 20 |
body{
|
|
@@ -25,15 +37,16 @@ body{
|
|
| 25 |
.container{max-width:1100px; margin:24px auto; padding:0 16px}
|
| 26 |
|
| 27 |
.center{display:block}
|
| 28 |
-
.hero{
|
| 29 |
-
|
| 30 |
-
}
|
| 31 |
.hero h1{
|
| 32 |
margin:4px 0 6px; font-size:28px; font-weight:700; color:var(--primary);
|
| 33 |
}
|
|
|
|
|
|
|
| 34 |
.signature{
|
| 35 |
display:inline-flex; gap:8px; align-items:center; justify-content:center;
|
| 36 |
-
background
|
| 37 |
color:var(--muted); font-weight:600; box-shadow:var(--shadow);
|
| 38 |
}
|
| 39 |
.signature .role{color:var(--primary)}
|
|
@@ -47,14 +60,14 @@ body{
|
|
| 47 |
.label{display:block; font-weight:600; margin-bottom:8px; color:var(--muted)}
|
| 48 |
.paste{
|
| 49 |
width:100%; min-height:160px; resize:vertical; padding:12px 14px; border-radius:12px;
|
| 50 |
-
border:1px solid var(--border); outline:none; background
|
| 51 |
}
|
| 52 |
.paste:focus{border-color:var(--primary); box-shadow:0 0 0 3px rgba(65,55,168,.12)}
|
| 53 |
|
| 54 |
.filters{display:flex; gap:10px; margin:12px 0}
|
| 55 |
.control{
|
| 56 |
flex:1; padding:10px 12px; border-radius:10px; border:1px solid var(--border);
|
| 57 |
-
outline:none; background
|
| 58 |
}
|
| 59 |
.control:focus{border-color:var(--primary); box-shadow:0 0 0 3px rgba(65,55,168,.08)}
|
| 60 |
|
|
@@ -65,6 +78,8 @@ body{
|
|
| 65 |
padding:10px 14px; border:none; border-radius:12px; cursor:pointer; font-weight:700;
|
| 66 |
background:#ddd; color:#111; transition:transform .04s ease, box-shadow .2s ease;
|
| 67 |
}
|
|
|
|
|
|
|
| 68 |
.btn:disabled{opacity:.5; cursor:not-allowed}
|
| 69 |
.btn:hover:not(:disabled){transform:translateY(-1px)}
|
| 70 |
.btn-primary{background:var(--primary); color:#fff}
|
|
@@ -73,6 +88,7 @@ body{
|
|
| 73 |
.btn-info{background:var(--info); color:#fff}
|
| 74 |
.btn-danger{background:var(--danger); color:#fff}
|
| 75 |
.btn-light{background:#eef2ff; color:#2b2b2b}
|
|
|
|
| 76 |
|
| 77 |
.badge{
|
| 78 |
background:#fff; color:var(--primary); border-radius:999px; padding:2px 8px; margin-right:6px; font-size:12px;
|
|
@@ -84,11 +100,24 @@ body{
|
|
| 84 |
background:var(--table-head); color:#fff; font-weight:700; padding:12px; position:sticky; top:0;
|
| 85 |
}
|
| 86 |
.table tbody td{
|
| 87 |
-
padding:10px 12px; background
|
| 88 |
}
|
| 89 |
.table tbody tr:nth-child(even) td{background:var(--table-alt)}
|
| 90 |
.table td[contenteditable="true"]{outline:none}
|
| 91 |
.table td.invalid{background:#fff3f3}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
.footer{
|
| 94 |
text-align:center; margin:18px 0 6px; color:var(--muted);
|
|
@@ -104,6 +133,7 @@ body{
|
|
| 104 |
transition:.25s ease; pointer-events:none; font-weight:600;
|
| 105 |
}
|
| 106 |
.toast.show{opacity:1; transform:translateY(0)}
|
|
|
|
| 107 |
@media (max-width:640px){
|
| 108 |
.filters{flex-direction:column}
|
| 109 |
.btn-row{gap:6px}
|
|
|
|
| 15 |
--shadow:0 4px 20px rgba(0,0,0,.06);
|
| 16 |
}
|
| 17 |
|
| 18 |
+
/* Dark mode */
|
| 19 |
+
body.dark{
|
| 20 |
+
--bg:#0f172a;
|
| 21 |
+
--card:#111827;
|
| 22 |
+
--ink:#e5e7eb;
|
| 23 |
+
--muted:#94a3b8;
|
| 24 |
+
--border:#1f2937;
|
| 25 |
+
--table-head:#1f2565;
|
| 26 |
+
--table-alt:#0b1326;
|
| 27 |
+
--shadow:0 4px 20px rgba(0,0,0,.35);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
*{box-sizing:border-box}
|
| 31 |
html,body{height:100%}
|
| 32 |
body{
|
|
|
|
| 37 |
.container{max-width:1100px; margin:24px auto; padding:0 16px}
|
| 38 |
|
| 39 |
.center{display:block}
|
| 40 |
+
.hero{margin-bottom:16px}
|
| 41 |
+
.hero-top{display:flex; align-items:center; justify-content:space-between; gap:12px}
|
|
|
|
| 42 |
.hero h1{
|
| 43 |
margin:4px 0 6px; font-size:28px; font-weight:700; color:var(--primary);
|
| 44 |
}
|
| 45 |
+
.actions-inline{display:flex; gap:8px; align-items:center}
|
| 46 |
+
|
| 47 |
.signature{
|
| 48 |
display:inline-flex; gap:8px; align-items:center; justify-content:center;
|
| 49 |
+
background:var(--card); padding:6px 12px; border-radius:999px; border:1px solid var(--border);
|
| 50 |
color:var(--muted); font-weight:600; box-shadow:var(--shadow);
|
| 51 |
}
|
| 52 |
.signature .role{color:var(--primary)}
|
|
|
|
| 60 |
.label{display:block; font-weight:600; margin-bottom:8px; color:var(--muted)}
|
| 61 |
.paste{
|
| 62 |
width:100%; min-height:160px; resize:vertical; padding:12px 14px; border-radius:12px;
|
| 63 |
+
border:1px solid var(--border); outline:none; background:var(--card); color:var(--ink);
|
| 64 |
}
|
| 65 |
.paste:focus{border-color:var(--primary); box-shadow:0 0 0 3px rgba(65,55,168,.12)}
|
| 66 |
|
| 67 |
.filters{display:flex; gap:10px; margin:12px 0}
|
| 68 |
.control{
|
| 69 |
flex:1; padding:10px 12px; border-radius:10px; border:1px solid var(--border);
|
| 70 |
+
outline:none; background:var(--card); color:var(--ink);
|
| 71 |
}
|
| 72 |
.control:focus{border-color:var(--primary); box-shadow:0 0 0 3px rgba(65,55,168,.08)}
|
| 73 |
|
|
|
|
| 78 |
padding:10px 14px; border:none; border-radius:12px; cursor:pointer; font-weight:700;
|
| 79 |
background:#ddd; color:#111; transition:transform .04s ease, box-shadow .2s ease;
|
| 80 |
}
|
| 81 |
+
body.dark .btn{color:#eee}
|
| 82 |
+
.btn.small{padding:6px 10px; font-weight:600}
|
| 83 |
.btn:disabled{opacity:.5; cursor:not-allowed}
|
| 84 |
.btn:hover:not(:disabled){transform:translateY(-1px)}
|
| 85 |
.btn-primary{background:var(--primary); color:#fff}
|
|
|
|
| 88 |
.btn-info{background:var(--info); color:#fff}
|
| 89 |
.btn-danger{background:var(--danger); color:#fff}
|
| 90 |
.btn-light{background:#eef2ff; color:#2b2b2b}
|
| 91 |
+
body.dark .btn-light{background:#1f2937; color:#e5e7eb}
|
| 92 |
|
| 93 |
.badge{
|
| 94 |
background:#fff; color:var(--primary); border-radius:999px; padding:2px 8px; margin-right:6px; font-size:12px;
|
|
|
|
| 100 |
background:var(--table-head); color:#fff; font-weight:700; padding:12px; position:sticky; top:0;
|
| 101 |
}
|
| 102 |
.table tbody td{
|
| 103 |
+
padding:10px 12px; background:var(--card); border-top:1px solid var(--border); color:var(--ink);
|
| 104 |
}
|
| 105 |
.table tbody tr:nth-child(even) td{background:var(--table-alt)}
|
| 106 |
.table td[contenteditable="true"]{outline:none}
|
| 107 |
.table td.invalid{background:#fff3f3}
|
| 108 |
+
body.dark .table td.invalid{background:#3b1d1d}
|
| 109 |
+
|
| 110 |
+
/* شارة التصنيف */
|
| 111 |
+
.cat{
|
| 112 |
+
display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700;
|
| 113 |
+
}
|
| 114 |
+
.cat.login{background:#fff1; color:#fff; border:1px solid #fff3}
|
| 115 |
+
.cat.device{background:#0ea5e922; color:#0ea5e9; border:1px solid #0ea5e955}
|
| 116 |
+
.cat.form{background:#fef3c7; color:#a16207; border:1px solid #f59e0b}
|
| 117 |
+
.cat.network{background:#dcfce7; color:#166534; border:1px solid #22c55e}
|
| 118 |
+
.cat.update{background:#e0e7ff; color:#3730a3; border:1px solid #6366f1}
|
| 119 |
+
.cat.default{background:#f1f5f9; color:#0f172a; border:1px solid #cbd5e1}
|
| 120 |
+
body.dark .cat.default{background:#111827; color:#e5e7eb; border-color:#334155}
|
| 121 |
|
| 122 |
.footer{
|
| 123 |
text-align:center; margin:18px 0 6px; color:var(--muted);
|
|
|
|
| 133 |
transition:.25s ease; pointer-events:none; font-weight:600;
|
| 134 |
}
|
| 135 |
.toast.show{opacity:1; transform:translateY(0)}
|
| 136 |
+
|
| 137 |
@media (max-width:640px){
|
| 138 |
.filters{flex-direction:column}
|
| 139 |
.btn-row{gap:6px}
|