Skip to content
Permalink
Browse files

Replace the deprecated 'primer-tooltips' with 'hint.css'

  • Loading branch information...
marcomontalbano committed Mar 8, 2019
1 parent 8293e3c commit 855a50d7a2a0a93147b71279e19ed86c10a9a47b
Showing with 14 additions and 19 deletions.
  1. +5 −13 package-lock.json
  2. +5 −3 package.json
  3. +1 −1 src/index.html
  4. +1 −1 src/index.js
  5. +1 −0 src/styles/_homepage.scss
  6. +1 −1 src/styles/index.scss

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,6 +1,6 @@
{
"name": "video-to-markdown",
"version": "1.1.0",
"version": "1.2.0",
"private": true,
"description": "Add videos to your markdown files easier.",
"homepage": "https://video-to-markdown.netlify.com/",
@@ -19,8 +19,10 @@
"markdown",
"video",
"youtube",
"facebook",
"vimeo",
"dailymotion"
"dailymotion",
"asciinema"
],
"engines": {
"node": ">= 8.x"
@@ -57,9 +59,9 @@
"dependencies": {
"clipboard": "^2.0.4",
"file-type": "^10.6.0",
"hint.css": "~2.5.1",
"jquery": "^3.3.1",
"nprogress": "^0.2.0",
"primer-tooltips": "^1.5.9",
"prismjs": "^1.15.0"
},
"scripts": {
@@ -55,7 +55,7 @@ <h1 class="title"><a href="/">Video to <strong>markdown</strong>!</a></h1>
<div class="preview">
<img alt="sample image" src="./images/placeholder.jpg" />
</div>
<div class="markdown tooltipped-n border p-2 mb-2 mr-2 float-left" aria-label="Click below to copy the markdown to clipboard.">
<div class="markdown border p-2 mb-2 mr-2 float-left" aria-label="Click below to copy the markdown to clipboard.">
<pre class="language"><code class="language">&nbsp;</code></pre>
</div>
</div>
@@ -40,7 +40,7 @@ const updateMarkdown = (title, imageUrl, videoUrl) => {
`<span class="token punctuation">[![<span class="token attr-value">${title}</span>](<span class="token attr-value">${imageUrl}</span>)](<span class="token attr-value">${videoUrl}</span> "<span class="token attr-value">${title}</span>")</span>`
;

$('.markdown').toggleClass('tooltipped', title !== undefined);
$('.markdown').toggleClass('hint--top', title !== undefined);
$('.markdown').attr('data-clipboard-text', $('.markdown code').html(markdown).text());
};

@@ -20,6 +20,7 @@
&.markdown {
background: #fff;
margin-top: 2px;
display: block;
> pre {
margin: 0;
> code {
@@ -1,7 +1,7 @@
// http://objectway.github.io/super-gigi/
@import "super-gigi/dist/_main";
@import "nprogress/nprogress";
@import "primer-tooltips/index";
@import "hint.css/src/hint";

//
@import "variables";

0 comments on commit 855a50d

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.