view hg-web/src/base.css @ 168:f3084bca7317

[Misc] Fixed all errors and all tests should pass now.
author MrJuneJune <me@mrjunejune.com>
date Mon, 19 Jan 2026 16:29:02 -0800
parents 2301aeb7503b
children 9f4429c49733
line wrap: on
line source

/* --- Colors  ---*/
:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --border: #e0e0e0;
  --hover: #f5f5f5;
  --accent: #0066cc;
  --accent-hover: #0052a3;
  --secondary: #6c757d;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --code-bg: #f6f8fa;
  --link: #0066cc;
  --link-hover: #0052a3;
}

.dark {
  --bg: #0d1117;
  --fg: #c9d1d9;
  --border: #30363d;
  --hover: #161b22;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --secondary: #8b949e;
  --success: #3fb950;
  --warning: #d29922;
  --danger: #f85149;
  --code-bg: #161b22;
  --link: #58a6ff;
  --link-hover: #79c0ff;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light-mode) {
    --bg: #0d1117;
    --fg: #c9d1d9;
    --border: #30363d;
    --hover: #161b22;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --secondary: #8b949e;
    --success: #3fb950;
    --warning: #d29922;
    --danger: #f85149;
    --code-bg: #161b22;
    --link: #58a6ff;
    --link-hover: #79c0ff;
  }
}

/* --- Reset and Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

code {
  background: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background: none;
  padding: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  main {
    padding: 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}