Shrink calendar widget to half width
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ba7369eeaf
commit
cc05070714
@ -11,7 +11,7 @@
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr@4.6.13/dist/flatpickr.min.css">
|
||||
<link rel="stylesheet" href="styles.css?v=28" />
|
||||
<link rel="stylesheet" href="styles.css?v=29" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="topbar">
|
||||
|
||||
10
styles.css
10
styles.css
@ -832,7 +832,10 @@ input.flatpickr-input {
|
||||
.news-empty-sub { font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 480px; margin: 0 auto; }
|
||||
|
||||
/* ---------- Calendar widget ---------- */
|
||||
.home-calendar { }
|
||||
.home-calendar {
|
||||
max-width: 50%;
|
||||
padding: 24px 28px;
|
||||
}
|
||||
.cal-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@ -841,7 +844,7 @@ input.flatpickr-input {
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.cal-head h2 { margin: 0; }
|
||||
.cal-head h2 { margin: 0; font-size: 18px; }
|
||||
.cal-nav { display: flex; align-items: center; gap: 10px; }
|
||||
.cal-btn {
|
||||
width: 34px; height: 34px;
|
||||
@ -893,7 +896,7 @@ input.flatpickr-input {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--r-sm);
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: var(--ink);
|
||||
cursor: pointer;
|
||||
@ -925,6 +928,7 @@ input.flatpickr-input {
|
||||
.cal-hint { margin-top: 18px; margin-bottom: 0; }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.home-calendar { max-width: 100%; }
|
||||
.home-grid { grid-template-columns: 1fr; }
|
||||
.clock-time { font-size: 64px; }
|
||||
.weather-temp { font-size: 64px; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user