Skip to content

Upgrading to v2 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added docs/.hugo_build.lock
Empty file.
8 changes: 4 additions & 4 deletions docs/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<title itemprop="name">{{ .Title }}</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="/styles.css" />
<!-- <link rel="stylesheet" href="/main.css" />
<script src="/main.js"></script> -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/index.min.css">
<script src="https://unpkg.com/[email protected]/dist/index.min.js"></script>
<link rel="stylesheet" href="/main.css" />
<script src="/main.js"></script>
<!-- <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/index.min.css">
<script src="https://unpkg.com/[email protected]/dist/index.min.js"></script> -->
</head>
<body class="bg-dark" style="min-height: 100vh; height: 100%; width: 100vw; margin: 0; padding: 0;">
<main class="container-fluid w-100 p-0 m-0" id="main">
Expand Down
12 changes: 6 additions & 6 deletions docs/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@
<div class="m-0 ml-4">
<span style="color: yellowgreen">}]</span><span>,</span>
</div>
<div id="oncomplete">
<div class="m-0 ml-4">
<div class="m-0 ml-4" id="oncomplete">
<div class="">
<span style="color: rgb(255, 217, 0);">onComplete</span><span class="mr-1">:</span><span style="color: orange">function</span><span>() {</span>
</div>
<div class="m-0 ml-5 text-muted">// your code</div>
<div class="m-0 ml-4">}</div>
<div class="ml-4 text-muted">// your code</div>
<div class="">}</div>
</div>
<div class="m-0">};</div>
<div class="m-0">
Expand All @@ -84,10 +84,10 @@

<script>
const options = {
backdropColor: '#6262625d',
backdropConfig: { type: 'shadow', color: 'rgb(15, 23, 42, 0.6)' },
sequence: [{
element: '#imports',
description: "<h2>Don't forget to import!</h2><div>Add these lines when using in a front end framework.</div>",
description: "<h2>Don't forget to import!</h2><div>Add these lines when using in a front end framework.<a href='http://localhost:3000'>Link here</a></div>",
placement: 'bottom'
}, {
element: '#backdrop-color',
Expand Down
File renamed without changes.
114 changes: 66 additions & 48 deletions docs/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,34 @@

.tooltip-helper-active-description {
background-color: rgb(36, 36, 36);
position: absolute;
font-size: 15px;
border-radius: 5px;
height: 170px;
position: relative;
font-size: 1rem;
border-radius: 10px;
height: auto;
width: auto;
min-width: 100px;
max-width: 500px;
z-index: 9998;
transition-property: transform;
will-change: transform;
transform: translateX(0px) translateY(0px);
transition-duration: 150ms;
transform-origin: 5px 5px;
transition-duration: 200ms;
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
box-shadow: 0px 0px 10px rgb(56, 56, 56);
border: 1px solid white;
}

.tooltip-helper-active-description-animate {
animation: shake 0.15s;
animation-iteration-count: 2;
animation-timing-function: ease-in-out;
}

@keyframes shake {
0% { left: -3px }
50% { left: 3px }
100% { left: -3px }
}

.tooltip-helper-active-description p {
Expand All @@ -36,11 +53,11 @@
}

.tooltip-helper-footer {
height: 25%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
/* margin-bottom: -15px; */
}

.tooltip-helper-footer > div {
Expand All @@ -51,82 +68,83 @@

.tooltip-helper-active {
position: absolute;
transition-duration: 150ms;
/* transition-duration: 500ms; */
transition-property: transform;
will-change: transform;
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
background-color: white;
}

.tooltip-helper-active-element {
overflow: hidden;
position: relative;
position: absolute;
}

.tooltip-helper-next-sequence,
.tooltip-helper-prev-sequence {
.tooltip-helper-prev-sequence,
.tooltip-helper-end-sequence,
.tooltip-helper-quit-sequence {
background-color: rgb(22, 121, 251);
border: none;
border-radius: 2px;
border-radius: 5px;
outline: none;
padding: 3px 10px;
padding: 10px;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 25px;
max-height: 30px;
cursor: pointer;
font-size: 0.9rem;
}

.tooltip-helper-end-sequence {
background-color: rgb(131, 131, 131);
border: none;
border-radius: 2px;
outline: none;
padding: 3px 10px;
color: #fff;
.tooltip-helper-prev-sequence {
margin-right: 10px;
}

.tooltip-helper-header {
display: flex;
justify-content: center;
justify-content: end;
align-items: center;
height: 25px;
padding: 10px;
}

.tooltip-helper-quit-sequence {
background-color: rgb(213, 72, 72);
width: 30px;
padding: 5px;
fill: none;
}

.tooltip-disabled-btn {
background-color: rgb(92, 92, 92) !important;
user-select: none !important;
color: rgba(255, 255, 255, 0.671);
cursor: not-allowed;
}

.tooltip-helper-arrow {
.tooltip-helper-arrow-hide {
position: absolute;
width: 0;
height: 0;
z-index: 9997;
width: 15px;
height: 15px;
z-index: 9996;
transition-property: transform;
will-change: transform;
transform: translate3d(0px, 0px, 0px);
transition-duration: 150ms;
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
background-color: rgb(36, 36, 36);
}

.tooltip-helper-arrow-up {
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-bottom: 20px solid rgb(36, 36, 36);
}

.tooltip-helper-arrow-down {
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 20px solid rgb(36, 36, 36);
}

.tooltip-helper-arrow-left {
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-right: 20px solid rgb(36, 36, 36);
}

.tooltip-helper-arrow-right {
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-left: 20px solid rgb(36, 36, 36);
.tooltip-helper-arrow {
position: relative;
width: 15px;
height: 15px;
z-index: 9997;
transition-property: transform;
will-change: transform;
transform: translate3d(0px, 0px, 0px);
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
background-color: rgb(36, 36, 36);
clip-path: polygon(0 0, 0 100%, 100% 100%);
border: 1px solid white;
}
Loading