diff --git a/build/minified/elements/button.min.css b/build/minified/elements/button.min.css
index af60e584f..1dfc6ac35 100644
--- a/build/minified/elements/button.min.css
+++ b/build/minified/elements/button.min.css
@@ -1 +1 @@
-.ui.button{cursor:pointer;display:inline-block;vertical-align:middle;min-height:1em;outline:0;border:0;background-color:#EDEDED;color:#999;padding:.8em 1.5em;font-size:1rem;text-transform:uppercase;line-height:1;font-weight:700;font-style:normal;text-align:center;text-shadow:none;-webkit-border-radius:.3125em;-moz-border-radius:.3125em;border-radius:.3125em;-webkit-box-shadow:0 -.185rem 0 rgba(0,0,0,.1) inset;-moz-box-shadow:0 -.185rem 0 rgba(0,0,0,.1) inset;box-shadow:0 -.185rem 0 rgba(0,0,0,.1) inset;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-moz-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-o-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-ms-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease}.ui.button>.icon{margin-right:.5em;line-height:1;-webkit-transition:opacity .1s ease;-moz-transition:opacity .1s ease;-o-transition:opacity .1s ease;-ms-transition:opacity .1s ease;transition:opacity .1s ease}.ui.buttons .button.active,.ui.button.active{opacity:1!important;background-color:#E6E6E6;background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(0,0,0,.1)),to(rgba(0,0,0,.05)));background-image:-webkit-linear-gradient(rgba(0,0,0,.1) 0,rgba(0,0,0,.05) 100%);background-image:-moz-linear-gradient(rgba(0,0,0,.1) 0,rgba(0,0,0,.05) 100%);background-image:-o-linear-gradient(rgba(0,0,0,.1) 0,rgba(0,0,0,.05) 100%);background-image:linear-gradient(rgba(0,0,0,.1) 0,rgba(0,0,0,.05) 100%);-webkit-box-shadow:0 .125em .125em 0 rgba(0,0,0,.1) inset;-moz-box-shadow:0 .125em .125em 0 rgba(0,0,0,.1) inset;box-shadow:0 .125em .125em 0 rgba(0,0,0,.1) inset}.ui.buttons .button.active,.ui.buttons .button.active a,.ui.button.active,.ui.button.active a{color:#666}.ui.button:hover,.ui.button.hover{opacity:1!important;background-color:#DEDEDE;color:#777}.ui.button:hover .icon,.ui.button.hover .icon{opacity:.85}.ui.button:active,.ui.button.down{opacity:1!important;background-color:#D8D8D8;color:#777;-webkit-box-shadow:0 0 .125em 1px rgba(0,0,0,.1) inset;-moz-box-shadow:0 0 .125em 1px rgba(0,0,0,.1) inset;box-shadow:0 0 .125em 1px rgba(0,0,0,.1) inset}.ui.button.loading,.ui.button.loading.hover{position:relative;cursor:default;opacity:.75;color:#888!important;background-image:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;-webkit-transition:all 0s linear;-moz-transition:all 0s linear;-o-transition:all 0s linear;-ms-transition:all 0s linear;transition:all 0s linear}.ui.button.loading:after{position:absolute;top:0;left:0;width:100%;height:100%;content:'';background:#eee url(../images/loader-tiny.gif) no-repeat 50% 50%;background-position:50% 50%;background-repeat:no-repeat;-moz-border-radius:.2em;-webkit-border-radius:.2em;border-radius:.2em}.ui.buttons .button.error,.ui.buttons .button.error.hover,.ui.buttons .button.error.down,.ui.button.error,.ui.button.error.hover,.ui.button.error.down{cursor:default;position:relative;background-color:#EE141D;color:#FFF;text-shadow:none;-webkit-transition:all 0s linear;-moz-transition:all 0s linear;-o-transition:all 0s linear;-ms-transition:all 0s linear;transition:all 0s linear}.ui.button.success,.ui.button.success.hover,.ui.button.success.down{background-color:#59B94B;color:#FFF;border-color:#588D0F}.ui.button.disabled,.ui.button.disabled.hover,.ui.button.disabled.down{cursor:default;color:#DDD;background-color:rgba(50,50,50,.05)!important;background-image:none!important;text-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}.ui.buttons.black .button,.ui.button.black{background-color:#5C6166;color:#FFF}.ui.buttons.black .button.hover,.ui.buttons.black .button:hover,.ui.button.black.hover,.ui.button.black:hover{background-color:#4C4C4C;color:#FFF}.ui.buttons.black .button.down,.ui.buttons.black .button:active,.ui.button.black.down,.ui.button.black:active{background-color:#333;color:#FFF}.ui.buttons.green .button,.ui.button.green{background-color:#A1CF64;color:#FFF}.ui.buttons.green .button.hover,.ui.buttons.green .button:hover,.ui.button.green.hover,.ui.button.green:hover,.ui.buttons.green .button.active,.ui.button.green.active{background-color:#89B84C;color:#FFF}.ui.buttons.green .button.down,.ui.buttons.green .button:active,.ui.button.green.down,.ui.button.green:active{background-color:#7AAA3D;color:#FFF}.ui.buttons.red .button,.ui.button.red{background-color:#EF4D6D;color:#FFF}.ui.buttons.red .button.hover,.ui.buttons.red .button:hover,.ui.button.red.hover,.ui.button.red:hover,.ui.buttons.red .button.active,.ui.button.red.active{background-color:#DE3859;color:#FFF}.ui.buttons.red .button.down,.ui.buttons.red .button:active,.ui.button.red.down,.ui.button.red:active{background-color:#CD2D4D;color:#FFF}.ui.buttons.blue .button,.ui.button.blue{background-color:#6ECFF5;color:#FFF}.ui.buttons.blue .button.hover,.ui.buttons.blue .button:hover,.ui.button.blue.hover,.ui.button.blue:hover,.ui.buttons.blue .button.active,.ui.button.blue.active{background-color:#1AB8F3;color:#FFF}.ui.buttons.blue .button.down,.ui.buttons.blue .button:active,.ui.button.blue.down,.ui.button.blue:active{background-color:#0AA5DF;color:#FFF}.ui.buttons.purple .button,.ui.button.purple{background-color:#564F8A;color:#FFF}.ui.buttons.purple .button.hover,.ui.buttons.purple .button:hover,.ui.button.purple.hover,.ui.button.purple:hover,.ui.buttons.purple .button.active,.ui.button.purple.active{background-color:#3E3773;color:#FFF}.ui.buttons.purple .button.down,.ui.buttons.purple .button:active,.ui.button.purple.down,.ui.button.purple:active{background-color:#2E2860;color:#FFF}.ui.buttons.teal .button,.ui.button.teal{background-color:#00B5AD;color:#FFF}.ui.buttons.teal .button.hover,.ui.buttons.teal .button:hover,.ui.button.teal.hover,.ui.button.teal:hover,.ui.buttons.teal .button.active,.ui.button.teal.active{background-color:#009A93;color:#FFF}.ui.buttons.teal .button.down,.ui.buttons.teal .button:active,.ui.button.teal.down,.ui.button.teal:active{background-color:#00847E;color:#FFF}.ui.buttons.positive .button,.ui.button.positive{background-color:#A1CF64;color:#FFF}.ui.buttons.positive .button.hover,.ui.buttons.positive .button:hover,.ui.button.positive.hover,.ui.button.positive:hover,.ui.buttons.positive .button.active,.ui.button.positive.active{background-color:#89B84C;color:#FFF}.ui.buttons.positive .button.down,.ui.buttons.positive .button:active,.ui.button.positive.down,.ui.button.positive:active{background-color:#7AAA3D;color:#FFF}.ui.buttons.negative .button,.ui.button.negative{background-color:#EF4D6D;color:#FFF}.ui.buttons.negative .button.hover,.ui.buttons.negative .button:hover,.ui.button.negative.hover,.ui.button.negative:hover,.ui.buttons.negative .button.active,.ui.button.negative.active{background-color:#DE3859;color:#FFF}.ui.buttons.negative .button.down,.ui.buttons.negative .button:active,.ui.button.negative.down,.ui.button.negative:active{background-color:#CD2D4D;color:#FFF}.ui.buttons .button,.ui.button{font-size:1rem}.ui.buttons.mini .button,.ui.mini.button{font-size:.8rem;padding:.6em .8em}.ui.tiny.buttons .button,.ui.tiny.button{font-size:.9rem;padding:.6em .8em}.ui.small.buttons .button,.ui.small.button{font-size:.9rem}.ui.large.buttons .button,.ui.large.button{font-size:1.125rem}.ui.big.buttons .button,.ui.big.button{font-size:1.25rem}.ui.huge.buttons .button,.ui.huge.button{font-size:1.375rem;padding-left:2em;padding-right:2em}.ui.massive.buttons .button,.ui.massive.button{font-size:1.5rem;font-weight:700;padding-left:2.5em;padding-right:2.5em}.ui.huge.button.loading:after{background-image:url(../images/loader-small.gif)}.ui.massive.buttons .button.loading:after,.ui.gigantic.buttons .button.loading:after,.ui.massive.button.loading:after,.ui.gigantic.button.loading:after{background-image:url(../images/loader-medium.gif)}.ui.huge.grey.button.loading:after,.ui.huge.button.loading.active:after{background-image:url(../images/loader-small.gif)}.ui.massive.grey.buttons .button.loading:after,.ui.gigantic.grey.buttons .button.loading:after,.ui.massive.grey.button.loading:after,.ui.gigantic.grey.button.loading:after,.ui.massive.grey.buttons .button.loading.active:after,.ui.gigantic.grey.buttons .button.loading.active:after,.ui.massive.button.loading.active:after,.ui.gigantic.button.loading.active:after{background-image:url(../images/loader-medium.gif)}.ui.icon.buttons .button,.ui.icon.button{padding:.8em}.ui.icon.buttons .button>.icon,.ui.icon.button>.icon{opacity:1;height:.9em;margin:0}.ui.buttons.secondary .button,.ui.secondary.button{font-weight:400;text-transform:none;opacity:1}.ui.buttons.tertiary .button,.ui.tertiary.button{background-color:transparent;background-image:none;color:#999;font-weight:400;text-transform:none;box-shadow:none}.ui.buttons.tertiary .button:first-child{border-left:0}.ui.button.tertiary.active{opacity:.9!important}.ui.button.tertiary.hover,.ui.button.tertiary:hover{opacity:.8!important}.ui.button.tertiary.down,.ui.button.tertiary:active{opacity:1!important}.ui.labeled.icon.buttons .button,.ui.labeled.icon.button{position:relative;padding-left:4em!important;padding-right:1.4em!important}.ui.labeled.icon.buttons>.button>.icon,.ui.labeled.icon.button>.icon{position:absolute;top:0;left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;width:2.75em;height:100%;padding-top:.8em;background-color:rgba(0,0,0,.05);text-align:center;-webkit-border-radius:.3125em 0 0 .3125em;-moz-border-radius:.3125em 0 0 .3125em;border-radius:.3125em 0 0 .3125em;line-height:1;-webkit-box-shadow:-2px 0 0 0 rgba(0,0,0,.05) inset;-moz-box-shadow:-2px 0 0 0 rgba(0,0,0,.05) inset;box-shadow:-2px 0 0 0 rgba(0,0,0,.05) inset}.ui.labeled.icon.buttons .button>.icon{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui.labeled.icon.buttons .button:first-child>.icon{border-top-left-radius:.3125em;border-bottom-left-radius:.3125em}.ui.labeled.icon.buttons .button:last-child>.icon{border-top-right-radius:.3125em;border-bottom-right-radius:.3125em}.ui.vertical.labeled.icon.buttons .button:first-child>.icon{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;border-top-left-radius:.3125em}.ui.vertical.labeled.icon.buttons .button:last-child>.icon{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;border-bottom-left-radius:.3125em}.ui.right.labeled.icon.button{padding-left:1.4em!important;padding-right:4em!important}.ui.right.labeled.icon.button .icon{left:auto;right:0}.ui.toggle.buttons .button.active,.ui.buttons .button.toggle.active,.ui.button.toggle.active{background-color:#BBF0A9;color:#1C8C21}.ui.buttons.toggle .ui.button.active.hover,.ui.buttons .ui.button.toggle.active.hover,.ui.button.toggle.active.hover{color:#21A627;background-color:#BBF0A9;-webkit-box-shadow:0 0 4px -2px rgba(0,0,0,.2) inset;-moz-box-shadow:0 0 4px -2px rgba(0,0,0,.2) inset;box-shadow:0 0 4px -2px rgba(0,0,0,.2) inset}.ui.button.toggle.active.hover.down{background-color:#BBF0A9;color:#21A627;-webkit-box-shadow:0 1px 3px 0 rgba(67,97,53,.5) inset;-moz-box-shadow:0 1px 3px 0 rgba(67,97,53,.5) inset;box-shadow:0 1px 3px 0 rgba(67,97,53,.5) inset}.ui.circular.button{-webkit-border-radius:10em;-moz-border-radius:10em;border-radius:10em}.ui.button.attached{display:block;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.1);-moz-box-shadow:0 0 0 1px rgba(0,0,0,.1);box-shadow:0 0 0 1px rgba(0,0,0,.1)}.ui.button.attached.top{-webkit-border-radius:.3125em .3125em 0 0;-moz-border-radius:.3125em .3125em 0 0;border-radius:.3125em .3125em 0 0}.ui.button.attached.bottom{-webkit-border-radius:0 0 .3125em .3125em;-moz-border-radius:0 0 .3125em .3125em;border-radius:0 0 .3125em .3125em}.ui.button.attached.left{display:inline-block;border-left:0;padding-right:.75em;text-align:right;-webkit-border-radius:.3125em 0 0 .3125em;-moz-border-radius:.3125em 0 0 .3125em;border-radius:.3125em 0 0 .3125em}.ui.button.attached.right{display:inline-block;padding-left:.75em;text-align:left;-webkit-border-radius:0 .3125em .3125em 0;-moz-border-radius:0 .3125em .3125em 0;border-radius:0 .3125em .3125em 0}.ui.buttons .or{position:relative;float:left;width:.3em;height:1em}.ui.buttons .or:before{position:absolute;top:50%;left:50%;content:'or';background-color:#FFF;margin-top:-.15em;margin-left:-.9em;width:1.8em;height:1.8em;line-height:1.66;color:#AAA;font-style:normal;font-weight:400;text-align:center;-moz-box-shadow:0 2px 1px 0 rgba(0,0,0,.2) inset;-webkit-box-shadow:0 2px 1px 0 rgba(0,0,0,.2) inset;box-shadow:0 2px 1px 0 rgba(0,0,0,.2) inset;-moz-border-radius:500px;-webkit-border-radius:500px;border-radius:500px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.ui.buttons .or:after{position:absolute;top:0;left:0;content:' ';width:.3em;height:1.8em;background-color:transparent;border-top:.6em solid #FFF;border-bottom:.6em solid #FFF}.ui.fluid.buttons .or{width:0!important}.ui.fluid.buttons .or:after{display:none}.attached.ui.buttons{margin:0;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.attached.ui.buttons .button:first-child{-webkit-border-radius:4px 0 0;-moz-border-radius:4px 0 0;border-radius:4px 0 0}.attached.ui.buttons .button:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0}.bottom.attached.ui.buttons{margin-top:-1px;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.bottom.attached.ui.buttons .button:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px}.bottom.attached.ui.buttons .button:last-child{-webkit-border-radius:0 0 4px;-moz-border-radius:0 0 4px;border-radius:0 0 4px}.left.attached.ui.buttons{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.left.attached.ui.buttons .button:first-child{margin-left:-1px;-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0}.left.attached.ui.buttons .button:last-child{margin-left:-1px;-webkit-border-radius:0 0 4px;-moz-border-radius:0 0 4px;border-radius:0 0 4px}.right.attached.ui.buttons,.right.attached.ui.buttons .button{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.right.attached.ui.buttons .button:first-child{margin-left:-1px;-webkit-border-radius:4px 0 0;-moz-border-radius:4px 0 0;border-radius:4px 0 0}.right.attached.ui.buttons .button:last-child{margin-left:-1px;-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px}.ui.fluid.buttons,.ui.button.fluid,.ui.fluid.buttons>.button{width:100%}.ui.two.buttons>.button{width:50%}.ui.three.buttons>.button{width:33.333%}.ui.four.buttons>.button{width:25%}.ui.five.buttons>.button{width:20%}.ui.six.buttons>.button{width:16.666%}.ui.seven.buttons>.button{width:14.285%}.ui.eight.buttons>.button{width:12.5%}.ui.nine.buttons>.button{width:11.11%}.ui.ten.buttons>.button{width:10%}.ui.eleven.buttons>.button{width:9.09%}.ui.twelve.buttons>.button{width:8.3333%}.ui.fluid.vertical.buttons,.ui.fluid.vertical.buttons>.button{width:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.ui.two.vertical.buttons>.button{height:50%}.ui.three.vertical.buttons>.button{height:33.333%}.ui.four.vertical.buttons>.button{height:25%}.ui.five.vertical.buttons>.button{height:20%}.ui.six.vertical.buttons>.button{height:16.666%}.ui.seven.vertical.buttons>.button{height:14.285%}.ui.eight.vertical.buttons>.button{height:12.5%}.ui.nine.vertical.buttons>.button{height:11.11%}.ui.ten.vertical.buttons>.button{height:10%}.ui.eleven.vertical.buttons>.button{height:9.09%}.ui.twelve.vertical.buttons>.button{height:8.3333%}.ui.buttons:after{content:".";display:block;height:0;clear:both;visibility:hidden}.ui.buttons .button{float:left;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;border-left:1px solid rgba(0,0,0,.05)}.ui.buttons .button:first-child{margin-left:0;border-top-left-radius:.3125em;border-bottom-left-radius:.3125em}.ui.buttons .button:last-child{border-top-right-radius:.3125em;border-bottom-right-radius:.3125em}.ui.buttons.vertical{display:inline-block}.ui.buttons.vertical .button{display:block;float:none;border-bottom:1px solid rgba(0,0,0,.05);border-left:0;box-shadow:none}.ui.buttons.vertical .button:first-child,.ui.buttons.vertical .mini.button:first-child,.ui.buttons.vertical .tiny.button:first-child,.ui.buttons.vertical .small.button:first-child,.ui.buttons.vertical .massive.button:first-child,.ui.buttons.vertical .huge.button:first-child{margin-top:0;-moz-border-radius:.3125em .3125em 0 0;-webkit-border-radius:.3125em .3125em 0 0;border-radius:.3125em .3125em 0 0}.ui.buttons.vertical .button:last-child,.ui.buttons.vertical .mini.button:last-child,.ui.buttons.vertical .tiny.button:last-child,.ui.buttons.vertical .small.button:last-child,.ui.buttons.vertical .massive.button:last-child,.ui.buttons.vertical .huge.button:last-child,.ui.buttons.vertical .gigantic.button:last-child{-moz-border-radius:0 0 .3125em .3125em;-webkit-border-radius:0 0 .3125em .3125em;border-radius:0 0 .3125em .3125em}
\ No newline at end of file
+.ui.button{cursor:pointer;display:inline-block;vertical-align:middle;min-height:1em;outline:0;border:0;background-color:#EDEDED;color:#999;padding:.8em 1.5em;font-size:1rem;text-transform:uppercase;line-height:1;font-weight:700;font-style:normal;text-align:center;text-shadow:none;-webkit-border-radius:.3125em;-moz-border-radius:.3125em;border-radius:.3125em;-webkit-box-shadow:0 -.185rem 0 rgba(0,0,0,.1) inset;-moz-box-shadow:0 -.185rem 0 rgba(0,0,0,.1) inset;box-shadow:0 -.185rem 0 rgba(0,0,0,.1) inset;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-moz-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-o-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-ms-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease}.ui.button>.icon{margin-right:.5em;line-height:1;-webkit-transition:opacity .1s ease;-moz-transition:opacity .1s ease;-o-transition:opacity .1s ease;-ms-transition:opacity .1s ease;transition:opacity .1s ease}.ui.buttons .button.active,.ui.button.active{opacity:1!important;background-color:#E6E6E6;background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(0,0,0,.1)),to(rgba(0,0,0,.05)));background-image:-webkit-linear-gradient(rgba(0,0,0,.1) 0,rgba(0,0,0,.05) 100%);background-image:-moz-linear-gradient(rgba(0,0,0,.1) 0,rgba(0,0,0,.05) 100%);background-image:-o-linear-gradient(rgba(0,0,0,.1) 0,rgba(0,0,0,.05) 100%);background-image:linear-gradient(rgba(0,0,0,.1) 0,rgba(0,0,0,.05) 100%);-webkit-box-shadow:0 .125em .125em 0 rgba(0,0,0,.1) inset;-moz-box-shadow:0 .125em .125em 0 rgba(0,0,0,.1) inset;box-shadow:0 .125em .125em 0 rgba(0,0,0,.1) inset}.ui.buttons .button.active,.ui.buttons .button.active a,.ui.button.active,.ui.button.active a{color:#666}.ui.button:hover,.ui.button.hover{opacity:1!important;background-color:#DEDEDE;color:#777}.ui.button:hover .icon,.ui.button.hover .icon{opacity:.85}.ui.button:active,.ui.button.down{opacity:1!important;background-color:#D8D8D8;color:#777;-webkit-box-shadow:0 0 .125em 1px rgba(0,0,0,.1) inset;-moz-box-shadow:0 0 .125em 1px rgba(0,0,0,.1) inset;box-shadow:0 0 .125em 1px rgba(0,0,0,.1) inset}.ui.button.loading,.ui.button.loading.hover{position:relative;cursor:default;opacity:.75;color:#888!important;background-image:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;-webkit-transition:all 0s linear;-moz-transition:all 0s linear;-o-transition:all 0s linear;-ms-transition:all 0s linear;transition:all 0s linear}.ui.button.loading:after{position:absolute;top:0;left:0;width:100%;height:100%;content:'';background:#eee url(../images/loader-tiny.gif) no-repeat 50% 50%;background-position:50% 50%;background-repeat:no-repeat;-moz-border-radius:.2em;-webkit-border-radius:.2em;border-radius:.2em}.ui.buttons .button.error,.ui.buttons .button.error.hover,.ui.buttons .button.error.down,.ui.button.error,.ui.button.error.hover,.ui.button.error.down{cursor:default;position:relative;background-color:#EE141D;color:#FFF;text-shadow:none;-webkit-transition:all 0s linear;-moz-transition:all 0s linear;-o-transition:all 0s linear;-ms-transition:all 0s linear;transition:all 0s linear}.ui.button.success,.ui.button.success.hover,.ui.button.success.down{background-color:#59B94B;color:#FFF;border-color:#588D0F}.ui.button.disabled,.ui.button.disabled.hover,.ui.button.disabled.down{cursor:default;color:#DDD;background-color:rgba(50,50,50,.05)!important;background-image:none!important;text-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}.ui.buttons.black .button,.ui.button.black{background-color:#5C6166;color:#FFF}.ui.buttons.black .button.hover,.ui.buttons.black .button:hover,.ui.button.black.hover,.ui.button.black:hover{background-color:#4C4C4C;color:#FFF}.ui.buttons.black .button.down,.ui.buttons.black .button:active,.ui.button.black.down,.ui.button.black:active{background-color:#333;color:#FFF}.ui.buttons.green .button,.ui.button.green{background-color:#A1CF64;color:#FFF}.ui.buttons.green .button.hover,.ui.buttons.green .button:hover,.ui.button.green.hover,.ui.button.green:hover,.ui.buttons.green .button.active,.ui.button.green.active{background-color:#89B84C;color:#FFF}.ui.buttons.green .button.down,.ui.buttons.green .button:active,.ui.button.green.down,.ui.button.green:active{background-color:#7AAA3D;color:#FFF}.ui.buttons.red .button,.ui.button.red{background-color:#EF4D6D;color:#FFF}.ui.buttons.red .button.hover,.ui.buttons.red .button:hover,.ui.button.red.hover,.ui.button.red:hover,.ui.buttons.red .button.active,.ui.button.red.active{background-color:#DE3859;color:#FFF}.ui.buttons.red .button.down,.ui.buttons.red .button:active,.ui.button.red.down,.ui.button.red:active{background-color:#CD2D4D;color:#FFF}.ui.buttons.blue .button,.ui.button.blue{background-color:#6ECFF5;color:#FFF}.ui.buttons.blue .button.hover,.ui.buttons.blue .button:hover,.ui.button.blue.hover,.ui.button.blue:hover,.ui.buttons.blue .button.active,.ui.button.blue.active{background-color:#1AB8F3;color:#FFF}.ui.buttons.blue .button.down,.ui.buttons.blue .button:active,.ui.button.blue.down,.ui.button.blue:active{background-color:#0AA5DF;color:#FFF}.ui.buttons.purple .button,.ui.button.purple{background-color:#564F8A;color:#FFF}.ui.buttons.purple .button.hover,.ui.buttons.purple .button:hover,.ui.button.purple.hover,.ui.button.purple:hover,.ui.buttons.purple .button.active,.ui.button.purple.active{background-color:#3E3773;color:#FFF}.ui.buttons.purple .button.down,.ui.buttons.purple .button:active,.ui.button.purple.down,.ui.button.purple:active{background-color:#2E2860;color:#FFF}.ui.buttons.teal .button,.ui.button.teal{background-color:#00B5AD;color:#FFF}.ui.buttons.teal .button.hover,.ui.buttons.teal .button:hover,.ui.button.teal.hover,.ui.button.teal:hover,.ui.buttons.teal .button.active,.ui.button.teal.active{background-color:#009A93;color:#FFF}.ui.buttons.teal .button.down,.ui.buttons.teal .button:active,.ui.button.teal.down,.ui.button.teal:active{background-color:#00847E;color:#FFF}.ui.buttons.positive .button,.ui.button.positive{background-color:#A1CF64;color:#FFF}.ui.buttons.positive .button.hover,.ui.buttons.positive .button:hover,.ui.button.positive.hover,.ui.button.positive:hover,.ui.buttons.positive .button.active,.ui.button.positive.active{background-color:#89B84C;color:#FFF}.ui.buttons.positive .button.down,.ui.buttons.positive .button:active,.ui.button.positive.down,.ui.button.positive:active{background-color:#7AAA3D;color:#FFF}.ui.buttons.negative .button,.ui.button.negative{background-color:#EF4D6D;color:#FFF}.ui.buttons.negative .button.hover,.ui.buttons.negative .button:hover,.ui.button.negative.hover,.ui.button.negative:hover,.ui.buttons.negative .button.active,.ui.button.negative.active{background-color:#DE3859;color:#FFF}.ui.buttons.negative .button.down,.ui.buttons.negative .button:active,.ui.button.negative.down,.ui.button.negative:active{background-color:#CD2D4D;color:#FFF}.ui.buttons .button,.ui.button{font-size:1rem}.ui.buttons.mini .button,.ui.mini.button{font-size:.8rem;padding:.6em .8em}.ui.tiny.buttons .button,.ui.tiny.button{font-size:.9rem;padding:.6em .8em}.ui.small.buttons .button,.ui.small.button{font-size:.9rem}.ui.large.buttons .button,.ui.large.button{font-size:1.125rem}.ui.big.buttons .button,.ui.big.button{font-size:1.25rem}.ui.huge.buttons .button,.ui.huge.button{font-size:1.375rem;padding-left:2em;padding-right:2em}.ui.massive.buttons .button,.ui.massive.button{font-size:1.5rem;font-weight:700;padding-left:2.5em;padding-right:2.5em}.ui.huge.button.loading:after{background-image:url(../images/loader-small.gif)}.ui.massive.buttons .button.loading:after,.ui.gigantic.buttons .button.loading:after,.ui.massive.button.loading:after,.ui.gigantic.button.loading:after{background-image:url(../images/loader-medium.gif)}.ui.huge.grey.button.loading:after,.ui.huge.button.loading.active:after{background-image:url(../images/loader-small.gif)}.ui.massive.grey.buttons .button.loading:after,.ui.gigantic.grey.buttons .button.loading:after,.ui.massive.grey.button.loading:after,.ui.gigantic.grey.button.loading:after,.ui.massive.grey.buttons .button.loading.active:after,.ui.gigantic.grey.buttons .button.loading.active:after,.ui.massive.button.loading.active:after,.ui.gigantic.button.loading.active:after{background-image:url(../images/loader-medium.gif)}.ui.icon.buttons .button,.ui.icon.button{padding:.8em}.ui.icon.buttons .button>.icon,.ui.icon.button>.icon{opacity:1;margin:0;vertical-align:top}.ui.buttons.secondary .button,.ui.secondary.button{font-weight:400;text-transform:none;opacity:1}.ui.buttons.tertiary .button,.ui.tertiary.button{background-color:transparent;background-image:none;color:#999;font-weight:400;text-transform:none;box-shadow:none}.ui.buttons.tertiary .button:first-child{border-left:0}.ui.button.tertiary.active{opacity:.9!important}.ui.button.tertiary.hover,.ui.button.tertiary:hover{opacity:.8!important}.ui.button.tertiary.down,.ui.button.tertiary:active{opacity:1!important}.ui.labeled.icon.buttons .button,.ui.labeled.icon.button{position:relative;padding-left:4em!important;padding-right:1.4em!important}.ui.labeled.icon.buttons>.button>.icon,.ui.labeled.icon.button>.icon{position:absolute;top:0;left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;width:2.75em;height:100%;padding-top:.8em;background-color:rgba(0,0,0,.05);text-align:center;-webkit-border-radius:.3125em 0 0 .3125em;-moz-border-radius:.3125em 0 0 .3125em;border-radius:.3125em 0 0 .3125em;line-height:1;-webkit-box-shadow:-2px 0 0 0 rgba(0,0,0,.05) inset;-moz-box-shadow:-2px 0 0 0 rgba(0,0,0,.05) inset;box-shadow:-2px 0 0 0 rgba(0,0,0,.05) inset}.ui.labeled.icon.buttons .button>.icon{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui.labeled.icon.buttons .button:first-child>.icon{border-top-left-radius:.3125em;border-bottom-left-radius:.3125em}.ui.labeled.icon.buttons .button:last-child>.icon{border-top-right-radius:.3125em;border-bottom-right-radius:.3125em}.ui.vertical.labeled.icon.buttons .button:first-child>.icon{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;border-top-left-radius:.3125em}.ui.vertical.labeled.icon.buttons .button:last-child>.icon{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;border-bottom-left-radius:.3125em}.ui.right.labeled.icon.button{padding-left:1.4em!important;padding-right:4em!important}.ui.right.labeled.icon.button .icon{left:auto;right:0}.ui.toggle.buttons .button.active,.ui.buttons .button.toggle.active,.ui.button.toggle.active{background-color:#BBF0A9;color:#1C8C21}.ui.buttons.toggle .ui.button.active.hover,.ui.buttons .ui.button.toggle.active.hover,.ui.button.toggle.active.hover{color:#21A627;background-color:#BBF0A9;-webkit-box-shadow:0 0 4px -2px rgba(0,0,0,.2) inset;-moz-box-shadow:0 0 4px -2px rgba(0,0,0,.2) inset;box-shadow:0 0 4px -2px rgba(0,0,0,.2) inset}.ui.button.toggle.active.hover.down{background-color:#BBF0A9;color:#21A627;-webkit-box-shadow:0 1px 3px 0 rgba(67,97,53,.5) inset;-moz-box-shadow:0 1px 3px 0 rgba(67,97,53,.5) inset;box-shadow:0 1px 3px 0 rgba(67,97,53,.5) inset}.ui.circular.button{-webkit-border-radius:10em;-moz-border-radius:10em;border-radius:10em}.ui.button.attached{display:block;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.1);-moz-box-shadow:0 0 0 1px rgba(0,0,0,.1);box-shadow:0 0 0 1px rgba(0,0,0,.1)}.ui.button.attached.top{-webkit-border-radius:.3125em .3125em 0 0;-moz-border-radius:.3125em .3125em 0 0;border-radius:.3125em .3125em 0 0}.ui.button.attached.bottom{-webkit-border-radius:0 0 .3125em .3125em;-moz-border-radius:0 0 .3125em .3125em;border-radius:0 0 .3125em .3125em}.ui.button.attached.left{display:inline-block;border-left:0;padding-right:.75em;text-align:right;-webkit-border-radius:.3125em 0 0 .3125em;-moz-border-radius:.3125em 0 0 .3125em;border-radius:.3125em 0 0 .3125em}.ui.button.attached.right{display:inline-block;padding-left:.75em;text-align:left;-webkit-border-radius:0 .3125em .3125em 0;-moz-border-radius:0 .3125em .3125em 0;border-radius:0 .3125em .3125em 0}.ui.buttons .or{position:relative;float:left;width:.3em;height:1em}.ui.buttons .or:before{position:absolute;top:50%;left:50%;content:'or';background-color:#FFF;margin-top:-.15em;margin-left:-.9em;width:1.8em;height:1.8em;line-height:1.66;color:#AAA;font-style:normal;font-weight:400;text-align:center;-moz-box-shadow:0 2px 1px 0 rgba(0,0,0,.2) inset;-webkit-box-shadow:0 2px 1px 0 rgba(0,0,0,.2) inset;box-shadow:0 2px 1px 0 rgba(0,0,0,.2) inset;-moz-border-radius:500px;-webkit-border-radius:500px;border-radius:500px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.ui.buttons .or:after{position:absolute;top:0;left:0;content:' ';width:.3em;height:1.8em;background-color:transparent;border-top:.6em solid #FFF;border-bottom:.6em solid #FFF}.ui.fluid.buttons .or{width:0!important}.ui.fluid.buttons .or:after{display:none}.attached.ui.buttons{margin:0;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.attached.ui.buttons .button:first-child{-webkit-border-radius:4px 0 0;-moz-border-radius:4px 0 0;border-radius:4px 0 0}.attached.ui.buttons .button:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0}.bottom.attached.ui.buttons{margin-top:-1px;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.bottom.attached.ui.buttons .button:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px}.bottom.attached.ui.buttons .button:last-child{-webkit-border-radius:0 0 4px;-moz-border-radius:0 0 4px;border-radius:0 0 4px}.left.attached.ui.buttons{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.left.attached.ui.buttons .button:first-child{margin-left:-1px;-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0}.left.attached.ui.buttons .button:last-child{margin-left:-1px;-webkit-border-radius:0 0 4px;-moz-border-radius:0 0 4px;border-radius:0 0 4px}.right.attached.ui.buttons,.right.attached.ui.buttons .button{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.right.attached.ui.buttons .button:first-child{margin-left:-1px;-webkit-border-radius:4px 0 0;-moz-border-radius:4px 0 0;border-radius:4px 0 0}.right.attached.ui.buttons .button:last-child{margin-left:-1px;-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px}.ui.fluid.buttons,.ui.button.fluid,.ui.fluid.buttons>.button{width:100%}.ui.two.buttons>.button{width:50%}.ui.three.buttons>.button{width:33.333%}.ui.four.buttons>.button{width:25%}.ui.five.buttons>.button{width:20%}.ui.six.buttons>.button{width:16.666%}.ui.seven.buttons>.button{width:14.285%}.ui.eight.buttons>.button{width:12.5%}.ui.nine.buttons>.button{width:11.11%}.ui.ten.buttons>.button{width:10%}.ui.eleven.buttons>.button{width:9.09%}.ui.twelve.buttons>.button{width:8.3333%}.ui.fluid.vertical.buttons,.ui.fluid.vertical.buttons>.button{width:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.ui.two.vertical.buttons>.button{height:50%}.ui.three.vertical.buttons>.button{height:33.333%}.ui.four.vertical.buttons>.button{height:25%}.ui.five.vertical.buttons>.button{height:20%}.ui.six.vertical.buttons>.button{height:16.666%}.ui.seven.vertical.buttons>.button{height:14.285%}.ui.eight.vertical.buttons>.button{height:12.5%}.ui.nine.vertical.buttons>.button{height:11.11%}.ui.ten.vertical.buttons>.button{height:10%}.ui.eleven.vertical.buttons>.button{height:9.09%}.ui.twelve.vertical.buttons>.button{height:8.3333%}.ui.buttons:after{content:".";display:block;height:0;clear:both;visibility:hidden}.ui.buttons .button{float:left;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;border-left:1px solid rgba(0,0,0,.05)}.ui.buttons .button:first-child{margin-left:0;border-top-left-radius:.3125em;border-bottom-left-radius:.3125em}.ui.buttons .button:last-child{border-top-right-radius:.3125em;border-bottom-right-radius:.3125em}.ui.buttons.vertical{display:inline-block}.ui.buttons.vertical .button{display:block;float:none;border-bottom:1px solid rgba(0,0,0,.05);border-left:0;box-shadow:none}.ui.buttons.vertical .button:first-child,.ui.buttons.vertical .mini.button:first-child,.ui.buttons.vertical .tiny.button:first-child,.ui.buttons.vertical .small.button:first-child,.ui.buttons.vertical .massive.button:first-child,.ui.buttons.vertical .huge.button:first-child{margin-top:0;-moz-border-radius:.3125em .3125em 0 0;-webkit-border-radius:.3125em .3125em 0 0;border-radius:.3125em .3125em 0 0}.ui.buttons.vertical .button:last-child,.ui.buttons.vertical .mini.button:last-child,.ui.buttons.vertical .tiny.button:last-child,.ui.buttons.vertical .small.button:last-child,.ui.buttons.vertical .massive.button:last-child,.ui.buttons.vertical .huge.button:last-child,.ui.buttons.vertical .gigantic.button:last-child{-moz-border-radius:0 0 .3125em .3125em;-webkit-border-radius:0 0 .3125em .3125em;border-radius:0 0 .3125em .3125em}
\ No newline at end of file
diff --git a/build/minified/elements/loader.min.css b/build/minified/elements/loader.min.css
index 4113663c2..4e7ebacf1 100644
--- a/build/minified/elements/loader.min.css
+++ b/build/minified/elements/loader.min.css
@@ -1 +1 @@
-.ui.loader{display:none;position:absolute;top:50%;left:50%;margin:-16px 0 0 -16px;z-index:1000}.ui.dimmer .loader{display:block}.ui.loader.text{width:auto!important;height:auto!important;text-align:center;font-style:normal;margin-top:-28px;min-width:32px;padding-top:40px;font-size:14px}.ui.loader.text.mini{margin-top:-16px;min-width:16px;padding-top:20px;font-size:11px}.ui.loader.text.small{margin-top:-23px;min-width:24px;padding-top:32px;font-size:13px}.ui.loader.text.large{margin-top:-46px;min-width:64px;padding-top:80px;font-size:16px}.ui.loader.active,.ui.loader.visible{display:block}.ui.loader.disabled,.ui.loader.hidden{display:none}.ui.dimmer .ui.text.loader,.ui.inverted.text.loader{color:#FFF}.ui.dimmer .mini.ui.loader,.ui.inverted .mini.ui.loader{background-image:url(../images/loader-mini-inverted.gif)}.ui.dimmer .small.ui.loader,.ui.inverted .small.ui.loader{background-image:url(../images/loader-small-inverted.gif)}.ui.dimmer .ui.loader,.ui.inverted.loader{background-image:url(../images/loader-medium-inverted.gif)}.ui.dimmer .large.ui.loader,.ui.inverted .large.ui.loader{background-image:url(../images/loader-large-inverted.gif)}.ui.inverted.dimmer .ui.loader.mini,.ui.loader.mini{width:16px;height:16px;background-image:url(../images/loader-mini.gif);margin:-8px 0 0 -8px}.ui.inverted.dimmer .ui.loader.small,.ui.loader.small{width:24px;height:24px;background-image:url(../images/loader-small.gif);margin:-12px 0 0 -12px}.ui.inverted.dimmer .ui.loader,.ui.loader{width:32px;height:32px;background:url(../images/loader-medium.gif) no-repeat;background-position:48% 0}.ui.inverted.dimmer .ui.loader.large,.ui.loader.large{width:64px;height:64px;background-image:url(../images/loader-large.gif);margin:-32px 0 0 -32px}.ui.inline.loader{display:inline-block;vertical-align:middle;margin:0}
\ No newline at end of file
+.ui.loader{display:none;position:absolute;top:50%;left:50%;margin:-16px 0 0 -16px;z-index:1000}.ui.dimmer .loader{display:block}.ui.loader.text{width:auto!important;height:auto!important;text-align:center;font-style:normal;margin-top:-28px;min-width:32px;padding-top:40px;font-size:14px}.ui.loader.text.mini{margin-top:-16px;min-width:16px;padding-top:20px;font-size:11px}.ui.loader.text.small{margin-top:-23px;min-width:24px;padding-top:32px;font-size:13px}.ui.loader.text.large{margin-top:-46px;min-width:64px;padding-top:80px;font-size:16px}.ui.loader.active,.ui.loader.visible{display:block}.ui.loader.disabled,.ui.loader.hidden{display:none}.ui.dimmer .ui.text.loader,.ui.inverted.text.loader{color:rgba(0,0,0,.8)}.ui.dimmer .mini.ui.loader,.ui.inverted .mini.ui.loader{background-image:url(../images/loader-mini-inverted.gif)}.ui.dimmer .small.ui.loader,.ui.inverted .small.ui.loader{background-image:url(../images/loader-small-inverted.gif)}.ui.dimmer .ui.loader,.ui.inverted.loader{background-image:url(../images/loader-medium-inverted.gif)}.ui.dimmer .large.ui.loader,.ui.inverted .large.ui.loader{background-image:url(../images/loader-large-inverted.gif)}.ui.inverted.dimmer .ui.loader.mini,.ui.loader.mini{width:16px;height:16px;background-image:url(../images/loader-mini.gif);margin:-8px 0 0 -8px}.ui.inverted.dimmer .ui.loader.small,.ui.loader.small{width:24px;height:24px;background-image:url(../images/loader-small.gif);margin:-12px 0 0 -12px}.ui.inverted.dimmer .ui.loader,.ui.loader{width:32px;height:32px;background:url(../images/loader-medium.gif) no-repeat;background-position:48% 0}.ui.inverted.dimmer .ui.loader.large,.ui.loader.large{width:64px;height:64px;background-image:url(../images/loader-large.gif);margin:-32px 0 0 -32px}.ui.inline.loader{display:inline-block;vertical-align:middle;margin:0}
\ No newline at end of file
diff --git a/build/minified/modules/popup.js b/build/minified/modules/popup.js
index 1a931fcaa..2da3c6ca8 100644
--- a/build/minified/modules/popup.js
+++ b/build/minified/modules/popup.js
@@ -135,10 +135,12 @@ $.fn.popup = function(parameters) {
create: function() {
module.debug('Creating pop-up content');
var
- html = $module.data(metadata.html) || settings.html,
- title = $module.data(metadata.title) || settings.title,
- content = $module.data(metadata.content) || $module.attr('title') || settings.content
+ html = $module.data(metadata.html) || settings.html,
+ variation = $module.data(metadata.variation) || settings.variation,
+ title = $module.data(metadata.title) || settings.title,
+ content = $module.data(metadata.content) || $module.attr('title') || settings.content
;
+ console.log(variation);
if(html || content || title) {
if(!html) {
html = settings.template({
@@ -148,6 +150,7 @@ $.fn.popup = function(parameters) {
}
$popup = $('
')
.addClass(className.popup)
+ .addClass(variation)
.html(html)
;
if(settings.inline) {
@@ -160,6 +163,7 @@ $.fn.popup = function(parameters) {
.appendTo( $('body') )
;
}
+ $.proxy(settings.onInit, $popup)();
}
else {
module.error(error.content);
@@ -182,7 +186,7 @@ $.fn.popup = function(parameters) {
right : $(window).width()
},
popup = {
- width : $popup.outerWidth(),
+ width : $popup.width(),
height : $popup.outerHeight(),
position : $popup.offset()
},
@@ -264,7 +268,7 @@ $.fn.popup = function(parameters) {
windowHeight = $(window).height(),
width = $module.outerWidth(),
height = $module.outerHeight(),
- popupWidth = $popup.outerWidth(),
+ popupWidth = $popup.width(),
popupHeight = $popup.outerHeight(),
offset = (settings.inline)
@@ -614,14 +618,16 @@ $.fn.popup = function(parameters) {
$.fn.popup.settings = {
moduleName : 'Popup',
- debug : true,
- verbose : true,
- performance : true,
+ debug : false,
+ verbose : false,
+ performance : false,
namespace : 'popup',
+ onInit : function(){},
onShow : function(){},
onHide : function(){},
+ variation : '',
content : false,
html : false,
title : false,
@@ -637,9 +643,9 @@ $.fn.popup.settings = {
easing : 'easeOutQuint',
animation : 'pop',
- distanceAway : 2,
+ distanceAway : 0,
arrowOffset : 0,
- maxSearchDepth : 10,
+ maxSearchDepth : 10,
error: {
content : 'Warning: Your popup has no content specified',
@@ -649,11 +655,12 @@ $.fn.popup.settings = {
metadata: {
+ arrowOffset : 'arrowOffset',
content : 'content',
html : 'html',
- title : 'title',
position : 'position',
- arrowOffset : 'arrowOffset'
+ title : 'title',
+ variation : 'variation'
},
className : {
@@ -670,7 +677,7 @@ $.fn.popup.settings = {
var html = '';
if(typeof text !== undefined) {
if(typeof text.title !== undefined && text.title) {
- html += '' + text.title + '
';
+ html += '';
}
if(typeof text.content !== undefined && text.content) {
html += '' + text.content + '
';
diff --git a/build/minified/modules/popup.min.css b/build/minified/modules/popup.min.css
index 44d736913..c8621c891 100644
--- a/build/minified/modules/popup.min.css
+++ b/build/minified/modules/popup.min.css
@@ -1 +1 @@
-.ui.popup{display:none;position:absolute;top:57px;right:0;z-index:900;max-width:250px;background-color:#FAFAFA;padding:6px 8px;border:1px solid #DFDFDF;border:1px solid rgba(0,0,0,.12);font-size:11px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 2px 2px rgba(0,0,0,.3);-moz-box-shadow:0 2px 2px rgba(0,0,0,.3);box-shadow:0 2px 2px rgba(0,0,0,.3)}.ui.popup .ui.button,.ui.popup form.ui input .ui.popup form.ui textarea{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.ui.popup:after{font-family:Arial,"Helevetica Neue",sans-serif;display:block;position:absolute;font-size:14px;color:#FAFAFA;text-shadow:0 2px 2px rgba(0,0,0,.3)}.ui.popup:after,.ui.popup.top.left:after,.ui.popup.top.center:after,.ui.popup.top.right:after{content:'\25BC'}.ui.popup.bottom:after,.ui.popup.bottom.left:after,.ui.popup.bottom.right:after,.ui.popup.bottom.center:after{content:'\25B2'}.ui.popup.left:after{content:'\25B6'}.ui.popup.right:after{content:'\25C0'}.ui.popup{margin:0}.ui.popup.bottom{margin:9px 0 0}.ui.popup.top{margin:0 0 9px}.ui.popup.top.left,.ui.popup.bottom.left{margin-left:-12px}.ui.popup.top.right,.ui.popup.bottom.right{margin-right:-12px}.ui.popup.left.center{margin:0 9px 0 0}.ui.popup.right.center{margin:0 0 0 10px}.ui.popup:after{line-height:1;bottom:-10px;left:50%}.ui.popup.bottom:after{top:-11px;right:18px;text-shadow:0 -1px 1px rgba(0,0,0,.3)}.ui.popup.top.right:after,.ui.popup.bottom.right:after{left:auto;right:8px}.ui.popup.top.left:after,.ui.popup.bottom.left:after{right:auto;left:8px}.ui.popup.left.center:after{left:auto;right:-10px;top:50%;margin-top:-7px;text-shadow:2px 0 2px rgba(0,0,0,.3)}.ui.popup.right.center:after{left:-10px;right:auto;top:50%;margin-top:-7px;text-shadow:-2px 0 2px rgba(0,0,0,.3)}.ui.popup.top.center:after,.ui.popup.bottom.center:after{margin-left:-7px;left:50%;right:auto}.ui.popup.loading{display:block;visibility:hidden}.ui.popup.active{display:block}.ui.large.popup{padding:10px}.ui.large.popup .content{font-size:13px}.ui.large.popup.bottom{margin:11px 0 0}.ui.large.popup.top{margin:0 0 11px}.ui.large.popup.top.left,.ui.large.popup.bottom.left{margin-left:-12px}.ui.large.popup.top.right,.ui.large.popup.bottom.right{margin-right:-12px}.ui.large.popup.left.center{margin:0 12px 0 0}.ui.large.popup.right.center{margin:0 0 0 12px}.ui.large.popup:after{bottom:-13px;font-size:18px}.ui.popup.large.bottom:after{top:-15px}.ui.popup.large.left.center:after{right:-13px;margin-top:-9px}.ui.popup.large.right.center:after{left:-13px;margin-top:-9px}.ui.popup h2{font-size:14px;font-weight:700;color:#603E72;margin-bottom:5px}.ui.popup .content{font-size:12px;font-weight:400;line-height:1.33;color:#666;padding:0}.ui.popup .content p{margin-top:5px}.ui.popup .content p b{color:#603E72}.ui.popup .content p:first-child{margin-top:0}.ui.popup.transparent,.ui.popup.transparent:after{background-color:rgba(250,250,250,.9)}.ui.black.popup{background-color:#000;border:0}.ui.black.popup:after{color:#000}.ui.black.popup .content{color:#FFF}
\ No newline at end of file
+.ui.popup{display:none;position:absolute;top:0;right:0;z-index:900;border:1px solid #DCDDDE;max-width:250px;background-color:#FFF;padding:.8em 1.2em;font-size:.875rem;-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;color:rgba(0,0,0,.7);-webkit-box-shadow:0 1px 1px #DCDDDE;-moz-box-shadow:0 1px 1px #DCDDDE;box-shadow:0 1px 1px #DCDDDE}.ui.popup .header{margin:-.8em -1.2em .8em;background-color:rgba(0,0,0,.05);padding:.8em 1.2em;line-height:1;font-weight:700;color:rgba(0,0,0,.8);-webkit-border-radius:.2em .2em 0 0;-moz-border-radius:.2em .2em 0 0;border-radius:.2em .2em 0 0}.ui.popup .ui.button,.ui.popup form.ui input .ui.popup form.ui textarea{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.ui.popup{margin:0}.ui.popup.bottom{margin:.75em 0 0}.ui.popup.top{margin:0 0 .75em}.ui.popup.left.center{margin:0 .75em 0 0}.ui.popup.right.center{margin:0 0 0 .75em}.ui.popup.center{margin-left:-1.25em}.ui.popup:before{position:absolute;content:"";width:.75em;height:.75rem;background-image:none;background-color:#FFF;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);transform:rotate(45deg);z-index:2;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:1px 1px 1px #DCDDDE;-moz-box-shadow:1px 1px 1px #DCDDDE;box-shadow:1px 1px 1px #DCDDDE}.ui.bottom.center.popup:before{margin-left:-.4em;top:-.4em;left:50%;right:auto;bottom:auto;-webkit-box-shadow:-1px -1px 1px #dcddde;-moz-box-shadow:-1px -1px 1px #dcddde;box-shadow:-1px -1px 1px #dcddde}.ui.bottom.left.popup:before{top:-.4em;left:1em;right:auto;bottom:auto;margin-left:0;-webkit-box-shadow:-1px -1px 1px #dcddde;-moz-box-shadow:-1px -1px 1px #dcddde;box-shadow:-1px -1px 1px #dcddde}.ui.bottom.right.popup:before{top:-.4em;right:1em;bottom:auto;left:auto;margin-left:0;-webkit-box-shadow:-1px -1px 1px #dcddde;-moz-box-shadow:-1px -1px 1px #dcddde;box-shadow:-1px -1px 1px #dcddde}.ui.top.center.popup:before{top:auto;right:auto;bottom:-.4em;left:50%;margin-left:-.4em}.ui.top.left.popup:before{bottom:-.4em;left:1em;top:auto;right:auto;margin-left:0}.ui.top.right.popup:before{bottom:-.4em;right:1em;top:auto;left:auto;margin-left:0}.ui.left.center.popup:before{top:50%;right:-.35em;bottom:auto;left:auto;margin-top:-.4em;-moz-box-shadow:1px -1px 1px #dcddde;-webkit-box-shadow:1px -1px 1px #dcddde;box-shadow:1px -1px 1px #dcddde}.ui.right.center.popup:before{top:50%;left:-.35em;bottom:auto;right:auto;margin-top:-.4em;-moz-box-shadow:-1px 1px 1px #dcddde;-webkit-box-shadow:-1px 1px 1px #dcddde;box-shadow:-1px 1px 1px #dcddde}.ui.popup.loading{display:block;visibility:hidden}.ui.popup.active{display:block}.ui.small.popup{font-size:.75rem}.ui.large.popup{font-size:1rem}.ui.black.popup{background-color:#333;border:0;color:#FFF}.ui.black.popup .header{background-color:rgba(0,0,0,.2);color:#FFF}.ui.black.popup:before{background-color:#333}
\ No newline at end of file
diff --git a/build/minified/modules/popup.min.js b/build/minified/modules/popup.min.js
index a008b59df..270457e34 100644
--- a/build/minified/modules/popup.min.js
+++ b/build/minified/modules/popup.min.js
@@ -1 +1 @@
-(function(e,t,n,o){e.fn.popup=function(i){var a,r=e(this),s=e.isPlainObject(i)?e.extend(!0,{},e.fn.popup.settings,i):e.fn.popup.settings,c=("."+s.namespace,"module-"+s.namespace,r.selector||""),l=(r.size(),(new Date).getTime()),u=[],d=s.selector,m=s.className,f=s.error,p=s.metadata,g=s.namespace,h=arguments[0],v="string"==typeof h,b=[].slice.call(arguments,1);return r.each(function(){var i,r=e(this),y=e(t),x=r.offsetParent(),w=s.inline?r.next(d.popup):y.children(d.popup).last(),C=0,k=this,T=r.data("module-"+s.namespace);i={initialize:function(){i.debug("Initializing module",r),"hover"==s.on?r.on("mouseenter."+g,i.event.mouseenter).on("mouseleave."+g,i.event.mouseleave):r.on(s.on+"."+g,i.event[s.on]),y.on("resize."+g,i.event.resize),i.instantiate()},instantiate:function(){i.verbose("Storing instance of module"),T=i,r.data("module-"+g,T)},refresh:function(){w=s.inline?r.next(d.popup):y.children(d.popup).last(),x=r.offsetParent()},destroy:function(){i.debug("Destroying existing popups"),r.off("."+g),w.remove()},event:{mouseenter:function(t){var n=this;i.timer=setTimeout(function(){e.proxy(i.toggle,n)(),e(n).hasClass(m.visible)&&t.stopPropagation()},s.delay)},mouseleave:function(){clearTimeout(i.timer),r.is(":visible")&&i.hide()},click:function(t){e.proxy(i.toggle,this)(),e(this).hasClass(m.visible)&&t.stopPropagation()},resize:function(){w.is(":visible")&&i.position()}},create:function(){i.debug("Creating pop-up content");var t=r.data(p.html)||s.html,n=r.data(p.title)||s.title,o=r.data(p.content)||r.attr("title")||s.content;t||o||n?(t||(t=s.template({title:n,content:o})),w=e("").addClass(m.popup).html(t),s.inline?w.insertAfter(r):w.appendTo(e("body"))):i.error(f.content)},remove:function(){w.remove()},get:{offstagePosition:function(){var n={top:e(t).scrollTop(),bottom:e(t).scrollTop()+e(t).height(),left:0,right:e(t).width()},o={width:w.outerWidth(),height:w.outerHeight(),position:w.offset()},i={},a=[];return o.position&&(i={top:o.position.topn.bottom,right:o.position.left+o.width>n.right,left:o.position.left0?a.join(" "):!1},nextPosition:function(e){switch(e){case"top left":e="bottom left";break;case"bottom left":e="top right";break;case"top right":e="bottom right";break;case"bottom right":e="top center";break;case"top center":e="bottom center";break;case"bottom center":e="right center";break;case"right center":e="left center";break;case"left center":e="top center"}return e}},toggle:function(){r=e(this),i.debug("Toggling pop-up"),i.refresh(),0===w.size()&&i.create(),r.hasClass(m.visible)?i.hide():i.position()&&i.show()},position:function(n,o){var a,c,l=(e(t).width(),e(t).height(),r.outerWidth()),u=r.outerHeight(),d=w.outerWidth(),g=w.outerHeight(),h=s.inline?r.position():r.offset(),v=s.inline?x.outerWidth():y.outerWidth(),b=s.inline?x.outerHeight():y.outerHeight();switch(n=n||r.data(p.position)||s.position,o=o||r.data(p.arrowOffset)||s.arrowOffset,i.debug("Calculating offset for position",n),n){case"top left":a={top:"auto",bottom:b-h.top+s.distanceAway,left:h.left+o};break;case"top center":a={bottom:b-h.top+s.distanceAway,left:h.left+l/2-d/2+o,top:"auto",right:"auto"};break;case"top right":a={bottom:b-h.top+s.distanceAway,right:v-h.left-l-o,top:"auto",left:"auto"};break;case"left center":a={top:h.top+u/2-g/2,right:v-h.left+s.distanceAway-o,left:"auto",bottom:"auto"};break;case"right center":a={top:h.top+u/2-g/2,left:h.left+l+s.distanceAway+o,bottom:"auto",right:"auto"};break;case"bottom left":a={top:h.top+u+s.distanceAway,left:h.left+o,bottom:"auto",right:"auto"};break;case"bottom center":a={top:h.top+u+s.distanceAway,left:h.left+l/2-d/2+o,bottom:"auto",right:"auto"};break;case"bottom right":a={top:h.top+u+s.distanceAway,right:v-h.left-l-o,left:"auto",bottom:"auto"}}return e.extend(a,{width:w.width()+1}),w.removeAttr("style").removeClass("top right bottom left center").css(a).addClass(n).addClass(m.loading),c=i.get.offstagePosition(),c?(i.debug("Element is outside boundaries ",c),s.maxSearchDepth>C?(n=i.get.nextPosition(n),C++,i.debug("Trying new position: ",n),i.position(n)):(i.error(f.recursion),C=0,!1)):(i.debug("Position is on stage",n),C=0,!0)},show:function(){i.debug("Showing pop-up"),e(d.popup).filter(":visible").stop().fadeOut(200).prev(r).removeClass(m.visible),r.addClass(m.visible),w.removeClass(m.loading),"pop"==s.animation&&e.fn.popIn!==o?w.stop().popIn(s.duration,s.easing):w.stop().fadeIn(s.duration,s.easing),"click"==s.on&&s.clicktoClose&&(i.debug("Binding popup close event"),e(n).on("click."+g,i.gracefully.hide)),e.proxy(s.onShow,w)()},hide:function(){r.removeClass(m.visible),w.is(":visible")&&(i.debug("Hiding pop-up"),"pop"==s.animation&&e.fn.popOut!==o?w.stop().popOut(s.duration,s.easing,function(){w.hide()}):w.stop().fadeOut(s.duration,s.easing)),"click"==s.on&&s.clicktoClose&&e(n).off("click."+g),e.proxy(s.onHide,w)(),s.inline||i.remove()},gracefully:{hide:function(t){0===e(t.target).closest(d.popup).size()&&i.hide()}},setting:function(t,n){return n===o?s[t]:(e.isPlainObject(t)?e.extend(!0,s,t):s[t]=n,o)},internal:function(t,n){return n===o?i[t]:(e.isPlainObject(t)?e.extend(!0,i,t):i[t]=n,o)},debug:function(){s.debug&&(s.performance?i.performance.log(arguments):i.debug=Function.prototype.bind.call(console.info,console,s.moduleName+":"))},verbose:function(){s.verbose&&s.debug&&(s.performance?i.performance.log(arguments):i.verbose=Function.prototype.bind.call(console.info,console,s.moduleName+":"))},error:function(){i.error=Function.prototype.bind.call(console.log,console,s.moduleName+":")},performance:{log:function(e){var t,n,o;s.performance&&(t=(new Date).getTime(),o=l||t,n=t-o,l=t,u.push({Element:k,Name:e[0],Arguments:e[1]||"","Execution Time":n})),clearTimeout(i.performance.timer),i.performance.timer=setTimeout(i.performance.display,100)},display:function(){var t=s.moduleName+":",n=0;l=!1,e.each(u,function(e,t){n+=t["Execution Time"]}),t+=" "+n+"ms",c&&(t+=" '"+c+"'"),(console.group!==o||console.table!==o)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):e.each(u,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),u=[]}},invoke:function(t,n,a){var r,s;return n=n||b,a=k||a,"string"==typeof t&&T!==o&&(t=t.split("."),r=t.length-1,e.each(t,function(t,n){e.isPlainObject(T[n])&&t!=r?T=T[n]:T[n]!==o?s=T[n]:i.error(f.method)})),e.isFunction(s)?(T.verbose("Executing invoked function",s),s.apply(a,n)):s||!1}},v?(T===o&&i.initialize(),a=i.invoke(h)):(T===o&&i.destroy(),i.initialize())}),a?a:this},e.fn.popup.settings={moduleName:"Popup",debug:!0,verbose:!0,performance:!0,namespace:"popup",onShow:function(){},onHide:function(){},content:!1,html:!1,title:!1,on:"hover",clicktoClose:!0,position:"top center",delay:0,inline:!0,duration:250,easing:"easeOutQuint",animation:"pop",distanceAway:2,arrowOffset:0,maxSearchDepth:10,error:{content:"Warning: Your popup has no content specified",method:"The method you called is not defined.",recursion:"Popup attempted to reposition element to fit, but could not find an adequate position."},metadata:{content:"content",html:"html",title:"title",position:"position",arrowOffset:"arrowOffset"},className:{popup:"ui popup",visible:"visible",loading:"loading"},selector:{popup:".ui.popup"},template:function(e){var t="";return typeof e!==o&&(typeof e.title!==o&&e.title&&(t+=""+e.title+"
"),typeof e.content!==o&&e.content&&(t+=''+e.content+"
")),t}}})(jQuery,window,document);
\ No newline at end of file
+(function(e,t,n,o){e.fn.popup=function(i){var a,r=e(this),s=e.isPlainObject(i)?e.extend(!0,{},e.fn.popup.settings,i):e.fn.popup.settings,c=("."+s.namespace,"module-"+s.namespace,r.selector||""),l=(r.size(),(new Date).getTime()),u=[],d=s.selector,m=s.className,f=s.error,p=s.metadata,g=s.namespace,h=arguments[0],v="string"==typeof h,b=[].slice.call(arguments,1);return r.each(function(){var i,r=e(this),y=e(t),x=r.offsetParent(),w=s.inline?r.next(d.popup):y.children(d.popup).last(),C=0,k=this,T=r.data("module-"+s.namespace);i={initialize:function(){i.debug("Initializing module",r),"hover"==s.on?r.on("mouseenter."+g,i.event.mouseenter).on("mouseleave."+g,i.event.mouseleave):r.on(s.on+"."+g,i.event[s.on]),y.on("resize."+g,i.event.resize),i.instantiate()},instantiate:function(){i.verbose("Storing instance of module"),T=i,r.data("module-"+g,T)},refresh:function(){w=s.inline?r.next(d.popup):y.children(d.popup).last(),x=r.offsetParent()},destroy:function(){i.debug("Destroying existing popups"),r.off("."+g),w.remove()},event:{mouseenter:function(t){var n=this;i.timer=setTimeout(function(){e.proxy(i.toggle,n)(),e(n).hasClass(m.visible)&&t.stopPropagation()},s.delay)},mouseleave:function(){clearTimeout(i.timer),r.is(":visible")&&i.hide()},click:function(t){e.proxy(i.toggle,this)(),e(this).hasClass(m.visible)&&t.stopPropagation()},resize:function(){w.is(":visible")&&i.position()}},create:function(){i.debug("Creating pop-up content");var t=r.data(p.html)||s.html,n=r.data(p.variation)||s.variation,o=r.data(p.title)||s.title,a=r.data(p.content)||r.attr("title")||s.content;console.log(n),t||a||o?(t||(t=s.template({title:o,content:a})),w=e("").addClass(m.popup).addClass(n).html(t),s.inline?w.insertAfter(r):w.appendTo(e("body")),e.proxy(s.onInit,w)()):i.error(f.content)},remove:function(){w.remove()},get:{offstagePosition:function(){var n={top:e(t).scrollTop(),bottom:e(t).scrollTop()+e(t).height(),left:0,right:e(t).width()},o={width:w.width(),height:w.outerHeight(),position:w.offset()},i={},a=[];return o.position&&(i={top:o.position.topn.bottom,right:o.position.left+o.width>n.right,left:o.position.left0?a.join(" "):!1},nextPosition:function(e){switch(e){case"top left":e="bottom left";break;case"bottom left":e="top right";break;case"top right":e="bottom right";break;case"bottom right":e="top center";break;case"top center":e="bottom center";break;case"bottom center":e="right center";break;case"right center":e="left center";break;case"left center":e="top center"}return e}},toggle:function(){r=e(this),i.debug("Toggling pop-up"),i.refresh(),0===w.size()&&i.create(),r.hasClass(m.visible)?i.hide():i.position()&&i.show()},position:function(n,o){var a,c,l=(e(t).width(),e(t).height(),r.outerWidth()),u=r.outerHeight(),d=w.width(),g=w.outerHeight(),h=s.inline?r.position():r.offset(),v=s.inline?x.outerWidth():y.outerWidth(),b=s.inline?x.outerHeight():y.outerHeight();switch(n=n||r.data(p.position)||s.position,o=o||r.data(p.arrowOffset)||s.arrowOffset,i.debug("Calculating offset for position",n),n){case"top left":a={top:"auto",bottom:b-h.top+s.distanceAway,left:h.left+o};break;case"top center":a={bottom:b-h.top+s.distanceAway,left:h.left+l/2-d/2+o,top:"auto",right:"auto"};break;case"top right":a={bottom:b-h.top+s.distanceAway,right:v-h.left-l-o,top:"auto",left:"auto"};break;case"left center":a={top:h.top+u/2-g/2,right:v-h.left+s.distanceAway-o,left:"auto",bottom:"auto"};break;case"right center":a={top:h.top+u/2-g/2,left:h.left+l+s.distanceAway+o,bottom:"auto",right:"auto"};break;case"bottom left":a={top:h.top+u+s.distanceAway,left:h.left+o,bottom:"auto",right:"auto"};break;case"bottom center":a={top:h.top+u+s.distanceAway,left:h.left+l/2-d/2+o,bottom:"auto",right:"auto"};break;case"bottom right":a={top:h.top+u+s.distanceAway,right:v-h.left-l-o,left:"auto",bottom:"auto"}}return e.extend(a,{width:w.width()+1}),w.removeAttr("style").removeClass("top right bottom left center").css(a).addClass(n).addClass(m.loading),c=i.get.offstagePosition(),c?(i.debug("Element is outside boundaries ",c),s.maxSearchDepth>C?(n=i.get.nextPosition(n),C++,i.debug("Trying new position: ",n),i.position(n)):(i.error(f.recursion),C=0,!1)):(i.debug("Position is on stage",n),C=0,!0)},show:function(){i.debug("Showing pop-up"),e(d.popup).filter(":visible").stop().fadeOut(200).prev(r).removeClass(m.visible),r.addClass(m.visible),w.removeClass(m.loading),"pop"==s.animation&&e.fn.popIn!==o?w.stop().popIn(s.duration,s.easing):w.stop().fadeIn(s.duration,s.easing),"click"==s.on&&s.clicktoClose&&(i.debug("Binding popup close event"),e(n).on("click."+g,i.gracefully.hide)),e.proxy(s.onShow,w)()},hide:function(){r.removeClass(m.visible),w.is(":visible")&&(i.debug("Hiding pop-up"),"pop"==s.animation&&e.fn.popOut!==o?w.stop().popOut(s.duration,s.easing,function(){w.hide()}):w.stop().fadeOut(s.duration,s.easing)),"click"==s.on&&s.clicktoClose&&e(n).off("click."+g),e.proxy(s.onHide,w)(),s.inline||i.remove()},gracefully:{hide:function(t){0===e(t.target).closest(d.popup).size()&&i.hide()}},setting:function(t,n){return n===o?s[t]:(e.isPlainObject(t)?e.extend(!0,s,t):s[t]=n,o)},internal:function(t,n){return n===o?i[t]:(e.isPlainObject(t)?e.extend(!0,i,t):i[t]=n,o)},debug:function(){s.debug&&(s.performance?i.performance.log(arguments):i.debug=Function.prototype.bind.call(console.info,console,s.moduleName+":"))},verbose:function(){s.verbose&&s.debug&&(s.performance?i.performance.log(arguments):i.verbose=Function.prototype.bind.call(console.info,console,s.moduleName+":"))},error:function(){i.error=Function.prototype.bind.call(console.log,console,s.moduleName+":")},performance:{log:function(e){var t,n,o;s.performance&&(t=(new Date).getTime(),o=l||t,n=t-o,l=t,u.push({Element:k,Name:e[0],Arguments:e[1]||"","Execution Time":n})),clearTimeout(i.performance.timer),i.performance.timer=setTimeout(i.performance.display,100)},display:function(){var t=s.moduleName+":",n=0;l=!1,e.each(u,function(e,t){n+=t["Execution Time"]}),t+=" "+n+"ms",c&&(t+=" '"+c+"'"),(console.group!==o||console.table!==o)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):e.each(u,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),u=[]}},invoke:function(t,n,a){var r,s;return n=n||b,a=k||a,"string"==typeof t&&T!==o&&(t=t.split("."),r=t.length-1,e.each(t,function(t,n){e.isPlainObject(T[n])&&t!=r?T=T[n]:T[n]!==o?s=T[n]:i.error(f.method)})),e.isFunction(s)?(T.verbose("Executing invoked function",s),s.apply(a,n)):s||!1}},v?(T===o&&i.initialize(),a=i.invoke(h)):(T===o&&i.destroy(),i.initialize())}),a?a:this},e.fn.popup.settings={moduleName:"Popup",debug:!1,verbose:!1,performance:!1,namespace:"popup",onInit:function(){},onShow:function(){},onHide:function(){},variation:"",content:!1,html:!1,title:!1,on:"hover",clicktoClose:!0,position:"top center",delay:0,inline:!0,duration:250,easing:"easeOutQuint",animation:"pop",distanceAway:0,arrowOffset:0,maxSearchDepth:10,error:{content:"Warning: Your popup has no content specified",method:"The method you called is not defined.",recursion:"Popup attempted to reposition element to fit, but could not find an adequate position."},metadata:{arrowOffset:"arrowOffset",content:"content",html:"html",position:"position",title:"title",variation:"variation"},className:{popup:"ui popup",visible:"visible",loading:"loading"},selector:{popup:".ui.popup"},template:function(e){var t="";return typeof e!==o&&(typeof e.title!==o&&e.title&&(t+=''),typeof e.content!==o&&e.content&&(t+=''+e.content+"
")),t}}})(jQuery,window,document);
\ No newline at end of file
diff --git a/build/packaged/modules/popup.js b/build/packaged/modules/popup.js
index 1a931fcaa..2da3c6ca8 100644
--- a/build/packaged/modules/popup.js
+++ b/build/packaged/modules/popup.js
@@ -135,10 +135,12 @@ $.fn.popup = function(parameters) {
create: function() {
module.debug('Creating pop-up content');
var
- html = $module.data(metadata.html) || settings.html,
- title = $module.data(metadata.title) || settings.title,
- content = $module.data(metadata.content) || $module.attr('title') || settings.content
+ html = $module.data(metadata.html) || settings.html,
+ variation = $module.data(metadata.variation) || settings.variation,
+ title = $module.data(metadata.title) || settings.title,
+ content = $module.data(metadata.content) || $module.attr('title') || settings.content
;
+ console.log(variation);
if(html || content || title) {
if(!html) {
html = settings.template({
@@ -148,6 +150,7 @@ $.fn.popup = function(parameters) {
}
$popup = $('')
.addClass(className.popup)
+ .addClass(variation)
.html(html)
;
if(settings.inline) {
@@ -160,6 +163,7 @@ $.fn.popup = function(parameters) {
.appendTo( $('body') )
;
}
+ $.proxy(settings.onInit, $popup)();
}
else {
module.error(error.content);
@@ -182,7 +186,7 @@ $.fn.popup = function(parameters) {
right : $(window).width()
},
popup = {
- width : $popup.outerWidth(),
+ width : $popup.width(),
height : $popup.outerHeight(),
position : $popup.offset()
},
@@ -264,7 +268,7 @@ $.fn.popup = function(parameters) {
windowHeight = $(window).height(),
width = $module.outerWidth(),
height = $module.outerHeight(),
- popupWidth = $popup.outerWidth(),
+ popupWidth = $popup.width(),
popupHeight = $popup.outerHeight(),
offset = (settings.inline)
@@ -614,14 +618,16 @@ $.fn.popup = function(parameters) {
$.fn.popup.settings = {
moduleName : 'Popup',
- debug : true,
- verbose : true,
- performance : true,
+ debug : false,
+ verbose : false,
+ performance : false,
namespace : 'popup',
+ onInit : function(){},
onShow : function(){},
onHide : function(){},
+ variation : '',
content : false,
html : false,
title : false,
@@ -637,9 +643,9 @@ $.fn.popup.settings = {
easing : 'easeOutQuint',
animation : 'pop',
- distanceAway : 2,
+ distanceAway : 0,
arrowOffset : 0,
- maxSearchDepth : 10,
+ maxSearchDepth : 10,
error: {
content : 'Warning: Your popup has no content specified',
@@ -649,11 +655,12 @@ $.fn.popup.settings = {
metadata: {
+ arrowOffset : 'arrowOffset',
content : 'content',
html : 'html',
- title : 'title',
position : 'position',
- arrowOffset : 'arrowOffset'
+ title : 'title',
+ variation : 'variation'
},
className : {
@@ -670,7 +677,7 @@ $.fn.popup.settings = {
var html = '';
if(typeof text !== undefined) {
if(typeof text.title !== undefined && text.title) {
- html += '' + text.title + '
';
+ html += '';
}
if(typeof text.content !== undefined && text.content) {
html += '' + text.content + '
';
diff --git a/build/packaged/semantic.min.css.REMOVED.git-id b/build/packaged/semantic.min.css.REMOVED.git-id
index 4c29dc986..1ff3d195f 100644
--- a/build/packaged/semantic.min.css.REMOVED.git-id
+++ b/build/packaged/semantic.min.css.REMOVED.git-id
@@ -1 +1 @@
-c6bd3dedc19942c09ffd7c60c62481c7945b921e
\ No newline at end of file
+90a30609cb6f43c82c405df2b6369c9aff133c2a
\ No newline at end of file
diff --git a/build/packaged/semantic.min.js.REMOVED.git-id b/build/packaged/semantic.min.js.REMOVED.git-id
index 1cf97b9dd..7da77eac9 100644
--- a/build/packaged/semantic.min.js.REMOVED.git-id
+++ b/build/packaged/semantic.min.js.REMOVED.git-id
@@ -1 +1 @@
-1fb06ecbe12fc123cf62c98087ec6d8d468f12e9
\ No newline at end of file
+f4796810ca6ec794949f0fef2c3df98514fa4d2f
\ No newline at end of file
diff --git a/build/uncompressed/elements/button.css b/build/uncompressed/elements/button.css
index 1be8dd3f1..95219d71a 100644
--- a/build/uncompressed/elements/button.css
+++ b/build/uncompressed/elements/button.css
@@ -451,8 +451,8 @@
.ui.icon.buttons .button > .icon,
.ui.icon.button > .icon {
opacity: 1;
- height: 0.9em;
margin: 0em;
+ vertical-align: top;
}
/*-------------------
Ordinality
diff --git a/build/uncompressed/elements/loader.css b/build/uncompressed/elements/loader.css
index e2a745276..89860b995 100644
--- a/build/uncompressed/elements/loader.css
+++ b/build/uncompressed/elements/loader.css
@@ -75,7 +75,7 @@
--------------------*/
.ui.dimmer .ui.text.loader,
.ui.inverted.text.loader {
- color: #FFFFFF;
+ color: rgba(0, 0, 0, 0.8);
}
/* Tiny Size */
.ui.dimmer .mini.ui.loader,
diff --git a/build/uncompressed/modules/popup.css b/build/uncompressed/modules/popup.css
index e274612c2..1a83b186c 100644
--- a/build/uncompressed/modules/popup.css
+++ b/build/uncompressed/modules/popup.css
@@ -1,24 +1,46 @@
+/*
+ * # Semantic Popup
+ * http://github.com/quirkyinc/semantic
+ *
+ *
+ * Copyright 2013 Contributors
+ * Released under the MIT license
+ * http://opensource.org/licenses/MIT
+ *
+ * Released: April 17 2013
+ */
/*******************************
- UI Popup (Tooltip/ Popover)
+ Popup
*******************************/
.ui.popup {
display: none;
position: absolute;
- top: 57px;
+ top: 0px;
right: 0px;
z-index: 900;
+ border: 1px solid #DCDDDE;
max-width: 250px;
- background-color: #FAFAFA;
- padding: 6px 8px;
- border: 1px solid #DFDFDF;
- border: 1px solid rgba(0, 0, 0, 0.12);
- font-size: 11px;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
- -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
- box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
+ background-color: #FFFFFF;
+ padding: 0.8em 1.2em;
+ font-size: 0.875rem;
+ -webkit-border-radius: 0.2em;
+ -moz-border-radius: 0.2em;
+ border-radius: 0.2em;
+ color: rgba(0, 0, 0, 0.7);
+ -webkit-box-shadow: 0px 1px 1px #DCDDDE;
+ -moz-box-shadow: 0px 1px 1px #DCDDDE;
+ box-shadow: 0px 1px 1px #DCDDDE;
+}
+.ui.popup .header {
+ margin: -0.8em -1.2em 0.8em;
+ background-color: rgba(0, 0, 0, 0.05);
+ padding: 0.8em 1.2em;
+ line-height: 1;
+ font-weight: bold;
+ color: rgba(0, 0, 0, 0.8);
+ -webkit-border-radius: 0.2em 0.2em 0em 0em;
+ -moz-border-radius: 0.2em 0.2em 0em 0em;
+ border-radius: 0.2em 0.2em 0em 0em;
}
/* Default Interactions */
.ui.popup .ui.button,
@@ -30,103 +52,126 @@
box-sizing: border-box;
}
/*--------------
- Pointer
+ Spacing
---------------*/
-.ui.popup:after {
- font-family: Arial, "Helevetica Neue", sans-serif;
- display: block;
- position: absolute;
- font-size: 14px;
- color: #FAFAFA;
- text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
-}
-/* Arrow UTF Style */
-.ui.popup:after,
-.ui.popup.top.left:after,
-.ui.popup.top.center:after,
-.ui.popup.top.right:after {
- content: '\25BC';
-}
-.ui.popup.bottom:after,
-.ui.popup.bottom.left:after,
-.ui.popup.bottom.right:after,
-.ui.popup.bottom.center:after {
- content: '\25B2';
-}
-.ui.popup.left:after {
- content: '\25B6';
-}
-.ui.popup.right:after {
- content: '\25C0';
-}
-/* Position */
.ui.popup {
- margin: 0px;
+ margin: 0em;
}
.ui.popup.bottom {
- margin: 9px 0px 0px;
+ margin: 0.75em 0em 0em;
}
.ui.popup.top {
- margin: 0px 0px 9px;
-}
-.ui.popup.top.left,
-.ui.popup.bottom.left {
- margin-left: -12px;
-}
-.ui.popup.top.right,
-.ui.popup.bottom.right {
- margin-right: -12px;
+ margin: 0em 0em 0.75em;
}
.ui.popup.left.center {
- margin: 0px 9px 0px 0px;
+ margin: 0em 0.75em 0em 0em;
}
.ui.popup.right.center {
- margin: 0px 0px 0px 10px;
+ margin: 0em 0em 0em 0.75em;
}
-/* Arrow Offset */
-.ui.popup:after {
- line-height: 1;
- bottom: -10px;
- left: 50%;
+.ui.popup.center {
+ margin-left: -1.25em;
}
-.ui.popup.bottom:after {
- top: -11px;
- right: 18px;
- text-shadow: 0px -1px 1px rgba(0, 0, 0, 0.3);
-}
-.ui.popup.top.right:after,
-.ui.popup.bottom.right:after {
+/*--------------
+ Pointer
+---------------*/
+.ui.popup:before {
+ position: absolute;
+ content: "";
+ width: 0.75em;
+ height: 0.75rem;
+ background-image: none;
+ background-color: #FFFFFF;
+ -webkit-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ transform: rotate(45deg);
+ z-index: 2;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ -webkit-box-shadow: 1px 1px 1px #DCDDDE;
+ -moz-box-shadow: 1px 1px 1px #DCDDDE;
+ box-shadow: 1px 1px 1px #DCDDDE;
+}
+/*--- Below ---*/
+.ui.bottom.center.popup:before {
+ margin-left: -0.4em;
+ top: -0.4em;
+ left: 50%;
+ right: auto;
+ bottom: auto;
+ -webkit-box-shadow: -1px -1px 1px #dcddde;
+ -moz-box-shadow: -1px -1px 1px #dcddde;
+ box-shadow: -1px -1px 1px #dcddde;
+}
+.ui.bottom.left.popup:before {
+ top: -0.4em;
+ left: 1em;
+ right: auto;
+ bottom: auto;
+ margin-left: 0em;
+ -webkit-box-shadow: -1px -1px 1px #dcddde;
+ -moz-box-shadow: -1px -1px 1px #dcddde;
+ box-shadow: -1px -1px 1px #dcddde;
+}
+.ui.bottom.right.popup:before {
+ top: -0.4em;
+ right: 1em;
+ bottom: auto;
left: auto;
- right: 8px;
+ margin-left: 0em;
+ -webkit-box-shadow: -1px -1px 1px #dcddde;
+ -moz-box-shadow: -1px -1px 1px #dcddde;
+ box-shadow: -1px -1px 1px #dcddde;
+}
+/*--- Above ---*/
+.ui.top.center.popup:before {
+ top: auto;
+ right: auto;
+ bottom: -0.4em;
+ left: 50%;
+ margin-left: -0.4em;
}
-.ui.popup.top.left:after,
-.ui.popup.bottom.left:after {
+.ui.top.left.popup:before {
+ bottom: -0.4em;
+ left: 1em;
+ top: auto;
right: auto;
- left: 8px;
+ margin-left: 0em;
}
-.ui.popup.left.center:after {
+.ui.top.right.popup:before {
+ bottom: -0.4em;
+ right: 1em;
+ top: auto;
left: auto;
- right: -10px;
- top: 50%;
- margin-top: -7px;
- text-shadow: 2px 0 2px rgba(0, 0, 0, 0.3);
+ margin-left: 0em;
}
-.ui.popup.right.center:after {
- left: -10px;
- right: auto;
+/*--- Left ---*/
+.ui.left.center.popup:before {
top: 50%;
- margin-top: -7px;
- text-shadow: -2px 0 2px rgba(0, 0, 0, 0.3);
+ right: -0.35em;
+ bottom: auto;
+ left: auto;
+ margin-top: -0.4em;
+ -moz-box-shadow: 1px -1px 1px #dcddde;
+ -webkit-box-shadow: 1px -1px 1px #dcddde;
+ box-shadow: 1px -1px 1px #dcddde;
}
-.ui.popup.top.center:after,
-.ui.popup.bottom.center:after {
- margin-left: -7px;
- left: 50%;
+/*--- Right ---*/
+.ui.right.center.popup:before {
+ top: 50%;
+ left: -0.35em;
+ bottom: auto;
right: auto;
+ margin-top: -0.4em;
+ -moz-box-shadow: -1px 1px 1px #dcddde;
+ -webkit-box-shadow: -1px 1px 1px #dcddde;
+ box-shadow: -1px 1px 1px #dcddde;
}
-/*--------------
- States
----------------*/
+/*******************************
+ States
+*******************************/
.ui.popup.loading {
display: block;
visibility: hidden;
@@ -134,91 +179,31 @@
.ui.popup.active {
display: block;
}
+/*******************************
+ Variations
+*******************************/
/*--------------
- Sizes
+ Size
---------------*/
-.ui.large.popup {
- padding: 10px;
-}
-.ui.large.popup .content {
- font-size: 13px;
-}
-/* popup offset */
-.ui.large.popup.bottom {
- margin: 11px 0px 0px;
-}
-.ui.large.popup.top {
- margin: 0px 0px 11px;
-}
-.ui.large.popup.top.left,
-.ui.large.popup.bottom.left {
- margin-left: -12px;
-}
-.ui.large.popup.top.right,
-.ui.large.popup.bottom.right {
- margin-right: -12px;
-}
-.ui.large.popup.left.center {
- margin: 0px 12px 0px 0px;
-}
-.ui.large.popup.right.center {
- margin: 0px 0px 0px 12px;
+.ui.small.popup {
+ font-size: 0.75rem;
}
-/* arrow offset */
-.ui.large.popup:after {
- bottom: -13px;
- font-size: 18px;
-}
-.ui.popup.large.bottom:after {
- top: -15px;
-}
-.ui.popup.large.left.center:after {
- right: -13px;
- margin-top: -9px;
-}
-.ui.popup.large.right.center:after {
- left: -13px;
- margin-top: -9px;
+.ui.large.popup {
+ font-size: 1rem;
}
/*--------------
- Themes
+ Colors
---------------*/
-/* Standard */
-.ui.popup h2 {
- font-size: 14px;
- font-weight: bold;
- color: #603E72;
- margin-bottom: 5px;
-}
-.ui.popup .content {
- font-size: 12px;
- font-weight: normal;
- line-height: 1.33;
- color: #666666;
- padding: 0px;
-}
-.ui.popup .content p {
- margin-top: 5px;
-}
-.ui.popup .content p b {
- color: #603E72;
-}
-.ui.popup .content p:first-child {
- margin-top: 0px;
-}
-/* Slightly Transparent */
-.ui.popup.transparent,
-.ui.popup.transparent:after {
- background-color: rgba(250, 250, 250, 0.9);
-}
-/* Black Styling */
+/* Black */
.ui.black.popup {
- background-color: #000000;
+ background-color: #333333;
border: none;
+ color: #FFFFFF;
}
-.ui.black.popup:after {
- color: #000000;
-}
-.ui.black.popup .content {
+.ui.black.popup .header {
+ background-color: rgba(0, 0, 0, 0.2);
color: #FFFFFF;
}
+.ui.black.popup:before {
+ background-color: #333333;
+}
diff --git a/build/uncompressed/modules/popup.js b/build/uncompressed/modules/popup.js
index 1a931fcaa..2da3c6ca8 100644
--- a/build/uncompressed/modules/popup.js
+++ b/build/uncompressed/modules/popup.js
@@ -135,10 +135,12 @@ $.fn.popup = function(parameters) {
create: function() {
module.debug('Creating pop-up content');
var
- html = $module.data(metadata.html) || settings.html,
- title = $module.data(metadata.title) || settings.title,
- content = $module.data(metadata.content) || $module.attr('title') || settings.content
+ html = $module.data(metadata.html) || settings.html,
+ variation = $module.data(metadata.variation) || settings.variation,
+ title = $module.data(metadata.title) || settings.title,
+ content = $module.data(metadata.content) || $module.attr('title') || settings.content
;
+ console.log(variation);
if(html || content || title) {
if(!html) {
html = settings.template({
@@ -148,6 +150,7 @@ $.fn.popup = function(parameters) {
}
$popup = $('')
.addClass(className.popup)
+ .addClass(variation)
.html(html)
;
if(settings.inline) {
@@ -160,6 +163,7 @@ $.fn.popup = function(parameters) {
.appendTo( $('body') )
;
}
+ $.proxy(settings.onInit, $popup)();
}
else {
module.error(error.content);
@@ -182,7 +186,7 @@ $.fn.popup = function(parameters) {
right : $(window).width()
},
popup = {
- width : $popup.outerWidth(),
+ width : $popup.width(),
height : $popup.outerHeight(),
position : $popup.offset()
},
@@ -264,7 +268,7 @@ $.fn.popup = function(parameters) {
windowHeight = $(window).height(),
width = $module.outerWidth(),
height = $module.outerHeight(),
- popupWidth = $popup.outerWidth(),
+ popupWidth = $popup.width(),
popupHeight = $popup.outerHeight(),
offset = (settings.inline)
@@ -614,14 +618,16 @@ $.fn.popup = function(parameters) {
$.fn.popup.settings = {
moduleName : 'Popup',
- debug : true,
- verbose : true,
- performance : true,
+ debug : false,
+ verbose : false,
+ performance : false,
namespace : 'popup',
+ onInit : function(){},
onShow : function(){},
onHide : function(){},
+ variation : '',
content : false,
html : false,
title : false,
@@ -637,9 +643,9 @@ $.fn.popup.settings = {
easing : 'easeOutQuint',
animation : 'pop',
- distanceAway : 2,
+ distanceAway : 0,
arrowOffset : 0,
- maxSearchDepth : 10,
+ maxSearchDepth : 10,
error: {
content : 'Warning: Your popup has no content specified',
@@ -649,11 +655,12 @@ $.fn.popup.settings = {
metadata: {
+ arrowOffset : 'arrowOffset',
content : 'content',
html : 'html',
- title : 'title',
position : 'position',
- arrowOffset : 'arrowOffset'
+ title : 'title',
+ variation : 'variation'
},
className : {
@@ -670,7 +677,7 @@ $.fn.popup.settings = {
var html = '';
if(typeof text !== undefined) {
if(typeof text.title !== undefined && text.title) {
- html += '' + text.title + '
';
+ html += '';
}
if(typeof text.content !== undefined && text.content) {
html += '' + text.content + '
';
diff --git a/node/src/documents/modules/popup.html b/node/src/documents/modules/popup.html
new file mode 100755
index 000000000..fa42466c9
--- /dev/null
+++ b/node/src/documents/modules/popup.html
@@ -0,0 +1,270 @@
+---
+layout : 'default'
+css : 'popup'
+
+title : 'Popup'
+type : 'UI Module'
+---
+
+
+
+
+
+
A popup displays additional information on top of a page element.
+
+
+
+
+
+
+
+
+
+
+
+
A standard popup
+
+
+
+
+
Popups can specify content in three ways:
+
+ - Using html title attribute
+ - Using data-content attribute
+ - Using the content property in the initialization of the popup
+
+
+
+
+
+
+
+
+
+
+
A popup can be large or small
+
+
+
+
+
+
+
A popup can have its colors inverted
+
+
+
+
+
+
+
+
+ $('.ui.popup')
+ .popup()
+ ;
+
+
+
+
Frequently used metadata like, title, content, html, or arrowOffset or variation, can be included in html metadata
+
+
+
+
+
+
+
+
+
A popup can be positioned to any side of an element. If space is not available, it will automatically search for a similar alternative position to use.
+
+
+
+
+
+
+
+
+
+
+
+
+
A popup can be formatted with a title
+
+
+
+
+
+
A popup can be formatted with html
+
+
+
+
+
+
+
+ Content |
+
+
+
+ content |
+ |
+ Content to display |
+
+
+ title |
+ |
+ Title to display alongside content |
+
+
+ html |
+ |
+ HTML content to display instead of preformatted title and content |
+
+
+
+
+
+ Popup Settings |
+
+
+
+ inline |
+ true |
+ If a popup is inline it will be created next to current element, allowing for local css rules to apply. Otherwise popups will appended to body and removed after being hidden. |
+
+
+ delay |
+ 0 |
+ Delay in milliseconds before showing a popup when using hover events. |
+
+
+ variation |
+ |
+ Popup variation to use, can use multiple variations with a space delimiter |
+
+
+ on |
+ hover |
+ Event used to invoke popup |
+
+
+ clickToClose |
+ hover |
+ Whether clicking anywhere outside a popup should close it. |
+
+
+ position |
+ top center |
+ Position that the popup should appear |
+
+
+ distanceAway |
+ 0 |
+ Distance away from element for the popup to appear. |
+
+
+ arrowOffset |
+ 0 |
+ Offset to apply to arrow positioning of element |
+
+
+ maxSearchDepth |
+ 10 |
+ Number of iterations before giving up search for popup position when a popup cannot fit on screen |
+
+
+
+
+
+
+ Animation |
+
+
+
+ animation |
+ Pop |
+ Animation to use, can be set to either pop or fade. |
+
+
+ duration |
+ 250 |
+ Callback after a popup html is generated. |
+
+
+ easing |
+ easeOutQuint |
+ Callback after a popup section is shown. |
+
+
+
+
+
+
+ Callbacks |
+
+
+
+ onInit |
+ None |
+ Callback after a popup html is generated. |
+
+
+ onShow |
+ None |
+ Callback after a popup section is shown. |
+
+
+ onHide |
+ None |
+ Callback after a popup section is hidden. |
+
+
+
+
+
+
+ UI Module Settings |
+
+
+
+ moduleName |
+ Popup |
+ Name used in debug logs |
+
+
+ debug |
+ True |
+ Provides standard debug output to console |
+
+
+ performance |
+ False |
+ Provides standard debug output to console |
+
+
+ verbose |
+ False |
+ Provides ancillary debug output to console |
+
+
+ namespace |
+ popup |
+ Event namespace. Makes sure module teardown does not effect other events attached to an element. |
+
+
+ errors |
+
+
+ errors : {
+ method : 'The method you called is not defined.'
+ }
+
+ |
+
+
+
+
+