| 1 | /* Home's own Calma rules: the team home's header on the sky, and its |
| 2 | grid of apps. The bar, the menus and the door are estilo's (chrome.css), |
| 3 | the rest estilo's theme (theme.css) and rastrillo's tokens.css. */ |
| 4 | |
| 5 | /* tokens.css reserves the scrollbar's gutter on every page, so short and |
| 6 | long pages are the same width. Under the sky that reserved strip is a |
| 7 | visible pale band down the trailing edge, so Home takes the documented |
| 8 | opt-out; its pages have no layout that a scrollbar's arrival could jolt. */ |
| 9 | :root { |
| 10 | --rst-scrollbar-gutter: auto; |
| 11 | } |
| 12 | |
| 13 | /* The door (sign-in, id.*'s account pages, signed out) is estilo's: |
| 14 | chrome.css draws the card on the sky under the bar. */ |
| 15 | |
| 16 | /* Your home: the team home's header on the sky, then a grid of every |
| 17 | app, each one tile. An app you can open is a link across its whole |
| 18 | tile; one you cannot yet is shown quieter, with its status saying why. |
| 19 | |
| 20 | The header spans the page under the bar, as the door does, so the sky |
| 21 | is never boxed in; its padding puts the words back on the page's |
| 22 | column. The sky fades in and out inside the band (sky.css's mask), so |
| 23 | neither edge cuts it. */ |
| 24 | :root:has([home-hub-head]) { overflow-x: clip; } |
| 25 | [home-hub-head] { |
| 26 | box-sizing: border-box; |
| 27 | margin: calc(-1 * var(--rst-sp-5)) calc(50% - 50vw) var(--rst-sp-5); |
| 28 | padding: 64px calc(50vw - 50%) 48px; |
| 29 | min-block-size: 240px; |
| 30 | /* A sky's layers overhang its box by 12% above and below and fade out |
| 31 | from 58% to 92% (sky.css): 260px placed 50px up has faded out by |
| 32 | about 220px, inside the band's 240. */ |
| 33 | --estilo-sky-top: -50px; |
| 34 | --estilo-sky-height: 260px; |
| 35 | } |
| 36 | [home-hub-head] h1 { |
| 37 | margin: 0 0 8px; |
| 38 | font-size: clamp(1.9rem, 4vw, 2.5rem); |
| 39 | letter-spacing: -0.03em; |
| 40 | } |
| 41 | [home-hub-lede] { |
| 42 | margin: 0; |
| 43 | color: var(--rst-text-muted); |
| 44 | } |
| 45 | [home-apps] { |
| 46 | display: grid; |
| 47 | grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); |
| 48 | gap: 12px; |
| 49 | margin: 0 0 48px; |
| 50 | padding: 0; |
| 51 | list-style: none; |
| 52 | } |
| 53 | [home-app] { |
| 54 | box-sizing: border-box; |
| 55 | height: 100%; |
| 56 | display: flex; |
| 57 | flex-direction: column; |
| 58 | align-items: center; |
| 59 | gap: 8px; |
| 60 | padding: 22px 12px 18px; |
| 61 | border-radius: 18px; |
| 62 | background: var(--rst-surface); |
| 63 | box-shadow: 0 0 0 1px var(--rst-line); |
| 64 | color: var(--rst-text); |
| 65 | text-align: center; |
| 66 | text-decoration: none; |
| 67 | } |
| 68 | a[home-app]:hover { box-shadow: 0 0 0 1px var(--rst-line), var(--rst-shadow-lift); } |
| 69 | [home-app] img { margin-bottom: 4px; filter: drop-shadow(0 5px 9px rgba(20, 24, 33, 0.16)); } |
| 70 | [home-app] b { font-weight: 620; } |
| 71 | [home-app] small { color: var(--rst-text-faint); font-size: 0.8rem; } |
| 72 | div[home-app] img { filter: saturate(0.6); opacity: 0.8; } |
| 73 | |
| 74 | /* In dark, the sky runs brighter (estilo's gain) and muted text on its |
| 75 | brightest band falls under 4.5:1 (review, discussion 75). So the team |
| 76 | home's sky is quieter here, and text that sits on it is full-strength. |
| 77 | The door's text sits on its card, so the door keeps estilo's sky. */ |
| 78 | @media (prefers-color-scheme: dark) { |
| 79 | :root:not([data-theme="light"]) [home-hub-head] { --estilo-sky-strength: 0.32; } |
| 80 | :root:not([data-theme="light"]) [home-hub-lede] { color: var(--rst-text); } |
| 81 | } |
| 82 | :root[data-theme="dark"] [home-hub-head] { --estilo-sky-strength: 0.32; } |
| 83 | :root[data-theme="dark"] [home-hub-lede] { color: var(--rst-text); } |
| 84 | |
| 85 | /* The team chooser: one button per team, stacked. */ |
| 86 | [home-teams] { display: grid; justify-items: start; gap: var(--rst-sp-2); } |
| 87 | |
| 88 | /* The selected team's work takes priority over its compact app launcher. */ |
| 89 | [home-dashboard-head] { min-block-size: 0; padding-block: 32px 28px; } |
| 90 | [home-dashboard-heading] { display: grid; grid-template-columns: minmax(0, 1fr) 264px; align-items: center; gap: 24px; } |
| 91 | [home-apps-compact] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; } |
| 92 | [home-apps-compact] [home-app] { padding: 8px; gap: 4px; border-radius: 10px; font-size: .75rem; } |
| 93 | [home-apps-compact] img { margin: 0; width: 24px; height: 24px; } |
| 94 | [home-apps-compact] small { font-size: .75rem; } |
| 95 | [home-dashboard] { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; } |
| 96 | [home-dashboard] h2 { margin: 0 0 16px; } |
| 97 | [home-recent] { margin: 0; padding: 0; list-style: none; } |
| 98 | [home-recent] li { border-bottom: 1px solid var(--rst-line); } |
| 99 | [home-recent] a { display: flex; flex-direction: column; gap: 5px; padding: 15px 8px; color: var(--rst-text); text-decoration: none; overflow-wrap: anywhere; border-radius: 8px; } |
| 100 | [home-recent] a:hover { background: var(--rst-surface); } |
| 101 | [home-recent] span, [home-recent] time, [home-dashboard-note] { color: var(--rst-text-muted); font-size: .875rem; } |
| 102 | [home-dashboard-note] { line-height: 1.6; } |
| 103 | [home-dashboard-sources] { border-top: 1px solid var(--rst-line); margin-top: 32px; padding-top: 16px; font-size: .875rem; } |
| 104 | [home-team-nav] { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; } |
| 105 | [home-team-nav] a { padding: 8px 12px; border-radius: 8px; } |
| 106 | [home-team-nav] [aria-current] { background: var(--rst-surface); font-weight: 650; } |
| 107 | @media (max-width: 700px) { [home-dashboard] { grid-template-columns: minmax(0, 1fr); gap: 32px; } } |
| 108 | |
| 109 | /* Native radio controls filter the existing recent list without a request or script. */ |
| 110 | [home-recent-filter] { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0 0 12px; min-inline-size: 0; } |
| 111 | [home-recent-filter] label { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rst-line); border-radius: 999px; color: var(--rst-text-muted); cursor: pointer; font-size: .875rem; } |
| 112 | [home-recent-filter] label:has(:checked) { background: var(--rst-surface); color: var(--rst-text); font-weight: 650; border-color: currentColor; } |
| 113 | [home-recent-filter] label:has(:focus-visible) { outline: 2px solid var(--rst-text); outline-offset: 3px; } |
| 114 | [home-recent] [home-document-link] { flex-direction: row; align-items: center; gap: 12px; } |
| 115 | [home-document-link] img { flex: 0 0 32px; } |
| 116 | [home-document-details] { display: flex; flex-direction: column; gap: 5px; min-width: 0; } |
| 117 | [home-filter-empty] { display: none; } |
| 118 | [home-recent-section]:has([value="docs"]:checked) [home-document-app]:not([home-document-app="docs"]), |
| 119 | [home-recent-section]:has([value="sheets"]:checked) [home-document-app]:not([home-document-app="sheets"]), |
| 120 | [home-recent-section]:has([value="slides"]:checked) [home-document-app]:not([home-document-app="slides"]) { display: none; } |
| 121 | [home-recent-section]:has([value="docs"]:checked):not(:has([home-document-app="docs"])) [home-filter-empty], |
| 122 | [home-recent-section]:has([value="sheets"]:checked):not(:has([home-document-app="sheets"])) [home-filter-empty], |
| 123 | [home-recent-section]:has([value="slides"]:checked):not(:has([home-document-app="slides"])) [home-filter-empty] { display: block; } |
| 124 | @media (max-width: 600px) { |
| 125 | [home-dashboard-heading] { grid-template-columns: minmax(0, 1fr); gap: 20px; } |
| 126 | [home-dashboard-head] { padding-block: 24px; } |
| 127 | [home-apps-compact] [home-app] { flex-direction: row; justify-content: center; gap: 6px; min-height: 44px; } |
| 128 | } |
| 129 | |
| 130 | /* The Team page (team-members.md §2): a plain page under the bar. */ |
| 131 | [home-team-members] [rst-row] { flex-wrap: wrap; align-items: flex-start; } |
| 132 | [home-team-members] [rst-row]:hover { background: none; } |
| 133 | [home-team-actions] { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; } |
| 134 | [home-team-actions] form { margin: 0; } |
| 135 | [home-team-more] > summary { list-style: none; cursor: pointer; } |
| 136 | [home-team-more] > summary::-webkit-details-marker { display: none; } |
| 137 | [home-team-more][open] { flex-basis: 100%; order: 1; } |
| 138 | [home-team-more][open] > form { margin-top: 8px; max-inline-size: 28rem; } |
| 139 | [home-team-add] { margin-top: 32px; max-inline-size: 32rem; } |
| 140 | [home-team-add] fieldset label { display: flex; gap: 8px; align-items: center; min-height: 32px; } |
| 141 | |