From e0d1f3f18b93c125581c6d941c0e4248dbbc835f Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 30 Oct 2018 11:24:17 +0200 Subject: [PATCH] Remove the obsolete tooltip-viewport example and redirect it. --- site/docs/4.1/examples/index.html | 5 ++- .../4.1/examples/tooltip-viewport/index.html | 44 ------------------- .../tooltip-viewport/tooltip-viewport.css | 26 ----------- .../tooltip-viewport/tooltip-viewport.js | 32 -------------- 4 files changed, 4 insertions(+), 103 deletions(-) delete mode 100644 site/docs/4.1/examples/tooltip-viewport/index.html delete mode 100644 site/docs/4.1/examples/tooltip-viewport/tooltip-viewport.css delete mode 100644 site/docs/4.1/examples/tooltip-viewport/tooltip-viewport.js diff --git a/site/docs/4.1/examples/index.html b/site/docs/4.1/examples/index.html index 328ec397a2..fbff34ad5c 100644 --- a/site/docs/4.1/examples/index.html +++ b/site/docs/4.1/examples/index.html @@ -2,7 +2,10 @@ layout: simple title: Examples description: Quickly get a project started with any of our examples ranging from using parts of the framework to custom components and layouts. -redirect_from: "/examples/" +redirect_from: + - "/examples/" + - "/docs/4.0/examples/tooltip-viewport/" + - "/docs/4.1/examples/tooltip-viewport/" --- {% for entry in site.data.examples %} diff --git a/site/docs/4.1/examples/tooltip-viewport/index.html b/site/docs/4.1/examples/tooltip-viewport/index.html deleted file mode 100644 index ed99242083..0000000000 --- a/site/docs/4.1/examples/tooltip-viewport/index.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - Tooltip Viewport Example for Bootstrap - - - - - - - - - - - - - - - - -
- - - - - - -
- - - - - - - - - diff --git a/site/docs/4.1/examples/tooltip-viewport/tooltip-viewport.css b/site/docs/4.1/examples/tooltip-viewport/tooltip-viewport.css deleted file mode 100644 index 26aa2e3482..0000000000 --- a/site/docs/4.1/examples/tooltip-viewport/tooltip-viewport.css +++ /dev/null @@ -1,26 +0,0 @@ -body { - height: 1200px; -} -.tooltip { - min-width: 250px; - max-width: 500px; -} -.tooltip .tooltip-inner { - min-width: 250px; - max-width: 500px; - min-height: 100px; - text-align: left; -} -.container-viewport { - position: absolute; - top: 100px; - right: 250px; - left: 250px; - height: 300px; - background-color: #eee; -} -.btn-bottom { - position: absolute; - bottom: 0; - left: 0; -} diff --git a/site/docs/4.1/examples/tooltip-viewport/tooltip-viewport.js b/site/docs/4.1/examples/tooltip-viewport/tooltip-viewport.js deleted file mode 100644 index dc75e18c63..0000000000 --- a/site/docs/4.1/examples/tooltip-viewport/tooltip-viewport.js +++ /dev/null @@ -1,32 +0,0 @@ -$(function () { - 'use strict' - - $('.tooltip-right').tooltip({ - placement: 'right', - viewport: { - selector: 'body', - padding: 2 - } - }) - $('.tooltip-bottom').tooltip({ - placement: 'bottom', - viewport: { - selector: 'body', - padding: 2 - } - }) - $('.tooltip-viewport-right').tooltip({ - placement: 'right', - viewport: { - selector: '.container-viewport', - padding: 2 - } - }) - $('.tooltip-viewport-bottom').tooltip({ - placement: 'bottom', - viewport: { - selector: '.container-viewport', - padding: 2 - } - }) -})