-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use context of view component to show tooltip only on first occurrenc…
…e of a term
- Loading branch information
Showing
6 changed files
with
115 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
{ | ||
"github": { | ||
"release": true | ||
"npm": { | ||
"publish": true | ||
}, | ||
"git": { | ||
"commitMessage": "chore: release ${version}" | ||
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs", | ||
"tagName": "${version}" | ||
}, | ||
"github": { | ||
"release": true, | ||
"releaseName": "${version}", | ||
"releaseNotes": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs" | ||
}, | ||
"plugins": { | ||
"@release-it/conventional-changelog": { | ||
"infile": "CHANGELOG.md", | ||
"header": "# Changelog", | ||
"preset": { | ||
"name": "conventionalcommits" | ||
} | ||
} | ||
"hooks": { | ||
"before:init": "", | ||
"after:bump": "npx auto-changelog --commit-limit false -p" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,27 @@ | |
"version": "1.0.3", | ||
"description": "Add tooltips for glossary terms", | ||
"main": "src/index.js", | ||
"author": "Katja Süss, https://github.com/rohberg", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"homepage": "https://github.com/rohberg/volto-slate-glossary", | ||
"keywords": [ | ||
"volto-addon", | ||
"volto", | ||
"plone", | ||
"react" | ||
"react", | ||
"glossary" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:rohberg/volto-slate-glossary.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/rohberg/volto-slate-glossary/issues" | ||
}, | ||
"scripts": { | ||
"i18n": "rm -rf build/messages && NODE_ENV=production i18n --addon", | ||
"release": "release-it" | ||
|
@@ -18,10 +32,6 @@ | |
"dependencies": { | ||
"@plone/scripts": "*" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"devDependencies": { | ||
"@release-it/conventional-changelog": "^8.0.2", | ||
"release-it": "^17.6.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
.glossarytooltip { | ||
cursor: help; | ||
border-bottom: 2px dotted #963c38; | ||
cursor: help; | ||
border-bottom: 2px dotted #963c38; | ||
} | ||
.ui.popup { | ||
hyphens: auto; | ||
font-size: 75% !important; | ||
ol { | ||
padding-left: 1rem; | ||
} | ||
hyphens: auto; | ||
font-size: 75% !important; | ||
ol { | ||
padding-left: 1rem; | ||
} | ||
} | ||
|
||
.hidden-helper { | ||
display: none; | ||
display: none; | ||
} | ||
|
||
|
||
// Glossar | ||
.glossary h2.letter { | ||
background: #963c38; | ||
color: white; | ||
margin: 2rem 0 1rem; | ||
padding: 0.3em .5em; | ||
background: #963c38; | ||
color: white; | ||
margin: 2rem 0 1rem; | ||
padding: 0.3em 0.5em; | ||
} | ||
.term h3 { | ||
span { | ||
font-size: 80%; | ||
} | ||
} | ||
span { | ||
font-size: 80%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters