@resumekit/react 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +74 -2
- package/dist/PagedSheet.d.ts +63 -0
- package/dist/PagedSheet.d.ts.map +1 -0
- package/dist/PagedSheet.js +584 -0
- package/dist/TemplateDocument.d.ts +33 -0
- package/dist/TemplateDocument.d.ts.map +1 -0
- package/dist/TemplateDocument.js +33 -0
- package/dist/autosave-context.d.ts +37 -0
- package/dist/autosave-context.d.ts.map +1 -0
- package/dist/autosave-context.js +24 -0
- package/dist/collections/AuthoredItems.d.ts +9 -0
- package/dist/collections/AuthoredItems.d.ts.map +1 -0
- package/dist/collections/AuthoredItems.js +116 -0
- package/dist/collections/Collection.d.ts +48 -0
- package/dist/collections/Collection.d.ts.map +1 -0
- package/dist/collections/Collection.js +24 -0
- package/dist/collections/CollectionItems.d.ts +94 -0
- package/dist/collections/CollectionItems.d.ts.map +1 -0
- package/dist/collections/CollectionItems.js +91 -0
- package/dist/collections/EntryOverlay.d.ts +38 -0
- package/dist/collections/EntryOverlay.d.ts.map +1 -0
- package/dist/collections/EntryOverlay.js +51 -0
- package/dist/collections/SortableItems.d.ts +52 -0
- package/dist/collections/SortableItems.d.ts.map +1 -0
- package/dist/collections/SortableItems.js +80 -0
- package/dist/collections/authoring-context.d.ts +69 -0
- package/dist/collections/authoring-context.d.ts.map +1 -0
- package/dist/collections/authoring-context.js +36 -0
- package/dist/collections/collection.css +462 -0
- package/dist/collections/entry-text.d.ts +23 -0
- package/dist/collections/entry-text.d.ts.map +1 -0
- package/dist/collections/entry-text.js +35 -0
- package/dist/collections/icons.d.ts +53 -0
- package/dist/collections/icons.d.ts.map +1 -0
- package/dist/collections/icons.js +56 -0
- package/dist/collections/library/LibraryAction.d.ts +24 -0
- package/dist/collections/library/LibraryAction.d.ts.map +1 -0
- package/dist/collections/library/LibraryAction.js +122 -0
- package/dist/collections/library/LibraryPicker.d.ts +42 -0
- package/dist/collections/library/LibraryPicker.d.ts.map +1 -0
- package/dist/collections/library/LibraryPicker.js +94 -0
- package/dist/collections/library/library.css +435 -0
- package/dist/collections/overlay-context.d.ts +34 -0
- package/dist/collections/overlay-context.d.ts.map +1 -0
- package/dist/collections/overlay-context.js +13 -0
- package/dist/collections/preload.d.ts +19 -0
- package/dist/collections/preload.d.ts.map +1 -0
- package/dist/collections/preload.js +23 -0
- package/dist/collections/selection-context.d.ts +25 -0
- package/dist/collections/selection-context.d.ts.map +1 -0
- package/dist/collections/selection-context.js +49 -0
- package/dist/collections/useCollection.d.ts +58 -0
- package/dist/collections/useCollection.d.ts.map +1 -0
- package/dist/collections/useCollection.js +90 -0
- package/dist/collections/useCustomEntries.d.ts +18 -0
- package/dist/collections/useCustomEntries.d.ts.map +1 -0
- package/dist/collections/useCustomEntries.js +56 -0
- package/dist/collections/useSectionCollection.d.ts +48 -0
- package/dist/collections/useSectionCollection.d.ts.map +1 -0
- package/dist/collections/useSectionCollection.js +169 -0
- package/dist/document.css +186 -0
- package/dist/export-bundle/bundle.css +2 -0
- package/dist/export-bundle/bundle.js +67 -0
- package/dist/fields/date-issues-context.d.ts +20 -0
- package/dist/fields/date-issues-context.d.ts.map +1 -0
- package/dist/fields/date-issues-context.js +68 -0
- package/dist/fields/field-registry.d.ts +163 -0
- package/dist/fields/field-registry.d.ts.map +1 -0
- package/dist/fields/field-registry.js +175 -0
- package/dist/fonts/README.md +207 -0
- package/dist/fonts/arimo-400.woff2 +0 -0
- package/dist/fonts/arimo-400i.woff2 +0 -0
- package/dist/fonts/arimo-700.woff2 +0 -0
- package/dist/fonts/arimo-700i.woff2 +0 -0
- package/dist/fonts/bitter-400.woff2 +0 -0
- package/dist/fonts/bitter-400i.woff2 +0 -0
- package/dist/fonts/bitter-700.woff2 +0 -0
- package/dist/fonts/bitter-700i.woff2 +0 -0
- package/dist/fonts/cabin-700.woff2 +0 -0
- package/dist/fonts/carlito-400.woff2 +0 -0
- package/dist/fonts/carlito-400i.woff2 +0 -0
- package/dist/fonts/carlito-700.woff2 +0 -0
- package/dist/fonts/carlito-700i.woff2 +0 -0
- package/dist/fonts/clearsans-400.woff2 +0 -0
- package/dist/fonts/clearsans-400i.woff2 +0 -0
- package/dist/fonts/cochineal-400.woff2 +0 -0
- package/dist/fonts/cochineal-400i.woff2 +0 -0
- package/dist/fonts/cochineal-700.woff2 +0 -0
- package/dist/fonts/ebgaramond-400.woff2 +0 -0
- package/dist/fonts/ebgaramond-400i.woff2 +0 -0
- package/dist/fonts/ebgaramond-700.woff2 +0 -0
- package/dist/fonts/ebgaramond-700i.woff2 +0 -0
- package/dist/fonts/fonts.css +622 -0
- package/dist/fonts/gelasio-400.woff2 +0 -0
- package/dist/fonts/gelasio-400i.woff2 +0 -0
- package/dist/fonts/gelasio-700.woff2 +0 -0
- package/dist/fonts/gelasio-700i.woff2 +0 -0
- package/dist/fonts/heros-400.woff2 +0 -0
- package/dist/fonts/heros-400i.woff2 +0 -0
- package/dist/fonts/heros-700.woff2 +0 -0
- package/dist/fonts/heros-700i.woff2 +0 -0
- package/dist/fonts/inconsolata-400.woff2 +0 -0
- package/dist/fonts/lato-100.woff2 +0 -0
- package/dist/fonts/lato-300.woff2 +0 -0
- package/dist/fonts/lato-300i.woff2 +0 -0
- package/dist/fonts/lato-400.woff2 +0 -0
- package/dist/fonts/lato-400i.woff2 +0 -0
- package/dist/fonts/lato-700.woff2 +0 -0
- package/dist/fonts/lato-700i.woff2 +0 -0
- package/dist/fonts/licenses/arimo-OFL.txt +93 -0
- package/dist/fonts/licenses/bitter-OFL.txt +94 -0
- package/dist/fonts/licenses/cabin-OFL.txt +93 -0
- package/dist/fonts/licenses/carlito-OFL.txt +94 -0
- package/dist/fonts/licenses/clearsans-APACHE-2.0.txt +205 -0
- package/dist/fonts/licenses/cochineal-OFL.txt +96 -0
- package/dist/fonts/licenses/ebgaramond-OFL.txt +93 -0
- package/dist/fonts/licenses/gelasio-OFL.txt +93 -0
- package/dist/fonts/licenses/heros-GUST-FONT-LICENSE.txt +30 -0
- package/dist/fonts/licenses/inconsolata-OFL.txt +93 -0
- package/dist/fonts/licenses/latinmodern-GUST-FONT-LICENSE.txt +35 -0
- package/dist/fonts/licenses/lato-OFL.txt +93 -0
- package/dist/fonts/licenses/ptserif-OFL.txt +93 -0
- package/dist/fonts/licenses/raleway-OFL.txt +93 -0
- package/dist/fonts/licenses/roboto-OFL.txt +93 -0
- package/dist/fonts/licenses/robotocondensed-OFL.txt +93 -0
- package/dist/fonts/licenses/robotoslab-APACHE-2.0.txt +205 -0
- package/dist/fonts/licenses/sourcesans3-OFL.txt +93 -0
- package/dist/fonts/licenses/tinos-OFL.txt +93 -0
- package/dist/fonts/lmmono-400.woff2 +0 -0
- package/dist/fonts/lmroman-400.woff2 +0 -0
- package/dist/fonts/lmroman-400i.woff2 +0 -0
- package/dist/fonts/lmroman-700.woff2 +0 -0
- package/dist/fonts/lmroman-700i.woff2 +0 -0
- package/dist/fonts/lmromancaps-400.woff2 +0 -0
- package/dist/fonts/ptserif-400.woff2 +0 -0
- package/dist/fonts/ptserif-400i.woff2 +0 -0
- package/dist/fonts/ptserif-700.woff2 +0 -0
- package/dist/fonts/ptserif-700i.woff2 +0 -0
- package/dist/fonts/raleway-300.woff2 +0 -0
- package/dist/fonts/raleway-400.woff2 +0 -0
- package/dist/fonts/raleway-400i.woff2 +0 -0
- package/dist/fonts/raleway-500.woff2 +0 -0
- package/dist/fonts/raleway-700.woff2 +0 -0
- package/dist/fonts/roboto-100.woff2 +0 -0
- package/dist/fonts/roboto-300.woff2 +0 -0
- package/dist/fonts/roboto-300i.woff2 +0 -0
- package/dist/fonts/roboto-400.woff2 +0 -0
- package/dist/fonts/roboto-400i.woff2 +0 -0
- package/dist/fonts/roboto-700.woff2 +0 -0
- package/dist/fonts/robotocondensed-400.woff2 +0 -0
- package/dist/fonts/robotocondensed-400i.woff2 +0 -0
- package/dist/fonts/robotocondensed-700.woff2 +0 -0
- package/dist/fonts/robotocondensed-700i.woff2 +0 -0
- package/dist/fonts/robotoslab-700.woff2 +0 -0
- package/dist/fonts/sourcesans3-300.woff2 +0 -0
- package/dist/fonts/sourcesans3-300i.woff2 +0 -0
- package/dist/fonts/sourcesans3-400.woff2 +0 -0
- package/dist/fonts/sourcesans3-400i.woff2 +0 -0
- package/dist/fonts/sourcesans3-700.woff2 +0 -0
- package/dist/fonts/tinos-400.woff2 +0 -0
- package/dist/fonts/tinos-400i.woff2 +0 -0
- package/dist/fonts/tinos-700.woff2 +0 -0
- package/dist/fonts/tinos-700i.woff2 +0 -0
- package/dist/i18n/README.md +52 -0
- package/dist/i18n/catalog.d.ts +39 -0
- package/dist/i18n/catalog.d.ts.map +1 -0
- package/dist/i18n/catalog.js +43 -0
- package/dist/i18n/format.d.ts +14 -0
- package/dist/i18n/format.d.ts.map +1 -0
- package/dist/i18n/format.js +38 -0
- package/dist/i18n/index.d.ts +4 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/locale-context.d.ts +43 -0
- package/dist/i18n/locale-context.d.ts.map +1 -0
- package/dist/i18n/locale-context.js +74 -0
- package/dist/i18n/locales/en.json +337 -0
- package/dist/i18n/locales/es.json +337 -0
- package/dist/index.d.ts +101 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +99 -0
- package/dist/kit/BulletSkillGroup.d.ts +20 -0
- package/dist/kit/BulletSkillGroup.d.ts.map +1 -0
- package/dist/kit/BulletSkillGroup.js +25 -0
- package/dist/kit/DescribedEntries.d.ts +41 -0
- package/dist/kit/DescribedEntries.d.ts.map +1 -0
- package/dist/kit/DescribedEntries.js +57 -0
- package/dist/kit/DocumentSection.d.ts +58 -0
- package/dist/kit/DocumentSection.d.ts.map +1 -0
- package/dist/kit/DocumentSection.js +38 -0
- package/dist/kit/GridSkillGroup.d.ts +12 -0
- package/dist/kit/GridSkillGroup.d.ts.map +1 -0
- package/dist/kit/GridSkillGroup.js +14 -0
- package/dist/kit/Heading.d.ts +11 -0
- package/dist/kit/Heading.d.ts.map +1 -0
- package/dist/kit/Heading.js +10 -0
- package/dist/kit/InitialsAvatar.d.ts +17 -0
- package/dist/kit/InitialsAvatar.d.ts.map +1 -0
- package/dist/kit/InitialsAvatar.js +18 -0
- package/dist/kit/InitialsChip.d.ts +16 -0
- package/dist/kit/InitialsChip.d.ts.map +1 -0
- package/dist/kit/InitialsChip.js +16 -0
- package/dist/kit/InlineSkillGroup.d.ts +22 -0
- package/dist/kit/InlineSkillGroup.d.ts.map +1 -0
- package/dist/kit/InlineSkillGroup.js +16 -0
- package/dist/kit/LabelledSkillGroup.d.ts +24 -0
- package/dist/kit/LabelledSkillGroup.d.ts.map +1 -0
- package/dist/kit/LabelledSkillGroup.js +20 -0
- package/dist/kit/LanguageList.d.ts +28 -0
- package/dist/kit/LanguageList.d.ts.map +1 -0
- package/dist/kit/LanguageList.js +56 -0
- package/dist/kit/Separator.d.ts +20 -0
- package/dist/kit/Separator.d.ts.map +1 -0
- package/dist/kit/Separator.js +21 -0
- package/dist/kit/TagSkillGroup.d.ts +8 -0
- package/dist/kit/TagSkillGroup.d.ts.map +1 -0
- package/dist/kit/TagSkillGroup.js +10 -0
- package/dist/kit/avatar.css +42 -0
- package/dist/kit/contact-icons.css +70 -0
- package/dist/kit/contact.d.ts +16 -0
- package/dist/kit/contact.d.ts.map +1 -0
- package/dist/kit/contact.js +18 -0
- package/dist/kit/described.css +114 -0
- package/dist/kit/documentStyle.d.ts +20 -0
- package/dist/kit/documentStyle.d.ts.map +1 -0
- package/dist/kit/documentStyle.js +64 -0
- package/dist/kit/heading.css +17 -0
- package/dist/kit/keywords.css +127 -0
- package/dist/kit/language.css +104 -0
- package/dist/kit/layout.css +16 -0
- package/dist/kit/monogram.d.ts +6 -0
- package/dist/kit/monogram.d.ts.map +1 -0
- package/dist/kit/monogram.js +12 -0
- package/dist/kit/panel.css +26 -0
- package/dist/kit/skill-grid.css +93 -0
- package/dist/kit/skill-tags.css +36 -0
- package/dist/kit/textShapes.d.ts +24 -0
- package/dist/kit/textShapes.d.ts.map +1 -0
- package/dist/kit/textShapes.js +32 -0
- package/dist/kit/typography.css +86 -0
- package/dist/letter/LetterDocument.d.ts +13 -0
- package/dist/letter/LetterDocument.d.ts.map +1 -0
- package/dist/letter/LetterDocument.js +12 -0
- package/dist/letter/letter.css +75 -0
- package/dist/nodes/AuthoredBullets.d.ts +22 -0
- package/dist/nodes/AuthoredBullets.d.ts.map +1 -0
- package/dist/nodes/AuthoredBullets.js +101 -0
- package/dist/nodes/CustomSections.d.ts +42 -0
- package/dist/nodes/CustomSections.d.ts.map +1 -0
- package/dist/nodes/CustomSections.js +27 -0
- package/dist/nodes/EditableBulletList.d.ts +15 -0
- package/dist/nodes/EditableBulletList.d.ts.map +1 -0
- package/dist/nodes/EditableBulletList.js +98 -0
- package/dist/nodes/EditableInlineList.d.ts +27 -0
- package/dist/nodes/EditableInlineList.d.ts.map +1 -0
- package/dist/nodes/EditableInlineList.js +50 -0
- package/dist/nodes/EditableText.d.ts +79 -0
- package/dist/nodes/EditableText.d.ts.map +1 -0
- package/dist/nodes/EditableText.js +113 -0
- package/dist/nodes/LinkField.d.ts +103 -0
- package/dist/nodes/LinkField.d.ts.map +1 -0
- package/dist/nodes/LinkField.js +277 -0
- package/dist/nodes/PlainTextField.d.ts +38 -0
- package/dist/nodes/PlainTextField.d.ts.map +1 -0
- package/dist/nodes/PlainTextField.js +72 -0
- package/dist/nodes/formatting.d.ts +38 -0
- package/dist/nodes/formatting.d.ts.map +1 -0
- package/dist/nodes/formatting.js +27 -0
- package/dist/nodes/link-field.css +200 -0
- package/dist/nodes/locked.d.ts +38 -0
- package/dist/nodes/locked.d.ts.map +1 -0
- package/dist/nodes/locked.js +68 -0
- package/dist/nodes/template-node.css +720 -0
- package/dist/paged.css +265 -0
- package/dist/pagination.d.ts +93 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +167 -0
- package/dist/picture-context.d.ts +6 -0
- package/dist/picture-context.d.ts.map +1 -0
- package/dist/picture-context.js +14 -0
- package/dist/presentation-context.d.ts +45 -0
- package/dist/presentation-context.d.ts.map +1 -0
- package/dist/presentation-context.js +44 -0
- package/dist/presented.d.ts +16 -0
- package/dist/presented.d.ts.map +1 -0
- package/dist/presented.js +22 -0
- package/dist/rail/ContainerRail.d.ts +29 -0
- package/dist/rail/ContainerRail.d.ts.map +1 -0
- package/dist/rail/ContainerRail.js +50 -0
- package/dist/rail/EntryActions.d.ts +19 -0
- package/dist/rail/EntryActions.d.ts.map +1 -0
- package/dist/rail/EntryActions.js +17 -0
- package/dist/rail/rail-store.d.ts +42 -0
- package/dist/rail/rail-store.d.ts.map +1 -0
- package/dist/rail/rail-store.js +107 -0
- package/dist/rail/rail.css +188 -0
- package/dist/rail/useSpaceDrag.d.ts +30 -0
- package/dist/rail/useSpaceDrag.d.ts.map +1 -0
- package/dist/rail/useSpaceDrag.js +154 -0
- package/dist/registry.d.ts +35 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +74 -0
- package/dist/spacing/spacing-context.d.ts +53 -0
- package/dist/spacing/spacing-context.d.ts.map +1 -0
- package/dist/spacing/spacing-context.js +36 -0
- package/dist/spacing/spacing.css +159 -0
- package/dist/spacing/useSpaceSlot.d.ts +52 -0
- package/dist/spacing/useSpaceSlot.d.ts.map +1 -0
- package/dist/spacing/useSpaceSlot.js +38 -0
- package/dist/static/api.d.ts +13 -0
- package/dist/static/api.d.ts.map +1 -0
- package/dist/static/api.js +1 -0
- package/dist/static/static.mjs +33930 -0
- package/dist/static/templates/academic.css +1 -0
- package/dist/static/templates/alta.css +1 -0
- package/dist/static/templates/classic.css +1 -0
- package/dist/static/templates/cobalt.css +1 -0
- package/dist/static/templates/compact.css +1 -0
- package/dist/static/templates/contemporary.css +1 -0
- package/dist/static/templates/creative.css +1 -0
- package/dist/static/templates/crimson.css +1 -0
- package/dist/static/templates/curve.css +1 -0
- package/dist/static/templates/double-column-logos.css +1 -0
- package/dist/static/templates/double-column.css +1 -0
- package/dist/static/templates/elegant-logos.css +1 -0
- package/dist/static/templates/elegant.css +1 -0
- package/dist/static/templates/engineer.css +1 -0
- package/dist/static/templates/executive.css +1 -0
- package/dist/static/templates/harvard.css +1 -0
- package/dist/static/templates/hipster.css +1 -0
- package/dist/static/templates/ivy.css +1 -0
- package/dist/static/templates/meridian.css +1 -0
- package/dist/static/templates/modern.css +1 -0
- package/dist/static/templates/polished.css +1 -0
- package/dist/static/templates/portrait.css +1 -0
- package/dist/static/templates/prism.css +1 -0
- package/dist/static/templates/scholar.css +1 -0
- package/dist/static/templates/split.css +1 -0
- package/dist/static/templates/stylish.css +1 -0
- package/dist/static/templates/timeline.css +1 -0
- package/dist/static/templates.css +1 -0
- package/dist/templates/academic/AcademicDocument.d.ts +6 -0
- package/dist/templates/academic/AcademicDocument.d.ts.map +1 -0
- package/dist/templates/academic/AcademicDocument.js +29 -0
- package/dist/templates/academic/academic.css +284 -0
- package/dist/templates/academic/entries.d.ts +22 -0
- package/dist/templates/academic/entries.d.ts.map +1 -0
- package/dist/templates/academic/entries.js +17 -0
- package/dist/templates/alta/AltaDocument.d.ts +6 -0
- package/dist/templates/alta/AltaDocument.d.ts.map +1 -0
- package/dist/templates/alta/AltaDocument.js +29 -0
- package/dist/templates/alta/alta.css +413 -0
- package/dist/templates/alta/entries.d.ts +22 -0
- package/dist/templates/alta/entries.d.ts.map +1 -0
- package/dist/templates/alta/entries.js +17 -0
- package/dist/templates/classic/ClassicDocument.d.ts +6 -0
- package/dist/templates/classic/ClassicDocument.d.ts.map +1 -0
- package/dist/templates/classic/ClassicDocument.js +26 -0
- package/dist/templates/classic/classic.css +251 -0
- package/dist/templates/classic/entries.d.ts +22 -0
- package/dist/templates/classic/entries.d.ts.map +1 -0
- package/dist/templates/classic/entries.js +17 -0
- package/dist/templates/cobalt/CobaltDocument.d.ts +6 -0
- package/dist/templates/cobalt/CobaltDocument.d.ts.map +1 -0
- package/dist/templates/cobalt/CobaltDocument.js +28 -0
- package/dist/templates/cobalt/cobalt.css +478 -0
- package/dist/templates/cobalt/crest.d.ts +6 -0
- package/dist/templates/cobalt/crest.d.ts.map +1 -0
- package/dist/templates/cobalt/crest.js +8 -0
- package/dist/templates/cobalt/entries.d.ts +22 -0
- package/dist/templates/cobalt/entries.d.ts.map +1 -0
- package/dist/templates/cobalt/entries.js +17 -0
- package/dist/templates/compact/CompactDocument.d.ts +6 -0
- package/dist/templates/compact/CompactDocument.d.ts.map +1 -0
- package/dist/templates/compact/CompactDocument.js +28 -0
- package/dist/templates/compact/compact.css +240 -0
- package/dist/templates/compact/entries.d.ts +22 -0
- package/dist/templates/compact/entries.d.ts.map +1 -0
- package/dist/templates/compact/entries.js +17 -0
- package/dist/templates/contemporary/ContemporaryDocument.d.ts +6 -0
- package/dist/templates/contemporary/ContemporaryDocument.d.ts.map +1 -0
- package/dist/templates/contemporary/ContemporaryDocument.js +29 -0
- package/dist/templates/contemporary/contemporary.css +411 -0
- package/dist/templates/contemporary/entries.d.ts +22 -0
- package/dist/templates/contemporary/entries.d.ts.map +1 -0
- package/dist/templates/contemporary/entries.js +17 -0
- package/dist/templates/creative/CreativeDocument.d.ts +6 -0
- package/dist/templates/creative/CreativeDocument.d.ts.map +1 -0
- package/dist/templates/creative/CreativeDocument.js +29 -0
- package/dist/templates/creative/creative.css +326 -0
- package/dist/templates/creative/entries.d.ts +22 -0
- package/dist/templates/creative/entries.d.ts.map +1 -0
- package/dist/templates/creative/entries.js +17 -0
- package/dist/templates/crimson/CrimsonDocument.d.ts +6 -0
- package/dist/templates/crimson/CrimsonDocument.d.ts.map +1 -0
- package/dist/templates/crimson/CrimsonDocument.js +30 -0
- package/dist/templates/crimson/crimson.css +301 -0
- package/dist/templates/crimson/entries.d.ts +22 -0
- package/dist/templates/crimson/entries.d.ts.map +1 -0
- package/dist/templates/crimson/entries.js +17 -0
- package/dist/templates/curve/CurveDocument.d.ts +6 -0
- package/dist/templates/curve/CurveDocument.d.ts.map +1 -0
- package/dist/templates/curve/CurveDocument.js +29 -0
- package/dist/templates/curve/curve.css +330 -0
- package/dist/templates/curve/entries.d.ts +22 -0
- package/dist/templates/curve/entries.d.ts.map +1 -0
- package/dist/templates/curve/entries.js +17 -0
- package/dist/templates/double-column/DoubleColumnDocument.d.ts +6 -0
- package/dist/templates/double-column/DoubleColumnDocument.d.ts.map +1 -0
- package/dist/templates/double-column/DoubleColumnDocument.js +29 -0
- package/dist/templates/double-column/double-column.css +331 -0
- package/dist/templates/double-column/entries.d.ts +22 -0
- package/dist/templates/double-column/entries.d.ts.map +1 -0
- package/dist/templates/double-column/entries.js +17 -0
- package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts +6 -0
- package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts.map +1 -0
- package/dist/templates/double-column-logos/DoubleColumnLogosDocument.js +28 -0
- package/dist/templates/double-column-logos/double-column-logos.css +333 -0
- package/dist/templates/double-column-logos/entries.d.ts +22 -0
- package/dist/templates/double-column-logos/entries.d.ts.map +1 -0
- package/dist/templates/double-column-logos/entries.js +18 -0
- package/dist/templates/elegant/ElegantDocument.d.ts +6 -0
- package/dist/templates/elegant/ElegantDocument.d.ts.map +1 -0
- package/dist/templates/elegant/ElegantDocument.js +31 -0
- package/dist/templates/elegant/elegant.css +358 -0
- package/dist/templates/elegant/entries.d.ts +22 -0
- package/dist/templates/elegant/entries.d.ts.map +1 -0
- package/dist/templates/elegant/entries.js +17 -0
- package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts +6 -0
- package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts.map +1 -0
- package/dist/templates/elegant-logos/ElegantLogosDocument.js +30 -0
- package/dist/templates/elegant-logos/elegant-logos.css +370 -0
- package/dist/templates/elegant-logos/entries.d.ts +22 -0
- package/dist/templates/elegant-logos/entries.d.ts.map +1 -0
- package/dist/templates/elegant-logos/entries.js +18 -0
- package/dist/templates/engineer/EngineerDocument.d.ts +6 -0
- package/dist/templates/engineer/EngineerDocument.d.ts.map +1 -0
- package/dist/templates/engineer/EngineerDocument.js +26 -0
- package/dist/templates/engineer/engineer.css +261 -0
- package/dist/templates/engineer/entries.d.ts +22 -0
- package/dist/templates/engineer/entries.d.ts.map +1 -0
- package/dist/templates/engineer/entries.js +17 -0
- package/dist/templates/executive/ExecutiveDocument.d.ts +6 -0
- package/dist/templates/executive/ExecutiveDocument.d.ts.map +1 -0
- package/dist/templates/executive/ExecutiveDocument.js +29 -0
- package/dist/templates/executive/entries.d.ts +22 -0
- package/dist/templates/executive/entries.d.ts.map +1 -0
- package/dist/templates/executive/entries.js +17 -0
- package/dist/templates/executive/executive.css +394 -0
- package/dist/templates/harvard/HarvardDocument.d.ts +6 -0
- package/dist/templates/harvard/HarvardDocument.d.ts.map +1 -0
- package/dist/templates/harvard/HarvardDocument.js +25 -0
- package/dist/templates/harvard/entries.d.ts +28 -0
- package/dist/templates/harvard/entries.d.ts.map +1 -0
- package/dist/templates/harvard/entries.js +22 -0
- package/dist/templates/harvard/harvard.css +436 -0
- package/dist/templates/hipster/HipsterDocument.d.ts +6 -0
- package/dist/templates/hipster/HipsterDocument.d.ts.map +1 -0
- package/dist/templates/hipster/HipsterDocument.js +30 -0
- package/dist/templates/hipster/entries.d.ts +22 -0
- package/dist/templates/hipster/entries.d.ts.map +1 -0
- package/dist/templates/hipster/entries.js +17 -0
- package/dist/templates/hipster/hipster.css +442 -0
- package/dist/templates/ivy/IvyDocument.d.ts +6 -0
- package/dist/templates/ivy/IvyDocument.d.ts.map +1 -0
- package/dist/templates/ivy/IvyDocument.js +26 -0
- package/dist/templates/ivy/entries.d.ts +22 -0
- package/dist/templates/ivy/entries.d.ts.map +1 -0
- package/dist/templates/ivy/entries.js +17 -0
- package/dist/templates/ivy/ivy.css +292 -0
- package/dist/templates/meridian/MeridianDocument.d.ts +6 -0
- package/dist/templates/meridian/MeridianDocument.d.ts.map +1 -0
- package/dist/templates/meridian/MeridianDocument.js +28 -0
- package/dist/templates/meridian/entries.d.ts +22 -0
- package/dist/templates/meridian/entries.d.ts.map +1 -0
- package/dist/templates/meridian/entries.js +17 -0
- package/dist/templates/meridian/meridian.css +431 -0
- package/dist/templates/modern/ModernDocument.d.ts +6 -0
- package/dist/templates/modern/ModernDocument.d.ts.map +1 -0
- package/dist/templates/modern/ModernDocument.js +29 -0
- package/dist/templates/modern/entries.d.ts +22 -0
- package/dist/templates/modern/entries.d.ts.map +1 -0
- package/dist/templates/modern/entries.js +17 -0
- package/dist/templates/modern/modern.css +309 -0
- package/dist/templates/polished/PolishedDocument.d.ts +6 -0
- package/dist/templates/polished/PolishedDocument.d.ts.map +1 -0
- package/dist/templates/polished/PolishedDocument.js +28 -0
- package/dist/templates/polished/entries.d.ts +22 -0
- package/dist/templates/polished/entries.d.ts.map +1 -0
- package/dist/templates/polished/entries.js +17 -0
- package/dist/templates/polished/polished.css +327 -0
- package/dist/templates/portrait/PortraitDocument.d.ts +6 -0
- package/dist/templates/portrait/PortraitDocument.d.ts.map +1 -0
- package/dist/templates/portrait/PortraitDocument.js +30 -0
- package/dist/templates/portrait/entries.d.ts +22 -0
- package/dist/templates/portrait/entries.d.ts.map +1 -0
- package/dist/templates/portrait/entries.js +17 -0
- package/dist/templates/portrait/portrait.css +427 -0
- package/dist/templates/prism/PrismDocument.d.ts +6 -0
- package/dist/templates/prism/PrismDocument.d.ts.map +1 -0
- package/dist/templates/prism/PrismDocument.js +35 -0
- package/dist/templates/prism/entries.d.ts +22 -0
- package/dist/templates/prism/entries.d.ts.map +1 -0
- package/dist/templates/prism/entries.js +17 -0
- package/dist/templates/prism/prism.css +314 -0
- package/dist/templates/scholar/ScholarDocument.d.ts +6 -0
- package/dist/templates/scholar/ScholarDocument.d.ts.map +1 -0
- package/dist/templates/scholar/ScholarDocument.js +27 -0
- package/dist/templates/scholar/entries.d.ts +22 -0
- package/dist/templates/scholar/entries.d.ts.map +1 -0
- package/dist/templates/scholar/entries.js +17 -0
- package/dist/templates/scholar/scholar.css +279 -0
- package/dist/templates/skills.d.ts +19 -0
- package/dist/templates/skills.d.ts.map +1 -0
- package/dist/templates/skills.js +19 -0
- package/dist/templates/split/SplitDocument.d.ts +6 -0
- package/dist/templates/split/SplitDocument.d.ts.map +1 -0
- package/dist/templates/split/SplitDocument.js +29 -0
- package/dist/templates/split/entries.d.ts +22 -0
- package/dist/templates/split/entries.d.ts.map +1 -0
- package/dist/templates/split/entries.js +17 -0
- package/dist/templates/split/split.css +337 -0
- package/dist/templates/stylish/StylishDocument.d.ts +6 -0
- package/dist/templates/stylish/StylishDocument.d.ts.map +1 -0
- package/dist/templates/stylish/StylishDocument.js +29 -0
- package/dist/templates/stylish/entries.d.ts +22 -0
- package/dist/templates/stylish/entries.d.ts.map +1 -0
- package/dist/templates/stylish/entries.js +17 -0
- package/dist/templates/stylish/stylish.css +340 -0
- package/dist/templates/timeline/TimelineDocument.d.ts +6 -0
- package/dist/templates/timeline/TimelineDocument.d.ts.map +1 -0
- package/dist/templates/timeline/TimelineDocument.js +27 -0
- package/dist/templates/timeline/entries.d.ts +22 -0
- package/dist/templates/timeline/entries.d.ts.map +1 -0
- package/dist/templates/timeline/entries.js +17 -0
- package/dist/templates/timeline/timeline.css +295 -0
- package/dist/useFitZoom.d.ts +99 -0
- package/dist/useFitZoom.d.ts.map +1 -0
- package/dist/useFitZoom.js +171 -0
- package/package.json +81 -3
- package/src/PagedSheet.tsx +792 -0
- package/src/TemplateDocument.tsx +112 -0
- package/src/autosave-context.tsx +67 -0
- package/src/collections/AuthoredItems.tsx +199 -0
- package/src/collections/Collection.tsx +73 -0
- package/src/collections/CollectionItems.tsx +318 -0
- package/src/collections/EntryOverlay.tsx +162 -0
- package/src/collections/SortableItems.tsx +167 -0
- package/src/collections/authoring-context.tsx +140 -0
- package/src/collections/entry-text.ts +41 -0
- package/src/collections/icons.tsx +83 -0
- package/src/collections/library/LibraryAction.tsx +200 -0
- package/src/collections/library/LibraryPicker.tsx +325 -0
- package/src/collections/overlay-context.tsx +49 -0
- package/src/collections/preload.ts +23 -0
- package/src/collections/selection-context.tsx +88 -0
- package/src/collections/useCollection.ts +133 -0
- package/src/collections/useCustomEntries.ts +84 -0
- package/src/collections/useSectionCollection.ts +268 -0
- package/src/compiler/emit.ts +736 -0
- package/src/compiler/schema.ts +689 -0
- package/src/export/entry.tsx +177 -0
- package/src/fields/date-issues-context.tsx +105 -0
- package/src/fields/field-registry.tsx +358 -0
- package/src/i18n/catalog.ts +81 -0
- package/src/i18n/format.ts +50 -0
- package/src/i18n/index.ts +21 -0
- package/src/i18n/locale-context.tsx +135 -0
- package/src/index.ts +156 -0
- package/src/kit/BulletSkillGroup.tsx +37 -0
- package/src/kit/DescribedEntries.tsx +132 -0
- package/src/kit/DocumentSection.tsx +97 -0
- package/src/kit/GridSkillGroup.tsx +17 -0
- package/src/kit/Heading.tsx +17 -0
- package/src/kit/InitialsAvatar.tsx +31 -0
- package/src/kit/InitialsChip.tsx +29 -0
- package/src/kit/InlineSkillGroup.tsx +41 -0
- package/src/kit/LabelledSkillGroup.tsx +68 -0
- package/src/kit/LanguageList.tsx +148 -0
- package/src/kit/Separator.tsx +30 -0
- package/src/kit/TagSkillGroup.tsx +19 -0
- package/src/kit/contact.ts +34 -0
- package/src/kit/documentStyle.ts +80 -0
- package/src/kit/monogram.ts +11 -0
- package/src/kit/textShapes.tsx +61 -0
- package/src/letter/LetterDocument.tsx +33 -0
- package/src/nodes/AuthoredBullets.tsx +253 -0
- package/src/nodes/CustomSections.tsx +138 -0
- package/src/nodes/EditableBulletList.tsx +186 -0
- package/src/nodes/EditableInlineList.tsx +109 -0
- package/src/nodes/EditableText.tsx +261 -0
- package/src/nodes/LinkField.tsx +438 -0
- package/src/nodes/PlainTextField.tsx +132 -0
- package/src/nodes/formatting.ts +70 -0
- package/src/nodes/locked.ts +70 -0
- package/src/pagination.ts +238 -0
- package/src/picture-context.tsx +18 -0
- package/src/presentation-context.tsx +87 -0
- package/src/presented.ts +29 -0
- package/src/rail/ContainerRail.tsx +145 -0
- package/src/rail/EntryActions.tsx +104 -0
- package/src/rail/rail-store.tsx +126 -0
- package/src/rail/useSpaceDrag.ts +177 -0
- package/src/registry.ts +101 -0
- package/src/spacing/spacing-context.tsx +100 -0
- package/src/spacing/useSpaceSlot.tsx +97 -0
- package/src/static/api.ts +19 -0
- package/src/static/fixtures.ts +80 -0
- package/src/static/render.tsx +24 -0
- package/src/templates/academic/AcademicDocument.tsx +259 -0
- package/src/templates/academic/entries.tsx +176 -0
- package/src/templates/alta/AltaDocument.tsx +269 -0
- package/src/templates/alta/entries.tsx +167 -0
- package/src/templates/classic/ClassicDocument.tsx +252 -0
- package/src/templates/classic/entries.tsx +175 -0
- package/src/templates/cobalt/CobaltDocument.tsx +306 -0
- package/src/templates/cobalt/crest.tsx +31 -0
- package/src/templates/cobalt/entries.tsx +136 -0
- package/src/templates/compact/CompactDocument.tsx +260 -0
- package/src/templates/compact/entries.tsx +167 -0
- package/src/templates/contemporary/ContemporaryDocument.tsx +291 -0
- package/src/templates/contemporary/entries.tsx +167 -0
- package/src/templates/creative/CreativeDocument.tsx +273 -0
- package/src/templates/creative/entries.tsx +167 -0
- package/src/templates/crimson/CrimsonDocument.tsx +287 -0
- package/src/templates/crimson/entries.tsx +169 -0
- package/src/templates/curve/CurveDocument.tsx +263 -0
- package/src/templates/curve/entries.tsx +168 -0
- package/src/templates/double-column/DoubleColumnDocument.tsx +273 -0
- package/src/templates/double-column/entries.tsx +169 -0
- package/src/templates/double-column-logos/DoubleColumnLogosDocument.tsx +266 -0
- package/src/templates/double-column-logos/entries.tsx +172 -0
- package/src/templates/elegant/ElegantDocument.tsx +301 -0
- package/src/templates/elegant/entries.tsx +167 -0
- package/src/templates/elegant-logos/ElegantLogosDocument.tsx +295 -0
- package/src/templates/elegant-logos/entries.tsx +170 -0
- package/src/templates/engineer/EngineerDocument.tsx +252 -0
- package/src/templates/engineer/entries.tsx +170 -0
- package/src/templates/executive/ExecutiveDocument.tsx +316 -0
- package/src/templates/executive/entries.tsx +146 -0
- package/src/templates/harvard/HarvardDocument.tsx +252 -0
- package/src/templates/harvard/entries.tsx +205 -0
- package/src/templates/hipster/HipsterDocument.tsx +293 -0
- package/src/templates/hipster/entries.tsx +175 -0
- package/src/templates/ivy/IvyDocument.tsx +252 -0
- package/src/templates/ivy/entries.tsx +167 -0
- package/src/templates/meridian/MeridianDocument.tsx +308 -0
- package/src/templates/meridian/entries.tsx +140 -0
- package/src/templates/modern/ModernDocument.tsx +269 -0
- package/src/templates/modern/entries.tsx +167 -0
- package/src/templates/polished/PolishedDocument.tsx +266 -0
- package/src/templates/polished/entries.tsx +167 -0
- package/src/templates/portrait/PortraitDocument.tsx +282 -0
- package/src/templates/portrait/entries.tsx +173 -0
- package/src/templates/prism/PrismDocument.tsx +311 -0
- package/src/templates/prism/entries.tsx +175 -0
- package/src/templates/scholar/ScholarDocument.tsx +270 -0
- package/src/templates/scholar/entries.tsx +169 -0
- package/src/templates/skills.ts +21 -0
- package/src/templates/split/SplitDocument.tsx +297 -0
- package/src/templates/split/entries.tsx +164 -0
- package/src/templates/stylish/StylishDocument.tsx +269 -0
- package/src/templates/stylish/entries.tsx +167 -0
- package/src/templates/timeline/TimelineDocument.tsx +255 -0
- package/src/templates/timeline/entries.tsx +173 -0
- package/src/useFitZoom.ts +185 -0
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Editing affordances, shared by every template.
|
|
3
|
+
*
|
|
4
|
+
* The one rule this file exists to keep: an editable field occupies the SAME BOX
|
|
5
|
+
* whether it is being edited or not. Everything here is either zeroing a
|
|
6
|
+
* browser default (border, padding, background, font) or positioning a control
|
|
7
|
+
* outside the document's flow. Nothing here decides how the document looks —
|
|
8
|
+
* that is the template's stylesheet, and only the template's.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
.tpl-text {
|
|
12
|
+
/* Inherit everything. The template decided the typography; a field renders in
|
|
13
|
+
it, it does not have opinions of its own. */
|
|
14
|
+
font: inherit;
|
|
15
|
+
color: inherit;
|
|
16
|
+
letter-spacing: inherit;
|
|
17
|
+
line-height: inherit;
|
|
18
|
+
white-space: pre-wrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* An empty field says what belongs in it — as a DRAWING, never as text.
|
|
23
|
+
*
|
|
24
|
+
* The placeholder was the field's own content when the value was empty, which
|
|
25
|
+
* meant it printed: an exported PDF carried "Degree" and "YYYY-MM" as real
|
|
26
|
+
* words, and anything parsing that résumé read them as the candidate's answers.
|
|
27
|
+
* Drawn in a pseudo-element it cannot be extracted, cannot be selected, and can
|
|
28
|
+
* be switched off for the two places it is not guidance but noise — the
|
|
29
|
+
* read-only document, and paper.
|
|
30
|
+
*/
|
|
31
|
+
.tpl-text[data-empty] {
|
|
32
|
+
color: var(--tpl-paper-muted);
|
|
33
|
+
font-style: italic;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tpl-text[data-empty]::before {
|
|
37
|
+
content: attr(data-placeholder);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Nothing here can be edited, so there is nothing to guide. */
|
|
41
|
+
.tpl-editor--static .tpl-text[data-empty]::before {
|
|
42
|
+
content: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tpl-input {
|
|
46
|
+
font: inherit;
|
|
47
|
+
color: inherit;
|
|
48
|
+
letter-spacing: inherit;
|
|
49
|
+
line-height: inherit;
|
|
50
|
+
/* Not inherited by form controls in the UA stylesheet, so an aligned field
|
|
51
|
+
would align its static text and not the field that replaces it. */
|
|
52
|
+
text-align: inherit;
|
|
53
|
+
margin: 0;
|
|
54
|
+
padding: 0;
|
|
55
|
+
border: 0;
|
|
56
|
+
outline: 0;
|
|
57
|
+
background: transparent;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/*
|
|
61
|
+
* A textarea — which is now only the bullets, where the field is a block that
|
|
62
|
+
* fills its row and the mirror below gives it its height.
|
|
63
|
+
*/
|
|
64
|
+
textarea.tpl-input {
|
|
65
|
+
width: 100%;
|
|
66
|
+
resize: none;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
/* A textarea's default box is content-box with a 2px inset. Both would shift
|
|
69
|
+
the text by a hair the moment the field appears. */
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
vertical-align: baseline;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/*
|
|
75
|
+
* An editable SPAN — every field that is a line of the document.
|
|
76
|
+
*
|
|
77
|
+
* Inline, so it breaks across lines wherever the static text broke, which is
|
|
78
|
+
* the property no form control can offer. It inherits `pre-wrap` from
|
|
79
|
+
* `.tpl-text`, so the wrapping is the same rule as well as the same shape.
|
|
80
|
+
*/
|
|
81
|
+
span.tpl-input {
|
|
82
|
+
display: inline;
|
|
83
|
+
|
|
84
|
+
/*
|
|
85
|
+
* And the browser's OWN opinions about editable text, reset.
|
|
86
|
+
*
|
|
87
|
+
* Every UA stylesheet attaches two line-breaking rules to `contenteditable`
|
|
88
|
+
* that no other element gets — `overflow-wrap: break-word`, which lets a long
|
|
89
|
+
* word be split mid-word, and `-webkit-line-break: after-white-space`, which
|
|
90
|
+
* moves where a line may break relative to its spaces. Both decide where the
|
|
91
|
+
* text WRAPS, so a paragraph re-flowed the instant it was clicked into and
|
|
92
|
+
* the document moved under the candidate's cursor. It is the same defect the
|
|
93
|
+
* form controls had, arriving from a different direction: the box was right,
|
|
94
|
+
* and the rules for filling it were not.
|
|
95
|
+
*
|
|
96
|
+
* `inherit`, not a value of its own — the field wraps however the text around
|
|
97
|
+
* it wraps, which is the rule this whole file keeps.
|
|
98
|
+
*/
|
|
99
|
+
overflow-wrap: inherit;
|
|
100
|
+
word-break: inherit;
|
|
101
|
+
-webkit-line-break: auto;
|
|
102
|
+
line-break: auto;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/*
|
|
106
|
+
* The placeholder, which a span has no attribute for.
|
|
107
|
+
*
|
|
108
|
+
* Drawn rather than typed, so it is never part of the value and never lands in
|
|
109
|
+
* the résumé. Emptiness is an attribute the field sets on itself as it is
|
|
110
|
+
* typed into, not something read back from the stored value — that arrives half
|
|
111
|
+
* a second later and the guidance would still be sitting beside the first
|
|
112
|
+
* letter written over it.
|
|
113
|
+
*/
|
|
114
|
+
span.tpl-input[data-empty]::before {
|
|
115
|
+
content: attr(data-placeholder);
|
|
116
|
+
color: var(--tpl-paper-muted);
|
|
117
|
+
font-style: italic;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/*
|
|
121
|
+
* The auto-growing field.
|
|
122
|
+
*
|
|
123
|
+
* The mirror renders the same string invisibly in the same grid cell, so the
|
|
124
|
+
* box is exactly the size of its content — with no measurement, no
|
|
125
|
+
* `scrollHeight` read, and no frame where the size is wrong. A wrapping bullet
|
|
126
|
+
* stays wrapped while it is edited, which an <input> could never do.
|
|
127
|
+
*/
|
|
128
|
+
.tpl-grow {
|
|
129
|
+
display: grid;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.tpl-grow::after {
|
|
133
|
+
content: attr(data-value) ' ';
|
|
134
|
+
white-space: pre-wrap;
|
|
135
|
+
visibility: hidden;
|
|
136
|
+
font: inherit;
|
|
137
|
+
letter-spacing: inherit;
|
|
138
|
+
line-height: inherit;
|
|
139
|
+
text-align: inherit;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.tpl-grow > .tpl-input,
|
|
143
|
+
.tpl-grow::after {
|
|
144
|
+
grid-area: 1 / 1 / 2 / 2;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/*
|
|
148
|
+
* A field says it is a field with a FILL, never with an edge.
|
|
149
|
+
*
|
|
150
|
+
* Everything here used to draw a box: the hovered field got a two-pixel ring,
|
|
151
|
+
* the bullet list got a ring of its own around all eleven of them, and every
|
|
152
|
+
* field in the selected entry got a tinted band. Together that was a rectangle
|
|
153
|
+
* inside a rectangle inside a rectangle, and the one thing a candidate actually
|
|
154
|
+
* wanted to see — which line the caret is in — was the hardest of the three to
|
|
155
|
+
* pick out.
|
|
156
|
+
*
|
|
157
|
+
* So there is one edge on the page at a time: the region's ring, drawn by
|
|
158
|
+
* `collection.css`. Fields are distinguished by fill alone.
|
|
159
|
+
*
|
|
160
|
+
* Scoped away from `--static`, which is the READ-ONLY document — the saved
|
|
161
|
+
* résumé view and the export renderer both mount it. Without the exclusion a
|
|
162
|
+
* résumé nobody could edit still answered the pointer with a text cursor,
|
|
163
|
+
* promising an action that was not there.
|
|
164
|
+
*/
|
|
165
|
+
.tpl-editor:not(.tpl-editor--static) .tpl-text:hover {
|
|
166
|
+
background: var(--tpl-wash);
|
|
167
|
+
/* Rounded on all four, because a hover has no bar to sit flush against. */
|
|
168
|
+
border-radius: 5px;
|
|
169
|
+
cursor: text;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/*
|
|
173
|
+
* The ACTIVE field, and only it.
|
|
174
|
+
*
|
|
175
|
+
* An earlier version underlined every field inside the selected entry, on the
|
|
176
|
+
* argument that selecting a region should say which parts of it can be typed
|
|
177
|
+
* into. In a role with eleven bullets that painted all eleven, and the answer to
|
|
178
|
+
* "which one did I just click" stopped being visible at all — the highlight said
|
|
179
|
+
* something true about the region and nothing about the caret.
|
|
180
|
+
*
|
|
181
|
+
* So the highlight follows focus. A bullet list is ONE editor node, so selecting
|
|
182
|
+
* it turns every bullet into a field at once; `:focus-within` is what
|
|
183
|
+
* distinguishes the one the caret is in from the ten that merely could be.
|
|
184
|
+
*
|
|
185
|
+
* A FILL, and nothing else. Two attempts at an accent bar down the left edge
|
|
186
|
+
* came off badly for the same reason: a field's box starts exactly where its
|
|
187
|
+
* text starts, so a bar inside it sits on the first letter, and there is no room
|
|
188
|
+
* to give it without either moving the text or reaching into the gutter the drag
|
|
189
|
+
* handle already uses. The fill alone says which line the caret is in, cannot
|
|
190
|
+
* collide with anything, and needs no exception in any of the four templates.
|
|
191
|
+
*/
|
|
192
|
+
.tpl-editor:not(.tpl-editor--static) .tpl-text:focus-within {
|
|
193
|
+
background: var(--tpl-tint);
|
|
194
|
+
border-radius: 5px;
|
|
195
|
+
transition: background-color 140ms ease;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* An empty field is guidance, and guidance should look like an invitation. */
|
|
199
|
+
[data-selected] .tpl-text[data-empty] {
|
|
200
|
+
background: var(--tpl-tint);
|
|
201
|
+
border-radius: 5px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@media (prefers-reduced-motion: reduce) {
|
|
205
|
+
.tpl-editor:not(.tpl-editor--static) .tpl-text:focus-within {
|
|
206
|
+
transition: none;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* ---------------------------------------------------------------------------
|
|
211
|
+
* The bullet row.
|
|
212
|
+
*
|
|
213
|
+
* Every template draws a bullet as a two-column grid — a marker gutter and the
|
|
214
|
+
* text — with the marker in `::before`. On hover the GUTTER is what the drag
|
|
215
|
+
* handle uses: the marker steps aside and the grip takes its place, so the row
|
|
216
|
+
* does not grow, nothing to the right of it moves, and the affordance appears
|
|
217
|
+
* exactly where the eye already is.
|
|
218
|
+
*
|
|
219
|
+
* `visibility`, not `display`: the marker keeps its box, so the text never
|
|
220
|
+
* shifts by the width of a bullet as the pointer crosses it.
|
|
221
|
+
* ------------------------------------------------------------------------ */
|
|
222
|
+
|
|
223
|
+
.tpl-bullet {
|
|
224
|
+
position: relative;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/*
|
|
228
|
+
* And the marker only steps aside when something is taking its place. While the
|
|
229
|
+
* field is being edited the handle is gone, so hiding the `•` as well would
|
|
230
|
+
* leave the bullet with no mark at all.
|
|
231
|
+
*
|
|
232
|
+
* Faded rather than switched, and on the same curve as the handle: the two are
|
|
233
|
+
* one object changing form, so the `•` has to leave over the time the grip
|
|
234
|
+
* takes to arrive. Cutting it instantly left the gutter empty for the length of
|
|
235
|
+
* the fade, which read as the bullet flickering rather than as a swap.
|
|
236
|
+
*/
|
|
237
|
+
.tpl-editor:not(.tpl-editor--static) .tpl-bullet[data-authored]::before {
|
|
238
|
+
transition: opacity var(--tpl-reveal-ms) ease;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.tpl-editor:not(.tpl-editor--static)
|
|
242
|
+
.tpl-bullet[data-authored]:hover:not(:has(.tpl-input:focus))::before {
|
|
243
|
+
opacity: 0;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.tpl-bullet__grip {
|
|
247
|
+
position: absolute;
|
|
248
|
+
|
|
249
|
+
/*
|
|
250
|
+
* Pinned by its CENTRE, on both axes.
|
|
251
|
+
*
|
|
252
|
+
* Horizontally that centre is the middle of the marker column, whose width
|
|
253
|
+
* only the template knows — the shared stylesheet reads it, and the fallback
|
|
254
|
+
* covers a bullet list drawn outside the four, which is a case that exists
|
|
255
|
+
* only in a test today. Centring the handle's own box on that point rather
|
|
256
|
+
* than stretching the box across the column is what lets the handle be BIGGER
|
|
257
|
+
* than the gutter: it grows symmetrically, so the ink stays over the `•` it
|
|
258
|
+
* stands in for however large it gets, and the hover tint grows with it
|
|
259
|
+
* instead of clipping at a 10pt column's edge.
|
|
260
|
+
*
|
|
261
|
+
* Vertically it is the middle of the whole row, not the first baseline the
|
|
262
|
+
* marker sits on — which reads as top-aligned the moment a bullet wraps, and
|
|
263
|
+
* a handle for the whole row belongs against the whole row.
|
|
264
|
+
*/
|
|
265
|
+
top: 50%;
|
|
266
|
+
left: calc(var(--tpl-marker, 1em) / 2);
|
|
267
|
+
transform: translate(-50%, -50%) scale(0.72);
|
|
268
|
+
|
|
269
|
+
display: inline-flex;
|
|
270
|
+
align-items: center;
|
|
271
|
+
justify-content: center;
|
|
272
|
+
|
|
273
|
+
/*
|
|
274
|
+
* A square target, comfortably larger than the narrowest gutter (Harvard's
|
|
275
|
+
* 10pt ≈ 13px). It overhangs that column on both sides, which costs nothing:
|
|
276
|
+
* the handle is out of flow, so it displaces no text, and it is only ever
|
|
277
|
+
* visible while the pointer is on that row.
|
|
278
|
+
*/
|
|
279
|
+
width: 16px;
|
|
280
|
+
height: 16px;
|
|
281
|
+
padding: 0;
|
|
282
|
+
color: var(--tpl-accent-ink);
|
|
283
|
+
cursor: grab;
|
|
284
|
+
background: none;
|
|
285
|
+
border: 0;
|
|
286
|
+
border-radius: 3px;
|
|
287
|
+
|
|
288
|
+
/*
|
|
289
|
+
* Hidden but reachable.
|
|
290
|
+
*
|
|
291
|
+
* `opacity` rather than `visibility`, because a `visibility: hidden` button is
|
|
292
|
+
* out of the tab order — and reaching a bullet's handle by keyboard is how it
|
|
293
|
+
* is reordered without a pointer. `pointer-events: none` is the other half:
|
|
294
|
+
* an invisible control that still swallowed clicks would eat every click aimed
|
|
295
|
+
* at the text underneath it.
|
|
296
|
+
*/
|
|
297
|
+
/*
|
|
298
|
+
* Hidden but reachable, and never abruptly.
|
|
299
|
+
*
|
|
300
|
+
* The scale is what makes the fade read as the handle ARRIVING in the gutter
|
|
301
|
+
* rather than as the row changing brightness — 4px of growth is enough to be
|
|
302
|
+
* felt and too little to be watched. It composes into the same `transform`
|
|
303
|
+
* that centres the box, because a second transform would replace the first
|
|
304
|
+
* and drop the handle a half-width off its column.
|
|
305
|
+
*/
|
|
306
|
+
opacity: 0;
|
|
307
|
+
transition:
|
|
308
|
+
opacity var(--tpl-reveal-ms) ease,
|
|
309
|
+
transform var(--tpl-reveal-ms) cubic-bezier(0.2, 0.9, 0.3, 1.2);
|
|
310
|
+
pointer-events: none;
|
|
311
|
+
touch-action: none;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.tpl-bullet__grip svg {
|
|
315
|
+
/*
|
|
316
|
+
* A fixed size rather than an `em`: the ink should read the same at every
|
|
317
|
+
* type scale rather than becoming six large dots on a large résumé and six
|
|
318
|
+
* invisible ones on a small one.
|
|
319
|
+
*
|
|
320
|
+
* `flex: none` because the box it sits in is narrower than it is on the
|
|
321
|
+
* tightest template, and a flex item's default is to shrink to fit — which
|
|
322
|
+
* would quietly hand back exactly the size being asked for here.
|
|
323
|
+
*/
|
|
324
|
+
flex: none;
|
|
325
|
+
width: 14px;
|
|
326
|
+
height: 14px;
|
|
327
|
+
fill: currentcolor;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.tpl-bullet__grip:active {
|
|
331
|
+
cursor: grabbing;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/*
|
|
335
|
+
* Revealed by the POINTER, and by focus landing on the controls themselves —
|
|
336
|
+
* never while the field is being edited.
|
|
337
|
+
*
|
|
338
|
+
* Typing is the one moment a candidate is reading their own sentence closely,
|
|
339
|
+
* and a handle and two buttons appearing beside it are three things competing
|
|
340
|
+
* with the words. Hover alone was not enough to say that: clicking into a bullet
|
|
341
|
+
* leaves the pointer sitting on the row it just opened, so the controls stayed
|
|
342
|
+
* up for exactly the moment they were meant to leave.
|
|
343
|
+
*
|
|
344
|
+
* `:not(:has(.tpl-input:focus))` is the distinction the row itself cannot make.
|
|
345
|
+
* `:focus-within` is true both when the caret is in the text AND when focus is
|
|
346
|
+
* on one of these controls — and those are opposite cases: one must hide them,
|
|
347
|
+
* the other is the only reason a keyboard user can reach them at all.
|
|
348
|
+
*
|
|
349
|
+
* They come back the moment the pointer moves, and a keyboard user still tabs
|
|
350
|
+
* straight into them because they were never taken out of the tab order.
|
|
351
|
+
*/
|
|
352
|
+
.tpl-bullet:hover:not(:has(.tpl-input:focus)) > .tpl-bullet__grip,
|
|
353
|
+
.tpl-bullet__grip:focus-visible {
|
|
354
|
+
opacity: 1;
|
|
355
|
+
transform: translate(-50%, -50%) scale(1);
|
|
356
|
+
pointer-events: auto;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.tpl-bullet:hover:not(:has(.tpl-input:focus)) > .tpl-bullet__tools,
|
|
360
|
+
.tpl-bullet__tools:focus-within {
|
|
361
|
+
opacity: 1;
|
|
362
|
+
transform: translate(0, -50%);
|
|
363
|
+
pointer-events: auto;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.tpl-bullet__grip:hover {
|
|
367
|
+
background: var(--tpl-tint-hover);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.tpl-bullet__grip:focus-visible {
|
|
371
|
+
outline: 2px solid var(--tpl-accent-ink);
|
|
372
|
+
outline-offset: 1px;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/*
|
|
376
|
+
* Add and remove float INSIDE the row, at its right end.
|
|
377
|
+
*
|
|
378
|
+
* They used to sit in the page's right margin, which was the tidier place for
|
|
379
|
+
* them and the wrong one: the margin is outside the sheet, so on a narrow canvas
|
|
380
|
+
* — or simply with the page scrolled — the pill was clipped by the edge of the
|
|
381
|
+
* viewport and the controls could not be reached at all. Anything a candidate
|
|
382
|
+
* has to be able to click has to be on the paper.
|
|
383
|
+
*
|
|
384
|
+
* Absolutely positioned, so it still takes no flow space and revealing it moves
|
|
385
|
+
* no line. It does overlay the end of the row while the pointer is on it, which
|
|
386
|
+
* is the trade: an opaque pill with a shadow reads as floating above the text
|
|
387
|
+
* rather than replacing it, and it is only ever there while that one row is
|
|
388
|
+
* hovered or focused.
|
|
389
|
+
*/
|
|
390
|
+
.tpl-bullet__tools {
|
|
391
|
+
position: absolute;
|
|
392
|
+
top: 50%;
|
|
393
|
+
right: 2px;
|
|
394
|
+
|
|
395
|
+
/* Centred on the whole bullet, matching the handle at the other end of the
|
|
396
|
+
row — both act on the bullet, so neither belongs to its first line. */
|
|
397
|
+
transform: translate(4px, -50%);
|
|
398
|
+
|
|
399
|
+
display: flex;
|
|
400
|
+
gap: 2px;
|
|
401
|
+
padding: 3px;
|
|
402
|
+
|
|
403
|
+
/*
|
|
404
|
+
* One pill holding both, rather than two loose circles.
|
|
405
|
+
*
|
|
406
|
+
* Neutral like the region's own bar above it, and for the same reason: these
|
|
407
|
+
* rest on a résumé, and a pair of coloured discs beside a line of it reads as
|
|
408
|
+
* something wrong with the line.
|
|
409
|
+
*/
|
|
410
|
+
background: var(--tpl-chrome);
|
|
411
|
+
border: 1px solid rgb(var(--tpl-chrome-line) / 0.08);
|
|
412
|
+
border-radius: 9px;
|
|
413
|
+
box-shadow:
|
|
414
|
+
0 1px 2px rgb(var(--tpl-chrome-line) / 0.05),
|
|
415
|
+
0 4px 12px rgb(var(--tpl-chrome-line) / 0.08);
|
|
416
|
+
|
|
417
|
+
/*
|
|
418
|
+
* Arrives from the edge it lives at, by 4px — the same distance the handle
|
|
419
|
+
* grows by, so the two ends of the row move by the same amount at the same
|
|
420
|
+
* time and neither leads the other.
|
|
421
|
+
*/
|
|
422
|
+
opacity: 0;
|
|
423
|
+
transition:
|
|
424
|
+
opacity var(--tpl-reveal-ms) ease,
|
|
425
|
+
transform var(--tpl-reveal-ms) cubic-bezier(0.2, 0.9, 0.3, 1.2);
|
|
426
|
+
pointer-events: none;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/*
|
|
430
|
+
* Quiet at rest, and coloured only by what they do.
|
|
431
|
+
*
|
|
432
|
+
* They sit on a résumé somebody is about to send an employer, so nothing here
|
|
433
|
+
* is coloured until a pointer is on it: adding takes the brand colour, removing
|
|
434
|
+
* turns red, and neither announces itself before it is aimed at.
|
|
435
|
+
*/
|
|
436
|
+
.tpl-tool {
|
|
437
|
+
display: inline-flex;
|
|
438
|
+
align-items: center;
|
|
439
|
+
justify-content: center;
|
|
440
|
+
width: 16px;
|
|
441
|
+
height: 16px;
|
|
442
|
+
padding: 0;
|
|
443
|
+
color: color-mix(in oklab, var(--tpl-chrome-ink) 70%, transparent);
|
|
444
|
+
cursor: pointer;
|
|
445
|
+
background: none;
|
|
446
|
+
border: 0;
|
|
447
|
+
border-radius: 6px;
|
|
448
|
+
transition:
|
|
449
|
+
background-color 120ms ease,
|
|
450
|
+
color 120ms ease,
|
|
451
|
+
transform 120ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.tpl-tool svg {
|
|
455
|
+
width: 14px;
|
|
456
|
+
height: 14px;
|
|
457
|
+
fill: none;
|
|
458
|
+
stroke: currentcolor;
|
|
459
|
+
stroke-width: 1.75;
|
|
460
|
+
stroke-linecap: round;
|
|
461
|
+
stroke-linejoin: round;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.tpl-tool:hover:not(:disabled) {
|
|
465
|
+
color: var(--tpl-accent-ink);
|
|
466
|
+
background: var(--tpl-tint-hover);
|
|
467
|
+
/* A press-able amount, not a bounce. */
|
|
468
|
+
transform: scale(1.08);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.tpl-tool[data-tone='danger']:hover:not(:disabled) {
|
|
472
|
+
color: var(--tpl-danger);
|
|
473
|
+
background: var(--tpl-danger-tint);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.tpl-tool:active:not(:disabled) {
|
|
477
|
+
transform: scale(0.94);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.tpl-tool:disabled {
|
|
481
|
+
color: color-mix(in oklab, var(--tpl-chrome-ink) 30%, transparent);
|
|
482
|
+
cursor: not-allowed;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.tpl-tool:focus-visible {
|
|
486
|
+
outline: 2px solid var(--tpl-line-strong);
|
|
487
|
+
outline-offset: 1px;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
@media (prefers-reduced-motion: reduce) {
|
|
491
|
+
/*
|
|
492
|
+
* The controls still appear — they are the only way to reorder a bullet, and
|
|
493
|
+
* a preference about motion is not a preference about affordances. They just
|
|
494
|
+
* arrive at once, with the marker swapping out on the same frame.
|
|
495
|
+
*/
|
|
496
|
+
.tpl-editor:not(.tpl-editor--static) .tpl-bullet[data-authored]::before,
|
|
497
|
+
.tpl-bullet__grip,
|
|
498
|
+
.tpl-bullet__tools {
|
|
499
|
+
transition: none;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.tpl-bullet__grip {
|
|
503
|
+
transform: translate(-50%, -50%);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.tpl-bullet__tools {
|
|
507
|
+
transform: translate(0, -50%);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.tpl-tool {
|
|
511
|
+
transition: none;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.tpl-tool:hover:not(:disabled),
|
|
515
|
+
.tpl-tool:active:not(:disabled) {
|
|
516
|
+
transform: none;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/*
|
|
521
|
+
* On paper the document is the only thing on the page. `onbeforeprint` also
|
|
522
|
+
* clears the selection so no field is mounted when this applies — these rules
|
|
523
|
+
* are the belt to that braces.
|
|
524
|
+
*/
|
|
525
|
+
@media print {
|
|
526
|
+
.tpl-bullet__tools,
|
|
527
|
+
.tpl-bullet__grip,
|
|
528
|
+
.tpl-tool {
|
|
529
|
+
display: none !important;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/* The marker steps aside only for a pointer; on paper it always stands. */
|
|
533
|
+
.tpl-bullet::before {
|
|
534
|
+
opacity: 1 !important;
|
|
535
|
+
visibility: visible !important;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.tpl-text,
|
|
539
|
+
.tpl-text:hover,
|
|
540
|
+
.tpl-text:focus-within,
|
|
541
|
+
.tpl-input,
|
|
542
|
+
.tpl-bullets,
|
|
543
|
+
[data-selected] .tpl-text[data-empty] {
|
|
544
|
+
background: none !important;
|
|
545
|
+
box-shadow: none !important;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/*
|
|
549
|
+
* And the guidance itself goes. Printing happens from the EDITOR too — the
|
|
550
|
+
* PDF export is `window.print()` — so hiding it on the read-only document is
|
|
551
|
+
* only half the rule.
|
|
552
|
+
*/
|
|
553
|
+
.tpl-text[data-empty]::before,
|
|
554
|
+
span.tpl-input[data-empty]::before {
|
|
555
|
+
content: none !important;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/* ---------------------------------------------------------------------------
|
|
560
|
+
* Candidate-authored sections.
|
|
561
|
+
*
|
|
562
|
+
* The section wrapper and heading are the TEMPLATE's own classes — see
|
|
563
|
+
* `CustomSections.tsx` — so only the entry internals are styled here. Everything
|
|
564
|
+
* below inherits font, ink and scale from the template root, which is where the
|
|
565
|
+
* document's style already lives; nothing here states a typeface or a colour.
|
|
566
|
+
* ------------------------------------------------------------------------ */
|
|
567
|
+
|
|
568
|
+
.tpl-custom__entry + .tpl-custom__entry {
|
|
569
|
+
margin-top: 0.5em;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/*
|
|
573
|
+
* Title and detail on one line, detail pushed to the trailing edge — the shape
|
|
574
|
+
* every template already uses for "what this was" and "when it was", so an
|
|
575
|
+
* authored entry reads as a sibling of the written ones rather than as a
|
|
576
|
+
* different kind of thing.
|
|
577
|
+
*/
|
|
578
|
+
.tpl-custom__entry-head {
|
|
579
|
+
display: flex;
|
|
580
|
+
align-items: baseline;
|
|
581
|
+
justify-content: space-between;
|
|
582
|
+
gap: 1em;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.tpl-custom__title {
|
|
586
|
+
font-weight: 700;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.tpl-custom__detail {
|
|
590
|
+
/* `em`, so it tracks the document scale rather than fixing a size. */
|
|
591
|
+
font-size: 0.92em;
|
|
592
|
+
opacity: 0.8;
|
|
593
|
+
white-space: nowrap;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/*
|
|
597
|
+
* A linked field.
|
|
598
|
+
*
|
|
599
|
+
* Inherits colour and weight from the text it replaces so a link cannot reflow
|
|
600
|
+
* or recolour the document — the anchor is about where the word points, not
|
|
601
|
+
* about how it looks. Underlined, because a link nobody can see is a link
|
|
602
|
+
* nobody clicks, and on paper it is the only cue there is.
|
|
603
|
+
*/
|
|
604
|
+
.tpl-text__link {
|
|
605
|
+
color: inherit;
|
|
606
|
+
text-decoration: underline;
|
|
607
|
+
text-underline-offset: 0.15em;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/*
|
|
611
|
+
* A date that disagrees with the résumé's chronological order.
|
|
612
|
+
*
|
|
613
|
+
* EDITOR CHROME. The attribute is set only where `DateIssuesProvider` is
|
|
614
|
+
* mounted, which is the editor and nowhere else — the read-only preview and the
|
|
615
|
+
* render container never see it, so the exported PDF is byte-identical to what
|
|
616
|
+
* it was. Drawn by CSS from an attribute for the same reason the placeholders
|
|
617
|
+
* are: a message that were a text node would print into the file and be read by
|
|
618
|
+
* a parser as the candidate's own words.
|
|
619
|
+
*
|
|
620
|
+
* A WARM mark, not a red one. Nothing here is refused and nothing is broken —
|
|
621
|
+
* the candidate may have a genuine overlap or a deliberate ordering, and the
|
|
622
|
+
* product is pointing something out, not rejecting a form.
|
|
623
|
+
*/
|
|
624
|
+
.tpl-text[data-issue] {
|
|
625
|
+
/*
|
|
626
|
+
* A TINT as well as a rule, and a rule thick enough to see.
|
|
627
|
+
*
|
|
628
|
+
* This shipped as a wavy underline at `from-font` thickness and was, at the
|
|
629
|
+
* ~12.8px a date is set in, a hairline you could only find by zooming — a
|
|
630
|
+
* marker nobody notices is the same as no marker, and it read as the feature
|
|
631
|
+
* being broken. "Friendly rather than alarming" is not "invisible".
|
|
632
|
+
*
|
|
633
|
+
* The tint is what carries it at a glance; the wave is what says "look at
|
|
634
|
+
* this" rather than "this is highlighted". Both are warm, and neither is red:
|
|
635
|
+
* nothing here is refused, and the candidate may have meant it.
|
|
636
|
+
*/
|
|
637
|
+
background: color-mix(in oklab, var(--tpl-warn) 14%, transparent);
|
|
638
|
+
border-radius: 3px;
|
|
639
|
+
/* Drawn wider than the word without taking that width in the layout, so a
|
|
640
|
+
marked date cannot nudge the line it sits on. */
|
|
641
|
+
padding: 0.05em 0.22em;
|
|
642
|
+
margin-inline: -0.22em;
|
|
643
|
+
-webkit-box-decoration-break: clone;
|
|
644
|
+
box-decoration-break: clone;
|
|
645
|
+
text-decoration: underline;
|
|
646
|
+
text-decoration-style: wavy;
|
|
647
|
+
text-decoration-color: var(--tpl-warn);
|
|
648
|
+
text-decoration-thickness: 1.5px;
|
|
649
|
+
text-underline-offset: 0.2em;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/*
|
|
653
|
+
* The message, on hover AND on focus.
|
|
654
|
+
*
|
|
655
|
+
* Focus is the half that matters: `title` alone is a pointer affordance, so a
|
|
656
|
+
* candidate moving through the document by keyboard would see a marked date and
|
|
657
|
+
* have no way to find out what was noticed about it. `:focus-within` covers the
|
|
658
|
+
* field once it is selected, which is exactly when they are looking at it.
|
|
659
|
+
*/
|
|
660
|
+
.tpl-text[data-issue]::after {
|
|
661
|
+
content: attr(title);
|
|
662
|
+
position: absolute;
|
|
663
|
+
z-index: 5;
|
|
664
|
+
left: 0;
|
|
665
|
+
top: calc(100% + 6px);
|
|
666
|
+
width: max-content;
|
|
667
|
+
max-width: 22rem;
|
|
668
|
+
padding: 6px 9px;
|
|
669
|
+
border-radius: 6px;
|
|
670
|
+
background: var(--tpl-chrome-ink);
|
|
671
|
+
color: var(--tpl-chrome);
|
|
672
|
+
font-family: var(--font-sans);
|
|
673
|
+
font-size: 11px;
|
|
674
|
+
font-style: normal;
|
|
675
|
+
font-weight: 400;
|
|
676
|
+
line-height: 1.4;
|
|
677
|
+
letter-spacing: normal;
|
|
678
|
+
text-decoration: none;
|
|
679
|
+
text-align: left;
|
|
680
|
+
white-space: normal;
|
|
681
|
+
opacity: 0;
|
|
682
|
+
pointer-events: none;
|
|
683
|
+
transition: opacity 120ms ease-out;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/*
|
|
687
|
+
* Out of the way while the sentence is being written.
|
|
688
|
+
*
|
|
689
|
+
* The same guard every hover-revealed control in this file carries: a note that
|
|
690
|
+
* appeared over the document while the candidate was typing would be chrome
|
|
691
|
+
* covering the very words they are looking at. The marker itself stays — it is
|
|
692
|
+
* part of the text's own decoration, not a control — so nothing is hidden, only
|
|
693
|
+
* the explanation waits.
|
|
694
|
+
*
|
|
695
|
+
* Reaching it without a pointer is `aria-description` on the field, which is
|
|
696
|
+
* read whether or not anything is hovered.
|
|
697
|
+
*/
|
|
698
|
+
.tpl-editor:not(:has(.tpl-input:focus)) .tpl-text[data-issue]:hover::after {
|
|
699
|
+
opacity: 1;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/* The note is positioned against the field, so the field has to be a containing
|
|
703
|
+
block — and only when it carries one, so no other field's layout moves. */
|
|
704
|
+
.tpl-text[data-issue] {
|
|
705
|
+
position: relative;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
@media print {
|
|
709
|
+
/* Belt and braces. The attribute is not set on the print path at all, but a
|
|
710
|
+
résumé must never carry a note about itself onto paper. */
|
|
711
|
+
.tpl-text[data-issue] {
|
|
712
|
+
background: none;
|
|
713
|
+
padding: 0;
|
|
714
|
+
margin-inline: 0;
|
|
715
|
+
text-decoration: none;
|
|
716
|
+
}
|
|
717
|
+
.tpl-text[data-issue]::after {
|
|
718
|
+
content: none;
|
|
719
|
+
}
|
|
720
|
+
}
|