Created Cally
This commit is contained in:
+237
@@ -248,6 +248,242 @@ input, textarea { font: inherit; color: inherit; }
|
||||
border-color: var(--line);
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
.cally-tab {
|
||||
margin-right: 4px;
|
||||
background: var(--accent-soft);
|
||||
border-color: var(--accent-line);
|
||||
color: var(--accent);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.cally-tab:hover {
|
||||
background: color-mix(in oklch, var(--accent) 18%, var(--bg));
|
||||
color: var(--accent);
|
||||
}
|
||||
.cally-tab.is-active {
|
||||
background: var(--accent);
|
||||
color: var(--accent-fg);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
/* === CALLY CALENDAR === */
|
||||
.cally-screen {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
background: var(--bg);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cally-screen.is-fullscreen {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.cally__head {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
align-items: center;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: var(--bg-elev);
|
||||
}
|
||||
|
||||
.cally__title-group { display: flex; align-items: baseline; gap: 12px; }
|
||||
.cally__title { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
|
||||
.cally__range { font-size: 18px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
|
||||
|
||||
.cally__nav-center { display: flex; align-items: center; gap: 8px; justify-content: center; }
|
||||
|
||||
.cally__actions { display: flex; gap: 8px; justify-self: end; }
|
||||
|
||||
.cally__viewport {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
padding: 0;
|
||||
background: var(--bg-sunken);
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.cally__grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--bg-elev);
|
||||
min-width: 100%;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.cally__row {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--line);
|
||||
flex: 1;
|
||||
}
|
||||
.cally__row:last-child { border-bottom: none; }
|
||||
|
||||
.cally__cell {
|
||||
flex: 1;
|
||||
min-width: 48px;
|
||||
border-right: 1px solid var(--line);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.cally__cell:last-child { border-right: none; }
|
||||
|
||||
.cally__cell.is-label {
|
||||
width: 160px;
|
||||
flex: none;
|
||||
min-width: 160px;
|
||||
padding: 0 16px;
|
||||
align-items: flex-start;
|
||||
background: var(--bg-sunken);
|
||||
position: sticky;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
border-right: 2px solid var(--line-strong);
|
||||
}
|
||||
|
||||
.cally__staff-name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--fg);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.cally__cell.is-head {
|
||||
flex: none;
|
||||
height: 60px;
|
||||
background: var(--bg-sunken);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 11;
|
||||
}
|
||||
|
||||
.cally__cell.is-date {
|
||||
background: var(--bg-sunken);
|
||||
}
|
||||
|
||||
.cally__day { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 2px; }
|
||||
.cally__num { font-size: 15px; font-weight: 600; color: var(--fg-muted); }
|
||||
|
||||
.cally__cell.is-today .cally__num {
|
||||
color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.cally__cell.is-slot {
|
||||
background: #ffffff;
|
||||
transition: background 0.1s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.cally__job-count {
|
||||
position: absolute;
|
||||
bottom: 2px;
|
||||
right: 4px;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
padding: 0 4px;
|
||||
border-radius: 4px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.cally__tooltip {
|
||||
position: absolute;
|
||||
z-index: 10000;
|
||||
background: var(--bg-elev);
|
||||
border: 1px solid var(--line-strong);
|
||||
box-shadow: var(--shadow-pop);
|
||||
border-radius: var(--radius);
|
||||
padding: 8px 12px;
|
||||
min-width: 180px;
|
||||
pointer-events: none;
|
||||
animation: pop 0.15s ease-out;
|
||||
}
|
||||
|
||||
@keyframes pop {
|
||||
from { opacity: 0; transform: scale(0.95) translateY(-5px); }
|
||||
to { opacity: 1; transform: scale(1) translateY(0); }
|
||||
}
|
||||
|
||||
.cally__tooltip-header {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: var(--fg-soft);
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 6px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.cally__tooltip-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.cally__tooltip-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.cally__tooltip-id {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.cally__tooltip-addr {
|
||||
font-size: 11px;
|
||||
color: var(--fg-muted);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 240px;
|
||||
}
|
||||
|
||||
.cally__cell.is-weekend {
|
||||
background: oklch(98% 0.005 80);
|
||||
}
|
||||
|
||||
.cally__cell.is-busy {
|
||||
background-color: #ffffff;
|
||||
background-image: repeating-linear-gradient(
|
||||
45deg,
|
||||
transparent,
|
||||
transparent 6px,
|
||||
oklch(63% 0.18 28 / 0.4) 6px,
|
||||
oklch(63% 0.18 28 / 0.4) 10px
|
||||
);
|
||||
border-bottom: 1px solid oklch(63% 0.18 28 / 0.2);
|
||||
}
|
||||
|
||||
.cally-screen.is-loading {
|
||||
height: 300px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--fg-soft);
|
||||
font-size: 14px;
|
||||
}
|
||||
.tab__dot { width: 7px; height: 7px; border-radius: 999px; }
|
||||
|
||||
.topbar__right { display: flex; align-items: center; gap: 6px; }
|
||||
@@ -296,6 +532,7 @@ input, textarea { font: inherit; color: inherit; }
|
||||
|
||||
/* === MAIN === */
|
||||
.main { flex: 1; overflow: auto; padding: 20px; min-height: 0; }
|
||||
.main:has(.cally-screen) { padding: 0; }
|
||||
|
||||
/* === BOARD (overview) === */
|
||||
.board {
|
||||
|
||||
Reference in New Issue
Block a user