From c5dbd6d20a68eddc899b846a168b6a71a98ded8a Mon Sep 17 00:00:00 2001 From: Andrei Bulearca Date: Tue, 24 Dec 2019 14:23:27 +0200 Subject: [PATCH 01/11] custom class for popover - bootstrap v3 --- Gruntfile.js | 3 +- bootstrap-v3/popover/demo/demo.css | 88 ++++++++++++++ bootstrap-v3/popover/demo/demo.js | 9 ++ bootstrap-v3/popover/demo/demo.scss | 64 ++++++++++ bootstrap-v3/popover/demo/index.html | 109 ++++++++++++++++++ .../css/bootstrap-popover-custom-class.css | 33 ++++++ .../bootstrap-popover-custom-class.min.css | 12 ++ ...bootstrap-popover-custom-class.min.css.map | 14 +++ .../dist/js/bootstrap-popover-custom-class.js | 35 ++++++ .../js/bootstrap-popover-custom-class.min.js | 10 ++ .../src/js/bootstrap-popover-custom-class.js | 26 +++++ .../less/bootstrap-popover-custom-class.less | 3 + bootstrap-v3/popover/src/less/main.less | 2 + bootstrap-v3/popover/src/less/mixin.less | 10 ++ bootstrap-v3/popover/src/less/popovers.less | 23 ++++ bootstrap-v3/popover/src/less/variables.less | 17 +++ bootstrap-v3/popover/src/scss/_mixin.scss | 10 ++ bootstrap-v3/popover/src/scss/_popovers.scss | 23 ++++ bootstrap-v3/popover/src/scss/_variables.scss | 17 +++ .../scss/bootstrap-popover-custom-class.scss | 3 + bootstrap-v3/popover/src/scss/main.scss | 2 + bootstrap-v3/src/less/main.less | 2 - bootstrap-v3/src/scss/main.scss | 2 - bootstrap-v3/{ => tooltip}/demo/demo.css | 0 bootstrap-v3/{ => tooltip}/demo/demo.js | 0 bootstrap-v3/{ => tooltip}/demo/demo.scss | 2 +- bootstrap-v3/{ => tooltip}/demo/index.html | 0 .../css/bootstrap-tooltip-custom-class.css | 0 .../bootstrap-tooltip-custom-class.min.css | 0 ...bootstrap-tooltip-custom-class.min.css.map | 0 .../dist/js/bootstrap-tooltip-custom-class.js | 0 .../js/bootstrap-tooltip-custom-class.min.js | 0 .../src/js/bootstrap-tooltip-custom-class.js | 0 .../less/bootstrap-tooltip-custom-class.less | 0 bootstrap-v3/tooltip/src/less/main.less | 2 + .../{ => tooltip}/src/less/mixin.less | 0 .../{ => tooltip}/src/less/tooltips.less | 0 .../{ => tooltip}/src/less/variables.less | 0 .../{ => tooltip}/src/scss/_mixin.scss | 0 .../{ => tooltip}/src/scss/_tooltips.scss | 1 + .../{ => tooltip}/src/scss/_variables.scss | 0 .../scss/bootstrap-tooltip-custom-class.scss | 0 bootstrap-v3/tooltip/src/scss/main.scss | 2 + grunt/clean.js | 2 +- grunt/copy.js | 4 +- grunt/eslint.js | 2 +- grunt/less.js | 19 +-- grunt/project-map.js | 22 +++- grunt/sass.js | 12 +- grunt/uglify.js | 4 +- grunt/usebanner.js | 4 +- 51 files changed, 562 insertions(+), 31 deletions(-) create mode 100644 bootstrap-v3/popover/demo/demo.css create mode 100644 bootstrap-v3/popover/demo/demo.js create mode 100644 bootstrap-v3/popover/demo/demo.scss create mode 100644 bootstrap-v3/popover/demo/index.html create mode 100644 bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css create mode 100644 bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css create mode 100644 bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map create mode 100644 bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js create mode 100644 bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js create mode 100644 bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js create mode 100644 bootstrap-v3/popover/src/less/bootstrap-popover-custom-class.less create mode 100644 bootstrap-v3/popover/src/less/main.less create mode 100644 bootstrap-v3/popover/src/less/mixin.less create mode 100644 bootstrap-v3/popover/src/less/popovers.less create mode 100644 bootstrap-v3/popover/src/less/variables.less create mode 100644 bootstrap-v3/popover/src/scss/_mixin.scss create mode 100644 bootstrap-v3/popover/src/scss/_popovers.scss create mode 100644 bootstrap-v3/popover/src/scss/_variables.scss create mode 100644 bootstrap-v3/popover/src/scss/bootstrap-popover-custom-class.scss create mode 100644 bootstrap-v3/popover/src/scss/main.scss delete mode 100644 bootstrap-v3/src/less/main.less delete mode 100644 bootstrap-v3/src/scss/main.scss rename bootstrap-v3/{ => tooltip}/demo/demo.css (100%) rename bootstrap-v3/{ => tooltip}/demo/demo.js (100%) rename bootstrap-v3/{ => tooltip}/demo/demo.scss (91%) rename bootstrap-v3/{ => tooltip}/demo/index.html (100%) rename bootstrap-v3/{ => tooltip}/dist/css/bootstrap-tooltip-custom-class.css (100%) rename bootstrap-v3/{ => tooltip}/dist/css/bootstrap-tooltip-custom-class.min.css (100%) rename bootstrap-v3/{ => tooltip}/dist/css/bootstrap-tooltip-custom-class.min.css.map (100%) rename bootstrap-v3/{ => tooltip}/dist/js/bootstrap-tooltip-custom-class.js (100%) rename bootstrap-v3/{ => tooltip}/dist/js/bootstrap-tooltip-custom-class.min.js (100%) rename bootstrap-v3/{ => tooltip}/src/js/bootstrap-tooltip-custom-class.js (100%) rename bootstrap-v3/{ => tooltip}/src/less/bootstrap-tooltip-custom-class.less (100%) create mode 100644 bootstrap-v3/tooltip/src/less/main.less rename bootstrap-v3/{ => tooltip}/src/less/mixin.less (100%) rename bootstrap-v3/{ => tooltip}/src/less/tooltips.less (100%) rename bootstrap-v3/{ => tooltip}/src/less/variables.less (100%) rename bootstrap-v3/{ => tooltip}/src/scss/_mixin.scss (100%) rename bootstrap-v3/{ => tooltip}/src/scss/_tooltips.scss (99%) rename bootstrap-v3/{ => tooltip}/src/scss/_variables.scss (100%) rename bootstrap-v3/{ => tooltip}/src/scss/bootstrap-tooltip-custom-class.scss (100%) create mode 100644 bootstrap-v3/tooltip/src/scss/main.scss diff --git a/Gruntfile.js b/Gruntfile.js index 1f47d2b..0f9bd87 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -17,8 +17,7 @@ module.exports = function(grunt) { ' * <%= pkg.description %>\n' + ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> - <%= pkg.homepage %>\n' + ' * License: <%= pkg.license %>\n' + - ' */\n\n', - filename : 'bootstrap-tooltip-custom-class' + ' */\n\n' }, sass: sassConfig, less: lessConfig, diff --git a/bootstrap-v3/popover/demo/demo.css b/bootstrap-v3/popover/demo/demo.css new file mode 100644 index 0000000..3dba4b0 --- /dev/null +++ b/bootstrap-v3/popover/demo/demo.css @@ -0,0 +1,88 @@ +.popover-primary .popover-title { + background: #337ab7; + color: #fff; +} + +.popover-success .popover-title { + background: #5cb85c; + color: #fff; +} + +.popover-info .popover-title { + background: #5bc0de; + color: #fff; +} + +.popover-warning .popover-title { + background: #f0ad4e; + color: #fff; +} + +.popover-danger .popover-title { + background: #d9534f; + color: #fff; +} + +.popover-custom .popover-title { + background: #f2653c; + color: #ffffff; +} + +.popover-custom-alt .popover-title { + background: #5b2da3; + color: #ffffff; +} + +body { + padding-top: 50px; +} + +#topnav { + z-index: 1061; +} + +#topnav .navbar-header { + float: left; +} + +#topnav .navbar-right { + float: right !important; + margin: 0 -15px 0 0; +} + +@media (max-width: 340px) { + #topnav .navbar-brand { + font-size: 14px; + } +} + +#topnav .navbar-nav > li > a { + padding-top: 11px; + padding-bottom: 11px; +} + +#topnav .navbar-nav > li > a > i { + font-size: 26px; +} + +.bs-example { + position: relative; + margin: 15px; + padding: 15px 15px 25px; + border: 1px solid #ddd; + border-radius: 4px 4px 0 0; +} + +.bs-example .btn { + margin: 5px; +} + +.bs-example__title { + margin-bottom: 20px; +} + +.bs-example--static .popover { + position: relative; + display: inline-block; + margin: 20px; +} diff --git a/bootstrap-v3/popover/demo/demo.js b/bootstrap-v3/popover/demo/demo.js new file mode 100644 index 0000000..123383b --- /dev/null +++ b/bootstrap-v3/popover/demo/demo.js @@ -0,0 +1,9 @@ +$(document).ready(function(){ + $('.btn-default').popover(); + $('.btn-custom').popover({ + customClass: 'popover-custom' + }); + $('.btn-custom-alt').popover({ + customClass: 'popover-custom-alt' + }); +}); diff --git a/bootstrap-v3/popover/demo/demo.scss b/bootstrap-v3/popover/demo/demo.scss new file mode 100644 index 0000000..926a6ed --- /dev/null +++ b/bootstrap-v3/popover/demo/demo.scss @@ -0,0 +1,64 @@ +@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables"; +@import "../src/scss/bootstrap-popover-custom-class"; + +.popover-custom { + @include popover-custom(#f2653c, #ffffff); +} + +.popover-custom-alt { + @include popover-custom(#5b2da3, #ffffff); +} + +//== Demo layout +// +//## +body { + padding-top: 50px; +} + +#topnav { + z-index: ($zindex-popover + 1); + + .navbar-header { + float: left; + } + .navbar-right { + float: right !important; + margin: 0 -15px 0 0; + } + @media (max-width: 340px) { + .navbar-brand { + font-size: $font-size-base; + } + } + + .navbar-nav>li>a { + padding-top: 11px; + padding-bottom: 11px; + } + + .navbar-nav>li>a>i { + font-size: 26px; + } +} + +.bs-example { + position: relative; + margin: 15px; + padding: 15px 15px 25px; + border: 1px solid #ddd; + border-radius: 4px 4px 0 0; +} +.bs-example .btn { + margin: 5px; +} + +.bs-example__title { + margin-bottom: 20px; +} + +.bs-example--static .popover { + position: relative; + display: inline-block; + margin: 20px; +} diff --git a/bootstrap-v3/popover/demo/index.html b/bootstrap-v3/popover/demo/index.html new file mode 100644 index 0000000..d2beabd --- /dev/null +++ b/bootstrap-v3/popover/demo/index.html @@ -0,0 +1,109 @@ + + + + + Bootstrap Tooltip Custom Class + + + + + + + + + + + +
+
+

Static examples

+
+
+
+

Popover primary example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+

Popover success example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+

Popover info example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+

Popover warning example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+

Popover danger example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+
+
+

Popover custom example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+

Popover custom alt example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+
+

Dinamic examples

+
+ + + + + +
+
+ + +
+
+
+ + + + + + + + diff --git a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css new file mode 100644 index 0000000..476450d --- /dev/null +++ b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css @@ -0,0 +1,33 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +.popover-primary .popover-title { + background: #337ab7; + color: #fff; +} + +.popover-success .popover-title { + background: #5cb85c; + color: #fff; +} + +.popover-info .popover-title { + background: #5bc0de; + color: #fff; +} + +.popover-warning .popover-title { + background: #f0ad4e; + color: #fff; +} + +.popover-danger .popover-title { + background: #d9534f; + color: #fff; +} diff --git a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css new file mode 100644 index 0000000..25d4c6d --- /dev/null +++ b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css @@ -0,0 +1,12 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +.popover-primary .popover-title{background:#337ab7;color:#fff}.popover-success .popover-title{background:#5cb85c;color:#fff}.popover-info .popover-title{background:#5bc0de;color:#fff}.popover-warning .popover-title{background:#f0ad4e;color:#fff}.popover-danger .popover-title{background:#d9534f;color:#fff} + +/*# sourceMappingURL=bootstrap-popover-custom-class.min.css.map */ \ No newline at end of file diff --git a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map new file mode 100644 index 0000000..cf5ffce --- /dev/null +++ b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map @@ -0,0 +1,14 @@ +{ + "version": 3, + "file": "bootstrap-popover-custom-class.min.css", + "sources": [ + "../../src/scss/main.scss", + "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss", + "../../src/scss/bootstrap-popover-custom-class.scss", + "../../src/scss/_variables.scss", + "../../src/scss/_mixin.scss", + "../../src/scss/_popovers.scss" + ], + "names": [], + "mappings": "AKGA,ADEE,gBCFc,CDEd,cAAc,AAAC,CACb,UAAU,CHWU,OAAqB,CGVzC,KAAK,CDSsB,IAAI,CCRhC,ACDH,ADFE,gBCEc,CDFd,cAAc,AAAC,CACb,UAAU,CHYU,OAAO,CGX3B,KAAK,CDSsB,IAAI,CCRhC,ACGH,ADNE,aCMW,CDNX,cAAc,AAAC,CACb,UAAU,CHaU,OAAO,CGZ3B,KAAK,CDSsB,IAAI,CCRhC,ACOH,ADVE,gBCUc,CDVd,cAAc,AAAC,CACb,UAAU,CHcU,OAAO,CGb3B,KAAK,CDSsB,IAAI,CCRhC,ACWH,ADdE,eCca,CDdb,cAAc,AAAC,CACb,UAAU,CHeU,OAAO,CGd3B,KAAK,CDSsB,IAAI,CCRhC" +} \ No newline at end of file diff --git a/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js new file mode 100644 index 0000000..3187d62 --- /dev/null +++ b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js @@ -0,0 +1,35 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +(function ($) { + + if (typeof $.fn.tooltip.Constructor === 'undefined') { + throw new Error('Bootstrap Tooltip must be included first!'); + } + + if (typeof $.fn.popover.Constructor === 'undefined') { + throw new Error('Bootstrap Popover must be included first!'); + } + + var Tooltip = $.fn.tooltip.Constructor; + + if (typeof Tooltip.DEFAULTS.customClass === 'undefined') { + // eslint-disable-next-line max-len + throw new Error('BootstrapPopoverCustomClass requires BootstrapTooltipCustomClass'); + } + + var Popover = $.fn.popover.Constructor; + + $.extend(Popover.DEFAULTS, { + customClass: '' + }); + + Popover.prototype.show = Tooltip.prototype.show; + +})(window.jQuery); diff --git a/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js new file mode 100644 index 0000000..07799aa --- /dev/null +++ b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js @@ -0,0 +1,10 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +!function(o){if(void 0===o.fn.tooltip.Constructor)throw new Error("Bootstrap Tooltip must be included first!");if(void 0===o.fn.popover.Constructor)throw new Error("Bootstrap Popover must be included first!");var t=o.fn.tooltip.Constructor;if(void 0===t.DEFAULTS.customClass)throw new Error("BootstrapPopoverCustomClass requires BootstrapTooltipCustomClass");var r=o.fn.popover.Constructor;o.extend(r.DEFAULTS,{customClass:""}),r.prototype.show=t.prototype.show}(window.jQuery); \ No newline at end of file diff --git a/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js b/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js new file mode 100644 index 0000000..2d3fc0e --- /dev/null +++ b/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js @@ -0,0 +1,26 @@ +(function ($) { + + if (typeof $.fn.tooltip.Constructor === 'undefined') { + throw new Error('Bootstrap Tooltip must be included first!'); + } + + if (typeof $.fn.popover.Constructor === 'undefined') { + throw new Error('Bootstrap Popover must be included first!'); + } + + var Tooltip = $.fn.tooltip.Constructor; + + if (typeof Tooltip.DEFAULTS.customClass === 'undefined') { + // eslint-disable-next-line max-len + throw new Error('BootstrapPopoverCustomClass requires BootstrapTooltipCustomClass'); + } + + var Popover = $.fn.popover.Constructor; + + $.extend(Popover.DEFAULTS, { + customClass: '' + }); + + Popover.prototype.show = Tooltip.prototype.show; + +})(window.jQuery); diff --git a/bootstrap-v3/popover/src/less/bootstrap-popover-custom-class.less b/bootstrap-v3/popover/src/less/bootstrap-popover-custom-class.less new file mode 100644 index 0000000..1bd274f --- /dev/null +++ b/bootstrap-v3/popover/src/less/bootstrap-popover-custom-class.less @@ -0,0 +1,3 @@ +@import "variables.less"; +@import "mixin.less"; +@import "popovers.less"; diff --git a/bootstrap-v3/popover/src/less/main.less b/bootstrap-v3/popover/src/less/main.less new file mode 100644 index 0000000..0d73ad1 --- /dev/null +++ b/bootstrap-v3/popover/src/less/main.less @@ -0,0 +1,2 @@ +@import "../../../node_modules/bootstrap/less/variables.less"; +@import "bootstrap-popover-custom-class.less"; diff --git a/bootstrap-v3/popover/src/less/mixin.less b/bootstrap-v3/popover/src/less/mixin.less new file mode 100644 index 0000000..bbcf634 --- /dev/null +++ b/bootstrap-v3/popover/src/less/mixin.less @@ -0,0 +1,10 @@ +//== Popover Custom Mixin +// +//## + +.popover-custom(@title-bg, @title-color) { + .popover-title { + background: @title-bg; + color: @title-color; + } +} diff --git a/bootstrap-v3/popover/src/less/popovers.less b/bootstrap-v3/popover/src/less/popovers.less new file mode 100644 index 0000000..34508a2 --- /dev/null +++ b/bootstrap-v3/popover/src/less/popovers.less @@ -0,0 +1,23 @@ +//== Styles for predefined Tooltip Custom Classes +// +//## + +.popover-primary { + .popover-custom(@popover-primary-title-bg, @popover-custom-title-color); +} + +.popover-success { + .popover-custom(@popover-success-title-bg, @popover-custom-title-color); +} + +.popover-info { + .popover-custom(@popover-info-title-bg, @popover-custom-title-color); +} + +.popover-warning { + .popover-custom(@popover-warning-title-bg, @popover-custom-title-color); +} + +.popover-danger { + .popover-custom(@popover-danger-title-bg, @popover-custom-title-color); +} diff --git a/bootstrap-v3/popover/src/less/variables.less b/bootstrap-v3/popover/src/less/variables.less new file mode 100644 index 0000000..fb61a2b --- /dev/null +++ b/bootstrap-v3/popover/src/less/variables.less @@ -0,0 +1,17 @@ +//== Define Bootstrap variables for Popover +// +//## + +// +// Popover primary background color +@popover-primary-title-bg: @brand-primary; +// Popover success background color +@popover-success-title-bg: @brand-success; +// Popover info background color +@popover-info-title-bg: @brand-info; +// Popover warning background color +@popover-warning-title-bg: @brand-warning; +// Popover danger background color +@popover-danger-title-bg: @brand-danger; + +@popover-custom-title-color: #fff; diff --git a/bootstrap-v3/popover/src/scss/_mixin.scss b/bootstrap-v3/popover/src/scss/_mixin.scss new file mode 100644 index 0000000..5a91603 --- /dev/null +++ b/bootstrap-v3/popover/src/scss/_mixin.scss @@ -0,0 +1,10 @@ +//== Popover Custom Mixin +// +//## + +@mixin popover-custom($title-bg, $title-color) { + .popover-title { + background: $title-bg; + color: $title-color; + } +} diff --git a/bootstrap-v3/popover/src/scss/_popovers.scss b/bootstrap-v3/popover/src/scss/_popovers.scss new file mode 100644 index 0000000..f0ae5a0 --- /dev/null +++ b/bootstrap-v3/popover/src/scss/_popovers.scss @@ -0,0 +1,23 @@ +//== Styles for predefined Popover Custom Classes +// +//## + +.popover-primary { + @include popover-custom($popover-primary-title-bg, $popover-custom-title-color); +} + +.popover-success { + @include popover-custom($popover-success-title-bg, $popover-custom-title-color); +} + +.popover-info { + @include popover-custom($popover-info-title-bg, $popover-custom-title-color); +} + +.popover-warning { + @include popover-custom($popover-warning-title-bg, $popover-custom-title-color); +} + +.popover-danger { + @include popover-custom($popover-danger-title-bg, $popover-custom-title-color); +} diff --git a/bootstrap-v3/popover/src/scss/_variables.scss b/bootstrap-v3/popover/src/scss/_variables.scss new file mode 100644 index 0000000..ccb3190 --- /dev/null +++ b/bootstrap-v3/popover/src/scss/_variables.scss @@ -0,0 +1,17 @@ +//== Define Bootstrap variables for Popovers +// +//## + +// +// Popover primary background color +$popover-primary-title-bg: $brand-primary !default; +// Popover success background color +$popover-success-title-bg: $brand-success !default; +// Popover info background color +$popover-info-title-bg: $brand-info !default; +// Popover warning background color +$popover-warning-title-bg: $brand-warning !default; +// Popover danger background color +$popover-danger-title-bg: $brand-danger !default; + +$popover-custom-title-color: #fff !default; diff --git a/bootstrap-v3/popover/src/scss/bootstrap-popover-custom-class.scss b/bootstrap-v3/popover/src/scss/bootstrap-popover-custom-class.scss new file mode 100644 index 0000000..12c029f --- /dev/null +++ b/bootstrap-v3/popover/src/scss/bootstrap-popover-custom-class.scss @@ -0,0 +1,3 @@ +@import "variables"; +@import "mixin"; +@import "popovers"; diff --git a/bootstrap-v3/popover/src/scss/main.scss b/bootstrap-v3/popover/src/scss/main.scss new file mode 100644 index 0000000..66c9146 --- /dev/null +++ b/bootstrap-v3/popover/src/scss/main.scss @@ -0,0 +1,2 @@ +@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables"; +@import "bootstrap-popover-custom-class"; diff --git a/bootstrap-v3/src/less/main.less b/bootstrap-v3/src/less/main.less deleted file mode 100644 index 5a99e8b..0000000 --- a/bootstrap-v3/src/less/main.less +++ /dev/null @@ -1,2 +0,0 @@ -@import "../../node_modules/bootstrap/less/variables.less"; -@import "bootstrap-tooltip-custom-class.less"; diff --git a/bootstrap-v3/src/scss/main.scss b/bootstrap-v3/src/scss/main.scss deleted file mode 100644 index 13215d7..0000000 --- a/bootstrap-v3/src/scss/main.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables"; -@import "bootstrap-tooltip-custom-class"; diff --git a/bootstrap-v3/demo/demo.css b/bootstrap-v3/tooltip/demo/demo.css similarity index 100% rename from bootstrap-v3/demo/demo.css rename to bootstrap-v3/tooltip/demo/demo.css diff --git a/bootstrap-v3/demo/demo.js b/bootstrap-v3/tooltip/demo/demo.js similarity index 100% rename from bootstrap-v3/demo/demo.js rename to bootstrap-v3/tooltip/demo/demo.js diff --git a/bootstrap-v3/demo/demo.scss b/bootstrap-v3/tooltip/demo/demo.scss similarity index 91% rename from bootstrap-v3/demo/demo.scss rename to bootstrap-v3/tooltip/demo/demo.scss index 9ee5b85..bfa518a 100644 --- a/bootstrap-v3/demo/demo.scss +++ b/bootstrap-v3/tooltip/demo/demo.scss @@ -1,4 +1,4 @@ -@import "../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables"; +@import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables"; @import "../src/scss/bootstrap-tooltip-custom-class"; .tooltip-custom { diff --git a/bootstrap-v3/demo/index.html b/bootstrap-v3/tooltip/demo/index.html similarity index 100% rename from bootstrap-v3/demo/index.html rename to bootstrap-v3/tooltip/demo/index.html diff --git a/bootstrap-v3/dist/css/bootstrap-tooltip-custom-class.css b/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.css similarity index 100% rename from bootstrap-v3/dist/css/bootstrap-tooltip-custom-class.css rename to bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.css diff --git a/bootstrap-v3/dist/css/bootstrap-tooltip-custom-class.min.css b/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css similarity index 100% rename from bootstrap-v3/dist/css/bootstrap-tooltip-custom-class.min.css rename to bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css diff --git a/bootstrap-v3/dist/css/bootstrap-tooltip-custom-class.min.css.map b/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map similarity index 100% rename from bootstrap-v3/dist/css/bootstrap-tooltip-custom-class.min.css.map rename to bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map diff --git a/bootstrap-v3/dist/js/bootstrap-tooltip-custom-class.js b/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js similarity index 100% rename from bootstrap-v3/dist/js/bootstrap-tooltip-custom-class.js rename to bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js diff --git a/bootstrap-v3/dist/js/bootstrap-tooltip-custom-class.min.js b/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js similarity index 100% rename from bootstrap-v3/dist/js/bootstrap-tooltip-custom-class.min.js rename to bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js diff --git a/bootstrap-v3/src/js/bootstrap-tooltip-custom-class.js b/bootstrap-v3/tooltip/src/js/bootstrap-tooltip-custom-class.js similarity index 100% rename from bootstrap-v3/src/js/bootstrap-tooltip-custom-class.js rename to bootstrap-v3/tooltip/src/js/bootstrap-tooltip-custom-class.js diff --git a/bootstrap-v3/src/less/bootstrap-tooltip-custom-class.less b/bootstrap-v3/tooltip/src/less/bootstrap-tooltip-custom-class.less similarity index 100% rename from bootstrap-v3/src/less/bootstrap-tooltip-custom-class.less rename to bootstrap-v3/tooltip/src/less/bootstrap-tooltip-custom-class.less diff --git a/bootstrap-v3/tooltip/src/less/main.less b/bootstrap-v3/tooltip/src/less/main.less new file mode 100644 index 0000000..ec80b46 --- /dev/null +++ b/bootstrap-v3/tooltip/src/less/main.less @@ -0,0 +1,2 @@ +@import "../../../node_modules/bootstrap/less/variables.less"; +@import "bootstrap-tooltip-custom-class.less"; diff --git a/bootstrap-v3/src/less/mixin.less b/bootstrap-v3/tooltip/src/less/mixin.less similarity index 100% rename from bootstrap-v3/src/less/mixin.less rename to bootstrap-v3/tooltip/src/less/mixin.less diff --git a/bootstrap-v3/src/less/tooltips.less b/bootstrap-v3/tooltip/src/less/tooltips.less similarity index 100% rename from bootstrap-v3/src/less/tooltips.less rename to bootstrap-v3/tooltip/src/less/tooltips.less diff --git a/bootstrap-v3/src/less/variables.less b/bootstrap-v3/tooltip/src/less/variables.less similarity index 100% rename from bootstrap-v3/src/less/variables.less rename to bootstrap-v3/tooltip/src/less/variables.less diff --git a/bootstrap-v3/src/scss/_mixin.scss b/bootstrap-v3/tooltip/src/scss/_mixin.scss similarity index 100% rename from bootstrap-v3/src/scss/_mixin.scss rename to bootstrap-v3/tooltip/src/scss/_mixin.scss diff --git a/bootstrap-v3/src/scss/_tooltips.scss b/bootstrap-v3/tooltip/src/scss/_tooltips.scss similarity index 99% rename from bootstrap-v3/src/scss/_tooltips.scss rename to bootstrap-v3/tooltip/src/scss/_tooltips.scss index db6cb4b..12baf6e 100644 --- a/bootstrap-v3/src/scss/_tooltips.scss +++ b/bootstrap-v3/tooltip/src/scss/_tooltips.scss @@ -1,6 +1,7 @@ //== Styles for predefined Tooltip Custom Classes // //## + .tooltip-primary { @include tooltip-custom($tooltip-primary-bg, $tooltip-color); } diff --git a/bootstrap-v3/src/scss/_variables.scss b/bootstrap-v3/tooltip/src/scss/_variables.scss similarity index 100% rename from bootstrap-v3/src/scss/_variables.scss rename to bootstrap-v3/tooltip/src/scss/_variables.scss diff --git a/bootstrap-v3/src/scss/bootstrap-tooltip-custom-class.scss b/bootstrap-v3/tooltip/src/scss/bootstrap-tooltip-custom-class.scss similarity index 100% rename from bootstrap-v3/src/scss/bootstrap-tooltip-custom-class.scss rename to bootstrap-v3/tooltip/src/scss/bootstrap-tooltip-custom-class.scss diff --git a/bootstrap-v3/tooltip/src/scss/main.scss b/bootstrap-v3/tooltip/src/scss/main.scss new file mode 100644 index 0000000..cac832c --- /dev/null +++ b/bootstrap-v3/tooltip/src/scss/main.scss @@ -0,0 +1,2 @@ +@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables"; +@import "bootstrap-tooltip-custom-class"; diff --git a/grunt/clean.js b/grunt/clean.js index ac8a5a8..f43a4fe 100644 --- a/grunt/clean.js +++ b/grunt/clean.js @@ -2,7 +2,7 @@ const projectMap = require('./project-map.js'); let config = {}; Object.keys(projectMap).forEach(function (project) { - config[project] = [`${projectMap[project]}/dist/**`] + config[project] = [`${projectMap[project].path}/dist/**`] }); module.exports = config; diff --git a/grunt/copy.js b/grunt/copy.js index 8d2bd19..83c8f70 100644 --- a/grunt/copy.js +++ b/grunt/copy.js @@ -5,8 +5,8 @@ Object.keys(projectMap).forEach(function (project) { config[project] = { files: [ { - src: `${projectMap[project]}/src/js/<%= meta.filename %>.js`, - dest: `${projectMap[project]}/dist/js/<%= meta.filename %>.js` + src: `${projectMap[project].path}/src/js/${projectMap[project].filename}.js`, + dest: `${projectMap[project].path}/dist/js/${projectMap[project].filename}.js` } ] } diff --git a/grunt/eslint.js b/grunt/eslint.js index 366a148..7261d45 100644 --- a/grunt/eslint.js +++ b/grunt/eslint.js @@ -6,7 +6,7 @@ Object.keys(projectMap).forEach(function (project) { options: { configFile: './.eslintrc.json', }, - src: [`${projectMap[project]}/src/js/<%= meta.filename %>.js`] + src: [`${projectMap[project].path}/src/js/${projectMap[project].filename}.js`] } }); diff --git a/grunt/less.js b/grunt/less.js index 0fb42d4..58473f7 100644 --- a/grunt/less.js +++ b/grunt/less.js @@ -1,9 +1,14 @@ -let config = { - v3: { - files: { - 'bootstrap-v3/dist/css/<%= meta.filename %>.less.css': 'bootstrap-v3/src/less/main.less' - } - } -}; +const projectMap = require('./project-map.js'); +let config = {}; + +Object.keys(projectMap).forEach(function (project) { + if (project === 'v3Tooltip' || project === 'v3Popover') { + const dest = `${projectMap[project].path}/dist/css/${projectMap[project].filename}.less.css`; + const source = `${projectMap[project].path}/src/less/main.less`; + config[project] = {}; + config[project].files = {}; + config[project].files[dest] = source; + } +}); module.exports = config; diff --git a/grunt/project-map.js b/grunt/project-map.js index 383913d..8e140f9 100644 --- a/grunt/project-map.js +++ b/grunt/project-map.js @@ -1,5 +1,21 @@ +const tooltipFilename = "bootstrap-tooltip-custom-class"; +const popoverFilename = "bootstrap-popover-custom-class"; + module.exports = { - v3: "bootstrap-v3", - v4: "bootstrap-v4", - v4Alpha: "bootstrap-v4-alpha" + v3Tooltip: { + path: "bootstrap-v3/tooltip", + filename: tooltipFilename + }, + v3Popover: { + path: "bootstrap-v3/popover", + filename: popoverFilename + }, + v4: { + path: "bootstrap-v4", + filename: tooltipFilename + }, + v4Alpha: { + path: "bootstrap-v4-alpha", + filename: tooltipFilename + } }; diff --git a/grunt/sass.js b/grunt/sass.js index 36de3a4..b0c31c3 100644 --- a/grunt/sass.js +++ b/grunt/sass.js @@ -15,22 +15,22 @@ Object.keys(projectMap).forEach(function (project) { outputStyle: 'compressed', sourceMap: true }, - src: `${projectMap[project]}/src/scss/main.scss`, - dest: `${projectMap[project]}/dist/css/<%= meta.filename %>.min.css`, + src: `${projectMap[project].path}/src/scss/main.scss`, + dest: `${projectMap[project].path}/dist/css/${projectMap[project].filename}.min.css`, }; config[`${project}Expanded`] = { options: { outputStyle: 'expanded' }, - src: `${projectMap[project]}/src/scss/main.scss`, - dest: `${projectMap[project]}/dist/css/<%= meta.filename %>.css`, + src: `${projectMap[project].path}/src/scss/main.scss`, + dest: `${projectMap[project].path}/dist/css/${projectMap[project].filename}.css`, }; config[`${project}Demo`] = { options: { outputStyle: 'expanded' }, - src: `${projectMap[project]}/demo/demo.scss`, - dest: `${projectMap[project]}/demo/demo.css`, + src: `${projectMap[project].path}/demo/demo.scss`, + dest: `${projectMap[project].path}/demo/demo.css`, }; }); diff --git a/grunt/uglify.js b/grunt/uglify.js index c4a329d..90c1e6d 100644 --- a/grunt/uglify.js +++ b/grunt/uglify.js @@ -3,8 +3,8 @@ let config = {}; Object.keys(projectMap).forEach(function (project) { config[project] = { - src: `${projectMap[project]}/src/js/<%= meta.filename %>.js`, - dest: `${projectMap[project]}/dist/js/<%= meta.filename %>.min.js` + src: `${projectMap[project].path}/src/js/${projectMap[project].filename}.js`, + dest: `${projectMap[project].path}/dist/js/${projectMap[project].filename}.min.js` } }); diff --git a/grunt/usebanner.js b/grunt/usebanner.js index 8095251..805a3b1 100644 --- a/grunt/usebanner.js +++ b/grunt/usebanner.js @@ -9,8 +9,8 @@ Object.keys(projectMap).forEach(function (project) { }, files: { src: [ - `${projectMap[project]}/dist/css/*.css`, - `${projectMap[project]}/dist/js/*.js` + `${projectMap[project].path}/dist/css/*.css`, + `${projectMap[project].path}/dist/js/*.js` ] } } From 4374f8dc399a4e4f405c94d81acb51040055918f Mon Sep 17 00:00:00 2001 From: Andrei Bulearca Date: Tue, 24 Dec 2019 14:44:36 +0200 Subject: [PATCH 02/11] custom class for popover - bootstrap v3 --- bootstrap-v3/popover/demo/index.html | 6 +++--- .../popover/src/js/bootstrap-popover-custom-class.js | 4 ++-- bootstrap-v3/tooltip/demo/index.html | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bootstrap-v3/popover/demo/index.html b/bootstrap-v3/popover/demo/index.html index d2beabd..52d8033 100644 --- a/bootstrap-v3/popover/demo/index.html +++ b/bootstrap-v3/popover/demo/index.html @@ -94,15 +94,15 @@

Dinamic examples

- - + +
- + diff --git a/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js b/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js index 2d3fc0e..0591d06 100644 --- a/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js +++ b/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js @@ -1,10 +1,10 @@ (function ($) { - if (typeof $.fn.tooltip.Constructor === 'undefined') { + if (!$.fn.tooltip) { throw new Error('Bootstrap Tooltip must be included first!'); } - if (typeof $.fn.popover.Constructor === 'undefined') { + if (!$.fn.popover) { throw new Error('Bootstrap Popover must be included first!'); } diff --git a/bootstrap-v3/tooltip/demo/index.html b/bootstrap-v3/tooltip/demo/index.html index 027f6ce..d44c995 100644 --- a/bootstrap-v3/tooltip/demo/index.html +++ b/bootstrap-v3/tooltip/demo/index.html @@ -6,7 +6,7 @@ - + @@ -80,9 +80,9 @@

Dinamic examples

- - - + + + From 244abc3141a18184c32010f8708c68743442a011 Mon Sep 17 00:00:00 2001 From: Andrei Victor Bulearca Date: Sun, 29 Dec 2019 11:58:15 +0200 Subject: [PATCH 03/11] remove custom tooltip dependency --- bootstrap-v3/popover/demo/index.html | 15 +++---- .../css/bootstrap-popover-custom-class.css | 18 ++++---- .../bootstrap-popover-custom-class.min.css | 18 ++++---- ...bootstrap-popover-custom-class.min.css.map | 2 +- .../dist/js/bootstrap-popover-custom-class.js | 43 +++++++++---------- .../js/bootstrap-popover-custom-class.min.js | 20 ++++----- .../src/js/bootstrap-popover-custom-class.js | 23 +++++----- bootstrap-v3/tooltip/src/less/variables.less | 1 - bootstrap-v3/tooltip/src/scss/_variables.scss | 1 - 9 files changed, 68 insertions(+), 73 deletions(-) diff --git a/bootstrap-v3/popover/demo/index.html b/bootstrap-v3/popover/demo/index.html index 52d8033..dc6e64f 100644 --- a/bootstrap-v3/popover/demo/index.html +++ b/bootstrap-v3/popover/demo/index.html @@ -87,22 +87,21 @@

Popover custom alt example

Dinamic examples

- - - - - + + + + +
- - + +
- diff --git a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css index 476450d..5b873fb 100644 --- a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css +++ b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + .popover-primary .popover-title { background: #337ab7; color: #fff; diff --git a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css index 25d4c6d..a8539f4 100644 --- a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css +++ b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + .popover-primary .popover-title{background:#337ab7;color:#fff}.popover-success .popover-title{background:#5cb85c;color:#fff}.popover-info .popover-title{background:#5bc0de;color:#fff}.popover-warning .popover-title{background:#f0ad4e;color:#fff}.popover-danger .popover-title{background:#d9534f;color:#fff} /*# sourceMappingURL=bootstrap-popover-custom-class.min.css.map */ \ No newline at end of file diff --git a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map index cf5ffce..8b61d7f 100644 --- a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map +++ b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map @@ -10,5 +10,5 @@ "../../src/scss/_popovers.scss" ], "names": [], - "mappings": "AKGA,ADEE,gBCFc,CDEd,cAAc,AAAC,CACb,UAAU,CHWU,OAAqB,CGVzC,KAAK,CDSsB,IAAI,CCRhC,ACDH,ADFE,gBCEc,CDFd,cAAc,AAAC,CACb,UAAU,CHYU,OAAO,CGX3B,KAAK,CDSsB,IAAI,CCRhC,ACGH,ADNE,aCMW,CDNX,cAAc,AAAC,CACb,UAAU,CHaU,OAAO,CGZ3B,KAAK,CDSsB,IAAI,CCRhC,ACOH,ADVE,gBCUc,CDVd,cAAc,AAAC,CACb,UAAU,CHcU,OAAO,CGb3B,KAAK,CDSsB,IAAI,CCRhC,ACWH,ADdE,eCca,CDdb,cAAc,AAAC,CACb,UAAU,CHeU,OAAO,CGd3B,KAAK,CDSsB,IAAI,CCRhC" + "mappings": "AKIA,ADCE,gBCDc,CDCd,cAAc,AAAC,CACb,UAAU,CHWU,OAAqB,CGVzC,KAAK,CDSsB,IAAI,CCRhC,ACAH,ADHE,gBCGc,CDHd,cAAc,AAAC,CACb,UAAU,CHYU,OAAO,CGX3B,KAAK,CDSsB,IAAI,CCRhC,ACIH,ADPE,aCOW,CDPX,cAAc,AAAC,CACb,UAAU,CHaU,OAAO,CGZ3B,KAAK,CDSsB,IAAI,CCRhC,ACQH,ADXE,gBCWc,CDXd,cAAc,AAAC,CACb,UAAU,CHcU,OAAO,CGb3B,KAAK,CDSsB,IAAI,CCRhC,ACYH,ADfE,eCea,CDfb,cAAc,AAAC,CACb,UAAU,CHeU,OAAO,CGd3B,KAAK,CDSsB,IAAI,CCRhC" } \ No newline at end of file diff --git a/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js index 3187d62..a185f09 100644 --- a/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js +++ b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js @@ -1,27 +1,16 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - -(function ($) { - - if (typeof $.fn.tooltip.Constructor === 'undefined') { - throw new Error('Bootstrap Tooltip must be included first!'); - } +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ - if (typeof $.fn.popover.Constructor === 'undefined') { - throw new Error('Bootstrap Popover must be included first!'); - } - var Tooltip = $.fn.tooltip.Constructor; +(function ($) { - if (typeof Tooltip.DEFAULTS.customClass === 'undefined') { - // eslint-disable-next-line max-len - throw new Error('BootstrapPopoverCustomClass requires BootstrapTooltipCustomClass'); + if (!$.fn.popover) { + throw new Error('Bootstrap Popover must be included first!'); } var Popover = $.fn.popover.Constructor; @@ -30,6 +19,16 @@ customClass: '' }); - Popover.prototype.show = Tooltip.prototype.show; + var _show = Popover.prototype.show; + + Popover.prototype.show = function () { + + _show.apply(this); + + if (this.options.customClass) { + var $tip = this.tip(); + $tip.addClass(this.options.customClass); + } + }; })(window.jQuery); diff --git a/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js index 07799aa..643aebe 100644 --- a/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js +++ b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js @@ -1,10 +1,10 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - -!function(o){if(void 0===o.fn.tooltip.Constructor)throw new Error("Bootstrap Tooltip must be included first!");if(void 0===o.fn.popover.Constructor)throw new Error("Bootstrap Popover must be included first!");var t=o.fn.tooltip.Constructor;if(void 0===t.DEFAULTS.customClass)throw new Error("BootstrapPopoverCustomClass requires BootstrapTooltipCustomClass");var r=o.fn.popover.Constructor;o.extend(r.DEFAULTS,{customClass:""}),r.prototype.show=t.prototype.show}(window.jQuery); \ No newline at end of file +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +!function(o){if(!o.fn.popover)throw new Error("Bootstrap Popover must be included first!");var t=o.fn.popover.Constructor;o.extend(t.DEFAULTS,{customClass:""});var s=t.prototype.show;t.prototype.show=function(){s.apply(this),this.options.customClass&&this.tip().addClass(this.options.customClass)}}(window.jQuery); \ No newline at end of file diff --git a/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js b/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js index 0591d06..c568dd0 100644 --- a/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js +++ b/bootstrap-v3/popover/src/js/bootstrap-popover-custom-class.js @@ -1,26 +1,25 @@ (function ($) { - if (!$.fn.tooltip) { - throw new Error('Bootstrap Tooltip must be included first!'); - } - if (!$.fn.popover) { throw new Error('Bootstrap Popover must be included first!'); } - var Tooltip = $.fn.tooltip.Constructor; - - if (typeof Tooltip.DEFAULTS.customClass === 'undefined') { - // eslint-disable-next-line max-len - throw new Error('BootstrapPopoverCustomClass requires BootstrapTooltipCustomClass'); - } - var Popover = $.fn.popover.Constructor; $.extend(Popover.DEFAULTS, { customClass: '' }); - Popover.prototype.show = Tooltip.prototype.show; + var _show = Popover.prototype.show; + + Popover.prototype.show = function () { + + _show.apply(this); + + if (this.options.customClass) { + var $tip = this.tip(); + $tip.addClass(this.options.customClass); + } + }; })(window.jQuery); diff --git a/bootstrap-v3/tooltip/src/less/variables.less b/bootstrap-v3/tooltip/src/less/variables.less index 98930d5..360ca4b 100644 --- a/bootstrap-v3/tooltip/src/less/variables.less +++ b/bootstrap-v3/tooltip/src/less/variables.less @@ -2,7 +2,6 @@ // //## -// // Tooltip primary background color @tooltip-primary-bg: @brand-primary; // Tooltip success background color diff --git a/bootstrap-v3/tooltip/src/scss/_variables.scss b/bootstrap-v3/tooltip/src/scss/_variables.scss index 976272c..7a148f0 100644 --- a/bootstrap-v3/tooltip/src/scss/_variables.scss +++ b/bootstrap-v3/tooltip/src/scss/_variables.scss @@ -2,7 +2,6 @@ // //## -// // Tooltip primary background color $tooltip-primary-bg: $brand-primary !default; // Tooltip success background color From 75e84bb031fa77a63b0a37f0db1a6a82dec2e208 Mon Sep 17 00:00:00 2001 From: Andrei Victor Bulearca Date: Sun, 29 Dec 2019 12:08:19 +0200 Subject: [PATCH 04/11] format scss & less code --- bootstrap-v3/popover/src/less/popovers.less | 2 +- bootstrap-v3/popover/src/less/variables.less | 1 - bootstrap-v3/popover/src/scss/_variables.scss | 1 - bootstrap-v4-alpha/src/scss/_mixin.scss | 1 + bootstrap-v4-alpha/src/scss/_tooltips.scss | 1 + bootstrap-v4/src/scss/_mixin.scss | 1 + bootstrap-v4/src/scss/_tooltips.scss | 1 + 7 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bootstrap-v3/popover/src/less/popovers.less b/bootstrap-v3/popover/src/less/popovers.less index 34508a2..dd6ef31 100644 --- a/bootstrap-v3/popover/src/less/popovers.less +++ b/bootstrap-v3/popover/src/less/popovers.less @@ -1,4 +1,4 @@ -//== Styles for predefined Tooltip Custom Classes +//== Styles for predefined Popover Custom Classes // //## diff --git a/bootstrap-v3/popover/src/less/variables.less b/bootstrap-v3/popover/src/less/variables.less index fb61a2b..5f78e9c 100644 --- a/bootstrap-v3/popover/src/less/variables.less +++ b/bootstrap-v3/popover/src/less/variables.less @@ -2,7 +2,6 @@ // //## -// // Popover primary background color @popover-primary-title-bg: @brand-primary; // Popover success background color diff --git a/bootstrap-v3/popover/src/scss/_variables.scss b/bootstrap-v3/popover/src/scss/_variables.scss index ccb3190..67cd032 100644 --- a/bootstrap-v3/popover/src/scss/_variables.scss +++ b/bootstrap-v3/popover/src/scss/_variables.scss @@ -2,7 +2,6 @@ // //## -// // Popover primary background color $popover-primary-title-bg: $brand-primary !default; // Popover success background color diff --git a/bootstrap-v4-alpha/src/scss/_mixin.scss b/bootstrap-v4-alpha/src/scss/_mixin.scss index 8d81e99..6d1823f 100644 --- a/bootstrap-v4-alpha/src/scss/_mixin.scss +++ b/bootstrap-v4-alpha/src/scss/_mixin.scss @@ -1,6 +1,7 @@ //== Tooltip Custom Mixin // //## + @mixin tooltip-custom($bg-color, $color) { .tooltip-inner { diff --git a/bootstrap-v4-alpha/src/scss/_tooltips.scss b/bootstrap-v4-alpha/src/scss/_tooltips.scss index db6cb4b..12baf6e 100644 --- a/bootstrap-v4-alpha/src/scss/_tooltips.scss +++ b/bootstrap-v4-alpha/src/scss/_tooltips.scss @@ -1,6 +1,7 @@ //== Styles for predefined Tooltip Custom Classes // //## + .tooltip-primary { @include tooltip-custom($tooltip-primary-bg, $tooltip-color); } diff --git a/bootstrap-v4/src/scss/_mixin.scss b/bootstrap-v4/src/scss/_mixin.scss index 3aa12de..cc42080 100644 --- a/bootstrap-v4/src/scss/_mixin.scss +++ b/bootstrap-v4/src/scss/_mixin.scss @@ -1,6 +1,7 @@ //== Tooltip Custom Mixin // //## + @mixin tooltip-custom($bg-color, $color) { .tooltip-inner { diff --git a/bootstrap-v4/src/scss/_tooltips.scss b/bootstrap-v4/src/scss/_tooltips.scss index db6cb4b..12baf6e 100644 --- a/bootstrap-v4/src/scss/_tooltips.scss +++ b/bootstrap-v4/src/scss/_tooltips.scss @@ -1,6 +1,7 @@ //== Styles for predefined Tooltip Custom Classes // //## + .tooltip-primary { @include tooltip-custom($tooltip-primary-bg, $tooltip-color); } From f5d261258e3197ec9671759fae93f4175ece5584 Mon Sep 17 00:00:00 2001 From: Andrei Victor Bulearca Date: Sun, 29 Dec 2019 12:14:04 +0200 Subject: [PATCH 05/11] update condition for bootstrap plugin --- bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js | 2 +- .../tooltip/dist/js/bootstrap-tooltip-custom-class.min.js | 2 +- bootstrap-v3/tooltip/src/js/bootstrap-tooltip-custom-class.js | 2 +- bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.js | 2 +- .../dist/js/bootstrap-tooltip-custom-class.min.js | 2 +- bootstrap-v4-alpha/src/js/bootstrap-tooltip-custom-class.js | 2 +- bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.js | 2 +- bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.min.js | 2 +- bootstrap-v4/src/js/bootstrap-tooltip-custom-class.js | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js b/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js index d25f33e..f0c6524 100644 --- a/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js +++ b/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js @@ -9,7 +9,7 @@ (function ($) { - if (typeof $.fn.tooltip.Constructor === 'undefined') { + if (!$.fn.tooltip) { throw new Error('Bootstrap Tooltip must be included first!'); } diff --git a/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js b/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js index a73d4fa..8db727b 100644 --- a/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js +++ b/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js @@ -7,4 +7,4 @@ */ -!function(o){if(void 0===o.fn.tooltip.Constructor)throw new Error("Bootstrap Tooltip must be included first!");var t=o.fn.tooltip.Constructor;o.extend(t.DEFAULTS,{customClass:""});var s=t.prototype.show;t.prototype.show=function(){s.apply(this),this.options.customClass&&this.tip().addClass(this.options.customClass)}}(window.jQuery); \ No newline at end of file +!function(t){if(!t.fn.tooltip)throw new Error("Bootstrap Tooltip must be included first!");var o=t.fn.tooltip.Constructor;t.extend(o.DEFAULTS,{customClass:""});var s=o.prototype.show;o.prototype.show=function(){s.apply(this),this.options.customClass&&this.tip().addClass(this.options.customClass)}}(window.jQuery); \ No newline at end of file diff --git a/bootstrap-v3/tooltip/src/js/bootstrap-tooltip-custom-class.js b/bootstrap-v3/tooltip/src/js/bootstrap-tooltip-custom-class.js index 96652bf..a15339f 100644 --- a/bootstrap-v3/tooltip/src/js/bootstrap-tooltip-custom-class.js +++ b/bootstrap-v3/tooltip/src/js/bootstrap-tooltip-custom-class.js @@ -1,6 +1,6 @@ (function ($) { - if (typeof $.fn.tooltip.Constructor === 'undefined') { + if (!$.fn.tooltip) { throw new Error('Bootstrap Tooltip must be included first!'); } diff --git a/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.js b/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.js index f932631..eed4233 100644 --- a/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.js +++ b/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.js @@ -9,7 +9,7 @@ (function($) { - if (typeof $.fn.tooltip.Constructor === 'undefined') { + if (!$.fn.tooltip) { throw new Error('Bootstrap Tooltip must be included first!'); } diff --git a/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.min.js b/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.min.js index a25b0b5..6af789c 100644 --- a/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.min.js +++ b/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.min.js @@ -7,4 +7,4 @@ */ -!function(o){if(void 0===o.fn.tooltip.Constructor)throw new Error("Bootstrap Tooltip must be included first!");var t=o.fn.tooltip.Constructor;o.extend(t.Default,{customClass:""});var s=t.prototype.show;t.prototype.show=function(){if(s.apply(this),this.config.customClass){var t=this.getTipElement();o(t).addClass(this.config.customClass)}}}(window.jQuery); \ No newline at end of file +!function(o){if(!o.fn.tooltip)throw new Error("Bootstrap Tooltip must be included first!");var t=o.fn.tooltip.Constructor;o.extend(t.Default,{customClass:""});var s=t.prototype.show;t.prototype.show=function(){if(s.apply(this),this.config.customClass){var t=this.getTipElement();o(t).addClass(this.config.customClass)}}}(window.jQuery); \ No newline at end of file diff --git a/bootstrap-v4-alpha/src/js/bootstrap-tooltip-custom-class.js b/bootstrap-v4-alpha/src/js/bootstrap-tooltip-custom-class.js index 66520f9..66f0b7c 100644 --- a/bootstrap-v4-alpha/src/js/bootstrap-tooltip-custom-class.js +++ b/bootstrap-v4-alpha/src/js/bootstrap-tooltip-custom-class.js @@ -1,6 +1,6 @@ (function($) { - if (typeof $.fn.tooltip.Constructor === 'undefined') { + if (!$.fn.tooltip) { throw new Error('Bootstrap Tooltip must be included first!'); } diff --git a/bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.js b/bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.js index 0c5837a..f790f4f 100644 --- a/bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.js +++ b/bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.js @@ -9,7 +9,7 @@ (function($) { - if (typeof $.fn.tooltip.Constructor === 'undefined') { + if (!$.fn.tooltip) { throw new Error('Bootstrap Tooltip must be included first!'); } diff --git a/bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.min.js b/bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.min.js index a25b0b5..6af789c 100644 --- a/bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.min.js +++ b/bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.min.js @@ -7,4 +7,4 @@ */ -!function(o){if(void 0===o.fn.tooltip.Constructor)throw new Error("Bootstrap Tooltip must be included first!");var t=o.fn.tooltip.Constructor;o.extend(t.Default,{customClass:""});var s=t.prototype.show;t.prototype.show=function(){if(s.apply(this),this.config.customClass){var t=this.getTipElement();o(t).addClass(this.config.customClass)}}}(window.jQuery); \ No newline at end of file +!function(o){if(!o.fn.tooltip)throw new Error("Bootstrap Tooltip must be included first!");var t=o.fn.tooltip.Constructor;o.extend(t.Default,{customClass:""});var s=t.prototype.show;t.prototype.show=function(){if(s.apply(this),this.config.customClass){var t=this.getTipElement();o(t).addClass(this.config.customClass)}}}(window.jQuery); \ No newline at end of file diff --git a/bootstrap-v4/src/js/bootstrap-tooltip-custom-class.js b/bootstrap-v4/src/js/bootstrap-tooltip-custom-class.js index f68c147..1d19ff3 100644 --- a/bootstrap-v4/src/js/bootstrap-tooltip-custom-class.js +++ b/bootstrap-v4/src/js/bootstrap-tooltip-custom-class.js @@ -1,6 +1,6 @@ (function($) { - if (typeof $.fn.tooltip.Constructor === 'undefined') { + if (!$.fn.tooltip) { throw new Error('Bootstrap Tooltip must be included first!'); } From b031af407fc7c74256b3121384c65f198be1fbd2 Mon Sep 17 00:00:00 2001 From: Andrei Victor Bulearca Date: Sun, 29 Dec 2019 20:26:44 +0200 Subject: [PATCH 06/11] adding popover custom class for v4 --- bootstrap-v3/popover/demo/index.html | 24 +-- ...bootstrap-tooltip-custom-class.min.css.map | 15 -- bootstrap-v4/popover/demo/demo.css | 140 ++++++++++++++++++ bootstrap-v4/popover/demo/demo.js | 9 ++ bootstrap-v4/popover/demo/demo.scss | 64 ++++++++ bootstrap-v4/popover/demo/index.html | 94 ++++++++++++ .../css/bootstrap-popover-custom-class.css | 73 +++++++++ .../bootstrap-popover-custom-class.min.css | 12 ++ ...bootstrap-popover-custom-class.min.css.map | 15 ++ .../dist/js/bootstrap-popover-custom-class.js | 35 +++++ .../js/bootstrap-popover-custom-class.min.js | 10 ++ .../src/js/bootstrap-popover-custom-class.js | 26 ++++ bootstrap-v4/popover/src/scss/_mixin.scss | 22 +++ bootstrap-v4/popover/src/scss/_popovers.scss | 23 +++ bootstrap-v4/popover/src/scss/_variables.scss | 16 ++ .../scss/bootstrap-popover-custom-class.scss | 3 + bootstrap-v4/popover/src/scss/main.scss | 4 + bootstrap-v4/src/scss/main.scss | 4 - bootstrap-v4/{ => tooltip}/demo/demo.css | 0 bootstrap-v4/{ => tooltip}/demo/demo.js | 0 bootstrap-v4/{ => tooltip}/demo/demo.scss | 4 +- bootstrap-v4/{ => tooltip}/demo/index.html | 8 +- .../css/bootstrap-tooltip-custom-class.css | 0 .../bootstrap-tooltip-custom-class.min.css | 0 ...bootstrap-tooltip-custom-class.min.css.map | 15 ++ .../dist/js/bootstrap-tooltip-custom-class.js | 0 .../js/bootstrap-tooltip-custom-class.min.js | 0 .../src/js/bootstrap-tooltip-custom-class.js | 0 .../{ => tooltip}/src/scss/_mixin.scss | 0 .../{ => tooltip}/src/scss/_tooltips.scss | 0 .../{ => tooltip}/src/scss/_variables.scss | 0 .../scss/bootstrap-tooltip-custom-class.scss | 0 bootstrap-v4/tooltip/src/scss/main.scss | 4 + grunt/project-map.js | 8 +- 34 files changed, 589 insertions(+), 39 deletions(-) delete mode 100644 bootstrap-v4/dist/css/bootstrap-tooltip-custom-class.min.css.map create mode 100644 bootstrap-v4/popover/demo/demo.css create mode 100644 bootstrap-v4/popover/demo/demo.js create mode 100644 bootstrap-v4/popover/demo/demo.scss create mode 100644 bootstrap-v4/popover/demo/index.html create mode 100644 bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.css create mode 100644 bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.min.css create mode 100644 bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.min.css.map create mode 100644 bootstrap-v4/popover/dist/js/bootstrap-popover-custom-class.js create mode 100644 bootstrap-v4/popover/dist/js/bootstrap-popover-custom-class.min.js create mode 100644 bootstrap-v4/popover/src/js/bootstrap-popover-custom-class.js create mode 100644 bootstrap-v4/popover/src/scss/_mixin.scss create mode 100644 bootstrap-v4/popover/src/scss/_popovers.scss create mode 100644 bootstrap-v4/popover/src/scss/_variables.scss create mode 100644 bootstrap-v4/popover/src/scss/bootstrap-popover-custom-class.scss create mode 100644 bootstrap-v4/popover/src/scss/main.scss delete mode 100644 bootstrap-v4/src/scss/main.scss rename bootstrap-v4/{ => tooltip}/demo/demo.css (100%) rename bootstrap-v4/{ => tooltip}/demo/demo.js (100%) rename bootstrap-v4/{ => tooltip}/demo/demo.scss (89%) rename bootstrap-v4/{ => tooltip}/demo/index.html (92%) rename bootstrap-v4/{ => tooltip}/dist/css/bootstrap-tooltip-custom-class.css (100%) rename bootstrap-v4/{ => tooltip}/dist/css/bootstrap-tooltip-custom-class.min.css (100%) create mode 100644 bootstrap-v4/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map rename bootstrap-v4/{ => tooltip}/dist/js/bootstrap-tooltip-custom-class.js (100%) rename bootstrap-v4/{ => tooltip}/dist/js/bootstrap-tooltip-custom-class.min.js (100%) rename bootstrap-v4/{ => tooltip}/src/js/bootstrap-tooltip-custom-class.js (100%) rename bootstrap-v4/{ => tooltip}/src/scss/_mixin.scss (100%) rename bootstrap-v4/{ => tooltip}/src/scss/_tooltips.scss (100%) rename bootstrap-v4/{ => tooltip}/src/scss/_variables.scss (100%) rename bootstrap-v4/{ => tooltip}/src/scss/bootstrap-tooltip-custom-class.scss (100%) create mode 100644 bootstrap-v4/tooltip/src/scss/main.scss diff --git a/bootstrap-v3/popover/demo/index.html b/bootstrap-v3/popover/demo/index.html index dc6e64f..b8860c3 100644 --- a/bootstrap-v3/popover/demo/index.html +++ b/bootstrap-v3/popover/demo/index.html @@ -38,28 +38,28 @@

Popover primary example

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
+

Popover success example

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
+

Popover info example

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
+

Popover warning example

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
+

Popover danger example

@@ -77,7 +77,7 @@

Popover custom example

-

Popover custom alt example

+

Another custom popover

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

@@ -87,15 +87,15 @@

Popover custom alt example

Dinamic examples

- - - - - + + + + +
- - + +
diff --git a/bootstrap-v4/dist/css/bootstrap-tooltip-custom-class.min.css.map b/bootstrap-v4/dist/css/bootstrap-tooltip-custom-class.min.css.map deleted file mode 100644 index eb271ea..0000000 --- a/bootstrap-v4/dist/css/bootstrap-tooltip-custom-class.min.css.map +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 3, - "file": "bootstrap-tooltip-custom-class.min.css", - "sources": [ - "../../src/scss/main.scss", - "../../node_modules/bootstrap/scss/_functions.scss", - "../../node_modules/bootstrap/scss/_variables.scss", - "../../src/scss/bootstrap-tooltip-custom-class.scss", - "../../src/scss/_variables.scss", - "../../src/scss/_mixin.scss", - "../../src/scss/_tooltips.scss" - ], - "names": [], - "mappings": "AMGA,ADEE,gBCFc,CDEd,cAAc,AAAC,CACb,gBAAgB,CH8BV,OAAO,CG7Bb,KAAK,CHAE,IAAI,CGCZ,ACLH,ADOE,gBCPc,ADOb,eAAe,CAAC,MAAM,AAAA,OAAO,AAAC,CAC7B,gBAAgB,CHyBV,OAAO,CGxBd,ACTH,ADWE,gBCXc,ADWb,iBAAiB,CAAC,MAAM,AAAA,OAAO,AAAC,CAC/B,kBAAkB,CHqBZ,OAAO,CGpBd,ACbH,ADeE,gBCfc,ADeb,gBAAgB,CAAC,MAAM,AAAA,OAAO,AAAC,CAC9B,iBAAiB,CHiBX,OAAO,CGhBd,ACjBH,ADmBE,gBCnBc,ADmBb,kBAAkB,CAAC,MAAM,AAAA,OAAO,AAAC,CAChC,mBAAmB,CHab,OAAO,CGZd,ACjBH,ADFE,gBCEc,CDFd,cAAc,AAAC,CACb,gBAAgB,CHqCV,OAAO,CGpCb,KAAK,CHAE,IAAI,CGCZ,ACDH,ADGE,gBCHc,ADGb,eAAe,CAAC,MAAM,AAAA,OAAO,AAAC,CAC7B,gBAAgB,CHgCV,OAAO,CG/Bd,ACLH,ADOE,gBCPc,ADOb,iBAAiB,CAAC,MAAM,AAAA,OAAO,AAAC,CAC/B,kBAAkB,CH4BZ,OAAO,CG3Bd,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HkCV,OAAO,CGjCb,KAAK,CHAE,IAAI,CGCZ,ACWH,ADTE,eCSa,ADTZ,eAAe,CAAC,MAAM,AAAA,OAAO,AAAC,CAC7B,gBAAgB,CH6BV,OAAO,CG5Bd,ACOH,ADLE,eCKa,ADLZ,iBAAiB,CAAC,MAAM,AAAA,OAAO,AAAC,CAC/B,kBAAkB,CHyBZ,OAAO,CGxBd,ACGH,ADDE,eCCa,ADDZ,gBAAgB,CAAC,MAAM,AAAA,OAAO,AAAC,CAC9B,iBAAiB,CHqBX,OAAO,CGpBd,ACDH,ADGE,eCHa,ADGZ,kBAAkB,CAAC,MAAM,AAAA,OAAO,AAAC,CAChC,mBAAmB,CHiBb,OAAO,CGhBd" -} \ No newline at end of file diff --git a/bootstrap-v4/popover/demo/demo.css b/bootstrap-v4/popover/demo/demo.css new file mode 100644 index 0000000..3e3ddf2 --- /dev/null +++ b/bootstrap-v4/popover/demo/demo.css @@ -0,0 +1,140 @@ +.popover-primary .popover-header { + background: #007bff; + color: #fff; +} + +.popover-primary.bs-popover-bottom .popover-header::before, .popover-primary.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-primary.bs-popover-bottom > .arrow::after, .popover-primary.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #007bff; +} + +.popover-success .popover-header { + background: #28a745; + color: #fff; +} + +.popover-success.bs-popover-bottom .popover-header::before, .popover-success.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-success.bs-popover-bottom > .arrow::after, .popover-success.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #28a745; +} + +.popover-info .popover-header { + background: #17a2b8; + color: #fff; +} + +.popover-info.bs-popover-bottom .popover-header::before, .popover-info.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-info.bs-popover-bottom > .arrow::after, .popover-info.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #17a2b8; +} + +.popover-warning .popover-header { + background: #ffc107; + color: #fff; +} + +.popover-warning.bs-popover-bottom .popover-header::before, .popover-warning.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-warning.bs-popover-bottom > .arrow::after, .popover-warning.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #ffc107; +} + +.popover-danger .popover-header { + background: #dc3545; + color: #fff; +} + +.popover-danger.bs-popover-bottom .popover-header::before, .popover-danger.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-danger.bs-popover-bottom > .arrow::after, .popover-danger.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #dc3545; +} + +.popover-custom .popover-header { + background: #f2653c; + color: #ffffff; +} + +.popover-custom.bs-popover-bottom .popover-header::before, .popover-custom.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-custom.bs-popover-bottom > .arrow::after, .popover-custom.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #f2653c; +} + +.popover-custom-alt .popover-header { + background: #5b2da3; + color: #ffffff; +} + +.popover-custom-alt.bs-popover-bottom .popover-header::before, .popover-custom-alt.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-custom-alt.bs-popover-bottom > .arrow::after, .popover-custom-alt.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #5b2da3; +} + +body { + padding-top: 4.5rem; +} + +#topnav { + z-index: 1061; +} + +#topnav .nav-link > i { + font-size: 26px; +} + +@media (max-width: 390px) { + #topnav .navbar-brand { + font-size: 1rem; + } +} + +.bs-example { + position: relative; + margin: 15px; + padding: 15px 15px 25px; + border: 1px solid #ddd; + border-radius: 4px 4px 0 0; +} + +.bs-example .btn { + margin: 5px; +} + +.bs-example__title { + margin-bottom: 20px; +} + +.bs-example--static .popover { + display: inline-block; + position: relative; + margin: 10px 20px; +} + +.bs-example--static .bs-popover-top .arrow, +.bs-example--static .bs-popover-bottom .arrow { + left: calc(50% - 1rem/2 - 0.3rem); +} + +.bs-example--static .bs-popover-right .arrow, +.bs-example--static .bs-popover-left .arrow { + top: calc(50% - 0.5rem/2 - 0.3rem); +} diff --git a/bootstrap-v4/popover/demo/demo.js b/bootstrap-v4/popover/demo/demo.js new file mode 100644 index 0000000..c88c583 --- /dev/null +++ b/bootstrap-v4/popover/demo/demo.js @@ -0,0 +1,9 @@ +$(document).ready(function(){ + $('.btn-secondary').popover(); + $('.btn-custom').popover({ + customClass: 'popover-custom' + }); + $('.btn-custom-alt').popover({ + customClass: 'popover-custom-alt' + }); +}); diff --git a/bootstrap-v4/popover/demo/demo.scss b/bootstrap-v4/popover/demo/demo.scss new file mode 100644 index 0000000..d4ff64b --- /dev/null +++ b/bootstrap-v4/popover/demo/demo.scss @@ -0,0 +1,64 @@ +@import "../../node_modules/bootstrap/scss/functions"; +@import "../../node_modules/bootstrap/scss/variables"; +@import "../src/scss/bootstrap-popover-custom-class"; + +.popover-custom { + @include popover-custom(#f2653c, #ffffff); +} + +.popover-custom-alt { + @include popover-custom(#5b2da3, #ffffff); +} + +//== Demo layout +// +//## +body { + padding-top: 4.5rem; +} + +#topnav { + z-index: ($zindex-popover + 1); + + .nav-link > i { + font-size: 26px; + } + + @media (max-width: 390px) { + .navbar-brand { + font-size: $font-size-base; + } + } +} + +.bs-example { + position: relative; + margin: 15px; + padding: 15px 15px 25px; + border: 1px solid #ddd; + border-radius: 4px 4px 0 0; +} +.bs-example .btn { + margin: 5px; +} + +.bs-example__title { + margin-bottom: 20px; +} + +.bs-example--static .popover { + display: inline-block; + position: relative; + margin: 10px 20px; +} + +.bs-example--static .bs-popover-top .arrow, +.bs-example--static .bs-popover-bottom .arrow { + left: calc(50% - #{$popover-arrow-width}/2 - #{$border-radius-lg}); +} + +.bs-example--static .bs-popover-right .arrow, +.bs-example--static .bs-popover-left .arrow { + top: calc(50% - #{$popover-arrow-height}/2 - #{$border-radius-lg}); +} + diff --git a/bootstrap-v4/popover/demo/index.html b/bootstrap-v4/popover/demo/index.html new file mode 100644 index 0000000..fb7c1ec --- /dev/null +++ b/bootstrap-v4/popover/demo/index.html @@ -0,0 +1,94 @@ + + + + + Bootstrap v4 Tooltip Custom Classes + + + + + + + + + + + +
+
+

Static examples

+
+ + + + + +
+
+ + +
+
+ +
+

Dinamic examples

+
+ + + + + +
+
+ + +
+
+
+ + + + + + + + diff --git a/bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.css b/bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.css new file mode 100644 index 0000000..fbd1d20 --- /dev/null +++ b/bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.css @@ -0,0 +1,73 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +.popover-primary .popover-header { + background: #007bff; + color: #fff; +} + +.popover-primary.bs-popover-bottom .popover-header::before, .popover-primary.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-primary.bs-popover-bottom > .arrow::after, .popover-primary.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #007bff; +} + +.popover-success .popover-header { + background: #28a745; + color: #fff; +} + +.popover-success.bs-popover-bottom .popover-header::before, .popover-success.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-success.bs-popover-bottom > .arrow::after, .popover-success.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #28a745; +} + +.popover-info .popover-header { + background: #17a2b8; + color: #fff; +} + +.popover-info.bs-popover-bottom .popover-header::before, .popover-info.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-info.bs-popover-bottom > .arrow::after, .popover-info.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #17a2b8; +} + +.popover-warning .popover-header { + background: #ffc107; + color: #fff; +} + +.popover-warning.bs-popover-bottom .popover-header::before, .popover-warning.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-warning.bs-popover-bottom > .arrow::after, .popover-warning.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #ffc107; +} + +.popover-danger .popover-header { + background: #dc3545; + color: #fff; +} + +.popover-danger.bs-popover-bottom .popover-header::before, .popover-danger.bs-popover-auto[x-placement^="bottom"] .popover-header::before { + display: none; +} + +.popover-danger.bs-popover-bottom > .arrow::after, .popover-danger.bs-popover-auto[x-placement^="bottom"] > .arrow::after { + border-bottom-color: #dc3545; +} diff --git a/bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.min.css b/bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.min.css new file mode 100644 index 0000000..d7bdd63 --- /dev/null +++ b/bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.min.css @@ -0,0 +1,12 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +.popover-primary .popover-header{background:#007bff;color:#fff}.popover-primary.bs-popover-bottom .popover-header::before,.popover-primary.bs-popover-auto[x-placement^="bottom"] .popover-header::before{display:none}.popover-primary.bs-popover-bottom>.arrow::after,.popover-primary.bs-popover-auto[x-placement^="bottom"]>.arrow::after{border-bottom-color:#007bff}.popover-success .popover-header{background:#28a745;color:#fff}.popover-success.bs-popover-bottom .popover-header::before,.popover-success.bs-popover-auto[x-placement^="bottom"] .popover-header::before{display:none}.popover-success.bs-popover-bottom>.arrow::after,.popover-success.bs-popover-auto[x-placement^="bottom"]>.arrow::after{border-bottom-color:#28a745}.popover-info .popover-header{background:#17a2b8;color:#fff}.popover-info.bs-popover-bottom .popover-header::before,.popover-info.bs-popover-auto[x-placement^="bottom"] .popover-header::before{display:none}.popover-info.bs-popover-bottom>.arrow::after,.popover-info.bs-popover-auto[x-placement^="bottom"]>.arrow::after{border-bottom-color:#17a2b8}.popover-warning .popover-header{background:#ffc107;color:#fff}.popover-warning.bs-popover-bottom .popover-header::before,.popover-warning.bs-popover-auto[x-placement^="bottom"] .popover-header::before{display:none}.popover-warning.bs-popover-bottom>.arrow::after,.popover-warning.bs-popover-auto[x-placement^="bottom"]>.arrow::after{border-bottom-color:#ffc107}.popover-danger .popover-header{background:#dc3545;color:#fff}.popover-danger.bs-popover-bottom .popover-header::before,.popover-danger.bs-popover-auto[x-placement^="bottom"] .popover-header::before{display:none}.popover-danger.bs-popover-bottom>.arrow::after,.popover-danger.bs-popover-auto[x-placement^="bottom"]>.arrow::after{border-bottom-color:#dc3545} + +/*# sourceMappingURL=bootstrap-popover-custom-class.min.css.map */ \ No newline at end of file diff --git a/bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.min.css.map b/bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.min.css.map new file mode 100644 index 0000000..af7a153 --- /dev/null +++ b/bootstrap-v4/popover/dist/css/bootstrap-popover-custom-class.min.css.map @@ -0,0 +1,15 @@ +{ + "version": 3, + "file": "bootstrap-popover-custom-class.min.css", + "sources": [ + "../../src/scss/main.scss", + "../../../node_modules/bootstrap/scss/_functions.scss", + "../../../node_modules/bootstrap/scss/_variables.scss", + "../../src/scss/bootstrap-popover-custom-class.scss", + "../../src/scss/_variables.scss", + "../../src/scss/_mixin.scss", + "../../src/scss/_popovers.scss" + ], + "names": [], + "mappings": "AMIA,ADCE,gBCDc,CDCd,eAAe,AAAC,CACd,UAAU,CH8BJ,OAAO,CG7Bb,KAAK,CDQ2B,IAAI,CCPrC,ACJH,ADSI,gBCTY,ADOb,kBAAkB,CAEjB,eAAe,AAAA,QAAQ,CCT3B,gBAAgB,ADQb,gBAAgB,CAAA,AAAA,WAAC,EAAa,QAAQ,AAArB,EAChB,eAAe,AAAA,QAAQ,AAAC,CACtB,OAAO,CAAE,IAA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CPrC,ACQH,ADHI,gBCGY,ADLb,kBAAkB,CAEjB,eAAe,AAAA,QAAQ,CCG3B,gBAAgB,ADJb,gBAAgB,CAAA,AAAA,WAAC,EAAa,QAAQ,AAArB,EAChB,eAAe,AAAA,QAAQ,AAAC,CACtB,OAAO,CAAE,IAAI,CACd,ACCL,ADCI,gBCDY,ADLb,kBAAkB,CAMf,MAAM,AAAA,OAAO,CCDnB,gBAAgB,ADJb,gBAAgB,CAAA,AAAA,WAAC,EAAa,QAAQ,AAArB,EAKd,MAAM,AAAA,OAAO,AAAC,CACd,mBAAmB,CHwBf,OAAO,CGvBZ,ACCL,ADfE,eCea,CDfb,eAAe,AAAC,CACd,UAAU,CHkCJ,OAAO,CGjCb,KAAK,CDQ2B,IAAI,CCPrC,ACYH,ADPI,eCOW,ADTZ,kBAAkB,CAEjB,eAAe,AAAA,QAAQ,CCO3B,eAAe,ADRZ,gBAAgB,CAAA,AAAA,WAAC,EAAa,QAAQ,AAArB,EAChB,eAAe,AAAA,QAAQ,AAAC,CACtB,OAAO,CAAE,IAAI,CACd,ACKL,ADHI,eCGW,ADTZ,kBAAkB,CAMf,MAAM,AAAA,OAAO,CCGnB,eAAe,ADRZ,gBAAgB,CAAA,AAAA,WAAC,EAAa,QAAQ,AAArB,EAKd,MAAM,AAAA,OAAO,AAAC,CACd,mBAAmB,CHsBf,OAAO,CGrBZ" +} \ No newline at end of file diff --git a/bootstrap-v4/popover/dist/js/bootstrap-popover-custom-class.js b/bootstrap-v4/popover/dist/js/bootstrap-popover-custom-class.js new file mode 100644 index 0000000..0d65154 --- /dev/null +++ b/bootstrap-v4/popover/dist/js/bootstrap-popover-custom-class.js @@ -0,0 +1,35 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +(function($) { + + if (!$.fn.popover) { + throw new Error('Bootstrap Popover must be included first!'); + } + + var Popover = $.fn.popover.Constructor; + + $.extend( Popover.Default, { + customClass: '' + }); + + var _show = Popover.prototype.show; + + Popover.prototype.show = function () { + + _show.apply(this); + + if ( this.config.customClass ) { + var tip = this.getTipElement(); + $(tip).addClass(this.config.customClass); + } + + }; + +})(window.jQuery); diff --git a/bootstrap-v4/popover/dist/js/bootstrap-popover-custom-class.min.js b/bootstrap-v4/popover/dist/js/bootstrap-popover-custom-class.min.js new file mode 100644 index 0000000..e1097d6 --- /dev/null +++ b/bootstrap-v4/popover/dist/js/bootstrap-popover-custom-class.min.js @@ -0,0 +1,10 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +!function(t){if(!t.fn.popover)throw new Error("Bootstrap Popover must be included first!");var o=t.fn.popover.Constructor;t.extend(o.Default,{customClass:""});var s=o.prototype.show;o.prototype.show=function(){if(s.apply(this),this.config.customClass){var o=this.getTipElement();t(o).addClass(this.config.customClass)}}}(window.jQuery); \ No newline at end of file diff --git a/bootstrap-v4/popover/src/js/bootstrap-popover-custom-class.js b/bootstrap-v4/popover/src/js/bootstrap-popover-custom-class.js new file mode 100644 index 0000000..2859316 --- /dev/null +++ b/bootstrap-v4/popover/src/js/bootstrap-popover-custom-class.js @@ -0,0 +1,26 @@ +(function($) { + + if (!$.fn.popover) { + throw new Error('Bootstrap Popover must be included first!'); + } + + var Popover = $.fn.popover.Constructor; + + $.extend( Popover.Default, { + customClass: '' + }); + + var _show = Popover.prototype.show; + + Popover.prototype.show = function () { + + _show.apply(this); + + if ( this.config.customClass ) { + var tip = this.getTipElement(); + $(tip).addClass(this.config.customClass); + } + + }; + +})(window.jQuery); diff --git a/bootstrap-v4/popover/src/scss/_mixin.scss b/bootstrap-v4/popover/src/scss/_mixin.scss new file mode 100644 index 0000000..f1524b2 --- /dev/null +++ b/bootstrap-v4/popover/src/scss/_mixin.scss @@ -0,0 +1,22 @@ +//== Popover Custom Mixin +// +//## + +@mixin popover-custom($header-bg, $header-color) { + .popover-header { + background: $header-bg; + color: $header-color; + } + + // Popover arrow will have the same bg color as header + &.bs-popover-bottom, + &.bs-popover-auto[x-placement^="bottom"] { + .popover-header::before { + display: none; + } + + > .arrow::after { + border-bottom-color: $header-bg; + } + } +} diff --git a/bootstrap-v4/popover/src/scss/_popovers.scss b/bootstrap-v4/popover/src/scss/_popovers.scss new file mode 100644 index 0000000..3ac7e11 --- /dev/null +++ b/bootstrap-v4/popover/src/scss/_popovers.scss @@ -0,0 +1,23 @@ +//== Styles for predefined Popover Custom Classes +// +//## + +.popover-primary { + @include popover-custom($popover-primary-header-bg, $popover-custom-header-color); +} + +.popover-success { + @include popover-custom($popover-success-header-bg, $popover-custom-header-color); +} + +.popover-info { + @include popover-custom($popover-info-header-bg, $popover-custom-header-color); +} + +.popover-warning { + @include popover-custom($popover-warning-header-bg, $popover-custom-header-color); +} + +.popover-danger { + @include popover-custom($popover-danger-header-bg, $popover-custom-header-color); +} diff --git a/bootstrap-v4/popover/src/scss/_variables.scss b/bootstrap-v4/popover/src/scss/_variables.scss new file mode 100644 index 0000000..6d80500 --- /dev/null +++ b/bootstrap-v4/popover/src/scss/_variables.scss @@ -0,0 +1,16 @@ +//== Define Bootstrap variables for Popovers +// +//## + +// Popover primary background color +$popover-primary-header-bg: map-get($theme-colors, "primary") !default; +// Popover success background color +$popover-success-header-bg: map-get($theme-colors, "success") !default; +// Popover info background color +$popover-info-header-bg: map-get($theme-colors, "info") !default; +// Popover warning background color +$popover-warning-header-bg: map-get($theme-colors, "warning") !default; +// Popover danger background color +$popover-danger-header-bg: map-get($theme-colors, "danger") !default; + +$popover-custom-header-color: #fff !default; diff --git a/bootstrap-v4/popover/src/scss/bootstrap-popover-custom-class.scss b/bootstrap-v4/popover/src/scss/bootstrap-popover-custom-class.scss new file mode 100644 index 0000000..12c029f --- /dev/null +++ b/bootstrap-v4/popover/src/scss/bootstrap-popover-custom-class.scss @@ -0,0 +1,3 @@ +@import "variables"; +@import "mixin"; +@import "popovers"; diff --git a/bootstrap-v4/popover/src/scss/main.scss b/bootstrap-v4/popover/src/scss/main.scss new file mode 100644 index 0000000..19cfa64 --- /dev/null +++ b/bootstrap-v4/popover/src/scss/main.scss @@ -0,0 +1,4 @@ +@import "../../../node_modules/bootstrap/scss/functions"; +@import "../../../node_modules/bootstrap/scss/variables"; + +@import "bootstrap-popover-custom-class"; diff --git a/bootstrap-v4/src/scss/main.scss b/bootstrap-v4/src/scss/main.scss deleted file mode 100644 index b927464..0000000 --- a/bootstrap-v4/src/scss/main.scss +++ /dev/null @@ -1,4 +0,0 @@ -@import "../../node_modules/bootstrap/scss/functions"; -@import "../../node_modules/bootstrap/scss/variables"; - -@import "bootstrap-tooltip-custom-class"; diff --git a/bootstrap-v4/demo/demo.css b/bootstrap-v4/tooltip/demo/demo.css similarity index 100% rename from bootstrap-v4/demo/demo.css rename to bootstrap-v4/tooltip/demo/demo.css diff --git a/bootstrap-v4/demo/demo.js b/bootstrap-v4/tooltip/demo/demo.js similarity index 100% rename from bootstrap-v4/demo/demo.js rename to bootstrap-v4/tooltip/demo/demo.js diff --git a/bootstrap-v4/demo/demo.scss b/bootstrap-v4/tooltip/demo/demo.scss similarity index 89% rename from bootstrap-v4/demo/demo.scss rename to bootstrap-v4/tooltip/demo/demo.scss index 8b44770..75fd244 100644 --- a/bootstrap-v4/demo/demo.scss +++ b/bootstrap-v4/tooltip/demo/demo.scss @@ -1,5 +1,5 @@ -@import "../node_modules/bootstrap/scss/functions"; -@import "../node_modules/bootstrap/scss/variables"; +@import "../../node_modules/bootstrap/scss/functions"; +@import "../../node_modules/bootstrap/scss/variables"; @import "../src/scss/bootstrap-tooltip-custom-class"; .tooltip-custom { diff --git a/bootstrap-v4/demo/index.html b/bootstrap-v4/tooltip/demo/index.html similarity index 92% rename from bootstrap-v4/demo/index.html rename to bootstrap-v4/tooltip/demo/index.html index 944496c..647d258 100644 --- a/bootstrap-v4/demo/index.html +++ b/bootstrap-v4/tooltip/demo/index.html @@ -6,7 +6,7 @@ - + @@ -78,9 +78,9 @@

Dinamic examples

- - - + + + diff --git a/bootstrap-v4/dist/css/bootstrap-tooltip-custom-class.css b/bootstrap-v4/tooltip/dist/css/bootstrap-tooltip-custom-class.css similarity index 100% rename from bootstrap-v4/dist/css/bootstrap-tooltip-custom-class.css rename to bootstrap-v4/tooltip/dist/css/bootstrap-tooltip-custom-class.css diff --git a/bootstrap-v4/dist/css/bootstrap-tooltip-custom-class.min.css b/bootstrap-v4/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css similarity index 100% rename from bootstrap-v4/dist/css/bootstrap-tooltip-custom-class.min.css rename to bootstrap-v4/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css diff --git a/bootstrap-v4/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map b/bootstrap-v4/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map new file mode 100644 index 0000000..d7a2702 --- /dev/null +++ b/bootstrap-v4/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map @@ -0,0 +1,15 @@ +{ + "version": 3, + "file": "bootstrap-tooltip-custom-class.min.css", + "sources": [ + "../../src/scss/main.scss", + "../../../node_modules/bootstrap/scss/_functions.scss", + "../../../node_modules/bootstrap/scss/_variables.scss", + "../../src/scss/bootstrap-tooltip-custom-class.scss", + "../../src/scss/_variables.scss", + "../../src/scss/_mixin.scss", + "../../src/scss/_tooltips.scss" + ], + "names": [], + "mappings": "AMIA,ADEE,gBCFc,CDEd,cAAc,AAAC,CACb,gBAAgB,CH6BV,OAAO,CG5Bb,KAAK,CHDE,IAAI,CGEZ,ACLH,ADOE,gBCPc,ADOb,eAAe,CAAC,MAAM,AAAA,OAAO,AAAC,CAC7B,gBAAgB,CHwBV,OAAO,CGvBd,ACTH,ADWE,gBCXc,ADWb,iBAAiB,CAAC,MA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AAO,CGpBd,ACTH,ADVE,gBCUc,CDVd,cAAc,AAAC,CACb,gBAAgB,CHmCV,OAAO,CGlCb,KAAK,CHDE,IAAI,CGEZ,ACOH,ADLE,gBCKc,ADLb,eAAe,CAAC,MAAM,AAAA,OAAO,AAAC,CAC7B,gBAAgB,CH8BV,OAAO,CG7Bd,ACGH,ADDE,gBCCc,ADDb,iBAAiB,CAAC,MAAM,AAAA,OAAO,AAAC,CAC/B,kBAAkB,CH0BZ,OAAO,CGzBd,ACDH,ADGE,gBCHc,ADGb,gBAAgB,CAAC,MAAM,AAAA,OAAO,AAAC,CAC9B,iBAAiB,CHsBX,OAAO,CGrBd,ACLH,ADOE,gBCPc,ADOb,kBAAkB,CAAC,MAAM,AAAA,OAAO,AAAC,CAChC,mBAAmB,CHkBb,OAAO,CGjBd,ACLH,ADdE,eCca,CDdb,cAAc,AAAC,CACb,gBAAgB,CHiCV,OAAO,CGhCb,KAAK,CHDE,IAAI,CGEZ,ACWH,ADTE,eCSa,ADTZ,eAAe,CAAC,MAAM,AAAA,OAAO,AAAC,CAC7B,gBAAgB,CH4BV,OAAO,CG3Bd,ACOH,ADLE,eCKa,ADLZ,iBAAiB,CAAC,MAAM,AAAA,OAAO,AAAC,CAC/B,kBAAkB,CHwBZ,OAAO,CGvBd,ACGH,ADDE,eCCa,ADDZ,gBAAgB,CAAC,MAAM,AAAA,OAAO,AAAC,CAC9B,iBAAiB,CHoBX,OAAO,CGnBd,ACDH,ADGE,eCHa,ADGZ,kBAAkB,CAAC,MAAM,AAAA,OAAO,AAAC,CAChC,mBAAmB,CHgBb,OAAO,CGfd" +} \ No newline at end of file diff --git a/bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.js b/bootstrap-v4/tooltip/dist/js/bootstrap-tooltip-custom-class.js similarity index 100% rename from bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.js rename to bootstrap-v4/tooltip/dist/js/bootstrap-tooltip-custom-class.js diff --git a/bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.min.js b/bootstrap-v4/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js similarity index 100% rename from bootstrap-v4/dist/js/bootstrap-tooltip-custom-class.min.js rename to bootstrap-v4/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js diff --git a/bootstrap-v4/src/js/bootstrap-tooltip-custom-class.js b/bootstrap-v4/tooltip/src/js/bootstrap-tooltip-custom-class.js similarity index 100% rename from bootstrap-v4/src/js/bootstrap-tooltip-custom-class.js rename to bootstrap-v4/tooltip/src/js/bootstrap-tooltip-custom-class.js diff --git a/bootstrap-v4/src/scss/_mixin.scss b/bootstrap-v4/tooltip/src/scss/_mixin.scss similarity index 100% rename from bootstrap-v4/src/scss/_mixin.scss rename to bootstrap-v4/tooltip/src/scss/_mixin.scss diff --git a/bootstrap-v4/src/scss/_tooltips.scss b/bootstrap-v4/tooltip/src/scss/_tooltips.scss similarity index 100% rename from bootstrap-v4/src/scss/_tooltips.scss rename to bootstrap-v4/tooltip/src/scss/_tooltips.scss diff --git a/bootstrap-v4/src/scss/_variables.scss b/bootstrap-v4/tooltip/src/scss/_variables.scss similarity index 100% rename from bootstrap-v4/src/scss/_variables.scss rename to bootstrap-v4/tooltip/src/scss/_variables.scss diff --git a/bootstrap-v4/src/scss/bootstrap-tooltip-custom-class.scss b/bootstrap-v4/tooltip/src/scss/bootstrap-tooltip-custom-class.scss similarity index 100% rename from bootstrap-v4/src/scss/bootstrap-tooltip-custom-class.scss rename to bootstrap-v4/tooltip/src/scss/bootstrap-tooltip-custom-class.scss diff --git a/bootstrap-v4/tooltip/src/scss/main.scss b/bootstrap-v4/tooltip/src/scss/main.scss new file mode 100644 index 0000000..2f5b000 --- /dev/null +++ b/bootstrap-v4/tooltip/src/scss/main.scss @@ -0,0 +1,4 @@ +@import "../../../node_modules/bootstrap/scss/functions"; +@import "../../../node_modules/bootstrap/scss/variables"; + +@import "bootstrap-tooltip-custom-class"; diff --git a/grunt/project-map.js b/grunt/project-map.js index 8e140f9..d113a70 100644 --- a/grunt/project-map.js +++ b/grunt/project-map.js @@ -10,10 +10,14 @@ module.exports = { path: "bootstrap-v3/popover", filename: popoverFilename }, - v4: { - path: "bootstrap-v4", + v4Tooltip: { + path: "bootstrap-v4/tooltip", filename: tooltipFilename }, + v4Popover: { + path: "bootstrap-v4/popover", + filename: popoverFilename + }, v4Alpha: { path: "bootstrap-v4-alpha", filename: tooltipFilename From 22b95c6b7214277424674156f795706775a78805 Mon Sep 17 00:00:00 2001 From: Andrei Bulearca Date: Mon, 30 Dec 2019 16:44:36 +0200 Subject: [PATCH 07/11] adding popover custom class for v4 alpha --- ...bootstrap-tooltip-custom-class.min.css.map | 14 --- bootstrap-v4-alpha/popover/demo/demo.css | 87 +++++++++++++++ bootstrap-v4-alpha/popover/demo/demo.js | 9 ++ bootstrap-v4-alpha/popover/demo/demo.scss | 64 +++++++++++ bootstrap-v4-alpha/popover/demo/index.html | 102 ++++++++++++++++++ .../css/bootstrap-popover-custom-class.css | 33 ++++++ .../bootstrap-popover-custom-class.min.css | 12 +++ ...bootstrap-popover-custom-class.min.css.map | 14 +++ .../dist/js/bootstrap-popover-custom-class.js | 35 ++++++ .../js/bootstrap-popover-custom-class.min.js | 10 ++ .../src/js/bootstrap-popover-custom-class.js | 26 +++++ .../popover/src/scss/_mixin.scss | 10 ++ .../popover/src/scss/_popovers.scss | 23 ++++ .../popover/src/scss/_variables.scss | 16 +++ .../scss/bootstrap-popover-custom-class.scss | 3 + bootstrap-v4-alpha/popover/src/scss/main.scss | 2 + bootstrap-v4-alpha/src/scss/main.scss | 3 - .../{ => tooltip}/demo/demo.css | 0 bootstrap-v4-alpha/{ => tooltip}/demo/demo.js | 0 .../{ => tooltip}/demo/demo.scss | 4 +- .../{ => tooltip}/demo/index.html | 8 +- .../css/bootstrap-tooltip-custom-class.css | 18 ++-- .../bootstrap-tooltip-custom-class.min.css | 18 ++-- ...bootstrap-tooltip-custom-class.min.css.map | 14 +++ .../dist/js/bootstrap-tooltip-custom-class.js | 18 ++-- .../js/bootstrap-tooltip-custom-class.min.js | 0 .../src/js/bootstrap-tooltip-custom-class.js | 0 .../{ => tooltip}/src/scss/_mixin.scss | 0 .../{ => tooltip}/src/scss/_tooltips.scss | 0 .../{ => tooltip}/src/scss/_variables.scss | 0 .../scss/bootstrap-tooltip-custom-class.scss | 0 bootstrap-v4-alpha/tooltip/src/scss/main.scss | 3 + grunt/project-map.js | 8 +- 33 files changed, 502 insertions(+), 52 deletions(-) delete mode 100644 bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.min.css.map create mode 100644 bootstrap-v4-alpha/popover/demo/demo.css create mode 100644 bootstrap-v4-alpha/popover/demo/demo.js create mode 100644 bootstrap-v4-alpha/popover/demo/demo.scss create mode 100644 bootstrap-v4-alpha/popover/demo/index.html create mode 100644 bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.css create mode 100644 bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css create mode 100644 bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css.map create mode 100644 bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.js create mode 100644 bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.min.js create mode 100644 bootstrap-v4-alpha/popover/src/js/bootstrap-popover-custom-class.js create mode 100644 bootstrap-v4-alpha/popover/src/scss/_mixin.scss create mode 100644 bootstrap-v4-alpha/popover/src/scss/_popovers.scss create mode 100644 bootstrap-v4-alpha/popover/src/scss/_variables.scss create mode 100644 bootstrap-v4-alpha/popover/src/scss/bootstrap-popover-custom-class.scss create mode 100644 bootstrap-v4-alpha/popover/src/scss/main.scss delete mode 100644 bootstrap-v4-alpha/src/scss/main.scss rename bootstrap-v4-alpha/{ => tooltip}/demo/demo.css (100%) rename bootstrap-v4-alpha/{ => tooltip}/demo/demo.js (100%) rename bootstrap-v4-alpha/{ => tooltip}/demo/demo.scss (89%) rename bootstrap-v4-alpha/{ => tooltip}/demo/index.html (92%) rename bootstrap-v4-alpha/{ => tooltip}/dist/css/bootstrap-tooltip-custom-class.css (99%) rename bootstrap-v4-alpha/{ => tooltip}/dist/css/bootstrap-tooltip-custom-class.min.css (99%) create mode 100644 bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map rename bootstrap-v4-alpha/{ => tooltip}/dist/js/bootstrap-tooltip-custom-class.js (98%) rename bootstrap-v4-alpha/{ => tooltip}/dist/js/bootstrap-tooltip-custom-class.min.js (100%) rename bootstrap-v4-alpha/{ => tooltip}/src/js/bootstrap-tooltip-custom-class.js (100%) rename bootstrap-v4-alpha/{ => tooltip}/src/scss/_mixin.scss (100%) rename bootstrap-v4-alpha/{ => tooltip}/src/scss/_tooltips.scss (100%) rename bootstrap-v4-alpha/{ => tooltip}/src/scss/_variables.scss (100%) rename bootstrap-v4-alpha/{ => tooltip}/src/scss/bootstrap-tooltip-custom-class.scss (100%) create mode 100644 bootstrap-v4-alpha/tooltip/src/scss/main.scss diff --git a/bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.min.css.map b/bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.min.css.map deleted file mode 100644 index 9a6800d..0000000 --- a/bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.min.css.map +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": 3, - "file": "bootstrap-tooltip-custom-class.min.css", - "sources": [ - "../../src/scss/main.scss", - "../../node_modules/bootstrap/scss/_variables.scss", - "../../src/scss/bootstrap-tooltip-custom-class.scss", - "../../src/scss/_variables.scss", - "../../src/scss/_mixin.scss", - "../../src/scss/_tooltips.scss" - ], - "names": [], - "mappings": "AKGA,ADEE,gBCFc,CDEd,cAAc,AAAC,CACb,gBAAgB,CH8FX,OAAO,CG7FZ,KAAK,CHuFA,IAAI,CGtFV,ACLH,ADSI,gBCTY,ADOb,YAAY,CAEX,cAAc,AAAA,QAAQ,CCT1B,gBAAgB,ADQb,kCAAkC,CACjC,cAAc,A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B,CAC9B,cAAc,AAAA,QAAQ,AAAC,CACrB,mBAAmB,CHsEhB,OAAO,CGrEX,ACbL,ADkBI,gBClBY,ADgBb,aAAa,CAEZ,cAAc,AAAA,QAAQ,CClB1B,gBAAgB,ADiBb,iCAAiC,CAChC,cAAc,AAAA,QAAQ,AAAC,CACrB,iBAAiB,CH+Dd,OAAO,CG9DX,AChBL,ADdE,eCca,CDdb,cAAc,AAAC,CACb,gBAAgB,CH0FX,OAAO,CGzFZ,KAAK,CHuFA,IAAI,CGtFV,ACWH,ADPI,eCOW,ADTZ,YAAY,CAEX,cAAc,AAAA,QAAQ,CCO1B,eAAe,ADRZ,kCAAkC,CACjC,cAAc,AAAA,QAAQ,AAAC,CACrB,gBAAgB,CHmFb,OAAO,CGlFX,ACKL,ADAI,eCAW,ADFZ,cAAc,CAEb,cAAc,AAAA,QAAQ,CCA1B,eAAe,ADDZ,gCAAgC,CAC/B,cAAc,AAAA,QAAQ,AAAC,CACrB,kBAAkB,CH4Ef,OAAO,CG3EX,ACFL,ADOI,eCPW,ADKZ,eAAe,CAEd,cAAc,AAAA,QAAQ,CCP1B,eAAe,ADMZ,+BAA+B,CAC9B,cAAc,AAAA,QAAQ,AAAC,CACrB,mBAAmB,CHqEhB,OAAO,CGpEX,ACTL,ADcI,eCdW,ADYZ,aAAa,CAEZ,cAAc,AAAA,QAAQ,CCd1B,eAAe,ADaZ,iCAAiC,CAChC,cAAc,AAAA,QAAQ,AAAC,CACrB,iBAAiB,CH8Dd,OAAO,CG7DX" -} \ No newline at end of file diff --git a/bootstrap-v4-alpha/popover/demo/demo.css b/bootstrap-v4-alpha/popover/demo/demo.css new file mode 100644 index 0000000..cb48fd9 --- /dev/null +++ b/bootstrap-v4-alpha/popover/demo/demo.css @@ -0,0 +1,87 @@ +.popover-primary .popover-title { + background-color: #0275d8; + color: #fff; +} + +.popover-success .popover-title { + background-color: #5cb85c; + color: #fff; +} + +.popover-info .popover-title { + background-color: #5bc0de; + color: #fff; +} + +.popover-warning .popover-title { + background-color: #f0ad4e; + color: #fff; +} + +.popover-danger .popover-title { + background-color: #d9534f; + color: #fff; +} + +.popover-custom .popover-title { + background-color: #f2653c; + color: #ffffff; +} + +.popover-custom-alt .popover-title { + background-color: #5b2da3; + color: #ffffff; +} + +body { + padding-top: 4.5rem; +} + +#topnav { + padding-left: 0; + padding-right: 0; + z-index: 1071; +} + +#topnav > .container { + display: flex; + align-items: center; +} + +@media (max-width: 575px) { + #topnav > .container { + width: 100%; + } +} + +#topnav .nav-link > i { + font-size: 26px; +} + +@media (max-width: 390px) { + #topnav .navbar-brand { + font-size: 1rem; + } +} + +.bs-example { + position: relative; + margin: 15px; + padding: 15px 15px 25px; + border: 1px solid #ddd; + border-radius: 4px 4px 0 0; +} + +.bs-example .btn { + margin: 5px; +} + +.bs-example__title { + margin-bottom: 20px; +} + +.bs-example--static .popover { + display: inline-block; + position: relative; + margin: 10px 20px; +} diff --git a/bootstrap-v4-alpha/popover/demo/demo.js b/bootstrap-v4-alpha/popover/demo/demo.js new file mode 100644 index 0000000..c88c583 --- /dev/null +++ b/bootstrap-v4-alpha/popover/demo/demo.js @@ -0,0 +1,9 @@ +$(document).ready(function(){ + $('.btn-secondary').popover(); + $('.btn-custom').popover({ + customClass: 'popover-custom' + }); + $('.btn-custom-alt').popover({ + customClass: 'popover-custom-alt' + }); +}); diff --git a/bootstrap-v4-alpha/popover/demo/demo.scss b/bootstrap-v4-alpha/popover/demo/demo.scss new file mode 100644 index 0000000..7d42784 --- /dev/null +++ b/bootstrap-v4-alpha/popover/demo/demo.scss @@ -0,0 +1,64 @@ +@import "../../node_modules/bootstrap/scss/variables"; +@import "../../node_modules/bootstrap/scss/mixins"; +@import "../src/scss/bootstrap-popover-custom-class"; + +.popover-custom { + @include popover-custom(#f2653c, #ffffff); +} + +.popover-custom-alt { + @include popover-custom(#5b2da3, #ffffff); +} + +//== Demo layout +// +//## +body { + padding-top: 4.5rem; +} + +#topnav { + padding-left: 0; + padding-right: 0; + z-index: ($zindex-tooltip + 1); + + > .container { + display: flex; + align-items: center; + + @include media-breakpoint-down('xs') { + width: 100%; + } + } + + .nav-link > i { + font-size: 26px; + } + + @media (max-width: 390px) { + .navbar-brand { + font-size: $font-size-base; + } + } +} + +.bs-example { + position: relative; + margin: 15px; + padding: 15px 15px 25px; + border: 1px solid #ddd; + border-radius: 4px 4px 0 0; +} +.bs-example .btn { + margin: 5px; +} + +.bs-example__title { + margin-bottom: 20px; +} + +.bs-example--static .popover { + display: inline-block; + position: relative; + margin: 10px 20px; +} diff --git a/bootstrap-v4-alpha/popover/demo/index.html b/bootstrap-v4-alpha/popover/demo/index.html new file mode 100644 index 0000000..2cebe26 --- /dev/null +++ b/bootstrap-v4-alpha/popover/demo/index.html @@ -0,0 +1,102 @@ + + + + + Bootstrap v4-alpha Tooltip Custom Classes + + + + + + + + + + + +
+
+

Static examples

+
+
+

Popover primary example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+

Popover success example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+

Popover info example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+

Popover warning example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+

Popover danger example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+
+

Custom popover example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+

Another custom popover

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+ +
+

Dinamic examples

+
+ + + + + +
+
+ + +
+
+
+ + + + + + + + + diff --git a/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.css b/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.css new file mode 100644 index 0000000..46f5494 --- /dev/null +++ b/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.css @@ -0,0 +1,33 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +.popover-primary .popover-title { + background-color: #0275d8; + color: #fff; +} + +.popover-success .popover-title { + background-color: #5cb85c; + color: #fff; +} + +.popover-info .popover-title { + background-color: #5bc0de; + color: #fff; +} + +.popover-warning .popover-title { + background-color: #f0ad4e; + color: #fff; +} + +.popover-danger .popover-title { + background-color: #d9534f; + color: #fff; +} diff --git a/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css b/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css new file mode 100644 index 0000000..216f0ad --- /dev/null +++ b/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css @@ -0,0 +1,12 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +.popover-primary .popover-title{background-color:#0275d8;color:#fff}.popover-success .popover-title{background-color:#5cb85c;color:#fff}.popover-info .popover-title{background-color:#5bc0de;color:#fff}.popover-warning .popover-title{background-color:#f0ad4e;color:#fff}.popover-danger .popover-title{background-color:#d9534f;color:#fff} + +/*# sourceMappingURL=bootstrap-popover-custom-class.min.css.map */ \ No newline at end of file diff --git a/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css.map b/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css.map new file mode 100644 index 0000000..8708269 --- /dev/null +++ b/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css.map @@ -0,0 +1,14 @@ +{ + "version": 3, + "file": "bootstrap-popover-custom-class.min.css", + "sources": [ + "../../src/scss/main.scss", + "../../../node_modules/bootstrap/scss/_variables.scss", + "../../src/scss/bootstrap-popover-custom-class.scss", + "../../src/scss/_variables.scss", + "../../src/scss/_mixin.scss", + "../../src/scss/_popovers.scss" + ], + "names": [], + "mappings": "AKIA,ADCE,gBCDc,CDCd,cAAc,AAAC,CACb,gBAAgB,CH8FX,OAAO,CG7FZ,KAAK,CDQ+B,IAAI,CCPzC,ACAH,ADHE,gBCGc,CDHd,cAAc,AAAC,CACb,gBAAgB,CH6FX,OAAO,CG5FZ,KAAK,CDQ+B,IAAI,CCPzC,ACIH,ADPE,aCOW,CDPX,cAAc,AAAC,CACb,gBAAgB,CH+FX,OAAO,CG9FZ,KAAK,CDQ+B,IAAI,CCPzC,ACQH,ADXE,gBCWc,CDXd,cAAc,AAAC,CACb,gBAAgB,CH2FX,OAAO,CG1FZ,KAAK,CDQ+B,IAAI,CCPzC,ACYH,ADfE,eCea,CDfb,cAAc,AAAC,CACb,gBAAgB,CH0FX,OAAO,CGzFZ,KAAK,CDQ+B,IAAI,CCPzC" +} \ No newline at end of file diff --git a/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.js b/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.js new file mode 100644 index 0000000..6cca8a9 --- /dev/null +++ b/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.js @@ -0,0 +1,35 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +(function($) { + + if (!$.fn.popover) { + throw new Error('Bootstrap Popover must be included first!'); + } + + var Popover = $.fn.popover.Constructor; + + $.extend(Popover.Default, { + customClass: '' + }); + + var _show = Popover.prototype.show; + + Popover.prototype.show = function () { + + _show.apply(this); + + if (this.config.customClass) { + var tip = this.getTipElement(); + $(tip).addClass(this.config.customClass); + } + + }; + +})(window.jQuery); diff --git a/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.min.js b/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.min.js new file mode 100644 index 0000000..0feda13 --- /dev/null +++ b/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.min.js @@ -0,0 +1,10 @@ +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + +!function(t){if(!t.fn.popover)throw new Error("Bootstrap Popover must be included first!");var o=t.fn.popover.Constructor;t.extend(o.Default,{customClass:""});var s=o.prototype.show;o.prototype.show=function(){if(s.apply(this),this.config.customClass){var o=this.getTipElement();t(o).addClass(this.config.customClass)}}}(window.jQuery); \ No newline at end of file diff --git a/bootstrap-v4-alpha/popover/src/js/bootstrap-popover-custom-class.js b/bootstrap-v4-alpha/popover/src/js/bootstrap-popover-custom-class.js new file mode 100644 index 0000000..618cc16 --- /dev/null +++ b/bootstrap-v4-alpha/popover/src/js/bootstrap-popover-custom-class.js @@ -0,0 +1,26 @@ +(function($) { + + if (!$.fn.popover) { + throw new Error('Bootstrap Popover must be included first!'); + } + + var Popover = $.fn.popover.Constructor; + + $.extend(Popover.Default, { + customClass: '' + }); + + var _show = Popover.prototype.show; + + Popover.prototype.show = function () { + + _show.apply(this); + + if (this.config.customClass) { + var tip = this.getTipElement(); + $(tip).addClass(this.config.customClass); + } + + }; + +})(window.jQuery); diff --git a/bootstrap-v4-alpha/popover/src/scss/_mixin.scss b/bootstrap-v4-alpha/popover/src/scss/_mixin.scss new file mode 100644 index 0000000..f15cb02 --- /dev/null +++ b/bootstrap-v4-alpha/popover/src/scss/_mixin.scss @@ -0,0 +1,10 @@ +//== Popover Custom Mixin +// +//## + +@mixin popover-custom($title-bg, $title-color) { + .popover-title { + background-color: $title-bg; + color: $title-color; + } +} diff --git a/bootstrap-v4-alpha/popover/src/scss/_popovers.scss b/bootstrap-v4-alpha/popover/src/scss/_popovers.scss new file mode 100644 index 0000000..f0ae5a0 --- /dev/null +++ b/bootstrap-v4-alpha/popover/src/scss/_popovers.scss @@ -0,0 +1,23 @@ +//== Styles for predefined Popover Custom Classes +// +//## + +.popover-primary { + @include popover-custom($popover-primary-title-bg, $popover-custom-title-color); +} + +.popover-success { + @include popover-custom($popover-success-title-bg, $popover-custom-title-color); +} + +.popover-info { + @include popover-custom($popover-info-title-bg, $popover-custom-title-color); +} + +.popover-warning { + @include popover-custom($popover-warning-title-bg, $popover-custom-title-color); +} + +.popover-danger { + @include popover-custom($popover-danger-title-bg, $popover-custom-title-color); +} diff --git a/bootstrap-v4-alpha/popover/src/scss/_variables.scss b/bootstrap-v4-alpha/popover/src/scss/_variables.scss new file mode 100644 index 0000000..ea87d6f --- /dev/null +++ b/bootstrap-v4-alpha/popover/src/scss/_variables.scss @@ -0,0 +1,16 @@ +//== Define Bootstrap variables for Popover +// +//## + +// Popover primary background color +$popover-primary-title-bg: $brand-primary !default; +// Popover success background color +$popover-success-title-bg: $brand-success !default; +// Popover info background color +$popover-info-title-bg: $brand-info !default; +// Popover warning background color +$popover-warning-title-bg: $brand-warning !default; +// Popover danger background color +$popover-danger-title-bg: $brand-danger !default; + +$popover-custom-title-color: #fff !default; diff --git a/bootstrap-v4-alpha/popover/src/scss/bootstrap-popover-custom-class.scss b/bootstrap-v4-alpha/popover/src/scss/bootstrap-popover-custom-class.scss new file mode 100644 index 0000000..12c029f --- /dev/null +++ b/bootstrap-v4-alpha/popover/src/scss/bootstrap-popover-custom-class.scss @@ -0,0 +1,3 @@ +@import "variables"; +@import "mixin"; +@import "popovers"; diff --git a/bootstrap-v4-alpha/popover/src/scss/main.scss b/bootstrap-v4-alpha/popover/src/scss/main.scss new file mode 100644 index 0000000..647aef5 --- /dev/null +++ b/bootstrap-v4-alpha/popover/src/scss/main.scss @@ -0,0 +1,2 @@ +@import "../../../node_modules/bootstrap/scss/variables"; +@import "bootstrap-popover-custom-class"; diff --git a/bootstrap-v4-alpha/src/scss/main.scss b/bootstrap-v4-alpha/src/scss/main.scss deleted file mode 100644 index 408180d..0000000 --- a/bootstrap-v4-alpha/src/scss/main.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import "../../node_modules/bootstrap/scss/variables"; - -@import "bootstrap-tooltip-custom-class"; diff --git a/bootstrap-v4-alpha/demo/demo.css b/bootstrap-v4-alpha/tooltip/demo/demo.css similarity index 100% rename from bootstrap-v4-alpha/demo/demo.css rename to bootstrap-v4-alpha/tooltip/demo/demo.css diff --git a/bootstrap-v4-alpha/demo/demo.js b/bootstrap-v4-alpha/tooltip/demo/demo.js similarity index 100% rename from bootstrap-v4-alpha/demo/demo.js rename to bootstrap-v4-alpha/tooltip/demo/demo.js diff --git a/bootstrap-v4-alpha/demo/demo.scss b/bootstrap-v4-alpha/tooltip/demo/demo.scss similarity index 89% rename from bootstrap-v4-alpha/demo/demo.scss rename to bootstrap-v4-alpha/tooltip/demo/demo.scss index 8cb5615..31f8175 100644 --- a/bootstrap-v4-alpha/demo/demo.scss +++ b/bootstrap-v4-alpha/tooltip/demo/demo.scss @@ -1,5 +1,5 @@ -@import "../node_modules/bootstrap/scss/variables"; -@import "../node_modules/bootstrap/scss/mixins"; +@import "../../node_modules/bootstrap/scss/variables"; +@import "../../node_modules/bootstrap/scss/mixins"; @import "../src/scss/bootstrap-tooltip-custom-class"; .tooltip-custom { diff --git a/bootstrap-v4-alpha/demo/index.html b/bootstrap-v4-alpha/tooltip/demo/index.html similarity index 92% rename from bootstrap-v4-alpha/demo/index.html rename to bootstrap-v4-alpha/tooltip/demo/index.html index 37f59e7..3d1a31d 100644 --- a/bootstrap-v4-alpha/demo/index.html +++ b/bootstrap-v4-alpha/tooltip/demo/index.html @@ -6,7 +6,7 @@ - + @@ -71,9 +71,9 @@

Dinamic examples

- - - + + + diff --git a/bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.css b/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.css similarity index 99% rename from bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.css rename to bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.css index 11e5e75..fe56c69 100644 --- a/bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.css +++ b/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.css @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + .tooltip-primary .tooltip-inner { background-color: #0275d8; color: #fff; diff --git a/bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.min.css b/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css similarity index 99% rename from bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.min.css rename to bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css index 7782da6..0bfdcb4 100644 --- a/bootstrap-v4-alpha/dist/css/bootstrap-tooltip-custom-class.min.css +++ b/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + .tooltip-primary .tooltip-inner{background-color:#0275d8;color:#fff}.tooltip-primary.tooltip-top .tooltip-inner::before,.tooltip-primary.bs-tether-element-attached-bottom .tooltip-inner::before{border-top-color:#0275d8}.tooltip-primary.tooltip-right .tooltip-inner::before,.tooltip-primary.bs-tether-element-attached-left .tooltip-inner::before{border-right-color:#0275d8}.tooltip-primary.tooltip-bottom .tooltip-inner::before,.tooltip-primary.bs-tether-element-attached-top .tooltip-inner::before{border-bottom-color:#0275d8}.tooltip-primary.tooltip-left .tooltip-inner::before,.tooltip-primary.bs-tether-element-attached-right .tooltip-inner::before{border-left-color:#0275d8}.tooltip-success .tooltip-inner{background-color:#5cb85c;color:#fff}.tooltip-success.tooltip-top .tooltip-inner::before,.tooltip-success.bs-tether-element-attached-bottom .tooltip-inner::before{border-top-color:#5cb85c}.tooltip-success.tooltip-right .tooltip-inner::before,.tooltip-success.bs-tether-element-attached-left .tooltip-inner::before{border-right-color:#5cb85c}.tooltip-success.tooltip-bottom .tooltip-inner::before,.tooltip-success.bs-tether-element-attached-top .tooltip-inner::before{border-bottom-color:#5cb85c}.tooltip-success.tooltip-left .tooltip-inner::before,.tooltip-success.bs-tether-element-attached-right .tooltip-inner::before{border-left-color:#5cb85c}.tooltip-info .tooltip-inner{background-color:#5bc0de;color:#fff}.tooltip-info.tooltip-top .tooltip-inner::before,.tooltip-info.bs-tether-element-attached-bottom .tooltip-inner::before{border-top-color:#5bc0de}.tooltip-info.tooltip-right .tooltip-inner::before,.tooltip-info.bs-tether-element-attached-left .tooltip-inner::before{border-right-color:#5bc0de}.tooltip-info.tooltip-bottom .tooltip-inner::before,.tooltip-info.bs-tether-element-attached-top .tooltip-inner::before{border-bottom-color:#5bc0de}.tooltip-info.tooltip-left .tooltip-inner::before,.tooltip-info.bs-tether-element-attached-right .tooltip-inner::before{border-left-color:#5bc0de}.tooltip-warning .tooltip-inner{background-color:#f0ad4e;color:#fff}.tooltip-warning.tooltip-top .tooltip-inner::before,.tooltip-warning.bs-tether-element-attached-bottom .tooltip-inner::before{border-top-color:#f0ad4e}.tooltip-warning.tooltip-right .tooltip-inner::before,.tooltip-warning.bs-tether-element-attached-left .tooltip-inner::before{border-right-color:#f0ad4e}.tooltip-warning.tooltip-bottom .tooltip-inner::before,.tooltip-warning.bs-tether-element-attached-top .tooltip-inner::before{border-bottom-color:#f0ad4e}.tooltip-warning.tooltip-left .tooltip-inner::before,.tooltip-warning.bs-tether-element-attached-right .tooltip-inner::before{border-left-color:#f0ad4e}.tooltip-danger .tooltip-inner{background-color:#d9534f;color:#fff}.tooltip-danger.tooltip-top .tooltip-inner::before,.tooltip-danger.bs-tether-element-attached-bottom .tooltip-inner::before{border-top-color:#d9534f}.tooltip-danger.tooltip-right .tooltip-inner::before,.tooltip-danger.bs-tether-element-attached-left .tooltip-inner::before{border-right-color:#d9534f}.tooltip-danger.tooltip-bottom .tooltip-inner::before,.tooltip-danger.bs-tether-element-attached-top .tooltip-inner::before{border-bottom-color:#d9534f}.tooltip-danger.tooltip-left .tooltip-inner::before,.tooltip-danger.bs-tether-element-attached-right .tooltip-inner::before{border-left-color:#d9534f} /*# sourceMappingURL=bootstrap-tooltip-custom-class.min.css.map */ \ No newline at end of file diff --git a/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map b/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map new file mode 100644 index 0000000..9a7b613 --- /dev/null +++ b/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map @@ -0,0 +1,14 @@ +{ + "version": 3, + "file": "bootstrap-tooltip-custom-class.min.css", + "sources": [ + "../../src/scss/main.scss", + "../../../node_modules/bootstrap/scss/_variables.scss", + "../../src/scss/bootstrap-tooltip-custom-class.scss", + "../../src/scss/_variables.scss", + "../../src/scss/_mixin.scss", + "../../src/scss/_tooltips.scss" + ], + "names": [], + "mappings": "AKIA,ADEE,gBCFc,CDEd,cAAc,AAAC,CACb,gBAAgB,CH6FX,OAAO,CG5FZ,KAAK,CHsFA,IAAI,CGrFV,ACLH,ADSI,gBCTY,ADOb,YAAY,CAEX,cAAc,AAAA,QAAQ,CCT1B,gBAAgB,ADQb,kCAAkC,CACjC,cAAc,AAAA,QAAQ,AAAC,CACrB,gBAAgB,CHsFb,OAAO,CGrFX,ACXL,ADgBI,gBChBY,ADcb,cAAc,CAEb,cAAc,AAAA,QAAQ,CChB1B,gBAAgB,ADeb,gCAAgC,CAC/B,cAAc,AAAA,QAAQ,AAAC,CACrB,kBAAkB,CH+Ef,OAAO,CG9EX,AClBL,ADuBI,gBCvBY,ADqBb,eAAe,CAEd,cAAc,AAAA,QAAQ,CCvB1B,gBAAgB,ADsBb,+BAA+B,CAC9B,cAAc,AAAA,QAAQ,AAAC,CACrB,mBAAmB,CHwEhB,OAAO,CGvEX,ACzBL,AD8BI,gBC9BY,AD4Bb,aAAa,CAEZ,cAAc,AAAA,QAAQ,CC9B1B,gBAAgB,AD6Bb,iCAAiC,CAChC,cAAc,AAAA,QAAQ,AAAC,CACrB,iBAAiB,CHiEd,OAAO,CGhEX,AC5BL,ADFE,gBCEc,CDFd,cAAc,AAAC,CACb,gBAAgB,CH4FX,OAAO,CG3FZ,KAAK,CHsFA,IAAI,CGrFV,ACDH,ADKI,gBCLY,ADGb,YAAY,CAEX,cAAc,AAAA,QAAQ,CCL1B,gBAAgB,ADIb,kCAAkC,CACjC,cAAc,AAAA,QAAQ,AAAC,CACrB,gBAAgB,CHqFb,OAAO,CGpFX,ACPL,ADYI,gBCZY,ADUb,cAAc,CAEb,cAAc,AAAA,QAAQ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Q,CCd1B,eAAe,ADaZ,iCAAiC,CAChC,cAAc,AAAA,QAAQ,AAAC,CACrB,iBAAiB,CH6Dd,OAAO,CG5DX" +} \ No newline at end of file diff --git a/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.js b/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.js similarity index 98% rename from bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.js rename to bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.js index eed4233..f63c2d8 100644 --- a/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.js +++ b/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.js @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + (function($) { if (!$.fn.tooltip) { diff --git a/bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.min.js b/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js similarity index 100% rename from bootstrap-v4-alpha/dist/js/bootstrap-tooltip-custom-class.min.js rename to bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js diff --git a/bootstrap-v4-alpha/src/js/bootstrap-tooltip-custom-class.js b/bootstrap-v4-alpha/tooltip/src/js/bootstrap-tooltip-custom-class.js similarity index 100% rename from bootstrap-v4-alpha/src/js/bootstrap-tooltip-custom-class.js rename to bootstrap-v4-alpha/tooltip/src/js/bootstrap-tooltip-custom-class.js diff --git a/bootstrap-v4-alpha/src/scss/_mixin.scss b/bootstrap-v4-alpha/tooltip/src/scss/_mixin.scss similarity index 100% rename from bootstrap-v4-alpha/src/scss/_mixin.scss rename to bootstrap-v4-alpha/tooltip/src/scss/_mixin.scss diff --git a/bootstrap-v4-alpha/src/scss/_tooltips.scss b/bootstrap-v4-alpha/tooltip/src/scss/_tooltips.scss similarity index 100% rename from bootstrap-v4-alpha/src/scss/_tooltips.scss rename to bootstrap-v4-alpha/tooltip/src/scss/_tooltips.scss diff --git a/bootstrap-v4-alpha/src/scss/_variables.scss b/bootstrap-v4-alpha/tooltip/src/scss/_variables.scss similarity index 100% rename from bootstrap-v4-alpha/src/scss/_variables.scss rename to bootstrap-v4-alpha/tooltip/src/scss/_variables.scss diff --git a/bootstrap-v4-alpha/src/scss/bootstrap-tooltip-custom-class.scss b/bootstrap-v4-alpha/tooltip/src/scss/bootstrap-tooltip-custom-class.scss similarity index 100% rename from bootstrap-v4-alpha/src/scss/bootstrap-tooltip-custom-class.scss rename to bootstrap-v4-alpha/tooltip/src/scss/bootstrap-tooltip-custom-class.scss diff --git a/bootstrap-v4-alpha/tooltip/src/scss/main.scss b/bootstrap-v4-alpha/tooltip/src/scss/main.scss new file mode 100644 index 0000000..4dce6ab --- /dev/null +++ b/bootstrap-v4-alpha/tooltip/src/scss/main.scss @@ -0,0 +1,3 @@ +@import "../../../node_modules/bootstrap/scss/variables"; + +@import "bootstrap-tooltip-custom-class"; diff --git a/grunt/project-map.js b/grunt/project-map.js index d113a70..3db92d1 100644 --- a/grunt/project-map.js +++ b/grunt/project-map.js @@ -18,8 +18,12 @@ module.exports = { path: "bootstrap-v4/popover", filename: popoverFilename }, - v4Alpha: { - path: "bootstrap-v4-alpha", + v4AlphaTooltip: { + path: "bootstrap-v4-alpha/tooltip", filename: tooltipFilename + }, + v4AlphaPopover: { + path: "bootstrap-v4-alpha/popover", + filename: popoverFilename } }; From 501269f4134844d7944ddc4e200180272fb4028f Mon Sep 17 00:00:00 2001 From: Andrei Victor Bulearca Date: Sun, 12 Jan 2020 18:29:19 +0200 Subject: [PATCH 08/11] add popover custom class --- Gruntfile.js | 2 +- bootstrap-v3/popover/demo/index.html | 176 +++++++++--------- .../css/bootstrap-popover-custom-class.css | 2 +- .../bootstrap-popover-custom-class.min.css | 2 +- ...bootstrap-popover-custom-class.min.css.map | 2 +- .../dist/js/bootstrap-popover-custom-class.js | 2 +- .../js/bootstrap-popover-custom-class.min.js | 2 +- bootstrap-v3/popover/src/scss/_variables.scss | 2 +- .../css/bootstrap-tooltip-custom-class.css | 2 +- .../bootstrap-tooltip-custom-class.min.css | 2 +- ...bootstrap-tooltip-custom-class.min.css.map | 4 +- .../dist/js/bootstrap-tooltip-custom-class.js | 2 +- .../js/bootstrap-tooltip-custom-class.min.js | 2 +- bootstrap-v4-alpha/popover/demo/index.html | 160 ++++++++-------- .../css/bootstrap-popover-custom-class.css | 18 +- .../bootstrap-popover-custom-class.min.css | 18 +- .../dist/js/bootstrap-popover-custom-class.js | 18 +- .../js/bootstrap-popover-custom-class.min.js | 18 +- .../css/bootstrap-tooltip-custom-class.css | 18 +- .../bootstrap-tooltip-custom-class.min.css | 18 +- .../dist/js/bootstrap-tooltip-custom-class.js | 18 +- .../js/bootstrap-tooltip-custom-class.min.js | 2 +- bootstrap-v4/popover/demo/index.html | 4 +- .../css/bootstrap-popover-custom-class.css | 2 +- .../bootstrap-popover-custom-class.min.css | 2 +- ...bootstrap-popover-custom-class.min.css.map | 2 +- .../dist/js/bootstrap-popover-custom-class.js | 2 +- .../js/bootstrap-popover-custom-class.min.js | 2 +- bootstrap-v4/popover/src/scss/_variables.scss | 12 +- .../css/bootstrap-tooltip-custom-class.css | 2 +- .../bootstrap-tooltip-custom-class.min.css | 2 +- .../dist/js/bootstrap-tooltip-custom-class.js | 2 +- .../js/bootstrap-tooltip-custom-class.min.js | 2 +- package.json | 13 +- 34 files changed, 271 insertions(+), 266 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 0f9bd87..0f2231a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -15,7 +15,7 @@ module.exports = function(grunt) { ' * <%= pkg.name %>\n' + ' * v<%= pkg.version %>\n' + ' * <%= pkg.description %>\n' + - ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> - <%= pkg.homepage %>\n' + + ' * Copyright (c) 2017 - <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> - <%= pkg.homepage %>\n' + ' * License: <%= pkg.license %>\n' + ' */\n\n' }, diff --git a/bootstrap-v3/popover/demo/index.html b/bootstrap-v3/popover/demo/index.html index b8860c3..f534efb 100644 --- a/bootstrap-v3/popover/demo/index.html +++ b/bootstrap-v3/popover/demo/index.html @@ -1,108 +1,108 @@ - - Bootstrap Tooltip Custom Class - + + Bootstrap Popover Custom Class + - - - + + + - -
+
-

Static examples

-
-
-
-

Popover primary example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
-
-
-

Popover success example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
-
-
-

Popover info example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
-
-
-

Popover warning example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
-
-
-

Popover danger example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
+

Static examples

+
+
+
+

Popover primary example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
-
-
-
-

Popover custom example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
-
-
-

Another custom popover

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
+
+
+

Popover success example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
-
-
-

Dinamic examples

-
- - - - - +
+
+

Popover info example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+

Popover warning example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+

Popover danger example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
-
- - +
+
+
+
+

Popover custom example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+

Another custom popover

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+
+

Dinamic examples

+
+ + + + + +
+
+ + +
-
+
- - - - + + + + diff --git a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css index 5b873fb..7042548 100644 --- a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css +++ b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.css @@ -2,7 +2,7 @@ * bootstrap-tooltip-custom-class * v1.0.4 * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme * License: MIT */ diff --git a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css index a8539f4..05b94dc 100644 --- a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css +++ b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css @@ -2,7 +2,7 @@ * bootstrap-tooltip-custom-class * v1.0.4 * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme * License: MIT */ diff --git a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map index 8b61d7f..7aa1294 100644 --- a/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map +++ b/bootstrap-v3/popover/dist/css/bootstrap-popover-custom-class.min.css.map @@ -10,5 +10,5 @@ "../../src/scss/_popovers.scss" ], "names": [], - "mappings": "AKIA,ADCE,gBCDc,CDCd,cAAc,AAAC,CACb,UAAU,CHWU,OAAqB,CGVzC,KAAK,CDSsB,IAAI,CCRhC,ACAH,ADHE,gBCGc,CDHd,cAAc,AAAC,CACb,UAAU,CHYU,OAAO,CGX3B,KAAK,CDSsB,IAAI,CCRhC,ACIH,ADPE,aCOW,CDPX,cAAc,AAAC,CACb,UAAU,CHaU,OAAO,CGZ3B,KAAK,CDSsB,IAAI,CCRhC,ACQH,ADXE,gBCWc,CDXd,cAAc,AAAC,CACb,UAAU,CHcU,OAAO,CGb3B,KAAK,CDSsB,IAAI,CCRhC,ACYH,ADfE,eCea,CDfb,cAAc,AAAC,CACb,UAAU,CHeU,OAAO,CGd3B,KAAK,CDSsB,IAAI,CCRhC" + "mappings": "AKIA,ADCE,gBCDc,CDCd,cAAc,AAAC,CACb,UAAU,CHWU,OAAqB,CGVzC,KAAK,CDQyB,IAAI,CCPnC,ACAH,ADHE,gBCGc,CDHd,cAAc,AAAC,CACb,UAAU,CHYU,OAAO,CGX3B,KAAK,CDQyB,IAAI,CCPnC,ACIH,ADPE,aCOW,CDPX,cAAc,AAAC,CACb,UAAU,CHaU,OAAO,CGZ3B,KAAK,CDQyB,IAAI,CCPnC,ACQH,ADXE,gBCWc,CDXd,cAAc,AAAC,CACb,UAAU,CHcU,OAAO,CGb3B,KAAK,CDQyB,IAAI,CCPnC,ACYH,ADfE,eCea,CDfb,cAAc,AAAC,CACb,UAAU,CHeU,OAAO,CGd3B,KAAK,CDQyB,IAAI,CCPnC" } \ No newline at end of file diff --git a/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js index a185f09..1b38492 100644 --- a/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js +++ b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.js @@ -2,7 +2,7 @@ * bootstrap-tooltip-custom-class * v1.0.4 * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme * License: MIT */ diff --git a/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js index 643aebe..d6af620 100644 --- a/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js +++ b/bootstrap-v3/popover/dist/js/bootstrap-popover-custom-class.min.js @@ -2,7 +2,7 @@ * bootstrap-tooltip-custom-class * v1.0.4 * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme * License: MIT */ diff --git a/bootstrap-v3/popover/src/scss/_variables.scss b/bootstrap-v3/popover/src/scss/_variables.scss index 67cd032..8f33c95 100644 --- a/bootstrap-v3/popover/src/scss/_variables.scss +++ b/bootstrap-v3/popover/src/scss/_variables.scss @@ -13,4 +13,4 @@ $popover-warning-title-bg: $brand-warning !default; // Popover danger background color $popover-danger-title-bg: $brand-danger !default; -$popover-custom-title-color: #fff !default; +$popover-custom-title-color: #fff !default; diff --git a/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.css b/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.css index d7d66bb..e3a94a8 100644 --- a/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.css +++ b/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.css @@ -2,7 +2,7 @@ * bootstrap-tooltip-custom-class * v1.0.4 * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme * License: MIT */ diff --git a/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css b/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css index de92eeb..20c5ad5 100644 --- a/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css +++ b/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css @@ -2,7 +2,7 @@ * bootstrap-tooltip-custom-class * v1.0.4 * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme * License: MIT */ diff --git a/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map b/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map index e40af02..b652ec3 100644 --- a/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map +++ b/bootstrap-v3/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css.map @@ -3,12 +3,12 @@ "file": "bootstrap-tooltip-custom-class.min.css", "sources": [ "../../src/scss/main.scss", - "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss", + "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss", "../../src/scss/bootstrap-tooltip-custom-class.scss", "../../src/scss/_variables.scss", "../../src/scss/_mixin.scss", "../../src/scss/_tooltips.scss" ], "names": [], - "mappings": "AKGA,ADGE,gBCHc,CDGd,cAAc,AAAC,CACb,gBAAgB,CHUI,OAAqB,CGTzC,KAAK,CHugBqB,IAAI,CGtgB/B,ACNH,ADQE,gBCRc,ADQb,IAAI,CAAC,cAAc,AAAC,CACnB,gBAAgB,CHKI,OAAqB,CGJ1C,ACVH,ADYE,gBCZc,ADYb,MAAM,CAAC,cAAc,AAAC,CACrB,kBAAkB,CHCE,OAAqB,CGA1C,ACdH,ADgBE,gBChBc,ADgBb,KAAK,CAAC,cAAc,AAAC,CACpB,iBAAiB,CHHG,OAAqB,CGI1C,AClBH,ADoBE,gBCpBc,ADoBb,OAAO,CAAC,cAAc,AAAC,CACtB,mBAAmB,CHPC,OAAqB,CGQ1C,AClBH,ADDE,gBCCc,CDDd,cAAc,AAAC,CACb,gBAAgB,CHWI,OAAO,CGV3B,KAAK,CHugBqB,IAAI,CGtgB/B,ACFH,ADIE,gBCJc,ADIb,IAAI,CAAC,cAAc,AAAC,CACnB,gBAAgB,CHMI,OAAO,CGL5B,ACNH,ADQE,gBCRc,ADQb,MAAM,CAAC,cAAc,AAAC,CACrB,kBAAkB,CHEE,OAAO,CGD5B,ACVH,ADYE,gBCZc,ADYb,KAAK,CAAC,cAAc,AAAC,CACpB,iBAAiB,CHFG,OAAO,CGG5B,ACdH,ADgBE,gBChBc,ADgBb,OAAO,CAAC,cAAc,AAAC,CACtB,mBAAmB,CHNC,OAAO,CGO5B,ACdH,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AAC,cAAc,AAAC,CACpB,iBAAiB,CHDG,OAAO,CGE5B,ACTH,ADWE,aCXW,ADWV,OAAO,CAAC,cAAc,AAAC,CACtB,mBAAmB,CHLC,OAAO,CGM5B,ACTH,ADVE,gBCUc,CDVd,cAAc,AAAC,CACb,gBAAgB,CHaI,OAAO,CGZ3B,KAAK,CHugBqB,IAAI,CGtgB/B,ACOH,ADLE,gBCKc,ADLb,IAAI,CAAC,cAAc,AAAC,CACnB,gBAAgB,CHQI,OAAO,CGP5B,ACGH,ADDE,gBCCc,ADDb,MAAM,CAAC,cAAc,AAAC,CACrB,kBAAkB,CHIE,OAAO,CGH5B,ACDH,ADGE,gBCHc,ADGb,KAAK,CAAC,cAAc,AAAC,CACpB,iBAAiB,CHAG,OAAO,CGC5B,ACLH,ADOE,gBCPc,ADOb,OAAO,CAAC,cAAc,AAAC,CACtB,mBAAmB,CHJC,OAAO,CGK5B,ACLH,ADdE,eCca,CDdb,cAAc,AAAC,CACb,gBAAgB,CHcI,OAAO,CGb3B,KAAK,CHugBqB,IAAI,CGtgB/B,ACWH,ADTE,eCSa,ADTZ,IAAI,CAAC,cAAc,AAAC,CACnB,gBAAgB,CHSI,OAAO,CGR5B,ACOH,ADLE,eCKa,ADLZ,MAAM,CAAC,cAAc,AAAC,CACrB,kBAAkB,CHKE,OAAO,CGJ5B,ACGH,ADDE,eCCa,ADDZ,KAAK,CAAC,cAAc,AAAC,CACpB,iBAAiB,CHCG,OAAO,CGA5B,ACDH,ADGE,eCHa,ADGZ,OAAO,CAAC,cAAc,AAAC,CACtB,mBAAmB,CHHC,OAAO,CGI5B" } \ No newline at end of file diff --git a/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js b/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js index f0c6524..27ee29b 100644 --- a/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js +++ b/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.js @@ -2,7 +2,7 @@ * bootstrap-tooltip-custom-class * v1.0.4 * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme * License: MIT */ diff --git a/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js b/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js index 8db727b..c91c7fa 100644 --- a/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js +++ b/bootstrap-v3/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js @@ -2,7 +2,7 @@ * bootstrap-tooltip-custom-class * v1.0.4 * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme * License: MIT */ diff --git a/bootstrap-v4-alpha/popover/demo/index.html b/bootstrap-v4-alpha/popover/demo/index.html index 2cebe26..ec3511f 100644 --- a/bootstrap-v4-alpha/popover/demo/index.html +++ b/bootstrap-v4-alpha/popover/demo/index.html @@ -1,102 +1,102 @@ - - Bootstrap v4-alpha Tooltip Custom Classes - + + Bootstrap v4-alpha Popover Custom Classes + - - - + + + - -
+
-

Static examples

-
-
-

Popover primary example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
-
-

Popover success example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
-
-

Popover info example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
-
-

Popover warning example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
-
-

Popover danger example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
+

Static examples

+
+
+

Popover primary example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
-
-
-

Custom popover example

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
-
-

Another custom popover

-
-

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

-
-
+
+

Popover success example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+

Popover info example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+

Popover warning example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+

Popover danger example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+
+
+

Custom popover example

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
+

Another custom popover

+
+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

+
+
+
-

Dinamic examples

-
- - - - - -
-
- - -
+

Dinamic examples

+
+ + + + + +
+
+ + +
-
+
- - - - - + + + + + diff --git a/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.css b/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.css index 46f5494..6e057af 100644 --- a/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.css +++ b/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.css @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + .popover-primary .popover-title { background-color: #0275d8; color: #fff; diff --git a/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css b/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css index 216f0ad..4642990 100644 --- a/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css +++ b/bootstrap-v4-alpha/popover/dist/css/bootstrap-popover-custom-class.min.css @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + .popover-primary .popover-title{background-color:#0275d8;color:#fff}.popover-success .popover-title{background-color:#5cb85c;color:#fff}.popover-info .popover-title{background-color:#5bc0de;color:#fff}.popover-warning .popover-title{background-color:#f0ad4e;color:#fff}.popover-danger .popover-title{background-color:#d9534f;color:#fff} /*# sourceMappingURL=bootstrap-popover-custom-class.min.css.map */ \ No newline at end of file diff --git a/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.js b/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.js index 6cca8a9..2db44e3 100644 --- a/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.js +++ b/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.js @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + (function($) { if (!$.fn.popover) { diff --git a/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.min.js b/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.min.js index 0feda13..1a1e6bd 100644 --- a/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.min.js +++ b/bootstrap-v4-alpha/popover/dist/js/bootstrap-popover-custom-class.min.js @@ -1,10 +1,10 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + !function(t){if(!t.fn.popover)throw new Error("Bootstrap Popover must be included first!");var o=t.fn.popover.Constructor;t.extend(o.Default,{customClass:""});var s=o.prototype.show;o.prototype.show=function(){if(s.apply(this),this.config.customClass){var o=this.getTipElement();t(o).addClass(this.config.customClass)}}}(window.jQuery); \ No newline at end of file diff --git a/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.css b/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.css index fe56c69..145f4bd 100644 --- a/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.css +++ b/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.css @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + .tooltip-primary .tooltip-inner { background-color: #0275d8; color: #fff; diff --git a/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css b/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css index 0bfdcb4..cf0ea4c 100644 --- a/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css +++ b/bootstrap-v4-alpha/tooltip/dist/css/bootstrap-tooltip-custom-class.min.css @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + .tooltip-primary .tooltip-inner{background-color:#0275d8;color:#fff}.tooltip-primary.tooltip-top .tooltip-inner::before,.tooltip-primary.bs-tether-element-attached-bottom .tooltip-inner::before{border-top-color:#0275d8}.tooltip-primary.tooltip-right .tooltip-inner::before,.tooltip-primary.bs-tether-element-attached-left .tooltip-inner::before{border-right-color:#0275d8}.tooltip-primary.tooltip-bottom .tooltip-inner::before,.tooltip-primary.bs-tether-element-attached-top .tooltip-inner::before{border-bottom-color:#0275d8}.tooltip-primary.tooltip-left .tooltip-inner::before,.tooltip-primary.bs-tether-element-attached-right .tooltip-inner::before{border-left-color:#0275d8}.tooltip-success .tooltip-inner{background-color:#5cb85c;color:#fff}.tooltip-success.tooltip-top .tooltip-inner::before,.tooltip-success.bs-tether-element-attached-bottom .tooltip-inner::before{border-top-color:#5cb85c}.tooltip-success.tooltip-right .tooltip-inner::before,.tooltip-success.bs-tether-element-attached-left .tooltip-inner::before{border-right-color:#5cb85c}.tooltip-success.tooltip-bottom .tooltip-inner::before,.tooltip-success.bs-tether-element-attached-top .tooltip-inner::before{border-bottom-color:#5cb85c}.tooltip-success.tooltip-left .tooltip-inner::before,.tooltip-success.bs-tether-element-attached-right .tooltip-inner::before{border-left-color:#5cb85c}.tooltip-info .tooltip-inner{background-color:#5bc0de;color:#fff}.tooltip-info.tooltip-top .tooltip-inner::before,.tooltip-info.bs-tether-element-attached-bottom .tooltip-inner::before{border-top-color:#5bc0de}.tooltip-info.tooltip-right .tooltip-inner::before,.tooltip-info.bs-tether-element-attached-left .tooltip-inner::before{border-right-color:#5bc0de}.tooltip-info.tooltip-bottom .tooltip-inner::before,.tooltip-info.bs-tether-element-attached-top .tooltip-inner::before{border-bottom-color:#5bc0de}.tooltip-info.tooltip-left .tooltip-inner::before,.tooltip-info.bs-tether-element-attached-right .tooltip-inner::before{border-left-color:#5bc0de}.tooltip-warning .tooltip-inner{background-color:#f0ad4e;color:#fff}.tooltip-warning.tooltip-top .tooltip-inner::before,.tooltip-warning.bs-tether-element-attached-bottom .tooltip-inner::before{border-top-color:#f0ad4e}.tooltip-warning.tooltip-right .tooltip-inner::before,.tooltip-warning.bs-tether-element-attached-left .tooltip-inner::before{border-right-color:#f0ad4e}.tooltip-warning.tooltip-bottom .tooltip-inner::before,.tooltip-warning.bs-tether-element-attached-top .tooltip-inner::before{border-bottom-color:#f0ad4e}.tooltip-warning.tooltip-left .tooltip-inner::before,.tooltip-warning.bs-tether-element-attached-right .tooltip-inner::before{border-left-color:#f0ad4e}.tooltip-danger .tooltip-inner{background-color:#d9534f;color:#fff}.tooltip-danger.tooltip-top .tooltip-inner::before,.tooltip-danger.bs-tether-element-attached-bottom .tooltip-inner::before{border-top-color:#d9534f}.tooltip-danger.tooltip-right .tooltip-inner::before,.tooltip-danger.bs-tether-element-attached-left .tooltip-inner::before{border-right-color:#d9534f}.tooltip-danger.tooltip-bottom .tooltip-inner::before,.tooltip-danger.bs-tether-element-attached-top .tooltip-inner::before{border-bottom-color:#d9534f}.tooltip-danger.tooltip-left .tooltip-inner::before,.tooltip-danger.bs-tether-element-attached-right .tooltip-inner::before{border-left-color:#d9534f} /*# sourceMappingURL=bootstrap-tooltip-custom-class.min.css.map */ \ No newline at end of file diff --git a/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.js b/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.js index f63c2d8..5868772 100644 --- a/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.js +++ b/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.js @@ -1,12 +1,12 @@ -/*! - * bootstrap-tooltip-custom-class - * v1.0.4 - * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme - * License: MIT - */ - - +/*! + * bootstrap-tooltip-custom-class + * v1.0.4 + * Extends Bootstrap Tooltip plugin by adding custom classes. + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * License: MIT + */ + + (function($) { if (!$.fn.tooltip) { diff --git a/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js b/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js index 6af789c..5b7f1ba 100644 --- a/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js +++ b/bootstrap-v4-alpha/tooltip/dist/js/bootstrap-tooltip-custom-class.min.js @@ -2,7 +2,7 @@ * bootstrap-tooltip-custom-class * v1.0.4 * Extends Bootstrap Tooltip plugin by adding custom classes. - * Copyright (c) 2019 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme + * Copyright (c) 2017 - 2020 Andrei Victor Bulearca - https://github.com/andreivictor/bootstrap-tooltip-custom-class#readme * License: MIT */ diff --git a/bootstrap-v4/popover/demo/index.html b/bootstrap-v4/popover/demo/index.html index fb7c1ec..ae5b5b8 100644 --- a/bootstrap-v4/popover/demo/index.html +++ b/bootstrap-v4/popover/demo/index.html @@ -2,7 +2,7 @@ - Bootstrap v4 Tooltip Custom Classes + Bootstrap v4 Popover Custom Classes @@ -14,7 +14,7 @@