feat: polish mobile ui and admin quick task settings
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #eef3ff;
|
||||
--bg-accent: #d8e6ff;
|
||||
--surface: rgba(255, 255, 255, 0.85);
|
||||
@@ -69,6 +70,14 @@
|
||||
--font-body: "InterLocal", system-ui, sans-serif;
|
||||
--font-heading: "SpaceGroteskLocal", "InterLocal", sans-serif;
|
||||
--safe-bottom: max(24px, env(safe-area-inset-bottom));
|
||||
--body-radial-a: rgba(181, 210, 255, 0.85);
|
||||
--body-radial-b: rgba(255, 221, 196, 0.48);
|
||||
--body-linear-start: #f8fbff;
|
||||
--body-linear-mid: #eef3ff;
|
||||
--body-linear-end: #edf2ff;
|
||||
--input-bg: rgba(255, 255, 255, 0.86);
|
||||
--nav-bg: rgba(255, 255, 255, 0.88);
|
||||
--nav-active-bg: rgba(37, 99, 235, 0.1);
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -77,17 +86,19 @@
|
||||
|
||||
html {
|
||||
min-height: 100%;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
font-family: var(--font-body);
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(circle at top left, rgba(181, 210, 255, 0.85), transparent 32%),
|
||||
radial-gradient(circle at top right, rgba(255, 221, 196, 0.48), transparent 32%),
|
||||
linear-gradient(180deg, #f8fbff 0%, #eef3ff 42%, #edf2ff 100%);
|
||||
radial-gradient(circle at top left, var(--body-radial-a), transparent 32%),
|
||||
radial-gradient(circle at top right, var(--body-radial-b), transparent 32%),
|
||||
linear-gradient(180deg, var(--body-linear-start) 0%, var(--body-linear-mid) 42%, var(--body-linear-end) 100%);
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -167,6 +178,7 @@ p {
|
||||
.content {
|
||||
display: grid;
|
||||
gap: 24px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.panel,
|
||||
@@ -266,7 +278,7 @@ p {
|
||||
padding: 14px 16px;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.94);
|
||||
background: var(--surface-strong);
|
||||
}
|
||||
|
||||
.flash--success {
|
||||
@@ -287,7 +299,7 @@ p {
|
||||
margin-top: 22px;
|
||||
padding: 18px;
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(255, 255, 255, 0.74);
|
||||
background: var(--surface-soft);
|
||||
border: 1px solid rgba(132, 152, 190, 0.2);
|
||||
}
|
||||
|
||||
@@ -366,7 +378,7 @@ p {
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
background: rgba(255, 255, 255, 0.58);
|
||||
background: var(--surface-soft);
|
||||
}
|
||||
|
||||
.task-card {
|
||||
@@ -396,7 +408,7 @@ p {
|
||||
gap: 10px;
|
||||
padding: 10px 14px;
|
||||
border-radius: 999px;
|
||||
background: rgba(37, 99, 235, 0.08);
|
||||
background: var(--nav-active-bg);
|
||||
color: var(--primary-strong);
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -408,7 +420,7 @@ p {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
background: var(--surface-soft);
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
@@ -537,7 +549,7 @@ p {
|
||||
.icon-button {
|
||||
width: 48px;
|
||||
padding: 0;
|
||||
background: rgba(255, 255, 255, 0.74);
|
||||
background: var(--surface-soft);
|
||||
border: 1px solid rgba(132, 152, 190, 0.24);
|
||||
}
|
||||
|
||||
@@ -571,7 +583,7 @@ p {
|
||||
padding: 14px 16px;
|
||||
border: 1px solid rgba(132, 152, 190, 0.3);
|
||||
border-radius: 16px;
|
||||
background: rgba(255, 255, 255, 0.86);
|
||||
background: var(--input-bg);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@@ -612,28 +624,176 @@ p {
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.panel--toolbar > * {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.segmented {
|
||||
display: inline-flex;
|
||||
padding: 4px;
|
||||
border-radius: 18px;
|
||||
background: rgba(255, 255, 255, 0.74);
|
||||
background: var(--surface-soft);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.segmented a {
|
||||
padding: 10px 16px;
|
||||
border-radius: 14px;
|
||||
color: var(--muted);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.segmented .is-active {
|
||||
background: #fff;
|
||||
background: var(--surface-strong);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.calendar-grid {
|
||||
.calendar-toolbar-mobile {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.calendar-toolbar-mobile__header,
|
||||
.calendar-toolbar-mobile__switch {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.calendar-toolbar-mobile__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.calendar-toolbar-mobile__header > div:first-child {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.calendar-toolbar-mobile__arrows {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.calendar-nav-button {
|
||||
width: 44px;
|
||||
min-width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
.calendar-nav-button span {
|
||||
font-size: 1.7rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.calendar-toolbar-mobile__switch a {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.calendar-toolbar-mobile__switch {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.calendar-toolbar-desktop {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.calendar-mobile-strip {
|
||||
padding: 14px 16px;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.calendar-mobile-strip__scroller {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 4px;
|
||||
scroll-snap-type: x proximity;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.calendar-mobile-pill {
|
||||
flex: 0 0 auto;
|
||||
min-width: 84px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 18px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface-strong);
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
scroll-snap-align: start;
|
||||
box-shadow: 0 10px 20px rgba(52, 79, 131, 0.08);
|
||||
}
|
||||
|
||||
.calendar-mobile-pill strong {
|
||||
font-size: 1rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.calendar-mobile-pill small {
|
||||
color: var(--muted);
|
||||
font-size: 0.74rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calendar-mobile-pill.is-active {
|
||||
border-color: rgba(37, 99, 235, 0.16);
|
||||
background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(52, 211, 153, 0.1));
|
||||
}
|
||||
|
||||
.calendar-mobile-list {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.calendar-mobile-day {
|
||||
padding: 18px;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.calendar-mobile-day__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.calendar-mobile-day__header strong {
|
||||
font-size: 1.12rem;
|
||||
}
|
||||
|
||||
.calendar-mobile-day__header span {
|
||||
color: var(--muted);
|
||||
font-size: 0.82rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calendar-mobile-day__tasks {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.calendar-mobile-day .calendar-task {
|
||||
background: var(--surface-strong);
|
||||
}
|
||||
|
||||
.calendar-grid {
|
||||
display: none;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
@@ -666,9 +826,10 @@ p {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
padding: 9px 10px;
|
||||
border-radius: 14px;
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
background: var(--surface-soft);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -762,7 +923,7 @@ p {
|
||||
}
|
||||
|
||||
.badge-card--earned {
|
||||
background: rgba(37, 99, 235, 0.03);
|
||||
background: var(--nav-active-bg);
|
||||
}
|
||||
|
||||
.badge-card__icon {
|
||||
@@ -793,7 +954,7 @@ p {
|
||||
gap: 10px;
|
||||
padding: 6px;
|
||||
border-radius: 22px;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
background: var(--surface-soft);
|
||||
border: 1px solid rgba(132, 152, 190, 0.18);
|
||||
box-shadow: 0 12px 30px rgba(58, 82, 128, 0.1);
|
||||
}
|
||||
@@ -809,7 +970,7 @@ p {
|
||||
}
|
||||
|
||||
.settings-tab.is-active {
|
||||
background: #fff;
|
||||
background: var(--surface-strong);
|
||||
color: var(--primary-strong);
|
||||
box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
|
||||
}
|
||||
@@ -830,7 +991,7 @@ p {
|
||||
gap: 14px;
|
||||
padding: 18px;
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(255, 255, 255, 0.76);
|
||||
background: var(--surface-soft);
|
||||
border: 1px solid rgba(132, 152, 190, 0.22);
|
||||
}
|
||||
|
||||
@@ -850,7 +1011,7 @@ p {
|
||||
align-items: flex-start;
|
||||
padding: 16px;
|
||||
border-radius: 18px;
|
||||
background: rgba(255, 255, 255, 0.66);
|
||||
background: var(--surface-soft);
|
||||
}
|
||||
|
||||
.push-box__state.is-disabled {
|
||||
@@ -876,16 +1037,15 @@ p {
|
||||
|
||||
.bottom-nav {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: min(calc(100vw - 52px), 560px);
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
bottom: calc(10px + env(safe-area-inset-bottom));
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
border-radius: 24px;
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 4px;
|
||||
padding: 8px 8px;
|
||||
border-radius: 22px;
|
||||
background: var(--nav-bg);
|
||||
backdrop-filter: blur(16px);
|
||||
box-shadow: 0 24px 44px rgba(58, 82, 128, 0.2);
|
||||
border: 1px solid rgba(132, 152, 190, 0.22);
|
||||
@@ -897,19 +1057,29 @@ p {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 5px;
|
||||
padding: 10px 4px;
|
||||
min-width: 0;
|
||||
padding: 10px 4px 9px;
|
||||
color: var(--muted);
|
||||
border-radius: 16px;
|
||||
text-align: center;
|
||||
font-size: 0.69rem;
|
||||
font-size: 0.66rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
.bottom-nav__item span {
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-height: 2.1em;
|
||||
white-space: normal;
|
||||
word-break: keep-all;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.bottom-nav__item.is-active,
|
||||
.nav-link.is-active {
|
||||
color: var(--primary-strong);
|
||||
background: rgba(37, 99, 235, 0.1);
|
||||
background: var(--nav-active-bg);
|
||||
}
|
||||
|
||||
.nav-icon,
|
||||
@@ -934,7 +1104,7 @@ p {
|
||||
width: min(460px, calc(100vw - 24px));
|
||||
padding: 24px;
|
||||
border-radius: 28px;
|
||||
background: #fff;
|
||||
background: var(--surface-strong);
|
||||
box-shadow: var(--shadow);
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
@@ -962,15 +1132,15 @@ p {
|
||||
|
||||
.fab-quick-task {
|
||||
position: fixed;
|
||||
right: 18px;
|
||||
bottom: calc(96px + env(safe-area-inset-bottom));
|
||||
right: max(16px, env(safe-area-inset-right));
|
||||
bottom: calc(72px + var(--safe-bottom));
|
||||
width: 62px;
|
||||
height: 62px;
|
||||
border: 0;
|
||||
border: 2px solid rgba(255, 255, 255, 0.55);
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(135deg, #2563eb, #34d399);
|
||||
color: #fff;
|
||||
box-shadow: 0 24px 40px rgba(37, 99, 235, 0.28);
|
||||
box-shadow: 0 24px 40px rgba(37, 99, 235, 0.34);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -984,7 +1154,128 @@ p {
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
@media (max-width: 759px) {
|
||||
.calendar-toolbar-mobile__header {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.calendar-toolbar-mobile__header h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--bg: #0b1220;
|
||||
--bg-accent: #15233d;
|
||||
--surface: rgba(17, 24, 39, 0.82);
|
||||
--surface-strong: rgba(15, 23, 38, 0.96);
|
||||
--surface-soft: rgba(20, 30, 49, 0.92);
|
||||
--text: #e5eefc;
|
||||
--muted: #9eb0cc;
|
||||
--border: rgba(121, 146, 191, 0.2);
|
||||
--primary: #5ea8ff;
|
||||
--primary-strong: #d7e7ff;
|
||||
--secondary: rgba(37, 99, 235, 0.16);
|
||||
--shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
|
||||
--body-radial-a: rgba(37, 99, 235, 0.28);
|
||||
--body-radial-b: rgba(20, 184, 166, 0.14);
|
||||
--body-linear-start: #0b1220;
|
||||
--body-linear-mid: #0f172a;
|
||||
--body-linear-end: #131f35;
|
||||
--input-bg: rgba(16, 24, 38, 0.92);
|
||||
--nav-bg: rgba(15, 23, 38, 0.9);
|
||||
--nav-active-bg: rgba(59, 130, 246, 0.18);
|
||||
}
|
||||
|
||||
.hero-card {
|
||||
background:
|
||||
linear-gradient(135deg, rgba(16, 24, 38, 0.98), rgba(20, 30, 49, 0.92)),
|
||||
linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(20, 184, 166, 0.06));
|
||||
}
|
||||
|
||||
.hero-stats div {
|
||||
background: var(--surface-soft);
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
border-color: rgba(121, 146, 191, 0.24);
|
||||
}
|
||||
|
||||
.flash--success {
|
||||
color: #7df1c7;
|
||||
}
|
||||
|
||||
.flash--error {
|
||||
color: #ff94b0;
|
||||
}
|
||||
|
||||
.status-badge--open {
|
||||
background: rgba(37, 99, 235, 0.16);
|
||||
color: #8db7ff;
|
||||
}
|
||||
|
||||
.status-badge--soon {
|
||||
background: rgba(245, 158, 11, 0.18);
|
||||
color: #ffd38a;
|
||||
}
|
||||
|
||||
.status-badge--overdue {
|
||||
background: rgba(225, 29, 72, 0.18);
|
||||
color: #ff9cb2;
|
||||
}
|
||||
|
||||
.status-badge--completed {
|
||||
background: rgba(5, 150, 105, 0.18);
|
||||
color: #8df0cb;
|
||||
}
|
||||
|
||||
.button--ghost {
|
||||
border-color: rgba(121, 146, 191, 0.24);
|
||||
}
|
||||
|
||||
.score-row--leader {
|
||||
background:
|
||||
linear-gradient(135deg, rgba(18, 29, 49, 0.98), rgba(24, 39, 62, 0.94)),
|
||||
linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(94, 168, 255, 0.08));
|
||||
border-color: rgba(94, 168, 255, 0.2);
|
||||
}
|
||||
|
||||
.score-row--leader .rank-badge,
|
||||
.score-row--leader .earned-badge {
|
||||
background: rgba(94, 168, 255, 0.16);
|
||||
color: var(--primary-strong);
|
||||
}
|
||||
|
||||
.score-row--leader .earned-badge__icon {
|
||||
background: rgba(10, 18, 32, 0.56);
|
||||
}
|
||||
|
||||
.score-row__points span,
|
||||
.archive-row__right span {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background: rgba(10, 16, 28, 0.76);
|
||||
border-right-color: rgba(121, 146, 191, 0.16);
|
||||
}
|
||||
|
||||
.topbar-user {
|
||||
border-color: rgba(121, 146, 191, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 760px) {
|
||||
.calendar-toolbar-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.calendar-toolbar-desktop {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.page-shell {
|
||||
padding: 28px 28px 32px;
|
||||
}
|
||||
@@ -1005,8 +1296,15 @@ p {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.calendar-mobile-strip,
|
||||
.calendar-mobile-list {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.calendar-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.calendar-grid__weekdays {
|
||||
@@ -1026,6 +1324,34 @@ p {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.calendar-day {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 152px;
|
||||
padding: 12px 10px;
|
||||
}
|
||||
|
||||
.calendar-day__tasks {
|
||||
gap: 6px;
|
||||
max-height: 100%;
|
||||
overflow: auto;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.calendar-task {
|
||||
padding: 8px 9px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.calendar-task__title {
|
||||
font-size: 0.82rem;
|
||||
line-height: 1.18;
|
||||
}
|
||||
|
||||
.calendar-task__person {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1100px) {
|
||||
@@ -1043,7 +1369,7 @@ p {
|
||||
height: 100vh;
|
||||
padding: 28px 20px;
|
||||
border-right: 1px solid rgba(132, 152, 190, 0.2);
|
||||
background: rgba(248, 251, 255, 0.72);
|
||||
background: var(--surface-soft);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
@@ -1070,7 +1396,7 @@ p {
|
||||
gap: 10px;
|
||||
padding: 8px 10px 8px 18px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
background: var(--nav-bg);
|
||||
border: 1px solid rgba(132, 152, 190, 0.2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user