style.css 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. /* ── reset & base ─────────────────────────────────────────────────── */
  2. * { box-sizing: border-box; margin: 0; padding: 0; }
  3. body {
  4. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  5. background: #0f1117;
  6. color: #c9d1d9;
  7. line-height: 1.6;
  8. }
  9. /* ── navbar ────────────────────────────────────────────────────────── */
  10. .navbar {
  11. display: flex;
  12. align-items: center;
  13. justify-content: space-between;
  14. padding: 0.75rem 1.5rem;
  15. background: #161b22;
  16. border-bottom: 1px solid #30363d;
  17. }
  18. .nav-brand {
  19. color: #58a6ff;
  20. font-weight: 700;
  21. font-size: 1.1rem;
  22. text-decoration: none;
  23. }
  24. .nav-brand:hover { text-decoration: none; }
  25. .nav-links { display: flex; gap: 1rem; }
  26. .nav-link {
  27. color: #8b949e;
  28. text-decoration: none;
  29. font-size: 0.9rem;
  30. }
  31. .nav-link:hover { color: #c9d1d9; text-decoration: none; }
  32. /* ── layout ────────────────────────────────────────────────────────── */
  33. .container { max-width: 1100px; margin: 0 auto; padding: 2rem; }
  34. /* ── headings ──────────────────────────────────────────────────────── */
  35. h1 { color: #58a6ff; margin-bottom: 1rem; font-size: 1.5rem; }
  36. h2 { color: #79c0ff; margin: 1.5rem 0 0.75rem; font-size: 1.2rem; }
  37. h3 { color: #79c0ff; margin: 1rem 0 0.5rem; font-size: 1rem; }
  38. /* ── links ─────────────────────────────────────────────────────────── */
  39. a { color: #58a6ff; text-decoration: none; }
  40. a:hover { text-decoration: underline; }
  41. /* ── cards ─────────────────────────────────────────────────────────── */
  42. .card {
  43. background: #161b22;
  44. border: 1px solid #30363d;
  45. border-radius: 6px;
  46. padding: 1.5rem;
  47. margin: 1rem 0;
  48. }
  49. /* ── tables ────────────────────────────────────────────────────────── */
  50. table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
  51. th, td {
  52. padding: 0.6rem 0.75rem;
  53. text-align: left;
  54. border-bottom: 1px solid #21262d;
  55. font-size: 0.875rem;
  56. }
  57. th { color: #8b949e; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
  58. tr:hover td { background: #1c2128; }
  59. /* ── badges ────────────────────────────────────────────────────────── */
  60. .badge {
  61. display: inline-block;
  62. padding: 0.15rem 0.5rem;
  63. border-radius: 12px;
  64. font-size: 0.75rem;
  65. font-weight: 600;
  66. }
  67. .badge-green { background: #238636; color: #fff; }
  68. .badge-red { background: #da3633; color: #fff; }
  69. .badge-gray { background: #30363d; color: #8b949e; }
  70. .badge-blue { background: #1f6feb; color: #fff; }
  71. /* ── buttons ───────────────────────────────────────────────────────── */
  72. .btn {
  73. display: inline-block;
  74. padding: 0.4rem 0.8rem;
  75. border-radius: 6px;
  76. font-size: 0.85rem;
  77. font-weight: 500;
  78. text-decoration: none;
  79. cursor: pointer;
  80. border: 1px solid transparent;
  81. line-height: 1.4;
  82. }
  83. .btn:hover { text-decoration: none; }
  84. .btn-primary { background: #238636; color: #fff; border-color: #2ea043; }
  85. .btn-primary:hover { background: #2ea043; }
  86. .btn-danger { background: #da3633; color: #fff; border-color: #f85149; }
  87. .btn-danger:hover { background: #f85149; }
  88. .btn-ghost { background: transparent; color: #58a6ff; border-color: #30363d; }
  89. .btn-ghost:hover { background: #1c2128; }
  90. .btn-sm { padding: 0.25rem 0.55rem; font-size: 0.8rem; }
  91. /* ── forms ─────────────────────────────────────────────────────────── */
  92. .form-group { margin-bottom: 1rem; }
  93. .form-group label {
  94. display: block;
  95. margin-bottom: 0.3rem;
  96. color: #8b949e;
  97. font-size: 0.85rem;
  98. }
  99. .form-group input,
  100. .form-group select,
  101. .form-group textarea {
  102. width: 100%;
  103. padding: 0.5rem 0.75rem;
  104. background: #0d1117;
  105. border: 1px solid #30363d;
  106. border-radius: 6px;
  107. color: #c9d1d9;
  108. font-size: 0.9rem;
  109. font-family: inherit;
  110. }
  111. .form-group input:focus,
  112. .form-group select:focus,
  113. .form-group textarea:focus {
  114. outline: none;
  115. border-color: #58a6ff;
  116. box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
  117. }
  118. .form-group textarea { resize: vertical; min-height: 80px; }
  119. .form-row { display: flex; gap: 1rem; }
  120. .form-row .form-group { flex: 1; }
  121. .form-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; }
  122. .form-hint { color: #6e7681; font-size: 0.8rem; margin-top: 0.2rem; }
  123. /* ── detail grid ───────────────────────────────────────────────────── */
  124. .detail-grid {
  125. display: grid;
  126. grid-template-columns: 180px 1fr;
  127. gap: 0.5rem 1rem;
  128. margin: 1rem 0;
  129. }
  130. .detail-label { color: #8b949e; font-size: 0.85rem; }
  131. .detail-value { font-size: 0.9rem; }
  132. /* ── toolbar ───────────────────────────────────────────────────────── */
  133. .toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
  134. .toolbar .search-input { max-width: 300px; }
  135. /* ── status ────────────────────────────────────────────────────────── */
  136. .status-ok { color: #3fb950; }
  137. .status-warn { color: #d29922; }
  138. /* ── empty state ───────────────────────────────────────────────────── */
  139. .empty { color: #6e7681; text-align: center; padding: 3rem; font-size: 0.95rem; }
  140. /* ── responsive ────────────────────────────────────────────────────── */
  141. @media (max-width: 700px) {
  142. .container { padding: 1rem; }
  143. .form-row { flex-direction: column; gap: 0; }
  144. .detail-grid { grid-template-columns: 1fr; }
  145. .toolbar { flex-direction: column; align-items: stretch; }
  146. .toolbar .search-input { max-width: none; }
  147. }
  148. /* ── autocomplete ──────────────────────────────────────────────────── */
  149. .autocomplete-dropdown {
  150. position: absolute;
  151. z-index: 100;
  152. background: #1c2128;
  153. border: 1px solid #30363d;
  154. border-radius: 6px;
  155. max-height: 280px;
  156. overflow-y: auto;
  157. box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  158. }
  159. .autocomplete-item {
  160. padding: 0.55rem 0.75rem;
  161. cursor: pointer;
  162. font-size: 0.85rem;
  163. border-bottom: 1px solid #21262d;
  164. }
  165. .autocomplete-item:last-child { border-bottom: none; }
  166. .autocomplete-item:hover,
  167. .autocomplete-item.active {
  168. background: #1f6feb;
  169. color: #fff;
  170. }
  171. .autocomplete-item .ac-main { font-weight: 500; }
  172. .autocomplete-item .ac-sub { font-size: 0.75rem; color: #8b949e; }
  173. .autocomplete-item:hover .ac-sub,
  174. .autocomplete-item.active .ac-sub { color: #c9d1d9; }
  175. .autocomplete-item .ac-coords { font-size: 0.7rem; color: #6e7681; float: right; }
  176. .autocomplete-item:hover .ac-coords,
  177. .autocomplete-item.active .ac-coords { color: #8b949e; }
  178. /* form-group needs relative positioning for the dropdown */
  179. .form-group { position: relative; }