weather.css 1.6 KB

123456789101112131415161718192021222324
  1. .topbar-actions .weather-button { display: inline-flex; align-items: center; white-space: nowrap; }
  2. .weather-modal { background: var(--panel); }
  3. .weather-modal .weather-location, .weather-modal #weatherStatus { color: var(--muted); font-size: 11px; }
  4. .weather-current { display: flex; align-items: center; gap: 20px; margin: 24px 0 16px; }
  5. .weather-icon { font-size: 52px; color: var(--accent); }
  6. .weather-current strong { font: 700 52px var(--mono); }
  7. .weather-current p, .weather-modal .weather-details { color: var(--muted); font-size: 12px; margin: 6px 0; }
  8. .weather-forecast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 22px 0; }
  9. .weather-forecast > div { display: grid; gap: 12px; padding: 14px 6px; text-align: center; border: 1px solid var(--line); border-radius: 12px; font-size: 11px; }
  10. .weather-forecast > div > span:nth-child(2) { font-size: 26px; color: var(--accent); }
  11. .weather-forecast strong { font: 700 13px var(--mono); }
  12. .weather-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
  13. .weather-footer a { color: var(--muted); font-size: 11px; }
  14. .weather-footer button { color: var(--accent); }
  15. .weather-footer button:disabled { opacity: .5; cursor: wait; }
  16. @media (max-width: 600px) {
  17. .weather-modal { padding: 20px; }
  18. }
  19. .weather-button { gap: 6px; }
  20. @media (max-width: 800px) {
  21. .topbar-actions .weather-button { display: inline-flex; justify-content: center; width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); }
  22. .weather-label { display: none; }
  23. }