From 80e5c156516d9f792fae7f65f1495d4178627d7b Mon Sep 17 00:00:00 2001 From: Francis Byrne Date: Fri, 30 Jun 2017 14:51:02 +0200 Subject: [PATCH] Moved example into /private Also upgraded example to Meteor v1.5 and removed fourseven:scss package (due to upgrade issues) --- .gitignore | 2 + example/.meteor/.finished-upgraders | 8 - example/.meteor/release | 1 - example/.meteor/versions | 51 ------ example/_tooltip.scss | 78 --------- example/tooltip-examples.scss | 83 ---------- package.js | 2 +- private/example/.meteor/.finished-upgraders | 17 ++ .../example}/.meteor/.gitignore | 0 {example => private/example}/.meteor/.id | 0 {example => private/example}/.meteor/packages | 23 ++- .../example}/.meteor/platforms | 0 private/example/.meteor/release | 1 + private/example/.meteor/versions | 78 +++++++++ .../example}/packages/lookback:tooltips | 0 .../example}/tooltip-examples.coffee | 0 .../example}/tooltip-examples.html | 0 private/example/tooltip.css | 150 ++++++++++++++++++ 18 files changed, 268 insertions(+), 226 deletions(-) delete mode 100644 example/.meteor/.finished-upgraders delete mode 100644 example/.meteor/release delete mode 100644 example/.meteor/versions delete mode 100644 example/_tooltip.scss delete mode 100644 example/tooltip-examples.scss create mode 100644 private/example/.meteor/.finished-upgraders rename {example => private/example}/.meteor/.gitignore (100%) rename {example => private/example}/.meteor/.id (100%) rename {example => private/example}/.meteor/packages (54%) rename {example => private/example}/.meteor/platforms (100%) create mode 100644 private/example/.meteor/release create mode 100644 private/example/.meteor/versions rename {example => private/example}/packages/lookback:tooltips (100%) rename {example => private/example}/tooltip-examples.coffee (100%) rename {example => private/example}/tooltip-examples.html (100%) create mode 100644 private/example/tooltip.css diff --git a/.gitignore b/.gitignore index 3ccf4f8..129ae4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .build* .versions +.DS_Store +node_modules \ No newline at end of file diff --git a/example/.meteor/.finished-upgraders b/example/.meteor/.finished-upgraders deleted file mode 100644 index 8a76103..0000000 --- a/example/.meteor/.finished-upgraders +++ /dev/null @@ -1,8 +0,0 @@ -# This file contains information which helps Meteor properly upgrade your -# app when you run 'meteor update'. You should check it into version control -# with your project. - -notices-for-0.9.0 -notices-for-0.9.1 -0.9.4-platform-file -notices-for-facebook-graph-api-2 diff --git a/example/.meteor/release b/example/.meteor/release deleted file mode 100644 index dab6b55..0000000 --- a/example/.meteor/release +++ /dev/null @@ -1 +0,0 @@ -METEOR@1.1.0.2 diff --git a/example/.meteor/versions b/example/.meteor/versions deleted file mode 100644 index eb29160..0000000 --- a/example/.meteor/versions +++ /dev/null @@ -1,51 +0,0 @@ -autopublish@1.0.3 -autoupdate@1.2.1 -base64@1.0.3 -binary-heap@1.0.3 -blaze@2.1.2 -blaze-tools@1.0.3 -boilerplate-generator@1.0.3 -callback-hook@1.0.3 -check@1.0.5 -coffeescript@1.0.6 -ddp@1.1.0 -deps@1.0.7 -ejson@1.0.6 -fastclick@1.0.3 -fourseven:scss@1.2.3 -geojson-utils@1.0.3 -html-tools@1.0.4 -htmljs@1.0.4 -http@1.1.0 -id-map@1.0.3 -insecure@1.0.3 -jquery@1.11.3_2 -json@1.0.3 -launch-screen@1.0.2 -livedata@1.0.13 -logging@1.0.7 -lookback:tooltips@0.5.4 -meteor@1.1.6 -meteor-platform@1.2.2 -minifiers@1.1.5 -minimongo@1.0.8 -mobile-status-bar@1.0.3 -mongo@1.1.0 -observe-sequence@1.0.6 -ordered-dict@1.0.3 -random@1.0.3 -reactive-dict@1.1.0 -reactive-var@1.0.5 -reload@1.1.3 -retry@1.0.3 -routepolicy@1.0.5 -session@1.1.0 -spacebars@1.0.6 -spacebars-compiler@1.0.6 -templating@1.1.1 -tracker@1.0.7 -ui@1.0.6 -underscore@1.0.3 -url@1.0.4 -webapp@1.2.0 -webapp-hashing@1.0.3 diff --git a/example/_tooltip.scss b/example/_tooltip.scss deleted file mode 100644 index 7605d81..0000000 --- a/example/_tooltip.scss +++ /dev/null @@ -1,78 +0,0 @@ -.tooltip-element { - display: none; -} - -.tooltip { - $arrow-size: 5px; - $tooltip-color: rgba(#000, .8); - - z-index: 1001; - pointer-events: none; - opacity: 0; - font-weight: 500; - max-width: 200px; - text-align: center; - font-size: 13px; - transition: opacity .1s ease-out; - - .inner { - background-color: $tooltip-color; - border-radius: 4px; - padding: 3px 10px; - - @if(lightness($tooltip-color) < 50%) { - color: #fff; - } - @else { - color: $text-color; - } - } - - &.hide { - opacity: 0; - } - - &.show { - opacity: 1; - } - - // CSS arrow - .inner::after { - content: ""; - display: block; - bottom: -$arrow-size*2; - left: calc(50% - #{$arrow-size}); - width: 0; - height: 0; - border: $arrow-size solid; - border-color: $tooltip-color transparent transparent; - position: absolute; - } - - &.tooltip--left .inner { - box-shadow: rgba(#000, .1) -1px 1px 1px; - - &::after { - right: -$arrow-size*2; - left: auto; - bottom: calc(50% - #{$arrow-size}); - border-color: transparent transparent transparent $tooltip-color; - } - } - - &.tooltip--right .inner { - box-shadow: rgba(#000, .1) 1px 1px 1px; - - &::after { - left: -$arrow-size*2; - bottom: calc(50% - #{$arrow-size}); - border-color: transparent $tooltip-color transparent transparent; - } - } - - &.tooltip--bottom .inner::after { - top: -$arrow-size*2; - bottom: auto; - border-color: transparent transparent $tooltip-color transparent; - } -} diff --git a/example/tooltip-examples.scss b/example/tooltip-examples.scss deleted file mode 100644 index e8a5a60..0000000 --- a/example/tooltip-examples.scss +++ /dev/null @@ -1,83 +0,0 @@ -@import 'tooltip'; - -$sans: 'Helvetica Neue', Helvetica, sans-serif; -$headings: 'Playfair Display', $sans; - -html { - font-family: $sans; - line-height: 1.5; - width: 90%; - max-width: 40rem; - margin: 0 auto; - -webkit-font-smoothing: antialiased; -} - -h1, h2, h3, .subhead { - font-family: $headings; - text-align: center; -} - -h1 { - font-size: 4em; - margin: 1em auto .2em; -} - -.subhead { - font-style: italic; - margin-bottom: 3em; - font-size: 1.3rem; -} - -a { - color: #C0392B; -} - -pre, code { - font-family: Menlo, Monaco, Courier, monospace; -} - -pre, p { - margin: 0 0 1.5rem; -} - -pre { - font-size: .9em; - background-color: #eee; - border-radius: 3px; - white-space: pre-wrap; - color: #444; - padding: 2rem 2rem; - margin-left: -1rem; - margin-right: -1rem; -} - -p code { - background-color: #eee; - padding: 1px 4px; - border-radius: 3px; - color: #333; - font-size: .9em; -} - -dd { - font-size: .9em; - margin: .5rem 0 3rem; - padding: 0 1rem; - color: #888; -} - -.links { - display: flex; - list-style: none; - padding: 0; - - li { - - &:not(:last-child)::after { - content: '·'; - display: inline-block; - padding: 0 5px 0 2px; - color: #aaa; - } - } -} diff --git a/package.js b/package.js index 79dfe9d..5396bd7 100644 --- a/package.js +++ b/package.js @@ -1,7 +1,7 @@ Package.describe({ name: 'lookback:tooltips', summary: 'Reactive tooltips.', - version: '0.5.5', + version: '0.6', git: 'https://github.com/lookback/meteor-tooltips.git' }); diff --git a/private/example/.meteor/.finished-upgraders b/private/example/.meteor/.finished-upgraders new file mode 100644 index 0000000..910574c --- /dev/null +++ b/private/example/.meteor/.finished-upgraders @@ -0,0 +1,17 @@ +# This file contains information which helps Meteor properly upgrade your +# app when you run 'meteor update'. You should check it into version control +# with your project. + +notices-for-0.9.0 +notices-for-0.9.1 +0.9.4-platform-file +notices-for-facebook-graph-api-2 +1.2.0-standard-minifiers-package +1.2.0-meteor-platform-split +1.2.0-cordova-changes +1.2.0-breaking-changes +1.3.0-split-minifiers-package +1.4.0-remove-old-dev-bundle-link +1.4.1-add-shell-server-package +1.4.3-split-account-service-packages +1.5-add-dynamic-import-package diff --git a/example/.meteor/.gitignore b/private/example/.meteor/.gitignore similarity index 100% rename from example/.meteor/.gitignore rename to private/example/.meteor/.gitignore diff --git a/example/.meteor/.id b/private/example/.meteor/.id similarity index 100% rename from example/.meteor/.id rename to private/example/.meteor/.id diff --git a/example/.meteor/packages b/private/example/.meteor/packages similarity index 54% rename from example/.meteor/packages rename to private/example/.meteor/packages index 9c70ece..08f1524 100644 --- a/example/.meteor/packages +++ b/private/example/.meteor/packages @@ -4,9 +4,24 @@ # 'meteor add' and 'meteor remove' will edit this file for you, # but you can also edit it by hand. -meteor-platform -autopublish -insecure -fourseven:scss +autopublish@1.0.7 +insecure@1.0.7 lookback:tooltips coffeescript +meteor-base +mobile-experience +mongo +blaze-html-templates +session +jquery +tracker +logging +reload +random +ejson +spacebars +check +standard-minifier-css +standard-minifier-js +shell-server +dynamic-import diff --git a/example/.meteor/platforms b/private/example/.meteor/platforms similarity index 100% rename from example/.meteor/platforms rename to private/example/.meteor/platforms diff --git a/private/example/.meteor/release b/private/example/.meteor/release new file mode 100644 index 0000000..025f64e --- /dev/null +++ b/private/example/.meteor/release @@ -0,0 +1 @@ +METEOR@1.5 diff --git a/private/example/.meteor/versions b/private/example/.meteor/versions new file mode 100644 index 0000000..9da3362 --- /dev/null +++ b/private/example/.meteor/versions @@ -0,0 +1,78 @@ +allow-deny@1.0.5 +autopublish@1.0.7 +autoupdate@1.3.12 +babel-compiler@6.19.3 +babel-runtime@1.0.1 +base64@1.0.10 +binary-heap@1.0.10 +blaze@2.3.2 +blaze-html-templates@1.1.2 +blaze-tools@1.0.10 +boilerplate-generator@1.1.0 +caching-compiler@1.1.9 +caching-html-compiler@1.1.2 +callback-hook@1.0.10 +check@1.2.5 +coffeescript@1.12.6_1 +ddp@1.2.5 +ddp-client@1.3.4 +ddp-common@1.2.8 +ddp-server@1.3.14 +deps@1.0.12 +diff-sequence@1.0.7 +dynamic-import@0.1.1 +ecmascript@0.8.1 +ecmascript-runtime@0.4.1 +ecmascript-runtime-client@0.4.2 +ecmascript-runtime-server@0.4.1 +ejson@1.0.13 +fastclick@1.0.13 +geojson-utils@1.0.10 +hot-code-push@1.0.4 +html-tools@1.0.11 +htmljs@1.0.11 +http@1.2.12 +id-map@1.0.9 +insecure@1.0.7 +jquery@1.11.10 +launch-screen@1.1.1 +livedata@1.0.18 +logging@1.1.17 +lookback:tooltips@0.5.5 +meteor@1.6.1 +meteor-base@1.1.0 +minifier-css@1.2.16 +minifier-js@2.1.0 +minimongo@1.2.1 +mobile-experience@1.0.4 +mobile-status-bar@1.0.14 +modules@0.9.2 +modules-runtime@0.8.0 +mongo@1.1.18 +mongo-id@1.0.6 +npm-mongo@2.2.24 +observe-sequence@1.0.16 +ordered-dict@1.0.9 +promise@0.8.9 +random@1.0.10 +reactive-dict@1.1.9 +reactive-var@1.0.11 +reload@1.1.11 +retry@1.0.9 +routepolicy@1.0.12 +session@1.1.7 +shell-server@0.2.3 +spacebars@1.0.15 +spacebars-compiler@1.1.2 +standard-minifier-css@1.3.4 +standard-minifier-js@2.1.0 +templating@1.3.2 +templating-compiler@1.3.2 +templating-runtime@1.3.2 +templating-tools@1.1.2 +tracker@1.1.3 +ui@1.0.13 +underscore@1.0.10 +url@1.1.0 +webapp@1.3.16 +webapp-hashing@1.0.9 diff --git a/example/packages/lookback:tooltips b/private/example/packages/lookback:tooltips similarity index 100% rename from example/packages/lookback:tooltips rename to private/example/packages/lookback:tooltips diff --git a/example/tooltip-examples.coffee b/private/example/tooltip-examples.coffee similarity index 100% rename from example/tooltip-examples.coffee rename to private/example/tooltip-examples.coffee diff --git a/example/tooltip-examples.html b/private/example/tooltip-examples.html similarity index 100% rename from example/tooltip-examples.html rename to private/example/tooltip-examples.html diff --git a/private/example/tooltip.css b/private/example/tooltip.css new file mode 100644 index 0000000..a8e81f2 --- /dev/null +++ b/private/example/tooltip.css @@ -0,0 +1,150 @@ +.tooltip-element { + display: none; +} + +.tooltip { + z-index: 1001; + pointer-events: none; + opacity: 0; + font-weight: 500; + max-width: 200px; + text-align: center; + font-size: 13px; + transition: opacity .1s ease-out; +} + +.tooltip .inner { + background-color: rgba(0, 0, 0, 0.8); + border-radius: 4px; + padding: 3px 10px; + color: #fff; +} + +.tooltip.hide { + opacity: 0; +} + +.tooltip.show { + opacity: 1; +} + +.tooltip .inner::after { + content: ""; + display: block; + bottom: -10px; + left: calc(50% - 5px); + width: 0; + height: 0; + border: 5px solid; + border-color: rgba(0, 0, 0, 0.8) transparent transparent; + position: absolute; +} + +.tooltip.tooltip--left .inner { + box-shadow: rgba(0, 0, 0, 0.1) -1px 1px 1px; +} + +.tooltip.tooltip--left .inner::after { + right: -10px; + left: auto; + bottom: calc(50% - 5px); + border-color: transparent transparent transparent rgba(0, 0, 0, 0.8); +} + +.tooltip.tooltip--right .inner { + box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 1px; +} + +.tooltip.tooltip--right .inner::after { + left: -10px; + bottom: calc(50% - 5px); + border-color: transparent rgba(0, 0, 0, 0.8) transparent transparent; +} + +.tooltip.tooltip--bottom .inner::after { + top: -10px; + bottom: auto; + border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent; +} + +@charset "UTF-8"; +html { + font-family: "Helvetica Neue", Helvetica, sans-serif; + line-height: 1.5; + width: 90%; + max-width: 40rem; + margin: 0 auto; + -webkit-font-smoothing: antialiased; +} + +h1, +h2, +h3, +.subhead { + font-family: "Playfair Display", "Helvetica Neue", Helvetica, sans-serif; + text-align: center; +} + +h1 { + font-size: 4em; + margin: 1em auto .2em; +} + +.subhead { + font-style: italic; + margin-bottom: 3em; + font-size: 1.3rem; +} + +a { + color: #C0392B; +} + +pre, +code { + font-family: Menlo, Monaco, Courier, monospace; +} + +pre, +p { + margin: 0 0 1.5rem; +} + +pre { + font-size: .9em; + background-color: #eee; + border-radius: 3px; + white-space: pre-wrap; + color: #444; + padding: 2rem 2rem; + margin-left: -1rem; + margin-right: -1rem; +} + +p code { + background-color: #eee; + padding: 1px 4px; + border-radius: 3px; + color: #333; + font-size: .9em; +} + +dd { + font-size: .9em; + margin: .5rem 0 3rem; + padding: 0 1rem; + color: #888; +} + +.links { + display: flex; + list-style: none; + padding: 0; +} + +.links li:not(:last-child)::after { + content: '·'; + display: inline-block; + padding: 0 5px 0 2px; + color: #aaa; +} \ No newline at end of file