diff --git a/build/content-flow.js b/build/content-flow.js index 13ee84d..30f8aee 100644 --- a/build/content-flow.js +++ b/build/content-flow.js @@ -209,7 +209,7 @@ }; _FlowMgr.prototype.syncFlows = function(flowQuery) { - var domFlow, flows, _i, _len, _ref; + var cmp, domFlow, flows, _i, _len, _ref; if (flowQuery) { this._flowQuery = flowQuery; } @@ -220,6 +220,20 @@ } else { this._domFlows = this._flowQuery; } + this._domFlows = Array.from(this._domFlows); + cmp = function(a, b) { + var aPos, bPos; + aPos = parseFloat(a.dataset.cfFlowPosition); + if (aPos === NaN) { + aPos = 999999; + } + bPos = parseFloat(b.dataset.cfFlowPosition); + if (bPos === NaN) { + bPos = 999999; + } + return aPos - bPos; + }; + this._domFlows.sort(cmp); flows = []; _ref = this._domFlows; for (_i = 0, _len = _ref.length; _i < _len; _i++) { diff --git a/build/content-flow.min.css b/build/content-flow.min.css index da09e60..e42cc12 100644 --- a/build/content-flow.min.css +++ b/build/content-flow.min.css @@ -1,2 +1,2 @@ @charset "UTF-8"; -/*! content-flow v0.1.2 by Anthony Blackshaw (https://github.com/anthonyjb) */.ce--dragging,.ce--resizing{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ce--dragging{cursor:move!important}.ce--resizing{cursor:nwse-resize!important}.ce-element--type-image,.ce-element--type-video{background-repeat:no-repeat;position:relative;cursor:pointer;z-index:1}.ce-element--type-image:after,.ce-element--type-image:before,.ce-element--type-video:after,.ce-element--type-video:before{background:rgba(0,0,0,.5);border-radius:2px;color:#fff;display:none;font-family:arial,sans-serif;font-size:10px;line-height:10px;padding:4px 4px 3px;position:absolute}.ce-element--type-image:before,.ce-element--type-video:before{content:attr(data-ce-size);right:10px;top:10px}.ce-element--type-image.ce-element--over:before,.ce-element--type-image.ce-element--resizing:before,.ce-element--type-video.ce-element--over:before,.ce-element--type-video.ce-element--resizing:before{display:block}.ce-element--type-image{background-position:0 0;background-size:cover}.ce-element--type-image:after{background:transparent;content:"";display:block;left:0;position:relative;top:0;height:100%;width:100%}.ce-element--type-video{background:#333 url(images/video.svg) 50%/auto 48px no-repeat}.ce-element--type-video:after{bottom:10px;content:attr(data-ce-title);display:block;left:10px}.ce-element--empty:after{content:"...";display:inline-block;font-style:italic;opacity:.5}.ce-element--empty[data-ce-placeholder]:after{content:attr(data-ce-placeholder)}.ce-element--dragging{background-color:rgba(51,51,51,.1)!important;opacity:.5;z-index:-1}.ce-element--dragging.ce-element--type-image,.ce-element--dragging.ce-element--type-video{background-color:#333!important;opacity:1;outline-color:rgba(51,51,51,.1)!important}.ce-element--drop{position:relative!important}.ce-element--drop:before{background:#f39c12 url(images/drop-vert-above.svg) 50%/auto 32px repeat;bottom:0;content:""!important;left:0;opacity:.8;position:absolute;right:0;top:0;z-index:9}.ce-element--drop-below:before{transform:rotate(180deg)}.ce-element--drop-left:before{background-image:url(images/drop-horz.svg);transform:rotate(0deg)}.ce-element--drop-right:before{background-image:url(images/drop-horz.svg);transform:rotate(180deg)}.ce-element--drop.ce-element--type-table-row{background:#f39c12 url(images/drop-vert-above.svg) 50%/auto 32px repeat}.ce-element--drop.ce-element--type-table-row:before{display:none}.ce-element--drop.ce-element--type-table-row.ce-element--drop-below{background:#f39c12 url(images/drop-vert-below.svg) 50%/auto 32px repeat}.ce-element--focused,.ce-element--over{background-color:rgba(243,156,18,.1);outline:none}.ce-element--focused.ce-element--type-image,.ce-element--focused.ce-element--type-image-fixture,.ce-element--focused.ce-element--type-video,.ce-element--over.ce-element--type-image,.ce-element--over.ce-element--type-image-fixture,.ce-element--over.ce-element--type-video{background-color:#333;outline:4px solid rgba(243,156,18,.35)}.ce-element--resize-top-left{cursor:nw-resize}.ce-element--resize-top-right{cursor:ne-resize}.ce-element--resize-bottom-right{cursor:se-resize}.ce-element--resize-bottom-left{cursor:sw-resize}.ce-drag-helper{background:#fff;border-radius:2px;box-shadow:0 3px 3px rgba(0,0,0,.25);color:#4e4e4e;font:arial,sans-serif;font-size:12px;height:120px;left:0;line-height:135%;margin:5px 0 0 5px;overflow:hidden;padding:15px;position:absolute;top:0;width:120px;word-wrap:break-word;z-index:9}.ce-drag-helper:before{background:#2980b9;color:#fff;content:attr(data-ce-type);display:block;font-family:arial,sans-serif;font-size:10px;line-height:10px;padding:4px 4px 3px;position:absolute;right:0;top:0}.ce-drag-helper--type-list-item-text:after,.ce-drag-helper--type-list:after,.ce-drag-helper--type-pre-text:after,.ce-drag-helper--type-table-row:after,.ce-drag-helper--type-table:after,.ce-drag-helper--type-text:after{background-image:linear-gradient(hsla(0,0%,100%,0),#fff 66%);bottom:0;content:"";display:block;height:40px;left:0;position:absolute;width:100%}.ce-drag-helper--type-image{background-repeat:no-repeat;background-size:cover}.ce-element--type-image,.ce-element--type-video{display:block;margin-left:auto;margin-right:auto}.ce-element--type-image.align-left,.ce-element--type-video.align-left{clear:none;float:left}.ce-element--type-image.align-right,.ce-element--type-video.align-right{clear:none;float:right}.ce-measure{display:block!important}@font-face{font-family:icon;src:url(images/icons.woff);font-weight:400;font-style:normal}.ct-widget,.ct-widget *{box-sizing:border-box}.ct-widget * a,.ct-widget * b,.ct-widget * caption,.ct-widget * div,.ct-widget * form,.ct-widget * i fieldset,.ct-widget * iframe,.ct-widget * label,.ct-widget * legend,.ct-widget * span,.ct-widget * table,.ct-widget * tbody,.ct-widget * td,.ct-widget * tfoot,.ct-widget * th,.ct-widget * thead,.ct-widget * tr,.ct-widget a,.ct-widget b,.ct-widget caption,.ct-widget div,.ct-widget form,.ct-widget i fieldset,.ct-widget iframe,.ct-widget label,.ct-widget legend,.ct-widget span,.ct-widget table,.ct-widget tbody,.ct-widget td,.ct-widget tfoot,.ct-widget th,.ct-widget thead,.ct-widget tr{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:baseline}.ct-widget * ol,.ct-widget * ul,.ct-widget ol,.ct-widget ul{list-style:none}.ct-widget * table,.ct-widget table{border-collapse:collapse;border-spacing:0}.ct-widget{opacity:0;font-family:arial,sans-serif;font-size:14px;line-height:18px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;z-index:9999}.ct-widget,.ct-widget--active{transition-property:opacity;transition-duration:.25s;transition-timing-function:ease-in}.ct-widget--active{opacity:1}.ct-widget .ct-attribute{border-bottom:1px solid #eee;height:48px;vertical-align:top}.ct-widget .ct-attribute:after{clear:both;content:"";display:table}.ct-widget .ct-attribute__name{background:#f6f6f6;border:none;color:#646464;float:left;height:47px;outline:none;padding:0 16px;font-family:arial,sans-serif;font-size:14px;line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:25%}.ct-widget .ct-attribute__name--invalid{color:#e74c3c}.ct-widget .ct-attribute__value{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:none;color:#646464;float:right;height:47px;outline:none;padding:0 16px;font-family:arial,sans-serif;font-size:14px;line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:75%}.ct-widget .ct-crop-marks{height:320px;left:73px;position:absolute;top:0;width:427px}.ct-widget .ct-crop-marks__clipper{height:100%;overflow:hidden;position:relative;width:100%}.ct-widget .ct-crop-marks__ruler--top-left{position:absolute}.ct-widget .ct-crop-marks__ruler--top-left:after{border:1px solid hsla(0,0%,100%,.5);border-bottom:none;border-right:none;box-shadow:-1px -1px 1px rgba(0,0,0,.25),inset 1px 1px 1px rgba(0,0,0,.25);content:"";height:999px;left:0;position:absolute;top:0;width:999px}.ct-widget .ct-crop-marks__ruler--bottom-right{position:absolute}.ct-widget .ct-crop-marks__ruler--bottom-right:after{border:1px solid hsla(0,0%,100%,.5);border-top:none;border-left:none;bottom:0;box-shadow:1px 1px 1px rgba(0,0,0,.25),inset -1px -1px 1px rgba(0,0,0,.25);content:"";height:999px;position:absolute;right:0;width:999px}.ct-widget .ct-crop-marks__handle{background:#2980b9;border:1px solid #409ad5;border-radius:7px;cursor:pointer;height:15px;margin-left:-7px;margin-top:-7px;position:absolute;width:15px}.ct-widget .ct-crop-marks__handle--bottom-right{margin-left:-8px;margin-top:-8px}.ct-widget .ct-crop-marks__handle:hover{background:#2e8ece}@keyframes a{0%{transform:translate(-50%,-50%) rotate(0deg);transform:transform}to{transform:translate(-50%,-50%) rotate(359deg);transform:transform}}.ct-widget.ct-dialog{background:#fff;box-shadow:0 8px 8px rgba(0,0,0,.35);border-radius:2px;height:480px;left:50%;margin-left:-350px;margin-top:-240px;position:fixed;top:50%;width:700px;z-index:10099}.ct-widget.ct-dialog--busy .ct-dialog__busy{display:block}.ct-widget.ct-dialog--busy .ct-dialog__body{opacity:.1}.ct-widget .ct-dialog__header{color:#a4a4a4;border-bottom:1px solid #eee;height:48px;padding:0 16px;position:relative}.ct-widget .ct-dialog__caption{font-family:arial,sans-serif;font-size:18px}.ct-widget .ct-dialog__caption,.ct-widget .ct-dialog__close{line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-dialog__close{border-left:1px solid #eee;cursor:pointer;height:48px;position:absolute;right:0;text-align:center;top:0;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;width:48px}.ct-widget .ct-dialog__close:before{content:"\ea0f"}.ct-widget .ct-dialog__close:hover:before{color:#646464}.ct-widget .ct-dialog__body{margin:auto;width:572px}.ct-widget .ct-dialog__view{height:320px;margin-top:32px}.ct-widget .ct-dialog__controls{margin-top:16px}.ct-widget .ct-dialog__controls:after{clear:both;content:"";display:table}.ct-widget .ct-dialog__busy{display:none;position:absolute}.ct-widget .ct-dialog__busy:before{animation:a 5s linear;animation-iteration-count:infinite;animation-fill-mode:forwards;color:#a4a4a4;content:"\e994";left:50%;position:fixed;top:50%;font-family:icon;font-size:80px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-control-group{font-size:0}.ct-widget .ct-control-group--center{text-align:center}.ct-widget .ct-control-group--left{float:left}.ct-widget .ct-control-group--right{float:right}.ct-widget .ct-control{margin-left:16px;position:relative}.ct-widget .ct-control:first-child{margin-left:0}.ct-widget .ct-control--icon{color:#a4a4a4;cursor:pointer;display:inline-block;height:32px;line-height:32px;text-align:center;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;width:32px}.ct-widget .ct-control--icon,.ct-widget .ct-control--icon:after{border-radius:2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-control--icon:after{background:#000;color:#fff;content:attr(data-ct-tooltip);display:block;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;left:-26.5px;opacity:0;padding:0 8px;position:absolute;bottom:37px;font-family:arial,sans-serif;font-size:12px;line-height:20px;visibility:hidden;width:85px;word-break:break-word}.ct-widget .ct-control--icon:hover:after{opacity:.8;visibility:visible;transition-property:opacity;transition-duration:0s;transition-timing-function:ease-in;transition-delay:2s}.ct-widget .ct-control--icon:before{content:""}.ct-widget .ct-control--icon:hover{background:#eee;color:#646464}.ct-widget .ct-control--active,.ct-widget .ct-control--on{background:#a4a4a4;color:#fff}.ct-widget .ct-control--active:hover,.ct-widget .ct-control--on:hover{background:#646464;color:#fff}.ct-widget .ct-control--rotate-ccw:before{content:"\e965"}.ct-widget .ct-control--rotate-cw:before{content:"\e966"}.ct-widget .ct-control--crop:before{content:"\ea57"}.ct-widget .ct-control--remove:before{content:"\e9ac"}.ct-widget .ct-control--styles:before{content:"\e90b"}.ct-widget .ct-control--attributes:before{content:"\e994"}.ct-widget .ct-control--code:before{content:"\ea80"}.ct-widget .ct-control--icon.ct-control--muted{cursor:default}.ct-widget .ct-control--icon.ct-control--muted:before{opacity:.5}.ct-widget .ct-control--icon.ct-control--muted:hover{color:#a4a4a4;background:transparent}.ct-widget .ct-control--text{background:#2980b9;border-radius:2px;color:#fff;cursor:pointer;display:inline-block;font-weight:700;height:32px;overflow:hidden;padding:0 8px;text-align:center;text-overflow:ellipsis;font-family:arial,sans-serif;font-size:14px;line-height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;width:100px}.ct-widget .ct-control--text:hover{background:#2e8ece}.ct-widget .ct-control--apply,.ct-widget .ct-control--insert,.ct-widget .ct-control--ok{background:#27ae60}.ct-widget .ct-control--apply:hover,.ct-widget .ct-control--insert:hover,.ct-widget .ct-control--ok:hover{background:#2cc36b}.ct-widget .ct-control--cancel,.ct-widget .ct-control--clear{background:#e74c3c}.ct-widget .ct-control--cancel:hover,.ct-widget .ct-control--clear:hover{background:#ea6153}.ct-widget .ct-control--text.ct-control--muted{background:#ccc;cursor:default}.ct-widget .ct-control--text.ct-control--muted:hover{background:#ccc}.ct-widget .ct-control--upload{overflow:hidden}.ct-widget.ct-image-dialog--empty .ct-control--cancel,.ct-widget.ct-image-dialog--empty .ct-control--clear,.ct-widget.ct-image-dialog--empty .ct-control--crop,.ct-widget.ct-image-dialog--empty .ct-control--insert,.ct-widget.ct-image-dialog--empty .ct-control--rotate-ccw,.ct-widget.ct-image-dialog--empty .ct-control--rotate-cw,.ct-widget.ct-image-dialog--empty .ct-progress-bar,.ct-widget.ct-image-dialog--populated .ct-control--cancel,.ct-widget.ct-image-dialog--populated .ct-control--upload,.ct-widget.ct-image-dialog--populated .ct-progress-bar,.ct-widget.ct-image-dialog--uploading .ct-control--clear,.ct-widget.ct-image-dialog--uploading .ct-control--crop,.ct-widget.ct-image-dialog--uploading .ct-control--insert,.ct-widget.ct-image-dialog--uploading .ct-control--rotate-ccw,.ct-widget.ct-image-dialog--uploading .ct-control--rotate-cw,.ct-widget.ct-image-dialog--uploading .ct-control--upload{display:none}.ct-widget .ct-image-dialog__view{background:#eee;position:relative}.ct-widget .ct-image-dialog__view:empty{font-family:icon;font-size:80px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:320px;text-align:center}.ct-widget .ct-image-dialog__view:empty:before{color:#fff;content:"\e90d"}.ct-widget .ct-image-dialog__image{background-color:transparent;background-position:50%;background-repeat:no-repeat;background-size:contain;height:100%;width:100%}.ct-widget .ct-image-dialog__file-upload{cursor:pointer;font-size:400px;left:0;opacity:0;position:absolute;top:0}.ct-widget.ct-properties-dialog--attributes .ct-properties-dialog__attributes,.ct-widget.ct-properties-dialog--styles .ct-properties-dialog__styles{display:block}.ct-widget.ct-properties-dialog--styles .ct-properties-dialog__styles:empty:before{color:#a4a4a4;content:attr(data-ct-empty);display:block;font-style:italic;margin-top:20px;text-align:center}.ct-widget.ct-properties-dialog--code .ct-properties-dialog__code{display:block}.ct-widget .ct-properties-dialog__view{border:1px solid #ddd;overflow:auto}.ct-widget .ct-properties-dialog__attributes,.ct-widget .ct-properties-dialog__code,.ct-widget .ct-properties-dialog__styles{display:none}.ct-widget .ct-properties-dialog__inner-html{border:none;display:block;font-family:courier,Bitstream Vera Sans Mono,Consolas,Courier,monospace;height:318px;padding:16px;outline:none;resize:none;width:100%}.ct-widget .ct-properties-dialog__inner-html--invalid{color:#e74c3c}.ct-widget .ct-table-dialog__view{border:1px solid #ddd;overflow:auto}.ct-widget .ct-video-dialog__preview:empty{background:#eee;font-family:icon;font-size:80px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:320px;text-align:center}.ct-widget .ct-video-dialog__preview:empty:before{color:#fff;content:"\ea98"}.ct-widget .ct-video-dialog__input{border:none;border-bottom:1px solid #eee;height:32px;line-height:32px;outline:none;padding:0 4px;font-family:arial,sans-serif;font-size:14px;line-height:18px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;width:456px}.ct-widget .ct-video-dialog__input:focus{border-bottom:1px solid #e1e1e1}.ct-widget.ct-anchored-dialog{border-bottom:2px solid #27ae60;box-shadow:0 3px 3px rgba(0,0,0,.35);font-size:0;height:34px;left:0;margin-left:-160px;margin-top:-48px;position:absolute;top:0;width:320px;z-index:10099}.ct-widget.ct-anchored-dialog:after{border:16px solid hsla(0,0%,100%,0);border-top-color:#27ae60;content:"";left:144px;position:absolute;top:34px}.ct-widget .ct-anchored-dialog__input{border:none;color:#646464;outline:none;font-family:arial,sans-serif;font-size:14px;padding:0 8px 0 16px;vertical-align:top;width:256px}.ct-widget .ct-anchored-dialog__button,.ct-widget .ct-anchored-dialog__input{height:32px;line-height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-anchored-dialog__button{background:#27ae60;cursor:pointer;display:inline-block;text-align:center;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;width:32px}.ct-widget .ct-anchored-dialog__button:before{color:#fff;content:"\ea10"}.ct-widget .ct-anchored-dialog__button:hover{background:#2cc36b}.ct-widget .ct-anchored-dialog__target-button{background:#fff;cursor:pointer;display:inline-block;height:32px;line-height:32px;text-align:center;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:32px}.ct-widget .ct-anchored-dialog__target-button:before{color:#a4a4a4;content:"\ea7d"}.ct-widget .ct-anchored-dialog__target-button:hover:before{color:#b1b1b1}.ct-widget .ct-anchored-dialog__target-button--active:before{color:#27ae60}.ct-widget .ct-anchored-dialog__target-button--active:hover:before{color:#2cc36b}@keyframes b{0%{opacity:0;font-size:32px;transform:font-size}25%{font-size:320px;opacity:1;transform:all}50%{font-size:320px;opacity:1;transform:all}75%{font-size:320px;opacity:1;transform:all}to{opacity:0;transform:all}}@keyframes c{0%{opacity:1;transform:opacity}99%{opacity:1;transform:opacity}to{opacity:0;transform:opacity}}.ct-widget.ct-flash{color:hsla(0,0%,100%,.9);height:0;left:0;position:fixed;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;top:0;width:0;z-index:10999}.ct-widget.ct-flash:before{left:50%;opacity:0;position:fixed;text-shadow:0 0 20px rgba(0,0,0,.5);top:50%;transform:translate(-50%,-50%)}.ct-widget.ct-flash--active{animation:c 2s ease-in;animation-iteration-count:1;animation-fill-mode:forwards}.ct-widget.ct-flash--active:before{animation:b 2s ease-in;animation-iteration-count:1;animation-fill-mode:forwards;font-size:320px;opacity:1}.ct-widget.ct-flash--ok:before{content:"\ea10"}.ct-widget.ct-flash--no:before{content:"\ea0f"}.ct-widget .ct-grip{cursor:move;font-size:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ct-widget .ct-grip__bump{background:rgba(70,70,70,.15);border-radius:12px;display:inline-block;height:12px;margin-left:12px;width:12px}.ct-widget .ct-grip__bump:first-child{margin-left:0}@keyframes d{0%{transform:rotate(0deg);transform:transform}to{transform:rotate(359deg);transform:transform}}.ct-widget.ct-ignition{left:16px;position:fixed;top:16px}.ct-widget.ct-ignition .ct-ignition__button{display:none}.ct-widget.ct-ignition--editing .ct-ignition__button--cancel,.ct-widget.ct-ignition--editing .ct-ignition__button--confirm,.ct-widget.ct-ignition--ready .ct-ignition__button--edit{display:block}.ct-widget.ct-ignition--busy .ct-ignition__button{display:none}.ct-widget.ct-ignition--busy .ct-ignition__button--busy{display:block}.ct-widget .ct-ignition__button{border-radius:24px;content:"";cursor:pointer;display:block;height:48px;line-height:48px;opacity:.9;position:absolute;text-align:center;font-family:icon;font-size:24px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:48px}.ct-widget .ct-ignition__button:before{color:#fff}.ct-widget .ct-ignition__button--busy{animation:d 5s linear;animation-iteration-count:infinite;animation-fill-mode:forwards;background:#646464;cursor:default}.ct-widget .ct-ignition__button--busy:before{content:"\e994"}.ct-widget .ct-ignition__button--busy:hover{background:#646464}.ct-widget .ct-ignition__button--confirm{background:#27ae60}.ct-widget .ct-ignition__button--confirm:before{content:"\ea10"}.ct-widget .ct-ignition__button--confirm:hover{background:#2cc36b}.ct-widget .ct-ignition__button--cancel{background:#e74c3c;left:64px}.ct-widget .ct-ignition__button--cancel:before{content:"\ea0f"}.ct-widget .ct-ignition__button--cancel:hover{background:#ea6153}.ct-widget .ct-ignition__button--edit{background:#2980b9}.ct-widget .ct-ignition__button--edit:before{content:"\e905";transition-property:transform;transition-duration:.1s;transition-timing-function:ease-in}.ct-widget .ct-ignition__button--edit:hover{background:#2e8ece}.ct-widget .ct-ignition__button--edit:hover:before{display:inline-block;transform:rotate(-15deg)}.ct-widget.ct-inspector{background:hsla(0,0%,91%,.2);border-top:1px solid hsla(0,0%,100%,.1);bottom:0;height:32px;left:0;overflow:hidden;padding:3px 16px 0;position:fixed;width:100%}.ct-widget .ct-inspector__tags{width:calc(100% - 128px)}.ct-widget .ct-inspector__tags:after{clear:both;content:"";display:table}.ct-widget .ct-inspector__tags:before{color:#464646;content:"\ea80";display:block;float:left;height:24px;line-height:24px;margin-right:16px;text-align:center;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:24px}.ct-widget .ct-inspector__counter{border-left:1px solid rgba(0,0,0,.1);height:24px;line-height:24px;margin-right:16px;position:absolute;right:0;text-align:right;top:3px;width:128px}.ct-widget .ct-tag{background-color:#2980b9;border-radius:2px 0 0 2px;color:#fff;cursor:pointer;float:left;font-weight:700;height:24px;line-height:24px;margin-left:24px;padding:0 8px;position:relative;text-shadow:0 1px 0 rgba(0,0,0,.35)}.ct-widget .ct-tag:after{border-style:solid;border-bottom:12px solid rgba(255,0,0,0);border-left:12px solid #2980b9;border-right:none;border-top:12px solid rgba(255,0,0,0);content:"";display:block;height:24px;bottom:0;right:-24px;position:absolute;width:24px;-moz-transform:scale(.9999)}.ct-widget .ct-tag:first-child{margin-left:0}.ct-widget .ct-tag:hover{background-color:#4aa3df}.ct-widget .ct-tag:hover:after{border-left-color:#4aa3df}.ct-widget .ct-tag:first-child{background-color:#8e44ad}.ct-widget .ct-tag:first-child:after{border-left-color:#8e44ad}.ct-widget .ct-tag:first-child:hover{background-color:#9b50ba}.ct-widget .ct-tag:first-child:hover:after{border-left-color:#9b50ba}.ct-widget .ct-tag:nth-child(2){background-color:#2980b9}.ct-widget .ct-tag:nth-child(2):after{border-left-color:#2980b9}.ct-widget .ct-tag:nth-child(2):hover{background-color:#2e8ece}.ct-widget .ct-tag:nth-child(2):hover:after{border-left-color:#2e8ece}.ct-widget .ct-tag:nth-child(3){background-color:#27ae60}.ct-widget .ct-tag:nth-child(3):after{border-left-color:#27ae60}.ct-widget .ct-tag:nth-child(3):hover{background-color:#2cc36b}.ct-widget .ct-tag:nth-child(3):hover:after{border-left-color:#2cc36b}.ct-widget .ct-tag:nth-child(4){background-color:#d35400}.ct-widget .ct-tag:nth-child(4):after{border-left-color:#d35400}.ct-widget .ct-tag:nth-child(4):hover{background-color:#ed5e00}.ct-widget .ct-tag:nth-child(4):hover:after{border-left-color:#ed5e00}.ct-widget .ct-tag:nth-child(5){background-color:#f39c12}.ct-widget .ct-tag:nth-child(5):after{border-left-color:#f39c12}.ct-widget .ct-tag:nth-child(5):hover{background-color:#f4a62a}.ct-widget .ct-tag:nth-child(5):hover:after{border-left-color:#f4a62a}.ct-widget .ct-tag:nth-child(6){background-color:#16a085}.ct-widget .ct-tag:nth-child(6):after{border-left-color:#16a085}.ct-widget .ct-tag:nth-child(6):hover{background-color:#19b698}.ct-widget .ct-tag:nth-child(6):hover:after{border-left-color:#19b698}.ct-widget.ct-modal{background:rgba(0,0,0,.7);height:0;left:0;position:fixed;top:0;width:0;z-index:10009}.ct-widget.ct-modal--transparent{background:transparent}.ct-widget--active.ct-modal{height:100%;width:100%}.ct-widget .ct-progress-bar{border:1px solid #eee;height:32px;line-height:32px;padding:1px;width:456px}.ct-widget .ct-progress-bar__progress{background:#2980b9;height:28px}.ct-widget .ct-section{border-bottom:1px solid #eee;color:#bdbdbd;cursor:pointer;font-style:italic;height:48px;padding:0 16px;font-family:arial,sans-serif;font-size:16px;line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-section:after{clear:both;content:"";display:table}.ct-widget .ct-section:hover{background:#f6f6f6}.ct-widget .ct-section--applied{color:#646464;font-style:normal}.ct-widget .ct-section--applied .ct-section__switch{background-color:#27ae60;border:1px solid #1e8449}.ct-widget .ct-section--applied .ct-section__switch:before{left:25px;transition-property:left;transition-duration:.1s;transition-timing-function:ease-in}.ct-widget .ct-section--contains-input .ct-section__label{width:75%}.ct-widget .ct-section__label{float:left;overflow:hidden;text-overflow:ellipsis;width:472px;white-space:nowrap}.ct-widget .ct-section__switch{background-color:#ccc;border:1px solid #b3b3b3;border-radius:12px;box-shadow:inset 0 0 2px rgba(0,0,0,.1);float:right;height:24px;margin-top:12px;position:relative;width:48px}.ct-widget .ct-section__switch:before{background:#fff;border-radius:10px;content:"";height:20px;left:1px;position:absolute;top:1px;transition-property:left;transition-duration:.1s;transition-timing-function:ease-in;width:20px}.ct-widget .ct-section__input{background:#fff;border:none;color:#646464;float:right;height:47px;outline:none;padding:0 16px;text-align:right;font-family:arial,sans-serif;font-size:14px;line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:25%}.ct-widget .ct-section__input--invalid{color:#e74c3c}.ct-widget.ct-toolbox{background:hsla(0,0%,91%,.9);border:1px solid hsla(0,0%,100%,.5);box-shadow:0 3px 3px rgba(0,0,0,.35);left:128px;padding:8px;position:fixed;top:128px;width:138px}.ct-widget.ct-toolbox--dragging{opacity:.5}.ct-widget .ct-toolbox__grip{padding:8px 0}.ct-widget .ct-tool-group{padding:4px 0}.ct-widget .ct-tool-group:after{clear:both;content:"";display:table}.ct-widget .ct-tool-group:first-child{padding-top:0}.ct-widget .ct-tool{color:#464646;cursor:pointer;float:left;height:32px;margin:4px;margin-right:4px;position:relative;text-align:center;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;width:32px}.ct-widget .ct-tool,.ct-widget .ct-tool:after{border-radius:2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-tool:after{background:#000;color:#fff;content:attr(data-ct-tooltip);display:block;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;left:-26.5px;opacity:0;padding:0 8px;position:absolute;bottom:37px;font-family:arial,sans-serif;font-size:12px;line-height:20px;visibility:hidden;width:85px;word-break:break-word}.ct-widget .ct-tool:hover:after{opacity:.8;visibility:visible;transition-property:opacity;transition-duration:0s;transition-timing-function:ease-in;transition-delay:2s}.ct-widget .ct-tool:before{line-height:32px}.ct-widget .ct-tool:nth-child(3n){margin-right:0}.ct-widget .ct-tool:hover{background:hsla(0,0%,100%,.5)}.ct-widget .ct-tool--disabled{color:rgba(70,70,70,.33)}.ct-widget .ct-tool--disabled:hover{background:transparent}.ct-widget .ct-tool--down{box-shadow:inset 0 1px 3px rgba(0,0,0,.25);line-height:34px}.ct-widget .ct-tool--down,.ct-widget .ct-tool--down:hover{background:rgba(0,0,0,.025)}.ct-widget .ct-tool--applied{background:rgba(0,0,0,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.25)}.ct-widget .ct-tool--applied:hover{background:rgba(0,0,0,.15)}.ct-widget .ct-tool--bold:before{content:"\ea62"}.ct-widget .ct-tool--heading:before{content:"H";font-weight:700}.ct-widget .ct-tool--subheading:before{content:"H"}.ct-widget .ct-tool--paragraph:before{content:"P"}.ct-widget .ct-tool--preformatted:before{content:"\ea80"}.ct-widget .ct-tool--italic:before{content:"\ea64"}.ct-widget .ct-tool--link:before{content:"\e9cb"}.ct-widget .ct-tool--align-left:before{content:"\ea77"}.ct-widget .ct-tool--align-center:before{content:"\ea78"}.ct-widget .ct-tool--align-right:before{content:"\ea79"}.ct-widget .ct-tool--unordered-list:before{content:"\e9ba"}.ct-widget .ct-tool--ordered-list:before{content:"\e9b9"}.ct-widget .ct-tool--table:before{content:"\ea71"}.ct-widget .ct-tool--indent:before{content:"\ea7b"}.ct-widget .ct-tool--unindent:before{content:"\ea7c"}.ct-widget .ct-tool--line-break:before{content:"\ea6e"}.ct-widget .ct-tool--image:before{content:"\e90d"}.ct-widget .ct-tool--video:before{content:"\ea98"}.ct-widget .ct-tool--undo:before{content:"\e965"}.ct-widget .ct-tool--redo:before{content:"\e966"}.ct-widget .ct-tool--remove:before{content:"\e9ac"}@keyframes e{0%{outline-color:hsla(0,0%,100%,0);transform:background-color}25%{outline-color:#f39c12;transform:background-color}50%{outline-color:#f39c12;transform:background-color}to{outline-color:hsla(0,0%,100%,0);transform:background-color}}.ct-app,.ct-app *,.ct-app :after,.ct-app :before{box-sizing:border-box}.ct--highlight{outline:4px solid #f39c12;animation:e .5s ease-in;animation-iteration-count:infinite;animation-fill-mode:forwards}.ct--no-scroll{overflow:hidden}.ct--pseudo-select{background:rgba(0,0,0,.1)}.ct-widget.ct-draw{background-color:#fff;box-shadow:0 0 3px 0 rgba(0,0,0,.35),inset -1px 0 0 0 hsla(0,0%,100%,.5);display:flex;flex-direction:column;font-family:arial,sans-serif;font-size:14px;font-weight:400;height:100%;line-height:22px;opacity:1;position:fixed;right:-250px;top:0;width:250px;z-index:9998;transition-property:right;transition-duration:.25s;transition-timing-function:ease-out}.ct-widget.ct-draw--open{right:0;transition-property:right;transition-duration:.25s;transition-timing-function:ease-in}.ct-widget .ct-field{padding:5px 10px}.ct-widget .ct-field:first-child{padding-top:15px}.ct-widget .ct-field--optional .ct-field__label:after{content:" (Optional)";display:inline}.ct-widget .ct-field__label{color:#999;display:block;font-size:14px}.ct-widget .ct-field__error{color:#e74c3c;padding:2px 0}.ct-widget .ct-field__input:not(.ct-field__input--boolean){background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);color:#666;display:block;font-family:inherit;font-size:inherit;height:40px;line-height:40px;margin:0;margin-top:5px;padding:0 10px;text-align:left;width:100%}.ct-widget .ct-field__input--boolean{margin-top:10px;transform:scale(1.25)}.ct-widget .ct-field__input--select{background-color:transparent;background-image:linear-gradient(45deg,transparent 50%,#666 0),linear-gradient(135deg,#666 50%,transparent 0);background-repeat:no-repeat;background-position:calc(100% - 15px) 18px,calc(100% - 10px) 18px,100% 0;background-size:5px 5px,5px 5px,40px 40px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ct-flows{background-color:rgba(0,0,0,.1)}.ct-flows__select{background-color:transparent;background-image:linear-gradient(45deg,transparent 50%,rgba(0,0,0,.9) 0),linear-gradient(135deg,rgba(0,0,0,.9) 50%,transparent 0);background-repeat:no-repeat;background-position:calc(100% - 15px) 14px,calc(100% - 10px) 14px,100% 0;background-size:5px 5px,5px 5px,32px 32px;border:none;line-height:32px;outline:none;padding:0 10px;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ct-widget .ct-inlay__header{align-items:center;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.1);display:flex;padding:20px 10px}.ct-widget .ct-inlay__heading{color:#6a6a6a;flex:1;font-size:22px;line-height:30px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.ct-widget .ct-inlay__tools{display:flex;flex:0 0 auto}.ct-widget .ct-inlay__body{height:calc(100vh - 104px);overflow-x:hidden;overflow-y:auto}.ct-widget .ct-inlay__body::-webkit-scrollbar-track{background-color:rgba(0,0,0,.1)}.ct-widget .ct-inlay__body::-webkit-scrollbar{width:5px}.ct-widget .ct-inlay__body::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.25)}.ct-widget .ct-inlay__body--sorting .ct-snippet{cursor:-webkit-grabbing;cursor:grabbing}.ct-widget .ct-inlay-tool{align-items:center;border-radius:2px;cursor:pointer;display:flex;height:32px;justify-content:center;margin-right:8px;position:relative;width:32px}.ct-widget .ct-inlay-tool:last-child{margin-right:0}.ct-widget .ct-inlay-tool:hover{background-color:rgba(0,0,0,.1)}.ct-widget .ct-inlay-tool:hover:before{opacity:.8;visibility:visible;transition:opacity 0s ease-in;transition-delay:2s}.ct-widget .ct-inlay-tool:hover:after{color:#2980b9}.ct-widget .ct-inlay-tool:active,.ct-widget .ct-inlay-tool:focus{background-color:rgba(0,0,0,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.25)}.ct-widget .ct-inlay-tool:before{background-color:#000;border-radius:3px 3px 0 3px;color:#fff;content:attr(data-ct-tooltip);display:block;font-family:arial,sans-serif;font-size:12px;hyphens:auto;line-height:20px;opacity:0;padding:0 8px;text-align:center;visibility:hidden;width:85px;word-break:break-word;z-index:1;position:absolute;bottom:24px;left:-94px}.ct-widget .ct-inlay-tool:after{background-position:50%;background-repeat:no-repeat;background-size:24px 24px;color:#999;display:block;height:32px;line-height:32px;text-align:center;width:32px;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-inlay-tool--add:after{content:"\ea0a"}.ct-widget .ct-inlay-tool--cancel:after{content:"\ea0f"}.ct-widget .ct-inlay-tool--confirm:after{content:"\ea10"}.ct-widget .ct-inlay-tool--order:after{content:"\e9bd"}.ct-widget .ct-inlay-section__heading{box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.1);color:#6a6a6a;font-size:16px;line-height:20px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;padding:20px 10px 10px;width:100%}.ct-widget .ct-inlay-note{color:#999;font-size:14px;padding:20px 10px}.ct-widget .ct-snippet{box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.1);padding:10px 10px 0;position:relative}.ct-widget .ct-snippet--ghost{background:#f8f8f8!important;color:rgba(0,0,0,.6)!important}.ct-widget .ct-snippet--helper{background:#fff!important;z-index:9999!important}.ct-widget .ct-snippet--scope-global .ct-snippet__label:before{background:#999;border-radius:8px;color:#fff;content:"G";display:inline-block;font-weight:700;height:16px;line-height:16px;margin-right:5px;text-align:center;width:16px}.ct-widget .ct-snippet--behaviour-manage:hover .ct-snippet__tools{opacity:1;transition:opacity .5s ease-in}.ct-widget .ct-snippet--behaviour-order{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:-webkit-grab;cursor:grab;user-select:none}.ct-widget .ct-snippet--behaviour-pick{cursor:pointer}.ct-widget .ct-snippet--behaviour-pick:hover .ct-snippet__label{color:#2980b9}.ct-widget .ct-snippet--behaviour-pick:hover .ct-snippet__label:before{background:#2980b9}.ct-widget .ct-snippet__label{color:#999;font-size:14px;margin-top:5px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;box-flex:1;-moz-flex:1;-ms-flex:1;flex:1}.ct-widget .ct-snippet__preview{background:rgba(0,0,0,.025);background-position:50%;background-repeat:no-repeat;background-size:contain;height:50px}.ct-widget .ct-snippet__tools{background:hsla(0,0%,100%,.55);bottom:0;height:100%;left:0;opacity:0;position:absolute;width:100%;transition:opacity .5s ease-out}.ct-widget .ct-snippet__tool{align-items:center;bottom:8px;cursor:pointer;display:flex;height:32px;justify-content:center;right:8px;position:absolute;width:32px;z-index:1}.ct-widget .ct-snippet__tool:hover:before{opacity:.8;visibility:visible;transition:opacity 0s ease-in;transition-delay:2s}.ct-widget .ct-snippet__tool:hover:after{color:#2980b9}.ct-widget .ct-snippet__tool:before{background-color:#000;border-radius:3px 3px 0 3px;color:#fff;content:attr(data-ct-tooltip);display:block;font-family:arial,sans-serif;font-size:12px;hyphens:auto;line-height:20px;opacity:0;padding:0 8px;text-align:center;visibility:hidden;width:85px;word-break:break-word;z-index:1;position:absolute;bottom:24px;left:-94px}.ct-widget .ct-snippet__tool:after{background-position:50%;background-repeat:no-repeat;background-size:24px 24px;color:#999;display:block;height:32px;line-height:32px;text-align:center;width:32px;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-snippet__tool--tooltip-left:before{position:absolute;bottom:6px;left:-100px}.ct-widget .ct-snippet__tool--settings{right:84px}.ct-widget .ct-snippet__tool--settings:after{content:"\e993"}.ct-widget .ct-snippet__tool--scope{right:46px}.ct-widget .ct-snippet__tool--scope:after{content:"\e9ca"}.ct-widget .ct-snippet__tool--delete:after{content:"\e9ac"}.ct-widget .ct-snippet--permanent .ct-snippet__tool--settings{right:46px}.ct-widget .ct-snippet--permanent .ct-snippet__tool--scope{right:8px}.ct-snippet--helper{background:#fff!important;z-index:9999!important}.ct-widget.ct-toggle{position:fixed;right:64px;top:23px;transition-property:right;transition-duration:.25s;transition-timing-function:ease-out}.ct-widget.ct-toggle--off .ct-toggle__button--on,.ct-widget.ct-toggle--on .ct-toggle__button--off{display:block}.ct-widget.ct-toggle--disabled .ct-toggle__button,.ct-widget.ct-toggle--disabled .ct-toggle__button:hover{background:#ccc}.ct-widget .ct-toggle__button{background:#2980b9;border-radius:24px;cursor:pointer;display:none;height:48px;line-height:48px;opacity:.9;position:absolute;text-align:center;width:48px;font-family:icon;font-size:24px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-toggle__button--on:before{content:""}.ct-widget .ct-toggle__button--off:before{content:""}.ct-widget .ct-toggle__button:before{background-position:50%;background-repeat:no-repeat;background-size:24px 24px;color:#fff;display:block;height:48px;width:48px}.ct-widget .ct-toggle__button:hover{background:#2e8ece}.cf--flow-mgr-open .ct-widget.ct-toggle{right:314px;transition-property:right;transition-duration:.25s;transition-timing-function:ease-in}body{transition-property:padding-right;transition-duration:.25s;transition-timing-function:ease-out}body.cf--flow-mgr-open{padding-right:250px;transition-property:padding-right;transition-duration:.25s;transition-timing-function:ease-in}body.cf--flow-mgr-open .ct-widget.ct-ignition{right:378px;transition-property:all;transition-duration:.25s;transition-timing-function:ease-in}.ct-widget.ct-ignition{left:auto;right:128px;top:23px;transition-property:all;transition-duration:.25s;transition-timing-function:ease-out}.cf--highlight-snippet{position:relative}.cf--highlight-snippet:after{background:#2980b9;content:"";display:block;height:100%;left:0;opacity:.33;position:absolute;top:0;width:100%;z-index:9999} \ No newline at end of file +/*! content-flow v0.1.3 by Anthony Blackshaw (https://github.com/anthonyjb) */.ce--dragging,.ce--resizing{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ce--dragging{cursor:move!important}.ce--resizing{cursor:nwse-resize!important}.ce-element--type-image,.ce-element--type-video{background-repeat:no-repeat;position:relative;cursor:pointer;z-index:1}.ce-element--type-image:after,.ce-element--type-image:before,.ce-element--type-video:after,.ce-element--type-video:before{background:rgba(0,0,0,.5);border-radius:2px;color:#fff;display:none;font-family:arial,sans-serif;font-size:10px;line-height:10px;padding:4px 4px 3px;position:absolute}.ce-element--type-image:before,.ce-element--type-video:before{content:attr(data-ce-size);right:10px;top:10px}.ce-element--type-image.ce-element--over:before,.ce-element--type-image.ce-element--resizing:before,.ce-element--type-video.ce-element--over:before,.ce-element--type-video.ce-element--resizing:before{display:block}.ce-element--type-image{background-position:0 0;background-size:cover}.ce-element--type-image:after{background:transparent;content:"";display:block;left:0;position:relative;top:0;height:100%;width:100%}.ce-element--type-video{background:#333 url(images/video.svg) 50%/auto 48px no-repeat}.ce-element--type-video:after{bottom:10px;content:attr(data-ce-title);display:block;left:10px}.ce-element--empty:after{content:"...";display:inline-block;font-style:italic;opacity:.5}.ce-element--empty[data-ce-placeholder]:after{content:attr(data-ce-placeholder)}.ce-element--dragging{background-color:rgba(51,51,51,.1)!important;opacity:.5;z-index:-1}.ce-element--dragging.ce-element--type-image,.ce-element--dragging.ce-element--type-video{background-color:#333!important;opacity:1;outline-color:rgba(51,51,51,.1)!important}.ce-element--drop{position:relative!important}.ce-element--drop:before{background:#f39c12 url(images/drop-vert-above.svg) 50%/auto 32px repeat;bottom:0;content:""!important;left:0;opacity:.8;position:absolute;right:0;top:0;z-index:9}.ce-element--drop-below:before{transform:rotate(180deg)}.ce-element--drop-left:before{background-image:url(images/drop-horz.svg);transform:rotate(0deg)}.ce-element--drop-right:before{background-image:url(images/drop-horz.svg);transform:rotate(180deg)}.ce-element--drop.ce-element--type-table-row{background:#f39c12 url(images/drop-vert-above.svg) 50%/auto 32px repeat}.ce-element--drop.ce-element--type-table-row:before{display:none}.ce-element--drop.ce-element--type-table-row.ce-element--drop-below{background:#f39c12 url(images/drop-vert-below.svg) 50%/auto 32px repeat}.ce-element--focused,.ce-element--over{background-color:rgba(243,156,18,.1);outline:none}.ce-element--focused.ce-element--type-image,.ce-element--focused.ce-element--type-image-fixture,.ce-element--focused.ce-element--type-video,.ce-element--over.ce-element--type-image,.ce-element--over.ce-element--type-image-fixture,.ce-element--over.ce-element--type-video{background-color:#333;outline:4px solid rgba(243,156,18,.35)}.ce-element--resize-top-left{cursor:nw-resize}.ce-element--resize-top-right{cursor:ne-resize}.ce-element--resize-bottom-right{cursor:se-resize}.ce-element--resize-bottom-left{cursor:sw-resize}.ce-drag-helper{background:#fff;border-radius:2px;box-shadow:0 3px 3px rgba(0,0,0,.25);color:#4e4e4e;font:arial,sans-serif;font-size:12px;height:120px;left:0;line-height:135%;margin:5px 0 0 5px;overflow:hidden;padding:15px;position:absolute;top:0;width:120px;word-wrap:break-word;z-index:9}.ce-drag-helper:before{background:#2980b9;color:#fff;content:attr(data-ce-type);display:block;font-family:arial,sans-serif;font-size:10px;line-height:10px;padding:4px 4px 3px;position:absolute;right:0;top:0}.ce-drag-helper--type-list-item-text:after,.ce-drag-helper--type-list:after,.ce-drag-helper--type-pre-text:after,.ce-drag-helper--type-table-row:after,.ce-drag-helper--type-table:after,.ce-drag-helper--type-text:after{background-image:linear-gradient(hsla(0,0%,100%,0),#fff 66%);bottom:0;content:"";display:block;height:40px;left:0;position:absolute;width:100%}.ce-drag-helper--type-image{background-repeat:no-repeat;background-size:cover}.ce-element--type-image,.ce-element--type-video{display:block;margin-left:auto;margin-right:auto}.ce-element--type-image.align-left,.ce-element--type-video.align-left{clear:none;float:left}.ce-element--type-image.align-right,.ce-element--type-video.align-right{clear:none;float:right}.ce-measure{display:block!important}@font-face{font-family:icon;src:url(images/icons.woff);font-weight:400;font-style:normal}.ct-widget,.ct-widget *{box-sizing:border-box}.ct-widget * a,.ct-widget * b,.ct-widget * caption,.ct-widget * div,.ct-widget * form,.ct-widget * i fieldset,.ct-widget * iframe,.ct-widget * label,.ct-widget * legend,.ct-widget * span,.ct-widget * table,.ct-widget * tbody,.ct-widget * td,.ct-widget * tfoot,.ct-widget * th,.ct-widget * thead,.ct-widget * tr,.ct-widget a,.ct-widget b,.ct-widget caption,.ct-widget div,.ct-widget form,.ct-widget i fieldset,.ct-widget iframe,.ct-widget label,.ct-widget legend,.ct-widget span,.ct-widget table,.ct-widget tbody,.ct-widget td,.ct-widget tfoot,.ct-widget th,.ct-widget thead,.ct-widget tr{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:baseline}.ct-widget * ol,.ct-widget * ul,.ct-widget ol,.ct-widget ul{list-style:none}.ct-widget * table,.ct-widget table{border-collapse:collapse;border-spacing:0}.ct-widget{opacity:0;font-family:arial,sans-serif;font-size:14px;line-height:18px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;z-index:9999}.ct-widget,.ct-widget--active{transition-property:opacity;transition-duration:.25s;transition-timing-function:ease-in}.ct-widget--active{opacity:1}.ct-widget .ct-attribute{border-bottom:1px solid #eee;height:48px;vertical-align:top}.ct-widget .ct-attribute:after{clear:both;content:"";display:table}.ct-widget .ct-attribute__name{background:#f6f6f6;border:none;color:#646464;float:left;height:47px;outline:none;padding:0 16px;font-family:arial,sans-serif;font-size:14px;line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:25%}.ct-widget .ct-attribute__name--invalid{color:#e74c3c}.ct-widget .ct-attribute__value{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:none;color:#646464;float:right;height:47px;outline:none;padding:0 16px;font-family:arial,sans-serif;font-size:14px;line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:75%}.ct-widget .ct-crop-marks{height:320px;left:73px;position:absolute;top:0;width:427px}.ct-widget .ct-crop-marks__clipper{height:100%;overflow:hidden;position:relative;width:100%}.ct-widget .ct-crop-marks__ruler--top-left{position:absolute}.ct-widget .ct-crop-marks__ruler--top-left:after{border:1px solid hsla(0,0%,100%,.5);border-bottom:none;border-right:none;box-shadow:-1px -1px 1px rgba(0,0,0,.25),inset 1px 1px 1px rgba(0,0,0,.25);content:"";height:999px;left:0;position:absolute;top:0;width:999px}.ct-widget .ct-crop-marks__ruler--bottom-right{position:absolute}.ct-widget .ct-crop-marks__ruler--bottom-right:after{border:1px solid hsla(0,0%,100%,.5);border-top:none;border-left:none;bottom:0;box-shadow:1px 1px 1px rgba(0,0,0,.25),inset -1px -1px 1px rgba(0,0,0,.25);content:"";height:999px;position:absolute;right:0;width:999px}.ct-widget .ct-crop-marks__handle{background:#2980b9;border:1px solid #409ad5;border-radius:7px;cursor:pointer;height:15px;margin-left:-7px;margin-top:-7px;position:absolute;width:15px}.ct-widget .ct-crop-marks__handle--bottom-right{margin-left:-8px;margin-top:-8px}.ct-widget .ct-crop-marks__handle:hover{background:#2e8ece}@keyframes a{0%{transform:translate(-50%,-50%) rotate(0deg);transform:transform}to{transform:translate(-50%,-50%) rotate(359deg);transform:transform}}.ct-widget.ct-dialog{background:#fff;box-shadow:0 8px 8px rgba(0,0,0,.35);border-radius:2px;height:480px;left:50%;margin-left:-350px;margin-top:-240px;position:fixed;top:50%;width:700px;z-index:10099}.ct-widget.ct-dialog--busy .ct-dialog__busy{display:block}.ct-widget.ct-dialog--busy .ct-dialog__body{opacity:.1}.ct-widget .ct-dialog__header{color:#a4a4a4;border-bottom:1px solid #eee;height:48px;padding:0 16px;position:relative}.ct-widget .ct-dialog__caption{font-family:arial,sans-serif;font-size:18px}.ct-widget .ct-dialog__caption,.ct-widget .ct-dialog__close{line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-dialog__close{border-left:1px solid #eee;cursor:pointer;height:48px;position:absolute;right:0;text-align:center;top:0;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;width:48px}.ct-widget .ct-dialog__close:before{content:"\ea0f"}.ct-widget .ct-dialog__close:hover:before{color:#646464}.ct-widget .ct-dialog__body{margin:auto;width:572px}.ct-widget .ct-dialog__view{height:320px;margin-top:32px}.ct-widget .ct-dialog__controls{margin-top:16px}.ct-widget .ct-dialog__controls:after{clear:both;content:"";display:table}.ct-widget .ct-dialog__busy{display:none;position:absolute}.ct-widget .ct-dialog__busy:before{animation:a 5s linear;animation-iteration-count:infinite;animation-fill-mode:forwards;color:#a4a4a4;content:"\e994";left:50%;position:fixed;top:50%;font-family:icon;font-size:80px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-control-group{font-size:0}.ct-widget .ct-control-group--center{text-align:center}.ct-widget .ct-control-group--left{float:left}.ct-widget .ct-control-group--right{float:right}.ct-widget .ct-control{margin-left:16px;position:relative}.ct-widget .ct-control:first-child{margin-left:0}.ct-widget .ct-control--icon{color:#a4a4a4;cursor:pointer;display:inline-block;height:32px;line-height:32px;text-align:center;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;width:32px}.ct-widget .ct-control--icon,.ct-widget .ct-control--icon:after{border-radius:2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-control--icon:after{background:#000;color:#fff;content:attr(data-ct-tooltip);display:block;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;left:-26.5px;opacity:0;padding:0 8px;position:absolute;bottom:37px;font-family:arial,sans-serif;font-size:12px;line-height:20px;visibility:hidden;width:85px;word-break:break-word}.ct-widget .ct-control--icon:hover:after{opacity:.8;visibility:visible;transition-property:opacity;transition-duration:0s;transition-timing-function:ease-in;transition-delay:2s}.ct-widget .ct-control--icon:before{content:""}.ct-widget .ct-control--icon:hover{background:#eee;color:#646464}.ct-widget .ct-control--active,.ct-widget .ct-control--on{background:#a4a4a4;color:#fff}.ct-widget .ct-control--active:hover,.ct-widget .ct-control--on:hover{background:#646464;color:#fff}.ct-widget .ct-control--rotate-ccw:before{content:"\e965"}.ct-widget .ct-control--rotate-cw:before{content:"\e966"}.ct-widget .ct-control--crop:before{content:"\ea57"}.ct-widget .ct-control--remove:before{content:"\e9ac"}.ct-widget .ct-control--styles:before{content:"\e90b"}.ct-widget .ct-control--attributes:before{content:"\e994"}.ct-widget .ct-control--code:before{content:"\ea80"}.ct-widget .ct-control--icon.ct-control--muted{cursor:default}.ct-widget .ct-control--icon.ct-control--muted:before{opacity:.5}.ct-widget .ct-control--icon.ct-control--muted:hover{color:#a4a4a4;background:transparent}.ct-widget .ct-control--text{background:#2980b9;border-radius:2px;color:#fff;cursor:pointer;display:inline-block;font-weight:700;height:32px;overflow:hidden;padding:0 8px;text-align:center;text-overflow:ellipsis;font-family:arial,sans-serif;font-size:14px;line-height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;width:100px}.ct-widget .ct-control--text:hover{background:#2e8ece}.ct-widget .ct-control--apply,.ct-widget .ct-control--insert,.ct-widget .ct-control--ok{background:#27ae60}.ct-widget .ct-control--apply:hover,.ct-widget .ct-control--insert:hover,.ct-widget .ct-control--ok:hover{background:#2cc36b}.ct-widget .ct-control--cancel,.ct-widget .ct-control--clear{background:#e74c3c}.ct-widget .ct-control--cancel:hover,.ct-widget .ct-control--clear:hover{background:#ea6153}.ct-widget .ct-control--text.ct-control--muted{background:#ccc;cursor:default}.ct-widget .ct-control--text.ct-control--muted:hover{background:#ccc}.ct-widget .ct-control--upload{overflow:hidden}.ct-widget.ct-image-dialog--empty .ct-control--cancel,.ct-widget.ct-image-dialog--empty .ct-control--clear,.ct-widget.ct-image-dialog--empty .ct-control--crop,.ct-widget.ct-image-dialog--empty .ct-control--insert,.ct-widget.ct-image-dialog--empty .ct-control--rotate-ccw,.ct-widget.ct-image-dialog--empty .ct-control--rotate-cw,.ct-widget.ct-image-dialog--empty .ct-progress-bar,.ct-widget.ct-image-dialog--populated .ct-control--cancel,.ct-widget.ct-image-dialog--populated .ct-control--upload,.ct-widget.ct-image-dialog--populated .ct-progress-bar,.ct-widget.ct-image-dialog--uploading .ct-control--clear,.ct-widget.ct-image-dialog--uploading .ct-control--crop,.ct-widget.ct-image-dialog--uploading .ct-control--insert,.ct-widget.ct-image-dialog--uploading .ct-control--rotate-ccw,.ct-widget.ct-image-dialog--uploading .ct-control--rotate-cw,.ct-widget.ct-image-dialog--uploading .ct-control--upload{display:none}.ct-widget .ct-image-dialog__view{background:#eee;position:relative}.ct-widget .ct-image-dialog__view:empty{font-family:icon;font-size:80px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:320px;text-align:center}.ct-widget .ct-image-dialog__view:empty:before{color:#fff;content:"\e90d"}.ct-widget .ct-image-dialog__image{background-color:transparent;background-position:50%;background-repeat:no-repeat;background-size:contain;height:100%;width:100%}.ct-widget .ct-image-dialog__file-upload{cursor:pointer;font-size:400px;left:0;opacity:0;position:absolute;top:0}.ct-widget.ct-properties-dialog--attributes .ct-properties-dialog__attributes,.ct-widget.ct-properties-dialog--styles .ct-properties-dialog__styles{display:block}.ct-widget.ct-properties-dialog--styles .ct-properties-dialog__styles:empty:before{color:#a4a4a4;content:attr(data-ct-empty);display:block;font-style:italic;margin-top:20px;text-align:center}.ct-widget.ct-properties-dialog--code .ct-properties-dialog__code{display:block}.ct-widget .ct-properties-dialog__view{border:1px solid #ddd;overflow:auto}.ct-widget .ct-properties-dialog__attributes,.ct-widget .ct-properties-dialog__code,.ct-widget .ct-properties-dialog__styles{display:none}.ct-widget .ct-properties-dialog__inner-html{border:none;display:block;font-family:courier,Bitstream Vera Sans Mono,Consolas,Courier,monospace;height:318px;padding:16px;outline:none;resize:none;width:100%}.ct-widget .ct-properties-dialog__inner-html--invalid{color:#e74c3c}.ct-widget .ct-table-dialog__view{border:1px solid #ddd;overflow:auto}.ct-widget .ct-video-dialog__preview:empty{background:#eee;font-family:icon;font-size:80px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:320px;text-align:center}.ct-widget .ct-video-dialog__preview:empty:before{color:#fff;content:"\ea98"}.ct-widget .ct-video-dialog__input{border:none;border-bottom:1px solid #eee;height:32px;line-height:32px;outline:none;padding:0 4px;font-family:arial,sans-serif;font-size:14px;line-height:18px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;width:456px}.ct-widget .ct-video-dialog__input:focus{border-bottom:1px solid #e1e1e1}.ct-widget.ct-anchored-dialog{border-bottom:2px solid #27ae60;box-shadow:0 3px 3px rgba(0,0,0,.35);font-size:0;height:34px;left:0;margin-left:-160px;margin-top:-48px;position:absolute;top:0;width:320px;z-index:10099}.ct-widget.ct-anchored-dialog:after{border:16px solid hsla(0,0%,100%,0);border-top-color:#27ae60;content:"";left:144px;position:absolute;top:34px}.ct-widget .ct-anchored-dialog__input{border:none;color:#646464;outline:none;font-family:arial,sans-serif;font-size:14px;padding:0 8px 0 16px;vertical-align:top;width:256px}.ct-widget .ct-anchored-dialog__button,.ct-widget .ct-anchored-dialog__input{height:32px;line-height:32px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-anchored-dialog__button{background:#27ae60;cursor:pointer;display:inline-block;text-align:center;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;width:32px}.ct-widget .ct-anchored-dialog__button:before{color:#fff;content:"\ea10"}.ct-widget .ct-anchored-dialog__button:hover{background:#2cc36b}.ct-widget .ct-anchored-dialog__target-button{background:#fff;cursor:pointer;display:inline-block;height:32px;line-height:32px;text-align:center;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:32px}.ct-widget .ct-anchored-dialog__target-button:before{color:#a4a4a4;content:"\ea7d"}.ct-widget .ct-anchored-dialog__target-button:hover:before{color:#b1b1b1}.ct-widget .ct-anchored-dialog__target-button--active:before{color:#27ae60}.ct-widget .ct-anchored-dialog__target-button--active:hover:before{color:#2cc36b}@keyframes b{0%{opacity:0;font-size:32px;transform:font-size}25%{font-size:320px;opacity:1;transform:all}50%{font-size:320px;opacity:1;transform:all}75%{font-size:320px;opacity:1;transform:all}to{opacity:0;transform:all}}@keyframes c{0%{opacity:1;transform:opacity}99%{opacity:1;transform:opacity}to{opacity:0;transform:opacity}}.ct-widget.ct-flash{color:hsla(0,0%,100%,.9);height:0;left:0;position:fixed;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;top:0;width:0;z-index:10999}.ct-widget.ct-flash:before{left:50%;opacity:0;position:fixed;text-shadow:0 0 20px rgba(0,0,0,.5);top:50%;transform:translate(-50%,-50%)}.ct-widget.ct-flash--active{animation:c 2s ease-in;animation-iteration-count:1;animation-fill-mode:forwards}.ct-widget.ct-flash--active:before{animation:b 2s ease-in;animation-iteration-count:1;animation-fill-mode:forwards;font-size:320px;opacity:1}.ct-widget.ct-flash--ok:before{content:"\ea10"}.ct-widget.ct-flash--no:before{content:"\ea0f"}.ct-widget .ct-grip{cursor:move;font-size:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ct-widget .ct-grip__bump{background:rgba(70,70,70,.15);border-radius:12px;display:inline-block;height:12px;margin-left:12px;width:12px}.ct-widget .ct-grip__bump:first-child{margin-left:0}@keyframes d{0%{transform:rotate(0deg);transform:transform}to{transform:rotate(359deg);transform:transform}}.ct-widget.ct-ignition{left:16px;position:fixed;top:16px}.ct-widget.ct-ignition .ct-ignition__button{display:none}.ct-widget.ct-ignition--editing .ct-ignition__button--cancel,.ct-widget.ct-ignition--editing .ct-ignition__button--confirm,.ct-widget.ct-ignition--ready .ct-ignition__button--edit{display:block}.ct-widget.ct-ignition--busy .ct-ignition__button{display:none}.ct-widget.ct-ignition--busy .ct-ignition__button--busy{display:block}.ct-widget .ct-ignition__button{border-radius:24px;content:"";cursor:pointer;display:block;height:48px;line-height:48px;opacity:.9;position:absolute;text-align:center;font-family:icon;font-size:24px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:48px}.ct-widget .ct-ignition__button:before{color:#fff}.ct-widget .ct-ignition__button--busy{animation:d 5s linear;animation-iteration-count:infinite;animation-fill-mode:forwards;background:#646464;cursor:default}.ct-widget .ct-ignition__button--busy:before{content:"\e994"}.ct-widget .ct-ignition__button--busy:hover{background:#646464}.ct-widget .ct-ignition__button--confirm{background:#27ae60}.ct-widget .ct-ignition__button--confirm:before{content:"\ea10"}.ct-widget .ct-ignition__button--confirm:hover{background:#2cc36b}.ct-widget .ct-ignition__button--cancel{background:#e74c3c;left:64px}.ct-widget .ct-ignition__button--cancel:before{content:"\ea0f"}.ct-widget .ct-ignition__button--cancel:hover{background:#ea6153}.ct-widget .ct-ignition__button--edit{background:#2980b9}.ct-widget .ct-ignition__button--edit:before{content:"\e905";transition-property:transform;transition-duration:.1s;transition-timing-function:ease-in}.ct-widget .ct-ignition__button--edit:hover{background:#2e8ece}.ct-widget .ct-ignition__button--edit:hover:before{display:inline-block;transform:rotate(-15deg)}.ct-widget.ct-inspector{background:hsla(0,0%,91%,.2);border-top:1px solid hsla(0,0%,100%,.1);bottom:0;height:32px;left:0;overflow:hidden;padding:3px 16px 0;position:fixed;width:100%}.ct-widget .ct-inspector__tags{width:calc(100% - 128px)}.ct-widget .ct-inspector__tags:after{clear:both;content:"";display:table}.ct-widget .ct-inspector__tags:before{color:#464646;content:"\ea80";display:block;float:left;height:24px;line-height:24px;margin-right:16px;text-align:center;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:24px}.ct-widget .ct-inspector__counter{border-left:1px solid rgba(0,0,0,.1);height:24px;line-height:24px;margin-right:16px;position:absolute;right:0;text-align:right;top:3px;width:128px}.ct-widget .ct-tag{background-color:#2980b9;border-radius:2px 0 0 2px;color:#fff;cursor:pointer;float:left;font-weight:700;height:24px;line-height:24px;margin-left:24px;padding:0 8px;position:relative;text-shadow:0 1px 0 rgba(0,0,0,.35)}.ct-widget .ct-tag:after{border-style:solid;border-bottom:12px solid rgba(255,0,0,0);border-left:12px solid #2980b9;border-right:none;border-top:12px solid rgba(255,0,0,0);content:"";display:block;height:24px;bottom:0;right:-24px;position:absolute;width:24px;-moz-transform:scale(.9999)}.ct-widget .ct-tag:first-child{margin-left:0}.ct-widget .ct-tag:hover{background-color:#4aa3df}.ct-widget .ct-tag:hover:after{border-left-color:#4aa3df}.ct-widget .ct-tag:first-child{background-color:#8e44ad}.ct-widget .ct-tag:first-child:after{border-left-color:#8e44ad}.ct-widget .ct-tag:first-child:hover{background-color:#9b50ba}.ct-widget .ct-tag:first-child:hover:after{border-left-color:#9b50ba}.ct-widget .ct-tag:nth-child(2){background-color:#2980b9}.ct-widget .ct-tag:nth-child(2):after{border-left-color:#2980b9}.ct-widget .ct-tag:nth-child(2):hover{background-color:#2e8ece}.ct-widget .ct-tag:nth-child(2):hover:after{border-left-color:#2e8ece}.ct-widget .ct-tag:nth-child(3){background-color:#27ae60}.ct-widget .ct-tag:nth-child(3):after{border-left-color:#27ae60}.ct-widget .ct-tag:nth-child(3):hover{background-color:#2cc36b}.ct-widget .ct-tag:nth-child(3):hover:after{border-left-color:#2cc36b}.ct-widget .ct-tag:nth-child(4){background-color:#d35400}.ct-widget .ct-tag:nth-child(4):after{border-left-color:#d35400}.ct-widget .ct-tag:nth-child(4):hover{background-color:#ed5e00}.ct-widget .ct-tag:nth-child(4):hover:after{border-left-color:#ed5e00}.ct-widget .ct-tag:nth-child(5){background-color:#f39c12}.ct-widget .ct-tag:nth-child(5):after{border-left-color:#f39c12}.ct-widget .ct-tag:nth-child(5):hover{background-color:#f4a62a}.ct-widget .ct-tag:nth-child(5):hover:after{border-left-color:#f4a62a}.ct-widget .ct-tag:nth-child(6){background-color:#16a085}.ct-widget .ct-tag:nth-child(6):after{border-left-color:#16a085}.ct-widget .ct-tag:nth-child(6):hover{background-color:#19b698}.ct-widget .ct-tag:nth-child(6):hover:after{border-left-color:#19b698}.ct-widget.ct-modal{background:rgba(0,0,0,.7);height:0;left:0;position:fixed;top:0;width:0;z-index:10009}.ct-widget.ct-modal--transparent{background:transparent}.ct-widget--active.ct-modal{height:100%;width:100%}.ct-widget .ct-progress-bar{border:1px solid #eee;height:32px;line-height:32px;padding:1px;width:456px}.ct-widget .ct-progress-bar__progress{background:#2980b9;height:28px}.ct-widget .ct-section{border-bottom:1px solid #eee;color:#bdbdbd;cursor:pointer;font-style:italic;height:48px;padding:0 16px;font-family:arial,sans-serif;font-size:16px;line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-section:after{clear:both;content:"";display:table}.ct-widget .ct-section:hover{background:#f6f6f6}.ct-widget .ct-section--applied{color:#646464;font-style:normal}.ct-widget .ct-section--applied .ct-section__switch{background-color:#27ae60;border:1px solid #1e8449}.ct-widget .ct-section--applied .ct-section__switch:before{left:25px;transition-property:left;transition-duration:.1s;transition-timing-function:ease-in}.ct-widget .ct-section--contains-input .ct-section__label{width:75%}.ct-widget .ct-section__label{float:left;overflow:hidden;text-overflow:ellipsis;width:472px;white-space:nowrap}.ct-widget .ct-section__switch{background-color:#ccc;border:1px solid #b3b3b3;border-radius:12px;box-shadow:inset 0 0 2px rgba(0,0,0,.1);float:right;height:24px;margin-top:12px;position:relative;width:48px}.ct-widget .ct-section__switch:before{background:#fff;border-radius:10px;content:"";height:20px;left:1px;position:absolute;top:1px;transition-property:left;transition-duration:.1s;transition-timing-function:ease-in;width:20px}.ct-widget .ct-section__input{background:#fff;border:none;color:#646464;float:right;height:47px;outline:none;padding:0 16px;text-align:right;font-family:arial,sans-serif;font-size:14px;line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:25%}.ct-widget .ct-section__input--invalid{color:#e74c3c}.ct-widget.ct-toolbox{background:hsla(0,0%,91%,.9);border:1px solid hsla(0,0%,100%,.5);box-shadow:0 3px 3px rgba(0,0,0,.35);left:128px;padding:8px;position:fixed;top:128px;width:138px}.ct-widget.ct-toolbox--dragging{opacity:.5}.ct-widget .ct-toolbox__grip{padding:8px 0}.ct-widget .ct-tool-group{padding:4px 0}.ct-widget .ct-tool-group:after{clear:both;content:"";display:table}.ct-widget .ct-tool-group:first-child{padding-top:0}.ct-widget .ct-tool{color:#464646;cursor:pointer;float:left;height:32px;margin:4px;margin-right:4px;position:relative;text-align:center;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;width:32px}.ct-widget .ct-tool,.ct-widget .ct-tool:after{border-radius:2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-tool:after{background:#000;color:#fff;content:attr(data-ct-tooltip);display:block;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;left:-26.5px;opacity:0;padding:0 8px;position:absolute;bottom:37px;font-family:arial,sans-serif;font-size:12px;line-height:20px;visibility:hidden;width:85px;word-break:break-word}.ct-widget .ct-tool:hover:after{opacity:.8;visibility:visible;transition-property:opacity;transition-duration:0s;transition-timing-function:ease-in;transition-delay:2s}.ct-widget .ct-tool:before{line-height:32px}.ct-widget .ct-tool:nth-child(3n){margin-right:0}.ct-widget .ct-tool:hover{background:hsla(0,0%,100%,.5)}.ct-widget .ct-tool--disabled{color:rgba(70,70,70,.33)}.ct-widget .ct-tool--disabled:hover{background:transparent}.ct-widget .ct-tool--down{box-shadow:inset 0 1px 3px rgba(0,0,0,.25);line-height:34px}.ct-widget .ct-tool--down,.ct-widget .ct-tool--down:hover{background:rgba(0,0,0,.025)}.ct-widget .ct-tool--applied{background:rgba(0,0,0,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.25)}.ct-widget .ct-tool--applied:hover{background:rgba(0,0,0,.15)}.ct-widget .ct-tool--bold:before{content:"\ea62"}.ct-widget .ct-tool--heading:before{content:"H";font-weight:700}.ct-widget .ct-tool--subheading:before{content:"H"}.ct-widget .ct-tool--paragraph:before{content:"P"}.ct-widget .ct-tool--preformatted:before{content:"\ea80"}.ct-widget .ct-tool--italic:before{content:"\ea64"}.ct-widget .ct-tool--link:before{content:"\e9cb"}.ct-widget .ct-tool--align-left:before{content:"\ea77"}.ct-widget .ct-tool--align-center:before{content:"\ea78"}.ct-widget .ct-tool--align-right:before{content:"\ea79"}.ct-widget .ct-tool--unordered-list:before{content:"\e9ba"}.ct-widget .ct-tool--ordered-list:before{content:"\e9b9"}.ct-widget .ct-tool--table:before{content:"\ea71"}.ct-widget .ct-tool--indent:before{content:"\ea7b"}.ct-widget .ct-tool--unindent:before{content:"\ea7c"}.ct-widget .ct-tool--line-break:before{content:"\ea6e"}.ct-widget .ct-tool--image:before{content:"\e90d"}.ct-widget .ct-tool--video:before{content:"\ea98"}.ct-widget .ct-tool--undo:before{content:"\e965"}.ct-widget .ct-tool--redo:before{content:"\e966"}.ct-widget .ct-tool--remove:before{content:"\e9ac"}@keyframes e{0%{outline-color:hsla(0,0%,100%,0);transform:background-color}25%{outline-color:#f39c12;transform:background-color}50%{outline-color:#f39c12;transform:background-color}to{outline-color:hsla(0,0%,100%,0);transform:background-color}}.ct-app,.ct-app *,.ct-app :after,.ct-app :before{box-sizing:border-box}.ct--highlight{outline:4px solid #f39c12;animation:e .5s ease-in;animation-iteration-count:infinite;animation-fill-mode:forwards}.ct--no-scroll{overflow:hidden}.ct--pseudo-select{background:rgba(0,0,0,.1)}.ct-widget.ct-draw{background-color:#fff;box-shadow:0 0 3px 0 rgba(0,0,0,.35),inset -1px 0 0 0 hsla(0,0%,100%,.5);display:flex;flex-direction:column;font-family:arial,sans-serif;font-size:14px;font-weight:400;height:100%;line-height:22px;opacity:1;position:fixed;right:-250px;top:0;width:250px;z-index:9998;transition-property:right;transition-duration:.25s;transition-timing-function:ease-out}.ct-widget.ct-draw--open{right:0;transition-property:right;transition-duration:.25s;transition-timing-function:ease-in}.ct-widget .ct-field{padding:5px 10px}.ct-widget .ct-field:first-child{padding-top:15px}.ct-widget .ct-field--optional .ct-field__label:after{content:" (Optional)";display:inline}.ct-widget .ct-field__label{color:#999;display:block;font-size:14px}.ct-widget .ct-field__error{color:#e74c3c;padding:2px 0}.ct-widget .ct-field__input:not(.ct-field__input--boolean){background-color:#fff;border:none;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);color:#666;display:block;font-family:inherit;font-size:inherit;height:40px;line-height:40px;margin:0;margin-top:5px;padding:0 10px;text-align:left;width:100%}.ct-widget .ct-field__input--boolean{margin-top:10px;transform:scale(1.25)}.ct-widget .ct-field__input--select{background-color:transparent;background-image:linear-gradient(45deg,transparent 50%,#666 0),linear-gradient(135deg,#666 50%,transparent 0);background-repeat:no-repeat;background-position:calc(100% - 15px) 18px,calc(100% - 10px) 18px,100% 0;background-size:5px 5px,5px 5px,40px 40px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ct-flows{background-color:rgba(0,0,0,.1)}.ct-flows__select{background-color:transparent;background-image:linear-gradient(45deg,transparent 50%,rgba(0,0,0,.9) 0),linear-gradient(135deg,rgba(0,0,0,.9) 50%,transparent 0);background-repeat:no-repeat;background-position:calc(100% - 15px) 14px,calc(100% - 10px) 14px,100% 0;background-size:5px 5px,5px 5px,32px 32px;border:none;line-height:32px;outline:none;padding:0 10px;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ct-widget .ct-inlay__header{align-items:center;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.1);display:flex;padding:20px 10px}.ct-widget .ct-inlay__heading{color:#6a6a6a;flex:1;font-size:22px;line-height:30px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.ct-widget .ct-inlay__tools{display:flex;flex:0 0 auto}.ct-widget .ct-inlay__body{height:calc(100vh - 104px);overflow-x:hidden;overflow-y:auto}.ct-widget .ct-inlay__body::-webkit-scrollbar-track{background-color:rgba(0,0,0,.1)}.ct-widget .ct-inlay__body::-webkit-scrollbar{width:5px}.ct-widget .ct-inlay__body::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.25)}.ct-widget .ct-inlay__body--sorting .ct-snippet{cursor:-webkit-grabbing;cursor:grabbing}.ct-widget .ct-inlay-tool{align-items:center;border-radius:2px;cursor:pointer;display:flex;height:32px;justify-content:center;margin-right:8px;position:relative;width:32px}.ct-widget .ct-inlay-tool:last-child{margin-right:0}.ct-widget .ct-inlay-tool:hover{background-color:rgba(0,0,0,.1)}.ct-widget .ct-inlay-tool:hover:before{opacity:.8;visibility:visible;transition:opacity 0s ease-in;transition-delay:2s}.ct-widget .ct-inlay-tool:hover:after{color:#2980b9}.ct-widget .ct-inlay-tool:active,.ct-widget .ct-inlay-tool:focus{background-color:rgba(0,0,0,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.25)}.ct-widget .ct-inlay-tool:before{background-color:#000;border-radius:3px 3px 0 3px;color:#fff;content:attr(data-ct-tooltip);display:block;font-family:arial,sans-serif;font-size:12px;hyphens:auto;line-height:20px;opacity:0;padding:0 8px;text-align:center;visibility:hidden;width:85px;word-break:break-word;z-index:1;position:absolute;bottom:24px;left:-94px}.ct-widget .ct-inlay-tool:after{background-position:50%;background-repeat:no-repeat;background-size:24px 24px;color:#999;display:block;height:32px;line-height:32px;text-align:center;width:32px;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-inlay-tool--add:after{content:"\ea0a"}.ct-widget .ct-inlay-tool--cancel:after{content:"\ea0f"}.ct-widget .ct-inlay-tool--confirm:after{content:"\ea10"}.ct-widget .ct-inlay-tool--order:after{content:"\e9bd"}.ct-widget .ct-inlay-section__heading{box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.1);color:#6a6a6a;font-size:16px;line-height:20px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;padding:20px 10px 10px;width:100%}.ct-widget .ct-inlay-note{color:#999;font-size:14px;padding:20px 10px}.ct-widget .ct-snippet{box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.1);padding:10px 10px 0;position:relative}.ct-widget .ct-snippet--ghost{background:#f8f8f8!important;color:rgba(0,0,0,.6)!important}.ct-widget .ct-snippet--helper{background:#fff!important;z-index:9999!important}.ct-widget .ct-snippet--scope-global .ct-snippet__label:before{background:#999;border-radius:8px;color:#fff;content:"G";display:inline-block;font-weight:700;height:16px;line-height:16px;margin-right:5px;text-align:center;width:16px}.ct-widget .ct-snippet--behaviour-manage:hover .ct-snippet__tools{opacity:1;transition:opacity .5s ease-in}.ct-widget .ct-snippet--behaviour-order{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:-webkit-grab;cursor:grab;user-select:none}.ct-widget .ct-snippet--behaviour-pick{cursor:pointer}.ct-widget .ct-snippet--behaviour-pick:hover .ct-snippet__label{color:#2980b9}.ct-widget .ct-snippet--behaviour-pick:hover .ct-snippet__label:before{background:#2980b9}.ct-widget .ct-snippet__label{color:#999;font-size:14px;margin-top:5px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;box-flex:1;-moz-flex:1;-ms-flex:1;flex:1}.ct-widget .ct-snippet__preview{background:rgba(0,0,0,.025);background-position:50%;background-repeat:no-repeat;background-size:contain;height:50px}.ct-widget .ct-snippet__tools{background:hsla(0,0%,100%,.55);bottom:0;height:100%;left:0;opacity:0;position:absolute;width:100%;transition:opacity .5s ease-out}.ct-widget .ct-snippet__tool{align-items:center;bottom:8px;cursor:pointer;display:flex;height:32px;justify-content:center;right:8px;position:absolute;width:32px;z-index:1}.ct-widget .ct-snippet__tool:hover:before{opacity:.8;visibility:visible;transition:opacity 0s ease-in;transition-delay:2s}.ct-widget .ct-snippet__tool:hover:after{color:#2980b9}.ct-widget .ct-snippet__tool:before{background-color:#000;border-radius:3px 3px 0 3px;color:#fff;content:attr(data-ct-tooltip);display:block;font-family:arial,sans-serif;font-size:12px;hyphens:auto;line-height:20px;opacity:0;padding:0 8px;text-align:center;visibility:hidden;width:85px;word-break:break-word;z-index:1;position:absolute;bottom:24px;left:-94px}.ct-widget .ct-snippet__tool:after{background-position:50%;background-repeat:no-repeat;background-size:24px 24px;color:#999;display:block;height:32px;line-height:32px;text-align:center;width:32px;font-family:icon;font-size:16px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-snippet__tool--tooltip-left:before{position:absolute;bottom:6px;left:-100px}.ct-widget .ct-snippet__tool--settings{right:84px}.ct-widget .ct-snippet__tool--settings:after{content:"\e993"}.ct-widget .ct-snippet__tool--scope{right:46px}.ct-widget .ct-snippet__tool--scope:after{content:"\e9ca"}.ct-widget .ct-snippet__tool--delete:after{content:"\e9ac"}.ct-widget .ct-snippet--permanent .ct-snippet__tool--settings{right:46px}.ct-widget .ct-snippet--permanent .ct-snippet__tool--scope{right:8px}.ct-snippet--helper{background:#fff!important;z-index:9999!important}.ct-widget.ct-toggle{position:fixed;right:64px;top:23px;transition-property:right;transition-duration:.25s;transition-timing-function:ease-out}.ct-widget.ct-toggle--off .ct-toggle__button--on,.ct-widget.ct-toggle--on .ct-toggle__button--off{display:block}.ct-widget.ct-toggle--disabled .ct-toggle__button,.ct-widget.ct-toggle--disabled .ct-toggle__button:hover{background:#ccc}.ct-widget .ct-toggle__button{background:#2980b9;border-radius:24px;cursor:pointer;display:none;height:48px;line-height:48px;opacity:.9;position:absolute;text-align:center;width:48px;font-family:icon;font-size:24px;font-style:normal;font-weight:400;font-variant:normal;speak:none;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ct-widget .ct-toggle__button--on:before{content:""}.ct-widget .ct-toggle__button--off:before{content:""}.ct-widget .ct-toggle__button:before{background-position:50%;background-repeat:no-repeat;background-size:24px 24px;color:#fff;display:block;height:48px;width:48px}.ct-widget .ct-toggle__button:hover{background:#2e8ece}.cf--flow-mgr-open .ct-widget.ct-toggle{right:314px;transition-property:right;transition-duration:.25s;transition-timing-function:ease-in}body{transition-property:padding-right;transition-duration:.25s;transition-timing-function:ease-out}body.cf--flow-mgr-open{padding-right:250px;transition-property:padding-right;transition-duration:.25s;transition-timing-function:ease-in}body.cf--flow-mgr-open .ct-widget.ct-ignition{right:378px;transition-property:all;transition-duration:.25s;transition-timing-function:ease-in}.ct-widget.ct-ignition{left:auto;right:128px;top:23px;transition-property:all;transition-duration:.25s;transition-timing-function:ease-out}.cf--highlight-snippet{position:relative}.cf--highlight-snippet:after{background:#2980b9;content:"";display:block;height:100%;left:0;opacity:.33;position:absolute;top:0;width:100%;z-index:9999} \ No newline at end of file diff --git a/build/content-flow.min.js b/build/content-flow.min.js index 33ac759..ad0105c 100644 --- a/build/content-flow.min.js +++ b/build/content-flow.min.js @@ -1,3 +1,3 @@ -/*! content-flow v0.1.2 by Anthony Blackshaw (https://github.com/anthonyjb) */ -(function(){var a,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e=[].slice,f=function(a,b){return function(){return a.apply(b,arguments)}};a={dimSnippetDOMElement:function(b,c){var d;if(d=a.getSnippetDOMElement(b,c))return d.classList.remove("cf--highlight-snippet")},dimAllSnippetDOMElements:function(){var a,b,c,d,e;for(d=document.querySelectorAll(".cf--highlight-snippet"),e=[],b=0,c=d.length;b0)return this.mount(),this._toggle.show(),this.flow(this._flows.flows()[0])},c.prototype.api=function(){return this._api},c.prototype.isOpen=function(){return this._open},c.prototype.close=function(){var a;if(this.dispatchEvent(this.createEvent("close")))return document.body.classList.remove("cf--flow-mgr-open"),this._draw.close(),a=ContentTools.EditorApp.get(),a.syncRegions(),a.domRegions().length?a.ignition().show():void 0},c.prototype.flow=function(b,c){return null==c&&(c=!1),void 0===b?this._flow:c||this._flow!==b?(this._flow=b,this._flows.select(b),a.FlowMgr.get().loadInterface("list-snippets")):void 0},c.prototype.loadInterface=function(){var a,b,c,d;if(c=arguments[0],a=2<=arguments.length?e.call(arguments,1):[],d=new this.constructor._uiInterfaces[c])return d.safeToClose()?this._toggle.enable():this._toggle.disable(),this._draw.children().length>1&&(b=this._draw.children()[1],b.unmount(),this._draw.detach(b)),this._draw.attach(d),d.mount(),d.init.apply(d,a)},c.prototype.mount=function(){var a,b,c,d,e;for(this._domElement=this.constructor.createDiv(["cf-flow-mgr"]),document.body.insertBefore(this._domElement,null),this._addDOMEventListeners(),d=this.children(),e=[],b=0,c=d.length;b0;)this._domSelect.remove(0);for(g=this._flows,h=[],e=0,f=g.length;e0&&c._body.attach(c._global),c._body.unmount(),c._body.mount()})}}(this))},c}(a.InterfaceUI),a.FlowMgr.getCls().registerInterface("add-snippet",a.AddSnippetUI),a.ListSnippetsUI=function(b){function c(){c.__super__.constructor.call(this,"Snippets"),this._tools={order:new a.InlayToolUI("order","Order",!0),add:new a.InlayToolUI("add","Add",!0)},this._tools.order.addEventListener("click",function(b){return function(b){return a.FlowMgr.get().loadInterface("order-snippets")}}()),this._tools.add.addEventListener("click",function(b){return function(b){return a.FlowMgr.get().loadInterface("add-snippet")}}())}return d(c,b),c.prototype.init=function(){var b,d;return c.__super__.init.call(this),a.dimAllSnippetDOMElements(),b=a.FlowMgr.get(),d=b.api().getSnippets(b.flow()),d.addEventListener("load",function(c){return function(e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;for(g=a.FlowMgr.get().flow(),j=JSON.parse(e.target.responseText).payload,v=c._body.children,p=0,s=v.length;p=i.height/2&&(d=d.nextElementSibling),this._body.domElement().insertBefore(this._grabbed,d)}},c.prototype._drop=function(a){var b,c,d,e,f;if(this._grabbed){for(this._grabbed.classList.remove("ct-snippet--ghost"),this._grabbed=null,this._grabbedOffset=null,document.body.removeChild(this._grabbedHelper),this._grabbedHelper=null,this._body.domElement().classList.remove("ct-inlay__body--sorting"),this._newSnippetOrder=[],f=this._body.domElement().childNodes,d=0,e=f.length;d (https://github.com/anthonyjb) */ +(function(){var a,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e=[].slice,f=function(a,b){return function(){return a.apply(b,arguments)}};a={dimSnippetDOMElement:function(b,c){var d;if(d=a.getSnippetDOMElement(b,c))return d.classList.remove("cf--highlight-snippet")},dimAllSnippetDOMElements:function(){var a,b,c,d,e;for(d=document.querySelectorAll(".cf--highlight-snippet"),e=[],b=0,c=d.length;b0)return this.mount(),this._toggle.show(),this.flow(this._flows.flows()[0])},c.prototype.api=function(){return this._api},c.prototype.isOpen=function(){return this._open},c.prototype.close=function(){var a;if(this.dispatchEvent(this.createEvent("close")))return document.body.classList.remove("cf--flow-mgr-open"),this._draw.close(),a=ContentTools.EditorApp.get(),a.syncRegions(),a.domRegions().length?a.ignition().show():void 0},c.prototype.flow=function(b,c){return null==c&&(c=!1),void 0===b?this._flow:c||this._flow!==b?(this._flow=b,this._flows.select(b),a.FlowMgr.get().loadInterface("list-snippets")):void 0},c.prototype.loadInterface=function(){var a,b,c,d;if(c=arguments[0],a=2<=arguments.length?e.call(arguments,1):[],d=new this.constructor._uiInterfaces[c])return d.safeToClose()?this._toggle.enable():this._toggle.disable(),this._draw.children().length>1&&(b=this._draw.children()[1],b.unmount(),this._draw.detach(b)),this._draw.attach(d),d.mount(),d.init.apply(d,a)},c.prototype.mount=function(){var a,b,c,d,e;for(this._domElement=this.constructor.createDiv(["cf-flow-mgr"]),document.body.insertBefore(this._domElement,null),this._addDOMEventListeners(),d=this.children(),e=[],b=0,c=d.length;b0;)this._domSelect.remove(0);for(g=this._flows,h=[],e=0,f=g.length;e0&&c._body.attach(c._global),c._body.unmount(),c._body.mount()})}}(this))},c}(a.InterfaceUI),a.FlowMgr.getCls().registerInterface("add-snippet",a.AddSnippetUI),a.ListSnippetsUI=function(b){function c(){c.__super__.constructor.call(this,"Snippets"),this._tools={order:new a.InlayToolUI("order","Order",!0),add:new a.InlayToolUI("add","Add",!0)},this._tools.order.addEventListener("click",function(b){return function(b){return a.FlowMgr.get().loadInterface("order-snippets")}}()),this._tools.add.addEventListener("click",function(b){return function(b){return a.FlowMgr.get().loadInterface("add-snippet")}}())}return d(c,b),c.prototype.init=function(){var b,d;return c.__super__.init.call(this),a.dimAllSnippetDOMElements(),b=a.FlowMgr.get(),d=b.api().getSnippets(b.flow()),d.addEventListener("load",function(c){return function(e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;for(g=a.FlowMgr.get().flow(),j=JSON.parse(e.target.responseText).payload,v=c._body.children,p=0,s=v.length;p=i.height/2&&(d=d.nextElementSibling),this._body.domElement().insertBefore(this._grabbed,d)}},c.prototype._drop=function(a){var b,c,d,e,f;if(this._grabbed){for(this._grabbed.classList.remove("ct-snippet--ghost"),this._grabbed=null,this._grabbedOffset=null,document.body.removeChild(this._grabbedHelper),this._grabbedHelper=null,this._body.domElement().classList.remove("ct-inlay__body--sorting"),this._newSnippetOrder=[],f=this._body.domElement().childNodes,d=0,e=f.length;dContent flow data-cf-flow-label="Body" data-cf-flow-max-snippets="2" data-cf-flow-frozen + data-cf-flow-position="2" >

Data snippet example: basic

@@ -42,6 +43,7 @@

Content flow

class="article__related" data-cf-flow="article-related" data-cf-flow-label="Related" + data-cf-flow-position="1" >

Archive

diff --git a/src/scripts/flow-mgr.coffee b/src/scripts/flow-mgr.coffee index cf37901..32e71cc 100644 --- a/src/scripts/flow-mgr.coffee +++ b/src/scripts/flow-mgr.coffee @@ -183,6 +183,20 @@ class _FlowMgr extends ContentTools.ComponentUI else @_domFlows = @_flowQuery + # Sort the flows based on their position attribute + @_domFlows = Array.from(@_domFlows) + + cmp = (a, b) -> + aPos = parseFloat(a.dataset.cfFlowPosition) + if aPos is NaN + aPos = 999999 + bPos = parseFloat(b.dataset.cfFlowPosition) + if bPos is NaN + bPos = 999999 + return aPos - bPos + + @_domFlows.sort(cmp) + # Convert the flows found in the DOM into models and populate the # flows UI compontent. flows = []