1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 09:04:14 +02:00

Convert popover's arrows to generated CSS content via :before/:after

This commit is contained in:
Bernardo Gurgel Filho
2015-08-23 17:54:38 -03:00
parent 2ae5fdf9dd
commit 8ef66df6d7
2 changed files with 75 additions and 53 deletions

View File

@@ -28,7 +28,6 @@ const Popover = (($) => {
trigger : 'click',
content : '',
template : '<div class="popover" role="tooltip">'
+ '<div class="popover-arrow"></div>'
+ '<h3 class="popover-title"></h3>'
+ '<div class="popover-content"></div></div>'
})
@@ -44,8 +43,7 @@ const Popover = (($) => {
const Selector = {
TITLE : '.popover-title',
CONTENT : '.popover-content',
ARROW : '.popover-arrow'
CONTENT : '.popover-content'
}
const Event = {