First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
10
node_modules/hint.css/.editorconfig
generated
vendored
Normal file
10
node_modules/hint.css/.editorconfig
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_style = tab
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
4
node_modules/hint.css/.prettierignore
generated
vendored
Normal file
4
node_modules/hint.css/.prettierignore
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
hint.css
|
||||
hint.min.css
|
||||
hint.base.css
|
||||
hint.base.min.css
|
40
node_modules/hint.css/CONTRIBUTING.md
generated
vendored
Normal file
40
node_modules/hint.css/CONTRIBUTING.md
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
**Hint** is written in [SASS](http://sass-lang.com/).
|
||||
|
||||
#Setup
|
||||
1. [Fork **Hint.css**](https://help.github.com/articles/fork-a-repo) and clone it on your system.
|
||||
2. Create a new branch out off `master` for your fix/feature. `git checkout new-feature master`
|
||||
|
||||
#Building
|
||||
|
||||
**Hint.css** uses [Grunt](http://gruntjs.com/) for the build process which you need to have installed on your system.
|
||||
|
||||
Also there are four additional Grunt tasks required to build the library:
|
||||
|
||||
1. [grunt-contrib-cssmin](https://npmjs.org/package/grunt-contrib-cssmin)
|
||||
|
||||
2. [grunt-sass](https://www.npmjs.com/package/grunt-sass)
|
||||
|
||||
3. [grunt-contrib-concat](https://www.npmjs.com/package/grunt-contrib-concat)
|
||||
|
||||
4. [grunt-contrib-watch](https://www.npmjs.com/package/grunt-contrib-watch)
|
||||
|
||||
To install all the dependencies, run `npm install`.
|
||||
|
||||
Once you have the dependencies installed, run `grunt` from the project directory. This will run the default grunt task which compiles the SCSS files into `hint.css` file.
|
||||
|
||||
Though this should be sufficient for building the library for testing, in case you want to build the minified version as well you can run the `grunt deploy` command instead.
|
||||
|
||||
#Things to remember
|
||||
- Do not fix multiple issues in a single commit. Keep them one thing per commit so that they can be picked easily incase only few commits require to be merged.
|
||||
|
||||
- For every new modifier (example `hint--success`, `hint--top`) added, make a separate file unless it fits into a current modifier file.
|
||||
|
||||
- Before submitting a patch, rebase your branch on upstream `master` to make life easier for the merger.
|
||||
|
||||
- **DO NOT** add the library builds (`hint.css` & `hint.min.css`) in your commits.
|
||||
|
||||
#Stay in touch
|
||||
|
||||
To catch all updates and discussion, join the mailing list: **hintcss@googlegroups.com**.
|
||||
|
||||
To subscribe: **hintcss+subscribe@googlegroups.com** or visit [here](https://groups.google.com/forum/?fromgroups=#!forum/hintcss).
|
92
node_modules/hint.css/Gruntfile.js
generated
vendored
Normal file
92
node_modules/hint.css/Gruntfile.js
generated
vendored
Normal file
|
@ -0,0 +1,92 @@
|
|||
/*global module:false*/
|
||||
|
||||
const sass = require("node-sass");
|
||||
|
||||
module.exports = function(grunt) {
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON("package.json"),
|
||||
|
||||
meta: {
|
||||
getBanner: function() {
|
||||
return "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= meta.banner %>";
|
||||
},
|
||||
getBannerForBaseVersion: function() {
|
||||
return "/*! <%= pkg.title || pkg.name %> (base version) - v<%= pkg.version %> - <%= meta.banner %>";
|
||||
},
|
||||
banner:
|
||||
'<%= grunt.template.today("yyyy-mm-dd") + "\\n" %>' +
|
||||
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
|
||||
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> */\n\n'
|
||||
},
|
||||
|
||||
sass: {
|
||||
options: {
|
||||
implementation: sass,
|
||||
sourceMap: false
|
||||
},
|
||||
dist: {
|
||||
files: {
|
||||
"<%= pkg.name %>.css": "src/<%= pkg.name %>.scss",
|
||||
"<%= pkg.name %>.base.css": "src/<%= pkg.name %>.base.scss"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
cssmin: {
|
||||
options: {
|
||||
sourceMap: false
|
||||
},
|
||||
compress: {
|
||||
files: {
|
||||
"<%= pkg.name %>.min.css": ["<%= pkg.name %>.css"],
|
||||
"<%= pkg.name %>.base.min.css": ["<%= pkg.name %>.base.css"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// concat banner to final lib files
|
||||
concat: {
|
||||
options: {
|
||||
banner: "<%= meta.getBanner() %>"
|
||||
},
|
||||
lib: {
|
||||
src: ["<%= pkg.name %>.css"],
|
||||
dest: "<%= pkg.name %>.css"
|
||||
},
|
||||
minLib: {
|
||||
src: ["<%= pkg.name %>.min.css"],
|
||||
dest: "<%= pkg.name %>.min.css"
|
||||
},
|
||||
baseLib: {
|
||||
options: {
|
||||
banner: "<%= meta.getBannerForBaseVersion() %>"
|
||||
},
|
||||
src: ["<%= pkg.name %>.base.css"],
|
||||
dest: "<%= pkg.name %>.base.css"
|
||||
},
|
||||
baseMinLib: {
|
||||
options: {
|
||||
banner: "<%= meta.getBannerForBaseVersion() %>"
|
||||
},
|
||||
src: ["<%= pkg.name %>.base.min.css"],
|
||||
dest: "<%= pkg.name %>.base.min.css"
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
files: "src/*.scss",
|
||||
tasks: "default"
|
||||
}
|
||||
});
|
||||
|
||||
// Dependencies
|
||||
grunt.loadNpmTasks("grunt-sass");
|
||||
grunt.loadNpmTasks("grunt-contrib-cssmin");
|
||||
grunt.loadNpmTasks("grunt-contrib-concat");
|
||||
grunt.loadNpmTasks("grunt-contrib-watch");
|
||||
|
||||
// Default task.
|
||||
grunt.registerTask("default", "sass");
|
||||
grunt.registerTask("deploy", ["sass", "cssmin", "concat"]);
|
||||
};
|
673
node_modules/hint.css/LICENSE.md
generated
vendored
Normal file
673
node_modules/hint.css/LICENSE.md
generated
vendored
Normal file
|
@ -0,0 +1,673 @@
|
|||
## License
|
||||
|
||||
### Commercial License
|
||||
|
||||
If you want to use Hint.css for business, commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase a Hint.css Commercial License at https://site.uplabs.com/posts/hint-css
|
||||
|
||||
### Open-source License
|
||||
|
||||
Hint.css is free for personal use under the GNU AGPLv3.
|
||||
|
||||
> Copyright (c) 2013-2016 Kushagra Gour
|
||||
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
125
node_modules/hint.css/README.md
generated
vendored
Normal file
125
node_modules/hint.css/README.md
generated
vendored
Normal file
|
@ -0,0 +1,125 @@
|
|||
# Hint.css [](https://badge.fury.io/js/hint.css)  [](https://gitter.im/chinchang/hint.css?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 
|
||||
*A tooltip library in CSS for your lovely websites*
|
||||
|
||||
[Demo](https://kushagragour.in/lab/hint/) • [Get started](#get-started) • [Who's using this?](#whos-using-this) • [Browser support](#browser-support) • [FAQs](#faqs) • [Contributing](#contributing) • [License](#license)
|
||||
|
||||
`hint.css` is written as a pure CSS resource using which you can create cool accessible tooltips for your web app. It does not rely on JavaScript but rather uses **aria-label**/**data-* attribute**, **pseudo elements**, **content property** and **CSS3 transitions** to create the tooltips. Also it uses **BEM** naming convention particularly for the modifiers.
|
||||
|
||||
|
||||
|
||||
## Get Started
|
||||
|
||||
Get the library using one of the following ways:
|
||||
|
||||
1. **GitHub**
|
||||
|
||||
Full build
|
||||
- [unminified] : https://raw.github.com/chinchang/hint.css/master/hint.css
|
||||
- [minified] : https://raw.github.com/chinchang/hint.css/master/hint.min.css
|
||||
|
||||
Base build *(Does not include color themes and fancy effects)*
|
||||
- [unminified] : https://raw.github.com/chinchang/hint.css/master/hint.base.css
|
||||
- [minified] : https://raw.github.com/chinchang/hint.css/master/hint.base.min.css
|
||||
|
||||
2. **Bower** : `bower install hint.css`
|
||||
|
||||
3. **npm**: `npm install --save hint.css`
|
||||
|
||||
4. **CDN**: [http://www.jsdelivr.com/#!hint.css](http://www.jsdelivr.com/#!hint.css) or [https://cdnjs.com/libraries/hint.css](https://cdnjs.com/libraries/hint.css)
|
||||
|
||||
Now include the library in the ``HEAD`` tag of your page:
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="hint.css"></link>
|
||||
```
|
||||
or
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="hint.min.css"></link>
|
||||
```
|
||||
|
||||
Now, all you need to do is give your element any position class and tooltip text using the `aria-label` attribute.
|
||||
Note, if you don't want to use `aria-label` attribute, you can also specify the tooltip text using the `data-hint` attribute, but its recommended to use `aria-label` in support of accessibility. [Read more about aria-label](https://webaccessibility.withgoogle.com/unit?unit=6&lesson=10).
|
||||
|
||||
|
||||
```html
|
||||
Hello Sir, <span class="hint--bottom" aria-label="Thank you!">hover me.</span>
|
||||
```
|
||||
|
||||
Use it with other available modifiers in various combinations. Available modifiers:
|
||||
- *Colors* - `hint--error`, `hint--info`, `hint--warning`, `hint--success`
|
||||
- *Sizes* - `hint--small`, `hint--medium`, `hint--large`
|
||||
- `hint--always`
|
||||
- `hint--rounded`
|
||||
- `hint--no-animate`
|
||||
- `hint--bounce`
|
||||
|
||||
## Upgrading from v1.x
|
||||
|
||||
If you are already using v1.x, you may need to tweak certain position classes because of the way tooltips are positioned in v2.
|
||||
|
||||
## Changing the prefix for class names
|
||||
|
||||
Don't like BEM naming (`hint--`) or want to use your own prefix for the class names?
|
||||
|
||||
Simply update `src/hint-variables.scss` and change the `$hintPrefix` variable.
|
||||
To generate the css file, please read the [contributing page](./CONTRIBUTING.md).
|
||||
|
||||
## Who's Using This?
|
||||
- [Webflow Playground](http://playground.webflow.com/)
|
||||
- [Panda chrome app](http://usepanda.com/)
|
||||
- [Fiverr](https://www.fiverr.com/)
|
||||
- [Stackshare](http://stackshare.io/)
|
||||
- [Siftery](https://siftery.com/)
|
||||
- [LessPass](https://lesspass.com/#/)
|
||||
- [Tridiv](http://tridiv.com/)
|
||||
- [Alm - TypeScript IDE](http://alm.tools/)
|
||||
- [Prototyp](http://prototyp.in/)
|
||||
- [Tradus](http://tradus.com/)
|
||||
- [Web Maker](https://webmakerapp.com)
|
||||
- [Tolks](https://tolks.io)
|
||||
- [Formspree](http://formspree.io/)
|
||||
- [codeMagic](http://codemagic.gr/)
|
||||
|
||||
Are you using **hint.css** in your awesome project too? Just tweet it out to [@hint_css](https://twitter.com/hint_css) or let us know on the [mailing list](mailto:hintcss@googlegroups.com).
|
||||
|
||||
## Browser Support
|
||||
**hint.css** works on all latest browsers, though the transition effect is supported only on IE10+, Chrome 26+ and FF4+ at present.
|
||||
|
||||
- Chrome - basic + transition effects
|
||||
- Firefox - basic + transition effects
|
||||
- Opera - basic
|
||||
- Safari - basic
|
||||
- IE 10+ - basic + transition effects
|
||||
- IE 8 & 9 - basic
|
||||
|
||||
### FAQs
|
||||
|
||||
Checkout the [FAQ Wiki](https://github.com/chinchang/hint.css/wiki/Frequently-Asked-Questions) for some common gotchas to be aware of while using **hint.css**.
|
||||
|
||||
## Contributing
|
||||
`hint.css` is developed in SASS and the source files can be found in the `src/` directory.
|
||||
|
||||
If you would like to create more types of tooltips/ fix bugs/ enhance the library etc. you are more than welcome to submit your pull requests.
|
||||
|
||||
[Read more on contributing](./CONTRIBUTING.md).
|
||||
|
||||
## Changelog & Updates
|
||||
See the [Changelog](https://github.com/chinchang/hint.css/wiki/Changelog).
|
||||
|
||||
To catch all updates and discussion, join the mailing list: [**hintcss@googlegroups.com**](https://groups.google.com/forum/?fromgroups=#!forum/hintcss).
|
||||
|
||||
Or follow on twitter: [**@hint_css**](https://twitter.com/hint_css)
|
||||
|
||||
## License
|
||||
|
||||
### Commercial License
|
||||
|
||||
If you want to use Hint.css for business, commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase a Hint.css Commercial License at https://kushagragour.in/lab/hint/#commercial
|
||||
|
||||
### Open-source License
|
||||
|
||||
Hint.css is free for personal use under the GNU AGPLv3.
|
||||
|
||||
## Credits
|
||||
This doesn't make use of a lot of BEM methodology but big thanks to [@csswizardry](https://twitter.com/csswizardry), [@necolas](https://twitter.com/necolas) for their awesome articles on BEM and to [@joshnh](https://twitter.com/_joshnh) through whose work I came to know about it :)
|
15
node_modules/hint.css/bower.json
generated
vendored
Normal file
15
node_modules/hint.css/bower.json
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"name": "hint.css",
|
||||
"main": "hint.min.css",
|
||||
"author": "Kushagra Gour",
|
||||
"ignore": [
|
||||
"CONTRIBUTING.md",
|
||||
"Gruntfile.js"
|
||||
],
|
||||
"keywords": [
|
||||
"hint",
|
||||
"tooltip",
|
||||
"tooltips",
|
||||
"ui"
|
||||
]
|
||||
}
|
13
node_modules/hint.css/component.json
generated
vendored
Normal file
13
node_modules/hint.css/component.json
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"name": "hint.css",
|
||||
"repo": "chinchang/hint.css",
|
||||
"description": "A tooltip library in CSS for your lovely websites.",
|
||||
"version": "2.6.0",
|
||||
"keywords": ["tooltip", "css"],
|
||||
"dependencies": {},
|
||||
"development": {},
|
||||
"styles": [
|
||||
"hint.min.css"
|
||||
]
|
||||
}
|
||||
|
362
node_modules/hint.css/demo.html
generated
vendored
Normal file
362
node_modules/hint.css/demo.html
generated
vendored
Normal file
|
@ -0,0 +1,362 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>Hint.css - A tooltip library in CSS</title>
|
||||
<meta name="description" content="A CSS only tooltip library">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
|
||||
|
||||
<link rel="image_src" href="hint.png"/>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
text-align: center;
|
||||
font-family: Arial;
|
||||
background: #D9623F;
|
||||
min-height: 100vh;
|
||||
font-size: 18px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: white;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 6em;
|
||||
text-shadow: 0 6px 1px rgba(0, 0, 0, 0.2);
|
||||
font-family: 'Lobster', cursive;
|
||||
}
|
||||
h2 {
|
||||
font-size: 4em;
|
||||
margin: 0.5em 0;
|
||||
text-shadow: 0 6px 1px rgba(0, 0, 0, 0.2);
|
||||
font-family: 'Lobster', cursive;
|
||||
}
|
||||
.version {
|
||||
font-size: 0.3em;
|
||||
border-radius: 50%;
|
||||
padding: 1px 11px;
|
||||
text-shadow: none;
|
||||
top: 0px;
|
||||
position: absolute;
|
||||
right: -65px;
|
||||
}
|
||||
.section {
|
||||
padding: 3em 0;
|
||||
position: relative;
|
||||
}
|
||||
.section:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -25px;
|
||||
background: inherit;
|
||||
left: -4px;
|
||||
height: 50px;
|
||||
right: -2px;
|
||||
z-index: 1;
|
||||
transform: rotate(2deg);
|
||||
}
|
||||
.section:last-of-type {
|
||||
padding-bottom: 2em;
|
||||
}
|
||||
.section:last-of-type:after {
|
||||
display: none;
|
||||
}
|
||||
.section--inverted:after {
|
||||
left: -4px;
|
||||
height: 50px;
|
||||
right: -2px;
|
||||
z-index: 1;
|
||||
transform: rotate(-2deg);
|
||||
}
|
||||
.hero {
|
||||
background: #5CC2F1;
|
||||
background: #81C439;
|
||||
background: #7D6EC6;
|
||||
/*text-shadow: 0 3px 7px rgba(0,0,0,0.25);*/
|
||||
}
|
||||
.section:nth-child(2) {
|
||||
background: #9993C1;
|
||||
background: #8BBA66;
|
||||
background: #5BC0EB;
|
||||
background:
|
||||
}
|
||||
.section:nth-child(3) {
|
||||
background: #D9623F;
|
||||
background: #E4CC37;
|
||||
/* #BD3769 */
|
||||
/* #E18335 */
|
||||
}
|
||||
.section:nth-child(4) {
|
||||
background: #7D6EC6;
|
||||
}
|
||||
.section:nth-child(5) {
|
||||
background: #D9623F;
|
||||
/*background: ##E18335;*/
|
||||
/* #BD3769 */
|
||||
/* #E18335 */
|
||||
}
|
||||
.section-inner {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
h1,h3{
|
||||
margin: 5px 0;
|
||||
}
|
||||
a {
|
||||
color: #1A5A7A;
|
||||
color: #fff;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn {
|
||||
/*background: rgba(0,0,0,0.2);*/
|
||||
background: white;
|
||||
padding: 20px;
|
||||
display: inline-block;
|
||||
border-radius: 8px;
|
||||
text-transform: uppercase;
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
.btn:hover {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
.download-btn {
|
||||
color: #7D6EC6;
|
||||
margin-top: 1em;
|
||||
}
|
||||
.position-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.position-grid__cell {
|
||||
flex: 1 33.33%;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
.position-grid__cell a {
|
||||
display: inline-block;
|
||||
width: 90%;
|
||||
background: rgba(91, 192, 235, 0.37);
|
||||
color: white;
|
||||
margin: 2px 0;
|
||||
padding: 16px 5px;
|
||||
}
|
||||
.status-icon {
|
||||
background: indianred;
|
||||
fill: white;
|
||||
border-radius: 3px;
|
||||
padding: 5px 6px 2px;
|
||||
margin: 0 4px;
|
||||
border: 1px solid rgba(0,0,0,0.2);
|
||||
}
|
||||
.features ul {
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.footer {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
.window {
|
||||
background: #fff;
|
||||
width: 50vw;
|
||||
min-width: 450px;
|
||||
margin: auto;
|
||||
border: 1px solid #acacac;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0px 6px 17px rgba(0,0,0,0.2);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.titlebar {
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ebebeb, color-stop(1, #d5d5d5)));
|
||||
background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);
|
||||
background: -moz-linear-gradient(top, #ebebeb, #d5d5d5);
|
||||
background: -ms-linear-gradient(top, #ebebeb, #d5d5d5);
|
||||
background: -o-linear-gradient(top, #ebebeb, #d5d5d5);
|
||||
background: linear-gradient(top, #ebebeb, #d5d5d5);
|
||||
color: #4d494d;
|
||||
font-size: 11pt;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
border-top: 1px solid #f3f1f3;
|
||||
border-bottom: 1px solid #b1aeb1;
|
||||
border-top-left-radius: 6px;
|
||||
border-top-right-radius: 6px;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
padding-left: 8px;
|
||||
padding-top: 3px;
|
||||
float: left;
|
||||
line-height: 0px;
|
||||
}
|
||||
|
||||
.titlebar__btn {
|
||||
font-size: 9pt;
|
||||
line-height: 11px;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
border: 1px solid rgba(0,0,0,0.15);
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
cursor: pointer;
|
||||
|
||||
}
|
||||
.close {
|
||||
background: #ff5c5c;
|
||||
}
|
||||
.minimize {
|
||||
background: #ffbd4c;
|
||||
}
|
||||
.zoom {
|
||||
background: #00ca56;
|
||||
}
|
||||
.titlebar__btn:hover {
|
||||
border-color: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.content {
|
||||
padding: 50px 10px;
|
||||
color: #777;
|
||||
}
|
||||
.content a {
|
||||
color: #444;
|
||||
}
|
||||
.content h3 {
|
||||
text-transform: uppercase;
|
||||
font-size: 0.8em;
|
||||
margin: 22px 0 0;
|
||||
padding: 4px 0;
|
||||
background: rgba(00,0,0,0.02);
|
||||
color: rgba(0,0,0,0.9);
|
||||
border-bottom: 1px solid rgba(0,0,0,0.04);
|
||||
}
|
||||
pre {
|
||||
color: #555;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
a svg {
|
||||
fill: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
a:hover svg {
|
||||
fill: white;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="hint.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="section hero">
|
||||
|
||||
<h1 style="display:inline-block;position:relative">Hint.css <small class="version">2.0</small> </h1>
|
||||
<h3>A pure CSS tooltip library for your lovely websites</h3>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<div class="section section--inverted">
|
||||
<h2>Tryout</h2>
|
||||
|
||||
<div class="window">
|
||||
<div class="titlebar">
|
||||
<div class="buttons">
|
||||
<a class="titlebar__btn close hint--bottom-right" aria-label="Close"></a>
|
||||
<a class="titlebar__btn minimize hint--bottom-right" aria-label="Minimize"></a>
|
||||
<a class="titlebar__btn zoom hint--bottom-right" aria-label="Zoom"></a>
|
||||
</div>
|
||||
Try hovering over different things
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="position-grid">
|
||||
<div class="position-grid__cell"><a href="#" aria-label="bottom-right" class="hint--bottom-right">bottom-right</a></div>
|
||||
<div class="position-grid__cell"><a href="#" aria-label="bottom" class="hint--bottom">bottom</a></div>
|
||||
<div class="position-grid__cell"><a href="#" aria-label="bottom-left" class="hint--bottom-left">bottom-left</a></div>
|
||||
<div class="position-grid__cell"><a href="#" aria-label="right" class="hint--right">right</a></div>
|
||||
<div class="position-grid__cell"><a>.</a></div>
|
||||
<div class="position-grid__cell"><a href="#" aria-label="left" class="hint--left">left</a></div>
|
||||
<div class="position-grid__cell"><a href="#" aria-label="top-right" class="hint--top-right">top-right</a></div>
|
||||
<div class="position-grid__cell"><a href="#" aria-label="top" class="hint--top">top</a></div>
|
||||
<div class="position-grid__cell"><a href="#" aria-label="top-left" class="hint--top-left">top-left</a></div>
|
||||
</div>
|
||||
|
||||
<h3>Color Modifiers</h3>
|
||||
<p>
|
||||
<a class="status-icon hint--bottom-right hint--error" style="background:indianred" aria-label="This is an error tooltip">
|
||||
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
|
||||
<path fill="#ffffff" d="M8.27,3L3,8.27V15.73L8.27,21H15.73L21,15.73V8.27L15.73,3M8.41,7L12,10.59L15.59,7L17,8.41L13.41,12L17,15.59L15.59,17L12,13.41L8.41,17L7,15.59L10.59,12L7,8.41" />
|
||||
</svg>
|
||||
</a>
|
||||
<a class="status-icon hint--bottom-right hint--warning" style="background:orange" aria-label="This is a warning tooltip">
|
||||
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
|
||||
<path fill="#ffffff" d="M11,4.5H13V15.5H11V4.5M13,17.5V19.5H11V17.5H13Z" />
|
||||
</svg>
|
||||
</a>
|
||||
<a class="status-icon hint--bottom-left hint--info" style="background:lightblue" aria-label="This is an info tooltip">
|
||||
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
|
||||
<path fill="#ffffff" d="M12,2A7,7 0 0,1 19,9C19,11.38 17.81,13.47 16,14.74V17A1,1 0 0,1 15,18H9A1,1 0 0,1 8,17V14.74C6.19,13.47 5,11.38 5,9A7,7 0 0,1 12,2M9,21V20H15V21A1,1 0 0,1 14,22H10A1,1 0 0,1 9,21M12,4A5,5 0 0,0 7,9C7,11.05 8.23,12.81 10,13.58V16H14V13.58C15.77,12.81 17,11.05 17,9A5,5 0 0,0 12,4Z" />
|
||||
</svg>
|
||||
</a>
|
||||
<a class="status-icon hint--bottom-right hint--success" style="background:lightgreen" aria-label="This is success tooltip">
|
||||
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
|
||||
<path fill="#ffffff" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z" />
|
||||
</svg>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<h3>Size variations</h3>
|
||||
|
||||
<p>
|
||||
<a class="hint--top hint--small" style="border: 1px solid #eee;padding:3px 6px;border-radius:4px;" data-hint="You can show very very long sentences inside tooltips by using various available size variation classes.">
|
||||
Small
|
||||
</a>
|
||||
|
||||
<a class="hint--top hint--medium" style="border: 1px solid #eee;padding:3px 6px;border-radius:4px;" data-hint="You can show very very long sentences inside tooltips by using various available size variation classes.">
|
||||
Medium
|
||||
</a>
|
||||
|
||||
<a class="hint--top hint--large" style="border: 1px solid #eee;padding:3px 6px;border-radius:4px;" data-hint="You can show very very long sentences inside tooltips by using various available size variation classes.">
|
||||
Large
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
||||
<h3>Extra</h3>
|
||||
|
||||
<p>
|
||||
<a class="hint--left hint--always" aria-label="...which always keep showing">You can also make tooltips...</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a class="hint--top hint--rounded" aria-label="We have rounded corners for you">Hmm...So you don't like sharp edges?</a>
|
||||
</p>
|
||||
|
||||
<h3>Effects</h3>
|
||||
|
||||
<p>
|
||||
<a class="hint--top hint--no-animate" aria-label="Get a simple show/hide tooltip">Dont like animation?</a>
|
||||
</p>
|
||||
<p>
|
||||
<a class="hint--right hint--bounce" aria-label="Bounce">Adding a <code>hint--bounce</code> class gives you that...</a>
|
||||
</p>
|
||||
<p>
|
||||
<a class="hint--left hint--no-shadow" aria-label="Yes, no shadows!">Maybe you do not want shadows.</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section-inner" style="opacity: 0.7; margin-top: 25px">
|
||||
<strong>Upgrading from v1.x</strong>: If you are already using v1.x, you may need to tweak certain position classes because of the way tooltips are positioned in v2.
|
||||
<br>
|
||||
Its recommended to use <code>aria-label</code> attribute to specify your tooltip text in support of accessibility. Though, you can always use <code>data-hint</code> attribute instead. <a href="https://webaccessibility.withgoogle.com/unit?unit=6&lesson=10">Read more about <code>aria-label</code> here</a>.
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section footer">
|
||||
Made with hands by <a aria-label="@chinchang457" class="hint--top" href="https://twitter.com/chinchang457">Kushagra Gour</a> in India
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
466
node_modules/hint.css/hint.base.css
generated
vendored
Normal file
466
node_modules/hint.css/hint.base.css
generated
vendored
Normal file
|
@ -0,0 +1,466 @@
|
|||
/*! Hint.css (base version) - v2.6.0 - 2019-04-27
|
||||
* http://kushagragour.in/lab/hint/
|
||||
* Copyright (c) 2019 Kushagra Gour */
|
||||
|
||||
/*-------------------------------------*\
|
||||
HINT.css - A CSS tooltip library
|
||||
\*-------------------------------------*/
|
||||
/**
|
||||
* HINT.css is a tooltip library made in pure CSS.
|
||||
*
|
||||
* Source: https://github.com/chinchang/hint.css
|
||||
* Demo: http://kushagragour.in/lab/hint/
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* source: hint-core.scss
|
||||
*
|
||||
* Defines the basic styling for the tooltip.
|
||||
* Each tooltip is made of 2 parts:
|
||||
* 1) body (:after)
|
||||
* 2) arrow (:before)
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint
|
||||
*/
|
||||
[class*="hint--"] {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
/**
|
||||
* tooltip arrow
|
||||
*/
|
||||
/**
|
||||
* tooltip body
|
||||
*/ }
|
||||
[class*="hint--"]:before, [class*="hint--"]:after {
|
||||
position: absolute;
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
-moz-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
z-index: 1000000;
|
||||
pointer-events: none;
|
||||
-webkit-transition: 0.3s ease;
|
||||
-moz-transition: 0.3s ease;
|
||||
transition: 0.3s ease;
|
||||
-webkit-transition-delay: 0ms;
|
||||
-moz-transition-delay: 0ms;
|
||||
transition-delay: 0ms; }
|
||||
[class*="hint--"]:hover:before, [class*="hint--"]:hover:after {
|
||||
visibility: visible;
|
||||
opacity: 1; }
|
||||
[class*="hint--"]:hover:before, [class*="hint--"]:hover:after {
|
||||
-webkit-transition-delay: 100ms;
|
||||
-moz-transition-delay: 100ms;
|
||||
transition-delay: 100ms; }
|
||||
[class*="hint--"]:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
background: transparent;
|
||||
border: 6px solid transparent;
|
||||
z-index: 1000001; }
|
||||
[class*="hint--"]:after {
|
||||
background: #383838;
|
||||
color: white;
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
line-height: 12px;
|
||||
white-space: nowrap; }
|
||||
[class*="hint--"][aria-label]:after {
|
||||
content: attr(aria-label); }
|
||||
[class*="hint--"][data-hint]:after {
|
||||
content: attr(data-hint); }
|
||||
|
||||
[aria-label='']:before, [aria-label='']:after,
|
||||
[data-hint='']:before,
|
||||
[data-hint='']:after {
|
||||
display: none !important; }
|
||||
|
||||
/**
|
||||
* source: hint-position.scss
|
||||
*
|
||||
* Defines the positoning logic for the tooltips.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--top
|
||||
* 2) hint--bottom
|
||||
* 3) hint--left
|
||||
* 4) hint--right
|
||||
*/
|
||||
/**
|
||||
* set default color for tooltip arrows
|
||||
*/
|
||||
.hint--top-left:before {
|
||||
border-top-color: #383838; }
|
||||
|
||||
.hint--top-right:before {
|
||||
border-top-color: #383838; }
|
||||
|
||||
.hint--top:before {
|
||||
border-top-color: #383838; }
|
||||
|
||||
.hint--bottom-left:before {
|
||||
border-bottom-color: #383838; }
|
||||
|
||||
.hint--bottom-right:before {
|
||||
border-bottom-color: #383838; }
|
||||
|
||||
.hint--bottom:before {
|
||||
border-bottom-color: #383838; }
|
||||
|
||||
.hint--left:before {
|
||||
border-left-color: #383838; }
|
||||
|
||||
.hint--right:before {
|
||||
border-right-color: #383838; }
|
||||
|
||||
/**
|
||||
* top tooltip
|
||||
*/
|
||||
.hint--top:before {
|
||||
margin-bottom: -11px; }
|
||||
|
||||
.hint--top:before, .hint--top:after {
|
||||
bottom: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--top:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--top:after {
|
||||
-webkit-transform: translateX(-50%);
|
||||
-moz-transform: translateX(-50%);
|
||||
transform: translateX(-50%); }
|
||||
|
||||
.hint--top:hover:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--top:hover:after {
|
||||
-webkit-transform: translateX(-50%) translateY(-8px);
|
||||
-moz-transform: translateX(-50%) translateY(-8px);
|
||||
transform: translateX(-50%) translateY(-8px); }
|
||||
|
||||
/**
|
||||
* bottom tooltip
|
||||
*/
|
||||
.hint--bottom:before {
|
||||
margin-top: -11px; }
|
||||
|
||||
.hint--bottom:before, .hint--bottom:after {
|
||||
top: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--bottom:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--bottom:after {
|
||||
-webkit-transform: translateX(-50%);
|
||||
-moz-transform: translateX(-50%);
|
||||
transform: translateX(-50%); }
|
||||
|
||||
.hint--bottom:hover:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--bottom:hover:after {
|
||||
-webkit-transform: translateX(-50%) translateY(8px);
|
||||
-moz-transform: translateX(-50%) translateY(8px);
|
||||
transform: translateX(-50%) translateY(8px); }
|
||||
|
||||
/**
|
||||
* right tooltip
|
||||
*/
|
||||
.hint--right:before {
|
||||
margin-left: -11px;
|
||||
margin-bottom: -6px; }
|
||||
|
||||
.hint--right:after {
|
||||
margin-bottom: -14px; }
|
||||
|
||||
.hint--right:before, .hint--right:after {
|
||||
left: 100%;
|
||||
bottom: 50%; }
|
||||
|
||||
.hint--right:hover:before {
|
||||
-webkit-transform: translateX(8px);
|
||||
-moz-transform: translateX(8px);
|
||||
transform: translateX(8px); }
|
||||
|
||||
.hint--right:hover:after {
|
||||
-webkit-transform: translateX(8px);
|
||||
-moz-transform: translateX(8px);
|
||||
transform: translateX(8px); }
|
||||
|
||||
/**
|
||||
* left tooltip
|
||||
*/
|
||||
.hint--left:before {
|
||||
margin-right: -11px;
|
||||
margin-bottom: -6px; }
|
||||
|
||||
.hint--left:after {
|
||||
margin-bottom: -14px; }
|
||||
|
||||
.hint--left:before, .hint--left:after {
|
||||
right: 100%;
|
||||
bottom: 50%; }
|
||||
|
||||
.hint--left:hover:before {
|
||||
-webkit-transform: translateX(-8px);
|
||||
-moz-transform: translateX(-8px);
|
||||
transform: translateX(-8px); }
|
||||
|
||||
.hint--left:hover:after {
|
||||
-webkit-transform: translateX(-8px);
|
||||
-moz-transform: translateX(-8px);
|
||||
transform: translateX(-8px); }
|
||||
|
||||
/**
|
||||
* top-left tooltip
|
||||
*/
|
||||
.hint--top-left:before {
|
||||
margin-bottom: -11px; }
|
||||
|
||||
.hint--top-left:before, .hint--top-left:after {
|
||||
bottom: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--top-left:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--top-left:after {
|
||||
-webkit-transform: translateX(-100%);
|
||||
-moz-transform: translateX(-100%);
|
||||
transform: translateX(-100%); }
|
||||
|
||||
.hint--top-left:after {
|
||||
margin-left: 12px; }
|
||||
|
||||
.hint--top-left:hover:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--top-left:hover:after {
|
||||
-webkit-transform: translateX(-100%) translateY(-8px);
|
||||
-moz-transform: translateX(-100%) translateY(-8px);
|
||||
transform: translateX(-100%) translateY(-8px); }
|
||||
|
||||
/**
|
||||
* top-right tooltip
|
||||
*/
|
||||
.hint--top-right:before {
|
||||
margin-bottom: -11px; }
|
||||
|
||||
.hint--top-right:before, .hint--top-right:after {
|
||||
bottom: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--top-right:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--top-right:after {
|
||||
-webkit-transform: translateX(0);
|
||||
-moz-transform: translateX(0);
|
||||
transform: translateX(0); }
|
||||
|
||||
.hint--top-right:after {
|
||||
margin-left: -12px; }
|
||||
|
||||
.hint--top-right:hover:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--top-right:hover:after {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
/**
|
||||
* bottom-left tooltip
|
||||
*/
|
||||
.hint--bottom-left:before {
|
||||
margin-top: -11px; }
|
||||
|
||||
.hint--bottom-left:before, .hint--bottom-left:after {
|
||||
top: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--bottom-left:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--bottom-left:after {
|
||||
-webkit-transform: translateX(-100%);
|
||||
-moz-transform: translateX(-100%);
|
||||
transform: translateX(-100%); }
|
||||
|
||||
.hint--bottom-left:after {
|
||||
margin-left: 12px; }
|
||||
|
||||
.hint--bottom-left:hover:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--bottom-left:hover:after {
|
||||
-webkit-transform: translateX(-100%) translateY(8px);
|
||||
-moz-transform: translateX(-100%) translateY(8px);
|
||||
transform: translateX(-100%) translateY(8px); }
|
||||
|
||||
/**
|
||||
* bottom-right tooltip
|
||||
*/
|
||||
.hint--bottom-right:before {
|
||||
margin-top: -11px; }
|
||||
|
||||
.hint--bottom-right:before, .hint--bottom-right:after {
|
||||
top: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--bottom-right:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--bottom-right:after {
|
||||
-webkit-transform: translateX(0);
|
||||
-moz-transform: translateX(0);
|
||||
transform: translateX(0); }
|
||||
|
||||
.hint--bottom-right:after {
|
||||
margin-left: -12px; }
|
||||
|
||||
.hint--bottom-right:hover:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--bottom-right:hover:after {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
/**
|
||||
* source: hint-sizes.scss
|
||||
*
|
||||
* Defines width restricted tooltips that can span
|
||||
* across multiple lines.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--small
|
||||
* 2) hint--medium
|
||||
* 3) hint--large
|
||||
*
|
||||
*/
|
||||
.hint--small:after,
|
||||
.hint--medium:after,
|
||||
.hint--large:after {
|
||||
white-space: normal;
|
||||
line-height: 1.4em;
|
||||
word-wrap: break-word; }
|
||||
|
||||
.hint--small:after {
|
||||
width: 80px; }
|
||||
|
||||
.hint--medium:after {
|
||||
width: 150px; }
|
||||
|
||||
.hint--large:after {
|
||||
width: 300px; }
|
||||
|
||||
/**
|
||||
* source: hint-always.scss
|
||||
*
|
||||
* Defines a persisted tooltip which shows always.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--always
|
||||
*
|
||||
*/
|
||||
.hint--always:after, .hint--always:before {
|
||||
opacity: 1;
|
||||
visibility: visible; }
|
||||
|
||||
.hint--always.hint--top:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--always.hint--top:after {
|
||||
-webkit-transform: translateX(-50%) translateY(-8px);
|
||||
-moz-transform: translateX(-50%) translateY(-8px);
|
||||
transform: translateX(-50%) translateY(-8px); }
|
||||
|
||||
.hint--always.hint--top-left:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--always.hint--top-left:after {
|
||||
-webkit-transform: translateX(-100%) translateY(-8px);
|
||||
-moz-transform: translateX(-100%) translateY(-8px);
|
||||
transform: translateX(-100%) translateY(-8px); }
|
||||
|
||||
.hint--always.hint--top-right:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--always.hint--top-right:after {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--always.hint--bottom:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--always.hint--bottom:after {
|
||||
-webkit-transform: translateX(-50%) translateY(8px);
|
||||
-moz-transform: translateX(-50%) translateY(8px);
|
||||
transform: translateX(-50%) translateY(8px); }
|
||||
|
||||
.hint--always.hint--bottom-left:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--always.hint--bottom-left:after {
|
||||
-webkit-transform: translateX(-100%) translateY(8px);
|
||||
-moz-transform: translateX(-100%) translateY(8px);
|
||||
transform: translateX(-100%) translateY(8px); }
|
||||
|
||||
.hint--always.hint--bottom-right:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--always.hint--bottom-right:after {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--always.hint--left:before {
|
||||
-webkit-transform: translateX(-8px);
|
||||
-moz-transform: translateX(-8px);
|
||||
transform: translateX(-8px); }
|
||||
|
||||
.hint--always.hint--left:after {
|
||||
-webkit-transform: translateX(-8px);
|
||||
-moz-transform: translateX(-8px);
|
||||
transform: translateX(-8px); }
|
||||
|
||||
.hint--always.hint--right:before {
|
||||
-webkit-transform: translateX(8px);
|
||||
-moz-transform: translateX(8px);
|
||||
transform: translateX(8px); }
|
||||
|
||||
.hint--always.hint--right:after {
|
||||
-webkit-transform: translateX(8px);
|
||||
-moz-transform: translateX(8px);
|
||||
transform: translateX(8px); }
|
5
node_modules/hint.css/hint.base.min.css
generated
vendored
Normal file
5
node_modules/hint.css/hint.base.min.css
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
652
node_modules/hint.css/hint.css
generated
vendored
Normal file
652
node_modules/hint.css/hint.css
generated
vendored
Normal file
|
@ -0,0 +1,652 @@
|
|||
/*! Hint.css - v2.6.0 - 2019-04-27
|
||||
* http://kushagragour.in/lab/hint/
|
||||
* Copyright (c) 2019 Kushagra Gour */
|
||||
|
||||
/*-------------------------------------*\
|
||||
HINT.css - A CSS tooltip library
|
||||
\*-------------------------------------*/
|
||||
/**
|
||||
* HINT.css is a tooltip library made in pure CSS.
|
||||
*
|
||||
* Source: https://github.com/chinchang/hint.css
|
||||
* Demo: http://kushagragour.in/lab/hint/
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* source: hint-core.scss
|
||||
*
|
||||
* Defines the basic styling for the tooltip.
|
||||
* Each tooltip is made of 2 parts:
|
||||
* 1) body (:after)
|
||||
* 2) arrow (:before)
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint
|
||||
*/
|
||||
[class*="hint--"] {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
/**
|
||||
* tooltip arrow
|
||||
*/
|
||||
/**
|
||||
* tooltip body
|
||||
*/ }
|
||||
[class*="hint--"]:before, [class*="hint--"]:after {
|
||||
position: absolute;
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
-moz-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
z-index: 1000000;
|
||||
pointer-events: none;
|
||||
-webkit-transition: 0.3s ease;
|
||||
-moz-transition: 0.3s ease;
|
||||
transition: 0.3s ease;
|
||||
-webkit-transition-delay: 0ms;
|
||||
-moz-transition-delay: 0ms;
|
||||
transition-delay: 0ms; }
|
||||
[class*="hint--"]:hover:before, [class*="hint--"]:hover:after {
|
||||
visibility: visible;
|
||||
opacity: 1; }
|
||||
[class*="hint--"]:hover:before, [class*="hint--"]:hover:after {
|
||||
-webkit-transition-delay: 100ms;
|
||||
-moz-transition-delay: 100ms;
|
||||
transition-delay: 100ms; }
|
||||
[class*="hint--"]:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
background: transparent;
|
||||
border: 6px solid transparent;
|
||||
z-index: 1000001; }
|
||||
[class*="hint--"]:after {
|
||||
background: #383838;
|
||||
color: white;
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
line-height: 12px;
|
||||
white-space: nowrap; }
|
||||
[class*="hint--"][aria-label]:after {
|
||||
content: attr(aria-label); }
|
||||
[class*="hint--"][data-hint]:after {
|
||||
content: attr(data-hint); }
|
||||
|
||||
[aria-label='']:before, [aria-label='']:after,
|
||||
[data-hint='']:before,
|
||||
[data-hint='']:after {
|
||||
display: none !important; }
|
||||
|
||||
/**
|
||||
* source: hint-position.scss
|
||||
*
|
||||
* Defines the positoning logic for the tooltips.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--top
|
||||
* 2) hint--bottom
|
||||
* 3) hint--left
|
||||
* 4) hint--right
|
||||
*/
|
||||
/**
|
||||
* set default color for tooltip arrows
|
||||
*/
|
||||
.hint--top-left:before {
|
||||
border-top-color: #383838; }
|
||||
|
||||
.hint--top-right:before {
|
||||
border-top-color: #383838; }
|
||||
|
||||
.hint--top:before {
|
||||
border-top-color: #383838; }
|
||||
|
||||
.hint--bottom-left:before {
|
||||
border-bottom-color: #383838; }
|
||||
|
||||
.hint--bottom-right:before {
|
||||
border-bottom-color: #383838; }
|
||||
|
||||
.hint--bottom:before {
|
||||
border-bottom-color: #383838; }
|
||||
|
||||
.hint--left:before {
|
||||
border-left-color: #383838; }
|
||||
|
||||
.hint--right:before {
|
||||
border-right-color: #383838; }
|
||||
|
||||
/**
|
||||
* top tooltip
|
||||
*/
|
||||
.hint--top:before {
|
||||
margin-bottom: -11px; }
|
||||
|
||||
.hint--top:before, .hint--top:after {
|
||||
bottom: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--top:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--top:after {
|
||||
-webkit-transform: translateX(-50%);
|
||||
-moz-transform: translateX(-50%);
|
||||
transform: translateX(-50%); }
|
||||
|
||||
.hint--top:hover:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--top:hover:after {
|
||||
-webkit-transform: translateX(-50%) translateY(-8px);
|
||||
-moz-transform: translateX(-50%) translateY(-8px);
|
||||
transform: translateX(-50%) translateY(-8px); }
|
||||
|
||||
/**
|
||||
* bottom tooltip
|
||||
*/
|
||||
.hint--bottom:before {
|
||||
margin-top: -11px; }
|
||||
|
||||
.hint--bottom:before, .hint--bottom:after {
|
||||
top: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--bottom:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--bottom:after {
|
||||
-webkit-transform: translateX(-50%);
|
||||
-moz-transform: translateX(-50%);
|
||||
transform: translateX(-50%); }
|
||||
|
||||
.hint--bottom:hover:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--bottom:hover:after {
|
||||
-webkit-transform: translateX(-50%) translateY(8px);
|
||||
-moz-transform: translateX(-50%) translateY(8px);
|
||||
transform: translateX(-50%) translateY(8px); }
|
||||
|
||||
/**
|
||||
* right tooltip
|
||||
*/
|
||||
.hint--right:before {
|
||||
margin-left: -11px;
|
||||
margin-bottom: -6px; }
|
||||
|
||||
.hint--right:after {
|
||||
margin-bottom: -14px; }
|
||||
|
||||
.hint--right:before, .hint--right:after {
|
||||
left: 100%;
|
||||
bottom: 50%; }
|
||||
|
||||
.hint--right:hover:before {
|
||||
-webkit-transform: translateX(8px);
|
||||
-moz-transform: translateX(8px);
|
||||
transform: translateX(8px); }
|
||||
|
||||
.hint--right:hover:after {
|
||||
-webkit-transform: translateX(8px);
|
||||
-moz-transform: translateX(8px);
|
||||
transform: translateX(8px); }
|
||||
|
||||
/**
|
||||
* left tooltip
|
||||
*/
|
||||
.hint--left:before {
|
||||
margin-right: -11px;
|
||||
margin-bottom: -6px; }
|
||||
|
||||
.hint--left:after {
|
||||
margin-bottom: -14px; }
|
||||
|
||||
.hint--left:before, .hint--left:after {
|
||||
right: 100%;
|
||||
bottom: 50%; }
|
||||
|
||||
.hint--left:hover:before {
|
||||
-webkit-transform: translateX(-8px);
|
||||
-moz-transform: translateX(-8px);
|
||||
transform: translateX(-8px); }
|
||||
|
||||
.hint--left:hover:after {
|
||||
-webkit-transform: translateX(-8px);
|
||||
-moz-transform: translateX(-8px);
|
||||
transform: translateX(-8px); }
|
||||
|
||||
/**
|
||||
* top-left tooltip
|
||||
*/
|
||||
.hint--top-left:before {
|
||||
margin-bottom: -11px; }
|
||||
|
||||
.hint--top-left:before, .hint--top-left:after {
|
||||
bottom: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--top-left:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--top-left:after {
|
||||
-webkit-transform: translateX(-100%);
|
||||
-moz-transform: translateX(-100%);
|
||||
transform: translateX(-100%); }
|
||||
|
||||
.hint--top-left:after {
|
||||
margin-left: 12px; }
|
||||
|
||||
.hint--top-left:hover:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--top-left:hover:after {
|
||||
-webkit-transform: translateX(-100%) translateY(-8px);
|
||||
-moz-transform: translateX(-100%) translateY(-8px);
|
||||
transform: translateX(-100%) translateY(-8px); }
|
||||
|
||||
/**
|
||||
* top-right tooltip
|
||||
*/
|
||||
.hint--top-right:before {
|
||||
margin-bottom: -11px; }
|
||||
|
||||
.hint--top-right:before, .hint--top-right:after {
|
||||
bottom: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--top-right:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--top-right:after {
|
||||
-webkit-transform: translateX(0);
|
||||
-moz-transform: translateX(0);
|
||||
transform: translateX(0); }
|
||||
|
||||
.hint--top-right:after {
|
||||
margin-left: -12px; }
|
||||
|
||||
.hint--top-right:hover:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--top-right:hover:after {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
/**
|
||||
* bottom-left tooltip
|
||||
*/
|
||||
.hint--bottom-left:before {
|
||||
margin-top: -11px; }
|
||||
|
||||
.hint--bottom-left:before, .hint--bottom-left:after {
|
||||
top: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--bottom-left:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--bottom-left:after {
|
||||
-webkit-transform: translateX(-100%);
|
||||
-moz-transform: translateX(-100%);
|
||||
transform: translateX(-100%); }
|
||||
|
||||
.hint--bottom-left:after {
|
||||
margin-left: 12px; }
|
||||
|
||||
.hint--bottom-left:hover:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--bottom-left:hover:after {
|
||||
-webkit-transform: translateX(-100%) translateY(8px);
|
||||
-moz-transform: translateX(-100%) translateY(8px);
|
||||
transform: translateX(-100%) translateY(8px); }
|
||||
|
||||
/**
|
||||
* bottom-right tooltip
|
||||
*/
|
||||
.hint--bottom-right:before {
|
||||
margin-top: -11px; }
|
||||
|
||||
.hint--bottom-right:before, .hint--bottom-right:after {
|
||||
top: 100%;
|
||||
left: 50%; }
|
||||
|
||||
.hint--bottom-right:before {
|
||||
left: calc(50% - 6px); }
|
||||
|
||||
.hint--bottom-right:after {
|
||||
-webkit-transform: translateX(0);
|
||||
-moz-transform: translateX(0);
|
||||
transform: translateX(0); }
|
||||
|
||||
.hint--bottom-right:after {
|
||||
margin-left: -12px; }
|
||||
|
||||
.hint--bottom-right:hover:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--bottom-right:hover:after {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
/**
|
||||
* source: hint-sizes.scss
|
||||
*
|
||||
* Defines width restricted tooltips that can span
|
||||
* across multiple lines.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--small
|
||||
* 2) hint--medium
|
||||
* 3) hint--large
|
||||
*
|
||||
*/
|
||||
.hint--small:after,
|
||||
.hint--medium:after,
|
||||
.hint--large:after {
|
||||
white-space: normal;
|
||||
line-height: 1.4em;
|
||||
word-wrap: break-word; }
|
||||
|
||||
.hint--small:after {
|
||||
width: 80px; }
|
||||
|
||||
.hint--medium:after {
|
||||
width: 150px; }
|
||||
|
||||
.hint--large:after {
|
||||
width: 300px; }
|
||||
|
||||
/**
|
||||
* source: hint-theme.scss
|
||||
*
|
||||
* Defines basic theme for tooltips.
|
||||
*
|
||||
*/
|
||||
[class*="hint--"] {
|
||||
/**
|
||||
* tooltip body
|
||||
*/ }
|
||||
[class*="hint--"]:after {
|
||||
text-shadow: 0 -1px 0px black;
|
||||
box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3); }
|
||||
|
||||
/**
|
||||
* source: hint-color-types.scss
|
||||
*
|
||||
* Contains tooltips of various types based on color differences.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--error
|
||||
* 2) hint--warning
|
||||
* 3) hint--info
|
||||
* 4) hint--success
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* Error
|
||||
*/
|
||||
.hint--error:after {
|
||||
background-color: #b34e4d;
|
||||
text-shadow: 0 -1px 0px #592726; }
|
||||
|
||||
.hint--error.hint--top-left:before {
|
||||
border-top-color: #b34e4d; }
|
||||
|
||||
.hint--error.hint--top-right:before {
|
||||
border-top-color: #b34e4d; }
|
||||
|
||||
.hint--error.hint--top:before {
|
||||
border-top-color: #b34e4d; }
|
||||
|
||||
.hint--error.hint--bottom-left:before {
|
||||
border-bottom-color: #b34e4d; }
|
||||
|
||||
.hint--error.hint--bottom-right:before {
|
||||
border-bottom-color: #b34e4d; }
|
||||
|
||||
.hint--error.hint--bottom:before {
|
||||
border-bottom-color: #b34e4d; }
|
||||
|
||||
.hint--error.hint--left:before {
|
||||
border-left-color: #b34e4d; }
|
||||
|
||||
.hint--error.hint--right:before {
|
||||
border-right-color: #b34e4d; }
|
||||
|
||||
/**
|
||||
* Warning
|
||||
*/
|
||||
.hint--warning:after {
|
||||
background-color: #c09854;
|
||||
text-shadow: 0 -1px 0px #6c5328; }
|
||||
|
||||
.hint--warning.hint--top-left:before {
|
||||
border-top-color: #c09854; }
|
||||
|
||||
.hint--warning.hint--top-right:before {
|
||||
border-top-color: #c09854; }
|
||||
|
||||
.hint--warning.hint--top:before {
|
||||
border-top-color: #c09854; }
|
||||
|
||||
.hint--warning.hint--bottom-left:before {
|
||||
border-bottom-color: #c09854; }
|
||||
|
||||
.hint--warning.hint--bottom-right:before {
|
||||
border-bottom-color: #c09854; }
|
||||
|
||||
.hint--warning.hint--bottom:before {
|
||||
border-bottom-color: #c09854; }
|
||||
|
||||
.hint--warning.hint--left:before {
|
||||
border-left-color: #c09854; }
|
||||
|
||||
.hint--warning.hint--right:before {
|
||||
border-right-color: #c09854; }
|
||||
|
||||
/**
|
||||
* Info
|
||||
*/
|
||||
.hint--info:after {
|
||||
background-color: #3986ac;
|
||||
text-shadow: 0 -1px 0px #1a3c4d; }
|
||||
|
||||
.hint--info.hint--top-left:before {
|
||||
border-top-color: #3986ac; }
|
||||
|
||||
.hint--info.hint--top-right:before {
|
||||
border-top-color: #3986ac; }
|
||||
|
||||
.hint--info.hint--top:before {
|
||||
border-top-color: #3986ac; }
|
||||
|
||||
.hint--info.hint--bottom-left:before {
|
||||
border-bottom-color: #3986ac; }
|
||||
|
||||
.hint--info.hint--bottom-right:before {
|
||||
border-bottom-color: #3986ac; }
|
||||
|
||||
.hint--info.hint--bottom:before {
|
||||
border-bottom-color: #3986ac; }
|
||||
|
||||
.hint--info.hint--left:before {
|
||||
border-left-color: #3986ac; }
|
||||
|
||||
.hint--info.hint--right:before {
|
||||
border-right-color: #3986ac; }
|
||||
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
.hint--success:after {
|
||||
background-color: #458746;
|
||||
text-shadow: 0 -1px 0px #1a321a; }
|
||||
|
||||
.hint--success.hint--top-left:before {
|
||||
border-top-color: #458746; }
|
||||
|
||||
.hint--success.hint--top-right:before {
|
||||
border-top-color: #458746; }
|
||||
|
||||
.hint--success.hint--top:before {
|
||||
border-top-color: #458746; }
|
||||
|
||||
.hint--success.hint--bottom-left:before {
|
||||
border-bottom-color: #458746; }
|
||||
|
||||
.hint--success.hint--bottom-right:before {
|
||||
border-bottom-color: #458746; }
|
||||
|
||||
.hint--success.hint--bottom:before {
|
||||
border-bottom-color: #458746; }
|
||||
|
||||
.hint--success.hint--left:before {
|
||||
border-left-color: #458746; }
|
||||
|
||||
.hint--success.hint--right:before {
|
||||
border-right-color: #458746; }
|
||||
|
||||
/**
|
||||
* source: hint-always.scss
|
||||
*
|
||||
* Defines a persisted tooltip which shows always.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--always
|
||||
*
|
||||
*/
|
||||
.hint--always:after, .hint--always:before {
|
||||
opacity: 1;
|
||||
visibility: visible; }
|
||||
|
||||
.hint--always.hint--top:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--always.hint--top:after {
|
||||
-webkit-transform: translateX(-50%) translateY(-8px);
|
||||
-moz-transform: translateX(-50%) translateY(-8px);
|
||||
transform: translateX(-50%) translateY(-8px); }
|
||||
|
||||
.hint--always.hint--top-left:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--always.hint--top-left:after {
|
||||
-webkit-transform: translateX(-100%) translateY(-8px);
|
||||
-moz-transform: translateX(-100%) translateY(-8px);
|
||||
transform: translateX(-100%) translateY(-8px); }
|
||||
|
||||
.hint--always.hint--top-right:before {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--always.hint--top-right:after {
|
||||
-webkit-transform: translateY(-8px);
|
||||
-moz-transform: translateY(-8px);
|
||||
transform: translateY(-8px); }
|
||||
|
||||
.hint--always.hint--bottom:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--always.hint--bottom:after {
|
||||
-webkit-transform: translateX(-50%) translateY(8px);
|
||||
-moz-transform: translateX(-50%) translateY(8px);
|
||||
transform: translateX(-50%) translateY(8px); }
|
||||
|
||||
.hint--always.hint--bottom-left:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--always.hint--bottom-left:after {
|
||||
-webkit-transform: translateX(-100%) translateY(8px);
|
||||
-moz-transform: translateX(-100%) translateY(8px);
|
||||
transform: translateX(-100%) translateY(8px); }
|
||||
|
||||
.hint--always.hint--bottom-right:before {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--always.hint--bottom-right:after {
|
||||
-webkit-transform: translateY(8px);
|
||||
-moz-transform: translateY(8px);
|
||||
transform: translateY(8px); }
|
||||
|
||||
.hint--always.hint--left:before {
|
||||
-webkit-transform: translateX(-8px);
|
||||
-moz-transform: translateX(-8px);
|
||||
transform: translateX(-8px); }
|
||||
|
||||
.hint--always.hint--left:after {
|
||||
-webkit-transform: translateX(-8px);
|
||||
-moz-transform: translateX(-8px);
|
||||
transform: translateX(-8px); }
|
||||
|
||||
.hint--always.hint--right:before {
|
||||
-webkit-transform: translateX(8px);
|
||||
-moz-transform: translateX(8px);
|
||||
transform: translateX(8px); }
|
||||
|
||||
.hint--always.hint--right:after {
|
||||
-webkit-transform: translateX(8px);
|
||||
-moz-transform: translateX(8px);
|
||||
transform: translateX(8px); }
|
||||
|
||||
/**
|
||||
* source: hint-rounded.scss
|
||||
*
|
||||
* Defines rounded corner tooltips.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--rounded
|
||||
*
|
||||
*/
|
||||
.hint--rounded:after {
|
||||
border-radius: 4px; }
|
||||
|
||||
/**
|
||||
* source: hint-effects.scss
|
||||
*
|
||||
* Defines various transition effects for the tooltips.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--no-animate
|
||||
* 2) hint--bounce
|
||||
*
|
||||
*/
|
||||
.hint--no-animate:before, .hint--no-animate:after {
|
||||
-webkit-transition-duration: 0ms;
|
||||
-moz-transition-duration: 0ms;
|
||||
transition-duration: 0ms; }
|
||||
|
||||
.hint--bounce:before, .hint--bounce:after {
|
||||
-webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
|
||||
-moz-transition: opacity 0.3s ease, visibility 0.3s ease, -moz-transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
|
||||
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24); }
|
||||
|
||||
.hint--no-shadow:before, .hint--no-shadow:after {
|
||||
text-shadow: initial;
|
||||
box-shadow: initial; }
|
5
node_modules/hint.css/hint.min.css
generated
vendored
Normal file
5
node_modules/hint.css/hint.min.css
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
66
node_modules/hint.css/package.json
generated
vendored
Normal file
66
node_modules/hint.css/package.json
generated
vendored
Normal file
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
"hint.css@2.6.0",
|
||||
"F:\\Documents\\websites\\BMM"
|
||||
]
|
||||
],
|
||||
"_from": "hint.css@2.6.0",
|
||||
"_id": "hint.css@2.6.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-SnCLQOoPQt4fuHbOOvEL3UZwL0SPFtKMN4YIxAvBTe4oFUtBAT4R2Kk1uk3x5hgN+0xzOb6LFEQf5StbYfNm8w==",
|
||||
"_location": "/hint.css",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "hint.css@2.6.0",
|
||||
"name": "hint.css",
|
||||
"escapedName": "hint.css",
|
||||
"rawSpec": "2.6.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.6.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/hint.css/-/hint.css-2.6.0.tgz",
|
||||
"_spec": "2.6.0",
|
||||
"_where": "F:\\Documents\\websites\\BMM",
|
||||
"author": {
|
||||
"name": "Kushagra Gour",
|
||||
"email": "chinchang457@gmail.com",
|
||||
"url": "http://kushagragour.in"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/chinchang/hint.css/issues"
|
||||
},
|
||||
"description": "A tooltip library in CSS for your lovely websites.",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-cssmin": "~0.12.3",
|
||||
"grunt-contrib-watch": "~0.5.3",
|
||||
"grunt-sass": "^3.0.2",
|
||||
"node-sass": "^4.10.0"
|
||||
},
|
||||
"homepage": "http://kushagragour.in/lab/hint/",
|
||||
"keywords": [
|
||||
"tooltip",
|
||||
"ui",
|
||||
"sass",
|
||||
"css",
|
||||
"help",
|
||||
"hint"
|
||||
],
|
||||
"license": "See LICENSE.md",
|
||||
"main": "hint.css",
|
||||
"name": "hint.css",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/chinchang/hint.css.git"
|
||||
},
|
||||
"style": "hint.css",
|
||||
"title": "Hint.css",
|
||||
"version": "2.6.0"
|
||||
}
|
46
node_modules/hint.css/src/hint-always.scss
generated
vendored
Normal file
46
node_modules/hint.css/src/hint-always.scss
generated
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* source: hint-always.scss
|
||||
*
|
||||
* Defines a persisted tooltip which shows always.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--always
|
||||
*
|
||||
*/
|
||||
|
||||
.#{$hintPrefix}always {
|
||||
&:after, &:before {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
&.#{$hintPrefix}top {
|
||||
@include set-margin('translateY', -1, -50%);
|
||||
|
||||
&-left {
|
||||
@include set-margin('translateY', -1, -100%);
|
||||
}
|
||||
&-right {
|
||||
@include set-margin('translateY', -1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
&.#{$hintPrefix}bottom {
|
||||
@include set-margin('translateY', 1, -50%);
|
||||
&-left {
|
||||
@include set-margin('translateY', 1, -100%);
|
||||
}
|
||||
&-right {
|
||||
@include set-margin('translateY', 1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
&.#{$hintPrefix}left {
|
||||
@include set-margin('translateX', -1);
|
||||
}
|
||||
|
||||
&.#{$hintPrefix}right {
|
||||
@include set-margin('translateX', 1);
|
||||
}
|
||||
}
|
||||
|
52
node_modules/hint.css/src/hint-color-types.scss
generated
vendored
Normal file
52
node_modules/hint.css/src/hint-color-types.scss
generated
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
/**
|
||||
* source: hint-color-types.scss
|
||||
*
|
||||
* Contains tooltips of various types based on color differences.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--error
|
||||
* 2) hint--warning
|
||||
* 3) hint--info
|
||||
* 4) hint--success
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
// mixin to generate different color style tooltips
|
||||
@mixin hint-type($color) {
|
||||
&:after {
|
||||
background-color: $color;
|
||||
text-shadow: 0 -1px 0px darken($color, $hintTextShadowDarkenAmount);
|
||||
}
|
||||
|
||||
// generate arrow color style
|
||||
@include arrow-border-color($color);
|
||||
}
|
||||
|
||||
/**
|
||||
* Error
|
||||
*/
|
||||
.#{$hintPrefix}error {
|
||||
@include hint-type($hintErrorColor);
|
||||
}
|
||||
|
||||
/**
|
||||
* Warning
|
||||
*/
|
||||
.#{$hintPrefix}warning {
|
||||
@include hint-type($hintWarningColor)
|
||||
}
|
||||
|
||||
/**
|
||||
* Info
|
||||
*/
|
||||
.#{$hintPrefix}info {
|
||||
@include hint-type($hintInfoColor)
|
||||
}
|
||||
|
||||
/**
|
||||
* Success
|
||||
*/
|
||||
.#{$hintPrefix}success {
|
||||
@include hint-type($hintSuccessColor)
|
||||
}
|
88
node_modules/hint.css/src/hint-core.scss
generated
vendored
Normal file
88
node_modules/hint.css/src/hint-core.scss
generated
vendored
Normal file
|
@ -0,0 +1,88 @@
|
|||
/**
|
||||
* source: hint-core.scss
|
||||
*
|
||||
* Defines the basic styling for the tooltip.
|
||||
* Each tooltip is made of 2 parts:
|
||||
* 1) body (:after)
|
||||
* 2) arrow (:before)
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint
|
||||
*/
|
||||
|
||||
[class*="#{$hintPrefix}"] {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
&:before, &:after {
|
||||
position: absolute;
|
||||
|
||||
// HACK: Trigger hardware accelerated rendering, otherwise transform was not
|
||||
// working on a hidden element
|
||||
@include vendor('transform', translate3d(0, 0, 0));
|
||||
|
||||
// HACK: visibility is set to hidden because IE & Opera don't support
|
||||
// pointer-events on HTML content yet because of which hovering a hidden tooltip
|
||||
// shows the tooltip.
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
z-index: $hintZIndex;
|
||||
// shouldn't receive pointer events, otherwise even hovering tooltip will make it appear
|
||||
pointer-events: none;
|
||||
|
||||
@include vendor('transition', $hintTransitionDuration ease);
|
||||
@include vendor('transition-delay', $hintHideDelay);
|
||||
}
|
||||
|
||||
&:hover:before, &:hover:after {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&:hover:before, &:hover:after {
|
||||
// $hintShowDelay will apply as soon as element is hovered.
|
||||
@include vendor('transition-delay', $hintShowDelay);
|
||||
}
|
||||
|
||||
/**
|
||||
* tooltip arrow
|
||||
*/
|
||||
&:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
background: transparent;
|
||||
border: $hintArrowBorderWidth solid transparent;
|
||||
// move z-index 1 up than :after so that it shows over box-shadow
|
||||
z-index: $hintZIndex + 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* tooltip body
|
||||
*/
|
||||
&:after {
|
||||
background: $hintDefaultColor;
|
||||
color: white;
|
||||
padding: $hintVerticalPadding $hintHorizontalPadding;
|
||||
font-size: $hintFontSize;
|
||||
font-family: $hintFontFamily;
|
||||
line-height: $hintFontSize; // Vertical centering.
|
||||
white-space: nowrap; // Prevent breaking to new line.
|
||||
}
|
||||
// Always get content from aria-label attribute.
|
||||
&[aria-label]:after {
|
||||
content: attr(aria-label); // The magic!
|
||||
}
|
||||
// If the `data-hint` attribute is present, use it.
|
||||
// This might be deprecated in future in support of a11y.
|
||||
&[data-hint]:after {
|
||||
content: attr(data-hint); // The magic!
|
||||
}
|
||||
}
|
||||
|
||||
// Hide tooltips if any of the supported attributes is empty.
|
||||
[aria-label=''],
|
||||
[data-hint=''] {
|
||||
&:before, &:after {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
34
node_modules/hint.css/src/hint-effects.scss
generated
vendored
Normal file
34
node_modules/hint.css/src/hint-effects.scss
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
* source: hint-effects.scss
|
||||
*
|
||||
* Defines various transition effects for the tooltips.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--no-animate
|
||||
* 2) hint--bounce
|
||||
*
|
||||
*/
|
||||
|
||||
// Remove animation from tooltips.
|
||||
.#{$hintPrefix}no-animate {
|
||||
&:before, &:after {
|
||||
@include vendor('transition-duration', 0ms);
|
||||
}
|
||||
}
|
||||
|
||||
// Bounce effect in tooltips.
|
||||
.#{$hintPrefix}bounce {
|
||||
&:before, &:after {
|
||||
-webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s cubic-bezier(.71,1.7,.77,1.24);
|
||||
-moz-transition: opacity 0.3s ease, visibility 0.3s ease, -moz-transform 0.3s cubic-bezier(.71,1.7,.77,1.24);
|
||||
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(.71,1.7,.77,1.24);
|
||||
}
|
||||
}
|
||||
|
||||
// Remove shadows from tooltips.
|
||||
.#{$hintPrefix}no-shadow {
|
||||
&:before, &:after {
|
||||
text-shadow: initial;
|
||||
box-shadow: initial;
|
||||
}
|
||||
}
|
46
node_modules/hint.css/src/hint-mixins.scss
generated
vendored
Normal file
46
node_modules/hint.css/src/hint-mixins.scss
generated
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
// hint-mixins.scss
|
||||
//
|
||||
// Place to store common mixins.
|
||||
|
||||
// Vendor prefixer mixin.
|
||||
@mixin vendor($property, $value) {
|
||||
-webkit-#{$property}: $value;
|
||||
-moz-#{$property}: $value;
|
||||
#{$property}: $value;
|
||||
}
|
||||
|
||||
// Generates border-color rules for all possible positions
|
||||
@mixin arrow-border-color($color) {
|
||||
@each $position in top, bottom, left, right {
|
||||
@if $position == top or $position == bottom {
|
||||
// Loop further for classes like .top-left, bottom-right etc
|
||||
@each $xDir in left, right {
|
||||
#{if(&, "&", "")}.#{$hintPrefix}#{$position}-#{$xDir}:before {
|
||||
border-#{$position}-color: $color;
|
||||
}
|
||||
}
|
||||
}
|
||||
#{if(&, "&", "")}.#{$hintPrefix}#{$position}:before {
|
||||
border-#{$position}-color: $color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// mixin to set margin on tooltip using translate transform
|
||||
// $property
|
||||
@mixin set-margin($property, $transitionDirection, $translateX: 0) {
|
||||
$value: unquote("#{$property}(#{$hintTransitionDistance * $transitionDirection})");
|
||||
&:before {
|
||||
@include vendor('transform', $value);
|
||||
}
|
||||
&:after {
|
||||
@if $translateX != 0 {
|
||||
// For vertical tooltips, we need to animate in y-direction
|
||||
// retaining its x-transform.
|
||||
@include vendor('transform', translateX($translateX) $value);
|
||||
}
|
||||
@else {
|
||||
@include vendor('transform', $value);
|
||||
}
|
||||
}
|
||||
}
|
138
node_modules/hint.css/src/hint-position.scss
generated
vendored
Normal file
138
node_modules/hint.css/src/hint-position.scss
generated
vendored
Normal file
|
@ -0,0 +1,138 @@
|
|||
/**
|
||||
* source: hint-position.scss
|
||||
*
|
||||
* Defines the positoning logic for the tooltips.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--top
|
||||
* 2) hint--bottom
|
||||
* 3) hint--left
|
||||
* 4) hint--right
|
||||
*/
|
||||
|
||||
@mixin vertical-positioned-tooltip($propertyY, $transitionDirection, $xDirection:0) {
|
||||
&:before {
|
||||
// bring arrow inside so that it animates to normal position when shown.
|
||||
// HACK: +1px to avoid the 1 px white space between arrow and body during transition.
|
||||
margin-#{$propertyY}: -2 * $hintArrowBorderWidth + 1px;
|
||||
}
|
||||
|
||||
&:before, &:after {
|
||||
#{$propertyY}: 100%;
|
||||
left: 50%; // get top-left corner in center
|
||||
}
|
||||
|
||||
&:before {
|
||||
left: calc(50% - #{$hintArrowBorderWidth}); // get arrow center aligned with content
|
||||
}
|
||||
|
||||
$translateX: -50%;
|
||||
@if $xDirection == -1 {
|
||||
$translateX: -100%;
|
||||
} @else if $xDirection == 1 {
|
||||
$translateX: 0;
|
||||
}
|
||||
|
||||
&:after {
|
||||
@include vendor('transform', translateX($translateX));
|
||||
}
|
||||
|
||||
&:after {
|
||||
@if $xDirection != 0 {
|
||||
// bring back the tooltip by some offset so that arrow doesn't stick at end
|
||||
margin-left: -$xDirection * $hintArrowOffsetX;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@include set-margin('translateY', $transitionDirection, $translateX);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin horizontal-positioned-tooltip($propertyX, $transitionDirection) {
|
||||
&:before {
|
||||
// bring arrow inside so that it animates to normal position when shown
|
||||
// HACK: +1px to avoid the 1 px white space between arrow and body during transition.
|
||||
margin-#{$propertyX}: -2 * $hintArrowBorderWidth + 1px;
|
||||
// bring back to center vertically
|
||||
margin-bottom: -1 * $hintArrowBorderWidth;
|
||||
}
|
||||
|
||||
&:after {
|
||||
// bring back to center
|
||||
margin-bottom: -1 * floor($hintTooltipHeight / 2);
|
||||
}
|
||||
|
||||
&:before, &:after {
|
||||
#{$propertyX}: 100%;
|
||||
bottom: 50%;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@include set-margin('translateX', $transitionDirection);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* set default color for tooltip arrows
|
||||
*/
|
||||
@include arrow-border-color($hintDefaultColor);
|
||||
|
||||
/**
|
||||
* top tooltip
|
||||
*/
|
||||
.#{$hintPrefix}top {
|
||||
@include vertical-positioned-tooltip('bottom', -1);
|
||||
}
|
||||
|
||||
/**
|
||||
* bottom tooltip
|
||||
*/
|
||||
.#{$hintPrefix}bottom {
|
||||
@include vertical-positioned-tooltip('top', 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* right tooltip
|
||||
*/
|
||||
.#{$hintPrefix}right {
|
||||
@include horizontal-positioned-tooltip('left', 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* left tooltip
|
||||
*/
|
||||
.#{$hintPrefix}left {
|
||||
@include horizontal-positioned-tooltip('right', -1);
|
||||
}
|
||||
|
||||
/**
|
||||
* top-left tooltip
|
||||
*/
|
||||
.#{$hintPrefix}top-left {
|
||||
@include vertical-positioned-tooltip('bottom', -1, -1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* top-right tooltip
|
||||
*/
|
||||
.#{$hintPrefix}top-right {
|
||||
@include vertical-positioned-tooltip('bottom', -1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* bottom-left tooltip
|
||||
*/
|
||||
.#{$hintPrefix}bottom-left {
|
||||
@include vertical-positioned-tooltip('top', 1, -1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* bottom-right tooltip
|
||||
*/
|
||||
.#{$hintPrefix}bottom-right {
|
||||
@include vertical-positioned-tooltip('top', 1, 1);
|
||||
}
|
15
node_modules/hint.css/src/hint-rounded.scss
generated
vendored
Normal file
15
node_modules/hint.css/src/hint-rounded.scss
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* source: hint-rounded.scss
|
||||
*
|
||||
* Defines rounded corner tooltips.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--rounded
|
||||
*
|
||||
*/
|
||||
|
||||
.#{$hintPrefix}rounded {
|
||||
&:after {
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
39
node_modules/hint.css/src/hint-sizes.scss
generated
vendored
Normal file
39
node_modules/hint.css/src/hint-sizes.scss
generated
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* source: hint-sizes.scss
|
||||
*
|
||||
* Defines width restricted tooltips that can span
|
||||
* across multiple lines.
|
||||
*
|
||||
* Classes added:
|
||||
* 1) hint--small
|
||||
* 2) hint--medium
|
||||
* 3) hint--large
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
.#{$hintPrefix}small,
|
||||
.#{$hintPrefix}medium,
|
||||
.#{$hintPrefix}large {
|
||||
&:after {
|
||||
white-space: normal;
|
||||
line-height: 1.4em;
|
||||
word-wrap: break-word; // Ensure long words do not overflow.
|
||||
}
|
||||
}
|
||||
|
||||
.#{$hintPrefix}small {
|
||||
&:after {
|
||||
width: $hintSizeSmall;
|
||||
}
|
||||
}
|
||||
.#{$hintPrefix}medium {
|
||||
&:after {
|
||||
width: $hintSizeMedium;
|
||||
}
|
||||
}
|
||||
.#{$hintPrefix}large {
|
||||
&:after {
|
||||
width: $hintSizeLarge;
|
||||
}
|
||||
}
|
16
node_modules/hint.css/src/hint-theme.scss
generated
vendored
Normal file
16
node_modules/hint.css/src/hint-theme.scss
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* source: hint-theme.scss
|
||||
*
|
||||
* Defines basic theme for tooltips.
|
||||
*
|
||||
*/
|
||||
|
||||
[class*="#{$hintPrefix}"] {
|
||||
/**
|
||||
* tooltip body
|
||||
*/
|
||||
&:after {
|
||||
text-shadow: 0 -1px 0px darken($hintDefaultColor, $hintTextShadowDarkenAmount);
|
||||
box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
64
node_modules/hint.css/src/hint-variables.scss
generated
vendored
Normal file
64
node_modules/hint.css/src/hint-variables.scss
generated
vendored
Normal file
|
@ -0,0 +1,64 @@
|
|||
// hint-variables.scss
|
||||
//
|
||||
// Declares some variables used within the library.
|
||||
|
||||
// Prefix for all classes. By default, BEM naming convention is used
|
||||
$hintPrefix: 'hint--' !default;
|
||||
|
||||
// font size
|
||||
$hintFontSize: 12px !default;
|
||||
|
||||
// default font family
|
||||
$hintFontFamily: 'Helvetica Neue', Helvetica, Arial, sans-serif !default;
|
||||
|
||||
// paddings
|
||||
$hintVerticalPadding: 8px !default;
|
||||
$hintHorizontalPadding: 10px !default;
|
||||
|
||||
// default tooltip height
|
||||
$hintTooltipHeight: $hintFontSize + 2 * $hintVerticalPadding !default;
|
||||
|
||||
// border-width for tooltip arrow
|
||||
$hintArrowBorderWidth: 6px !default;
|
||||
|
||||
// horizontal arrow offset
|
||||
$hintArrowOffsetX: 2 * $hintArrowBorderWidth !default;
|
||||
|
||||
// text-shadow darken percentage
|
||||
$hintTextShadowDarkenAmount: 25% !default;
|
||||
|
||||
// transition distance
|
||||
$hintTransitionDistance: 8px !default;
|
||||
|
||||
// Transition Duration
|
||||
$hintTransitionDuration: 0.3s !default;
|
||||
|
||||
// Delay in showing the tooltips.
|
||||
$hintShowDelay: 100ms !default;
|
||||
|
||||
// Delay in hiding the tooltips.
|
||||
$hintHideDelay: 0ms !default;
|
||||
|
||||
// z-index for tooltips
|
||||
$hintZIndex: 1000000 !default;
|
||||
|
||||
// Size options
|
||||
$hintSizeSmall: 80px !default;
|
||||
$hintSizeMedium: 150px !default;
|
||||
$hintSizeLarge: 300px !default;
|
||||
|
||||
// Various colors
|
||||
// Default color is blackish
|
||||
$hintDefaultColor: hsl(0, 0%, 22%) !default;
|
||||
|
||||
// Error color
|
||||
$hintErrorColor: hsl(1, 40%, 50%) !default;
|
||||
|
||||
// Warning color
|
||||
$hintWarningColor: hsl(38, 46%, 54%) !default;
|
||||
|
||||
// Info Color
|
||||
$hintInfoColor: hsl(200, 50%, 45%) !default;
|
||||
|
||||
// Success Color
|
||||
$hintSuccessColor: hsl(121, 32%, 40%) !default;
|
24
node_modules/hint.css/src/hint.base.scss
generated
vendored
Normal file
24
node_modules/hint.css/src/hint.base.scss
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
// hint.base.scss
|
||||
//
|
||||
// Aggregates all other sass files to create a basic functional tooltip.
|
||||
// This doesn't have any of the cosmetic features of the library.
|
||||
|
||||
/*-------------------------------------*\
|
||||
HINT.css - A CSS tooltip library
|
||||
\*-------------------------------------*/
|
||||
|
||||
|
||||
/**
|
||||
* HINT.css is a tooltip library made in pure CSS.
|
||||
*
|
||||
* Source: https://github.com/chinchang/hint.css
|
||||
* Demo: http://kushagragour.in/lab/hint/
|
||||
*
|
||||
*/
|
||||
|
||||
@import "hint-variables";
|
||||
@import "hint-mixins";
|
||||
@import "hint-core";
|
||||
@import "hint-position";
|
||||
@import "hint-sizes";
|
||||
@import "hint-always";
|
27
node_modules/hint.css/src/hint.scss
generated
vendored
Normal file
27
node_modules/hint.css/src/hint.scss
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
// hint.scss
|
||||
//
|
||||
// Aggregates all other sass files.
|
||||
|
||||
/*-------------------------------------*\
|
||||
HINT.css - A CSS tooltip library
|
||||
\*-------------------------------------*/
|
||||
|
||||
|
||||
/**
|
||||
* HINT.css is a tooltip library made in pure CSS.
|
||||
*
|
||||
* Source: https://github.com/chinchang/hint.css
|
||||
* Demo: http://kushagragour.in/lab/hint/
|
||||
*
|
||||
*/
|
||||
|
||||
@import "hint-variables";
|
||||
@import "hint-mixins";
|
||||
@import "hint-core";
|
||||
@import "hint-position";
|
||||
@import "hint-sizes";
|
||||
@import "hint-theme";
|
||||
@import "hint-color-types";
|
||||
@import "hint-always";
|
||||
@import "hint-rounded";
|
||||
@import "hint-effects";
|
1403
node_modules/hint.css/yarn.lock
generated
vendored
Normal file
1403
node_modules/hint.css/yarn.lock
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue