- Show 6 days in a 3x2 grid (3 columns, 2 rows) with info panel spanning the full right column - Day columns explicitly grid-placed to prevent auto-flow into panel column - Larger fonts throughout: event cards 14px, day number 26px, clock 52px Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
352 lines
5.9 KiB
CSS
352 lines
5.9 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
background: #F4F5F7;
|
|
color: #2B2B33;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.app {
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 14px 20px 20px;
|
|
}
|
|
|
|
/* ---------- Top bar ---------- */
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
background: #FFFFFF;
|
|
border: 1px solid #E3E5EA;
|
|
border-radius: 18px;
|
|
padding: 6px 14px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #4A4E5A;
|
|
}
|
|
|
|
.filter-select {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
cursor: pointer;
|
|
padding-right: 28px;
|
|
background-image: linear-gradient(45deg, transparent 50%, #8A8F9C 50%), linear-gradient(135deg, #8A8F9C 50%, transparent 50%);
|
|
background-position: calc(100% - 14px) center, calc(100% - 9px) center;
|
|
background-size: 5px 5px, 5px 5px;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.date-range-label {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #4A4E5A;
|
|
}
|
|
|
|
/* ---------- Topbar right-side items removed — now live in info panel ---------- */
|
|
|
|
|
|
/* ---------- Week grid ---------- */
|
|
|
|
.week-grid {
|
|
flex: 1;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr) 210px;
|
|
grid-template-rows: 1fr 1fr;
|
|
gap: 12px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.day-column {
|
|
background: #FFFFFF;
|
|
border-radius: 14px;
|
|
padding: 12px 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.day-column.is-today {
|
|
box-shadow: 0 0 0 2px #4A90D9 inset;
|
|
}
|
|
|
|
.day-header {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.day-name {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
color: #A6AAB4;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.day-number {
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
color: #1F2430;
|
|
}
|
|
|
|
.day-count {
|
|
font-size: 12px;
|
|
color: #A6AAB4;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.day-events {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.event-card {
|
|
border-radius: 8px;
|
|
padding: 8px 10px;
|
|
border-left: 5px solid transparent;
|
|
font-size: 14px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.event-time {
|
|
font-weight: 700;
|
|
color: rgba(0, 0, 0, 0.5);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.event-title {
|
|
font-weight: 700;
|
|
color: #1A1A2A;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.event-member {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: rgba(0, 0, 0, 0.45);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
|
|
.event-placeholder {
|
|
grid-column: 1 / -1;
|
|
text-align: center;
|
|
color: #A6AAB4;
|
|
padding-top: 60px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ---------- Info panel (clock + weather) ---------- */
|
|
|
|
.info-panel {
|
|
background: #FFFFFF;
|
|
border-radius: 14px;
|
|
padding: 18px 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.info-clock {
|
|
font-size: 52px;
|
|
font-weight: 700;
|
|
color: #1F2430;
|
|
letter-spacing: -1px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.info-weekday {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #A6AAB4;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.info-date {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: #4A4E5A;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.info-divider {
|
|
height: 1px;
|
|
background: #F0F1F4;
|
|
margin: 14px 0;
|
|
}
|
|
|
|
.info-weather-current {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.info-weather-current .owm-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
.info-current-temp {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: #1F2430;
|
|
}
|
|
|
|
.info-current-desc {
|
|
font-size: 11px;
|
|
color: #A6AAB4;
|
|
text-transform: capitalize;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.info-forecast {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.forecast-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.forecast-row .f-day {
|
|
font-weight: 600;
|
|
color: #4A4E5A;
|
|
width: 30px;
|
|
}
|
|
|
|
.forecast-row .f-icon .owm-icon {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.forecast-row .f-temps {
|
|
text-align: right;
|
|
color: #4A4E5A;
|
|
}
|
|
|
|
.forecast-row .f-temps .f-max {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.forecast-row .f-temps .f-min {
|
|
color: #A6AAB4;
|
|
}
|
|
|
|
/* ---------- Add button ---------- */
|
|
|
|
.add-fab {
|
|
position: fixed;
|
|
bottom: 26px;
|
|
right: 26px;
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: #4A90D9;
|
|
color: #FFFFFF;
|
|
font-size: 26px;
|
|
font-weight: 400;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
box-shadow: 0 6px 16px rgba(74, 144, 217, 0.4);
|
|
}
|
|
|
|
.add-fab:hover {
|
|
background: #3A7BC0;
|
|
}
|
|
|
|
.add-toast {
|
|
position: fixed;
|
|
bottom: 90px;
|
|
right: 26px;
|
|
background: #1F2430;
|
|
color: #FFFFFF;
|
|
padding: 10px 16px;
|
|
border-radius: 10px;
|
|
font-size: 12.5px;
|
|
max-width: 240px;
|
|
opacity: 0;
|
|
transform: translateY(6px);
|
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.add-toast.visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* ---------- Photo slideshow screensaver ---------- */
|
|
|
|
.slideshow-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: #000;
|
|
z-index: 100;
|
|
}
|
|
|
|
.slideshow-overlay.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.slide-img {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
opacity: 0;
|
|
transition: opacity 1.5s ease-in-out;
|
|
}
|
|
|
|
.slide-img.active {
|
|
opacity: 1;
|
|
}
|
|
|
|
.slideshow-hint {
|
|
position: absolute;
|
|
bottom: 32px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
color: rgba(255, 255, 255, 0.35);
|
|
font-size: 13px;
|
|
letter-spacing: 0.04em;
|
|
pointer-events: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Scrollbar styling for day columns */
|
|
.day-events::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.day-events::-webkit-scrollbar-thumb {
|
|
background: #E3E5EA;
|
|
border-radius: 4px;
|
|
}
|