Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download web_app/src/components/stance/QuoteCard.css from CommunityOne/open-navigator: direct link, hf CLI and curl.
- Browser
- Download file 8.52 kB
-
https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/web_app/src/components/stance/QuoteCard.css
- Command line
-
hf download hf://spaces/CommunityOne/open-navigator/web_app/src/components/stance/QuoteCard.css
-
curl -L -o QuoteCard.css https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/web_app/src/components/stance/QuoteCard.css
8.52 kB
| /* A quoted moment from a meeting (#1108). Stacked by default; image left on a card 560px wide or more (container query). */ | |
| .qcard { | |
| --qcard-teal: #0f766e; | |
| container-type: inline-size; | |
| margin: 0; | |
| color: #44403c; | |
| text-align: left; | |
| } | |
| .qcard--card { | |
| overflow: hidden; | |
| background: #fff; | |
| border: 1px solid #e7e5e4; | |
| border-radius: 14px; | |
| box-shadow: 0 10px 28px rgba(28, 25, 23, 0.12); | |
| } | |
| .qcard-in { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .qcard-media { | |
| position: relative; | |
| display: block; | |
| width: 100%; | |
| aspect-ratio: 16 / 8; | |
| padding: 0; | |
| margin: 0; | |
| border: 0; | |
| overflow: hidden; | |
| background: #1c1917; | |
| color: #fff; | |
| cursor: pointer; | |
| text-decoration: none; | |
| } | |
| div.qcard-media { | |
| cursor: default; | |
| } | |
| .qcard-media img { | |
| position: absolute; | |
| inset: 0; | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .qcard-media::after { | |
| content: ''; | |
| position: absolute; | |
| inset: 0; | |
| background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.7) 100%); | |
| } | |
| .qcard-play { | |
| position: absolute; | |
| left: 12px; | |
| bottom: 10px; | |
| z-index: 1; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 14px; | |
| font-weight: 700; | |
| color: #fff; | |
| text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); | |
| } | |
| .qcard-play-btn { | |
| display: inline-grid; | |
| place-items: center; | |
| width: 38px; | |
| height: 38px; | |
| border-radius: 999px; | |
| background: var(--qcard-teal); | |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); | |
| } | |
| .qcard-play-btn svg { | |
| margin-left: 2px; | |
| } | |
| .qcard-media:hover .qcard-play-btn, | |
| .qcard-media:focus-visible .qcard-play-btn { | |
| background: #115e59; | |
| } | |
| .qcard-media:focus-visible { | |
| outline: 3px solid var(--qcard-teal); | |
| outline-offset: -3px; | |
| } | |
| .qcard-text { | |
| padding: 12px 16px 14px; | |
| min-width: 0; | |
| } | |
| .qcard--header .qcard-text { | |
| padding: 0; | |
| } | |
| .qcard-where { | |
| margin: 0; | |
| font-size: 13px; | |
| font-weight: 700; | |
| color: var(--qcard-teal); | |
| } | |
| .qcard-meeting { | |
| margin: 2px 0 0; | |
| font-size: 12.5px; | |
| color: #57534e; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 1; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .qcard-stance { | |
| margin: 2px 0 0; | |
| font-size: 12.5px; | |
| font-weight: 600; | |
| color: #44403c; | |
| } | |
| .qcard-quote { | |
| position: relative; | |
| margin: 8px 0 0; | |
| padding-left: 26px; | |
| font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif; | |
| font-size: 17px; | |
| line-height: 1.4; | |
| color: #1c1917; | |
| overflow-wrap: anywhere; | |
| } | |
| .qcard-qmark { | |
| position: absolute; | |
| left: 0; | |
| top: -6px; | |
| font-size: 44px; | |
| line-height: 1; | |
| color: var(--qcard-teal); | |
| } | |
| .qcard-qmark-end { | |
| color: var(--qcard-teal); | |
| font-size: 1.3em; | |
| line-height: 0; | |
| margin-left: 2px; | |
| vertical-align: -0.1em; | |
| } | |
| .qcard-quote mark { | |
| background: #fde68a; | |
| } | |
| .qcard-speaker { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| margin: 12px 0 0; | |
| padding-top: 10px; | |
| border-top: 1px solid #e7e5e4; | |
| } | |
| .qcard-avatar { | |
| flex: none; | |
| display: inline-grid; | |
| place-items: center; | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 999px; | |
| background: rgba(15, 118, 110, 0.12); | |
| color: var(--qcard-teal); | |
| font-size: 13px; | |
| font-weight: 700; | |
| letter-spacing: 0.03em; | |
| } | |
| .qcard-who { | |
| display: flex; | |
| flex-direction: column; | |
| min-width: 0; | |
| } | |
| .qcard-name-row { | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: baseline; | |
| gap: 2px 10px; | |
| } | |
| .qcard-name { | |
| font-weight: 700; | |
| font-size: 14px; | |
| color: #1c1917; | |
| } | |
| .qcard-side { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 5px; | |
| font-size: 13px; | |
| font-weight: 600; | |
| } | |
| .qcard-side-dot { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 999px; | |
| } | |
| .qcard-line { | |
| font-size: 12.5px; | |
| color: #57534e; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .qcard-summary { | |
| margin: 10px 0 0; | |
| padding-top: 8px; | |
| border-top: 1px solid #e7e5e4; | |
| } | |
| .qcard-summary-label { | |
| display: inline-block; | |
| font-size: 11px; | |
| font-weight: 700; | |
| letter-spacing: 0.06em; | |
| text-transform: uppercase; | |
| color: #78716c; | |
| } | |
| .qcard-summary-text { | |
| margin: 2px 0 0; | |
| font-size: 13px; | |
| line-height: 1.45; | |
| color: #44403c; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 3; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .qcard-analysis { | |
| margin: 8px 0 0; | |
| font-size: 13px; | |
| } | |
| .qcard-analysis a { | |
| color: var(--qcard-teal); | |
| font-weight: 600; | |
| text-decoration: none; | |
| } | |
| .qcard-analysis a:hover, | |
| .qcard-analysis a:focus-visible { | |
| text-decoration: underline; | |
| } | |
| .qcard--header .qcard-quote { | |
| font-size: 19px; | |
| } | |
| @container (min-width: 560px) { | |
| .qcard-in.has-media { | |
| flex-direction: row; | |
| } | |
| .qcard-in.has-media .qcard-media { | |
| flex: 0 0 40%; | |
| width: 40%; | |
| aspect-ratio: auto; | |
| min-height: 220px; | |
| } | |
| .qcard-in.has-media .qcard-text { | |
| flex: 1; | |
| padding: 18px 22px; | |
| } | |
| .qcard--card .qcard-quote { | |
| font-size: 21px; | |
| } | |
| } | |
| /* The recording playing in the card (#1277): 16:9, YouTube's own controls, no overlay. */ | |
| .qcard-media--embed { | |
| aspect-ratio: 16 / 9; | |
| cursor: default; | |
| } | |
| .qcard-media--embed::after { | |
| content: none; | |
| } | |
| .qcard-media--embed iframe { | |
| position: absolute; | |
| inset: 0; | |
| width: 100%; | |
| height: 100%; | |
| border: 0; | |
| } | |
| /* The story maps' hover card (#1277): tighter, the quote clamped, so it fits in the map's bottom-left corner. */ | |
| .qcard--compact .qcard-text { | |
| padding: 10px 12px 12px; | |
| } | |
| .qcard--compact .qcard-quote { | |
| margin-top: 6px; | |
| padding-left: 20px; | |
| font-size: 14px; | |
| line-height: 1.35; | |
| display: -webkit-box; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .qcard--compact .qcard-qmark { | |
| font-size: 34px; | |
| top: -4px; | |
| } | |
| .qcard--compact .qcard-speaker { | |
| margin-top: 8px; | |
| padding-top: 8px; | |
| } | |
| .qcard--compact .qcard-avatar { | |
| width: 28px; | |
| height: 28px; | |
| font-size: 11px; | |
| } | |
| /* The story maps' desktop hover card (#1277): never over the map. In the flow, under the legend, or in the home page's | |
| text column slot (.map-card-slot). Phones get no card. */ | |
| .map-hover-card { | |
| position: relative; | |
| width: 100%; | |
| max-width: 640px; | |
| margin: 8px 0 0; | |
| } | |
| /* Wide enough: the recording on the left, the quote and who said it on the right, so the card stays short. */ | |
| @container (min-width: 380px) { | |
| .qcard--compact .qcard-in.has-media { | |
| flex-direction: row; | |
| align-items: flex-start; | |
| } | |
| .qcard--compact .qcard-in.has-media .qcard-media { | |
| flex: 0 0 44%; | |
| width: 44%; | |
| aspect-ratio: 16 / 9; | |
| min-height: 0; | |
| } | |
| .qcard--compact .qcard-in.has-media .qcard-text { | |
| flex: 1; | |
| padding: 8px 12px 10px; | |
| } | |
| .qcard--compact.qcard--card .qcard-quote { | |
| font-size: 14px; | |
| } | |
| } | |
| /* The home page's slot under Start: the hint until a state is hovered, then the card. No blank space is reserved for the | |
| card (owner, 27 Nov 2026: "too much white space between map and scroller"): on a desktop the card is drawn over what is | |
| below the slot, raised with a shadow, so nothing jumps and the sections below stay where they are. */ | |
| .map-card-slot .map-hover-card { | |
| margin-top: 10px; | |
| } | |
| .map-card-slot:has(.map-hover-card) .map-card-slot-hint { | |
| visibility: hidden; | |
| } | |
| @media (hover: hover) and (pointer: fine) and (min-width: 861px) { | |
| .map-card-slot { | |
| position: relative; | |
| } | |
| .map-card-slot .map-hover-card { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| margin-top: 0; | |
| z-index: 20; | |
| box-shadow: 0 16px 36px rgba(28, 25, 23, 0.18); | |
| } | |
| } | |
| .qcard--compact .qcard-where, | |
| .qcard--compact .qcard-meeting, | |
| .qcard--compact .qcard-stance { | |
| font-size: 12px; | |
| } | |
| .qcard--compact .qcard-quote { | |
| -webkit-line-clamp: 2; | |
| } | |
| .map-hover-open { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| margin: 8px 0 0; | |
| padding: 6px 14px; | |
| border: 0; | |
| border-radius: 999px; | |
| background: var(--qcard-teal); | |
| color: #fff; | |
| font: inherit; | |
| font-size: 13px; | |
| font-weight: 700; | |
| line-height: 1.3; | |
| text-align: left; | |
| text-decoration: none; | |
| cursor: pointer; | |
| transition: background-color 120ms ease; | |
| } | |
| .map-hover-open:hover, | |
| .map-hover-open:focus-visible { | |
| background: #115e59; | |
| color: #fff; | |
| text-decoration: none; | |
| } | |
| .map-hover-open:focus-visible { | |
| outline: 2px solid #0f766e; | |
| outline-offset: 2px; | |
| } | |
| .map-hover-here { | |
| margin: 6px 0 0; | |
| font-size: 13px; | |
| font-weight: 600; | |
| color: #115e59; | |
| } | |
| /* The hover card's attribution line under the speaker (#1277): meeting · place · date. */ | |
| .qcard--compact .qcard-attrib { | |
| margin-top: 6px; | |
| font-weight: 600; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .qcard--compact .qcard-speaker + .qcard-attrib { | |
| margin-top: 4px; | |
| } | |