|
1 | | -h1{ |
2 | | -/* font-family:"Arial Black", Gadget, sans-serif;*/ |
3 | | - font-family:"Times New Romans", Gadget, sans-serif; |
| 1 | +:root{ |
| 2 | + --bg: #f7f8fb; |
| 3 | + --card: #ffffff; |
| 4 | + --muted: #6b7280; |
| 5 | + --primary: #4CAF50; |
| 6 | + --danger: #f44336; |
| 7 | + --border: #e6e9ee; |
4 | 8 | } |
| 9 | + |
| 10 | +*{box-sizing:border-box} |
| 11 | + |
5 | 12 | body{ |
6 | | - color:black; |
7 | | - background-color:white; |
8 | | - left-margin:10px; |
9 | | - right-margin:10px; |
10 | | -} |
11 | | -table{ |
12 | | - width:95%; |
13 | | - border-collapse:collapse; |
14 | | - table-layout:fixed; |
15 | | -} |
16 | | -td |
17 | | -{ |
18 | | - border: rgba(224, 119, 70, 1) 2px solid; |
19 | | - word-wrap:break-word; |
| 13 | + margin:18px; |
| 14 | + color:#0f1724; |
| 15 | + background:var(--bg); |
| 16 | + font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; |
| 17 | + -webkit-font-smoothing:antialiased; |
20 | 18 | } |
21 | | -table#close{ |
22 | 19 |
|
23 | | - table-layout:default; |
24 | | - border-collapse:seperate; |
25 | | - border-spacing: 5px 5px; |
26 | | - border:none; |
27 | | - vertical-align:top; |
28 | | -} |
29 | | -table.none |
30 | | -{ |
31 | | - border:none; |
32 | | - vertical-align:top; |
33 | | -} |
34 | | -table.none td |
35 | | -{ |
36 | | - border: none; |
37 | | -} |
38 | | -tr.row td{ |
39 | | - text-decoration:italic; |
40 | | -} |
41 | | -th.status{ |
42 | | - width:5%; |
43 | | -} |
44 | | -th.name{ |
45 | | - width:20%; |
46 | | -} |
47 | | -th.des{ |
48 | | - width:40%; |
49 | | - padding:5px 5px 5px 5px; |
50 | | -} |
51 | | -th.date{ |
52 | | - width:8%; |
53 | | -} |
54 | | -th.pr{ |
55 | | - width:7%; |
56 | | -} |
57 | | -th.func1{ |
58 | | - width:6%; |
59 | | -} |
60 | | -th.func2{ |
61 | | - width:5%; |
62 | | -} |
63 | | -input[type=submit] { |
64 | | - width: 20em; height: 2em; |
| 20 | +h1{ |
| 21 | + font-family: "Times New Roman", Times, serif; |
| 22 | + font-size:1.9rem; |
| 23 | + margin:0 0 12px; |
| 24 | + text-align:center; |
| 25 | + color:#0b1220; |
65 | 26 | } |
66 | | -ul { |
67 | | - list-style-type: none; |
68 | | - margin: 0; |
69 | | - padding: 0; |
70 | | - overflow: hidden; |
71 | | - background-color: #333; |
| 27 | + |
| 28 | +/* Navigation */ |
| 29 | +ul{ |
| 30 | + list-style:none; |
| 31 | + margin:0 0 14px 0; |
| 32 | + padding:8px; |
| 33 | + display:flex; |
| 34 | + gap:8px; |
| 35 | + justify-content:center; |
| 36 | +} |
| 37 | +li{display:block} |
| 38 | +li a{ |
| 39 | + display:block; |
| 40 | + color:#fff; |
| 41 | + padding:10px 14px; |
| 42 | + text-decoration:none; |
| 43 | + border-radius:8px; |
| 44 | + background:#333; |
| 45 | + transition:background .12s, transform .08s; |
| 46 | +} |
| 47 | +li a:hover{background:#111} |
| 48 | +a.active{background:var(--primary)} |
| 49 | + |
| 50 | +/* Tables */ |
| 51 | +table{ |
| 52 | + width:95%; |
| 53 | + margin:12px auto; |
| 54 | + border-collapse:separate; |
| 55 | + border-spacing:0; |
| 56 | + background:var(--card); |
| 57 | + border-radius:10px; |
| 58 | + overflow:hidden; |
| 59 | + box-shadow:0 6px 18px rgba(15,23,42,0.06); |
72 | 60 | } |
73 | | -li { |
74 | | - float: left; |
| 61 | + |
| 62 | +/* Header cells */ |
| 63 | +th{ |
| 64 | + text-align:left; |
| 65 | + padding:12px 14px; |
| 66 | + background:#f8fafc; |
| 67 | + color:#374151; |
| 68 | + font-weight:600; |
| 69 | + border-bottom:1px solid var(--border); |
75 | 70 | } |
76 | | -li a { |
77 | | - display: block; |
78 | | - color: white; |
79 | | - text-align: center; |
80 | | - padding: 14px 16px; |
81 | | - text-decoration: none; |
| 71 | + |
| 72 | +td{ |
| 73 | + padding:12px 14px; |
| 74 | + vertical-align:middle; |
| 75 | + border-bottom:1px solid var(--border); |
| 76 | + color:#0f1724; |
| 77 | + word-wrap:break-word; |
82 | 78 | } |
83 | | -a.active { |
84 | | - background-color: #4CAF50; |
| 79 | + |
| 80 | +tr.datas:nth-child(odd){background:#ffffff} |
| 81 | +tr.datas:nth-child(even){background:#fbfbfd} |
| 82 | +tr.datas:hover{background:#f3f4f6} |
| 83 | + |
| 84 | +/* Column widths (kept from original sizes) */ |
| 85 | +th.status{width:6%} |
| 86 | +th.name{width:20%} |
| 87 | +th.des{width:40%; padding:5px} |
| 88 | +th.date{width:10%} |
| 89 | +th.pr{width:8%} |
| 90 | +th.func1{width:6%} |
| 91 | +th.func2{width:4%} |
| 92 | + |
| 93 | +/* Inputs, selects, textarea */ |
| 94 | +input[type=text], textarea, select{ |
| 95 | + padding:8px 10px; |
| 96 | + border:1px solid #d1d5db; |
| 97 | + border-radius:8px; |
| 98 | + font-size:0.95rem; |
| 99 | +} |
| 100 | +textarea{resize:vertical} |
| 101 | +input:focus, textarea:focus, select:focus{outline:none; border-color:var(--primary); box-shadow:0 0 0 6px rgba(76,175,80,0.06)} |
| 102 | + |
| 103 | +/* Buttons */ |
| 104 | +button{cursor:pointer} |
| 105 | +button[type=submit], input[type=submit]{ |
| 106 | + color:white; |
| 107 | + border:none; |
| 108 | + padding:8px 12px; |
| 109 | + border-radius:8px; |
| 110 | + font-weight:600; |
| 111 | +} |
| 112 | +/* Default green button */ |
| 113 | +button[type=submit]:not([style]), input[type=submit]:not([style]){ |
| 114 | + background:linear-gradient(180deg,var(--primary),#3aa14a); |
| 115 | +} |
| 116 | +/* Respect inline styles */ |
| 117 | +button[style], input[style]{ |
| 118 | + background-color: inherit; |
| 119 | +} |
| 120 | +/* Danger / Delete */ |
| 121 | +.func1 button{background:var(--danger)} |
| 122 | +.func1 button:hover{background:#d32f2f} |
| 123 | +.func2 button{background:#3b82f6} |
| 124 | +.func2 button:hover{background:#2563eb} |
| 125 | + |
| 126 | +/* Small image icon used for status */ |
| 127 | +input[type="image"]{width:26px;height:26px;border:0;padding:0} |
| 128 | + |
| 129 | +/* Special tables used for forms */ |
| 130 | +table#close{table-layout:auto;border-spacing:5px;border:none;vertical-align:top} |
| 131 | +table.none{border:none;vertical-align:top} |
| 132 | +table.none td{border:none;padding:6px} |
| 133 | + |
| 134 | +/* Responsive */ |
| 135 | +@media (max-width:800px){ |
| 136 | + table{width:100%} |
| 137 | + th, td{padding:10px} |
| 138 | + h1{font-size:1.5rem} |
| 139 | + ul{flex-wrap:wrap} |
85 | 140 | } |
86 | | -/* Change the link color to #111 (black) on hover */ |
87 | | -li a:hover { |
88 | | - background-color: #111; |
| 141 | + |
| 142 | +@media (max-width:480px){ |
| 143 | + th, td{font-size:0.95rem;padding:8px} |
| 144 | + input[type=text], textarea{font-size:0.95rem} |
89 | 145 | } |
90 | 146 |
|
0 commit comments