Version Description
- Added schema.org tags.
Download this release
Release Info
Developer | machothemes |
Plugin | Simple Author Box |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- assets/css/jquery-ui.min.css +6 -6
- assets/css/sabox-admin-style.css +630 -630
- assets/css/simple-author-box.css +408 -408
- assets/js/plugin-install.js +55 -55
- assets/js/sab-preview.js +400 -400
- assets/js/sabox-admin.js +134 -134
- assets/js/sabox-editor.js +105 -105
- readme.txt +8 -3
- simple-author-box.php +4 -4
- template/template-sab.php +5 -5
- uninstall.php +26 -26
assets/css/jquery-ui.min.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
/*! jQuery UI - v1.11.0 - 2014-06-26
|
2 |
-
* http://jqueryui.com
|
3 |
-
* Includes: core.css, accordion.css, autocomplete.css, button.css, datepicker.css, dialog.css, draggable.css, menu.css, progressbar.css, resizable.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css
|
4 |
-
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=gloss_wave&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=highlight_soft&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=glass&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=highlight_soft&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=diagonals_thick&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=diagonals_thick&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=flat&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
|
5 |
-
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
|
6 |
-
|
7 |
.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;min-height:0;font-size:100%}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:none}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{position:relative;margin:0;padding:3px 1em 3px .4em;cursor:pointer;min-height:0;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url("images/animated-overlay.gif");height:100%;filter:alpha(opacity=25);opacity:0.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.ui-selectmenu-menu .ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px 0.4em;margin:0.5em 0 0 0;height:auto;border:0}.ui-selectmenu-open{display:block}.ui-selectmenu-button{display:inline-block;overflow:hidden;position:relative;text-decoration:none;cursor:pointer}.ui-selectmenu-button span.ui-icon{right:0.5em;left:auto;margin-top:-8px;position:absolute;top:50%}.ui-selectmenu-button span.ui-selectmenu-text{text-align:left;padding:0.4em 2.1em 0.4em 1em;display:block;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:none;border-bottom:none;border-right:none}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #ddd;background:#eee url("images/ui-bg_highlight-soft_100_eeeeee_1x100.png") 50% top repeat-x;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #e78f08;background:#f6a828 url("images/ui-bg_gloss-wave_35_f6a828_500x100.png") 50% 50% repeat-x;color:#fff;font-weight:bold}.ui-widget-header a{color:#fff}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #ccc;background:#f6f6f6 url("images/ui-bg_glass_100_f6f6f6_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#1c94c4}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#1c94c4;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #fbcb09;background:#fdf5ce url("images/ui-bg_glass_100_fdf5ce_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#c77405}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#c77405;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #fbd850;background:#fff url("images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#eb8f00}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#eb8f00;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fed22f;background:#ffe45c url("images/ui-bg_highlight-soft_75_ffe45c_1x100.png") 50% top repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#b81900 url("images/ui-bg_diagonals-thick_18_b81900_40x40.png") 50% 50% repeat;color:#fff}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#fff}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#fff}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url("images/ui-icons_222222_256x240.png")}.ui-widget-header .ui-icon{background-image:url("images/ui-icons_ffffff_256x240.png")}.ui-state-default .ui-icon{background-image:url("images/ui-icons_ef8c08_256x240.png")}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url("images/ui-icons_ef8c08_256x240.png")}.ui-state-active .ui-icon{background-image:url("images/ui-icons_ef8c08_256x240.png")}.ui-state-highlight .ui-icon{background-image:url("images/ui-icons_228ef1_256x240.png")}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url("images/ui-icons_ffd27a_256x240.png")}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#666 url("images/ui-bg_diagonals-thick_20_666666_40x40.png") 50% 50% repeat;opacity:.5;filter:Alpha(Opacity=50)}.ui-widget-shadow{margin:-5px 0 0 -5px;padding:5px;background:#000 url("images/ui-bg_flat_10_000000_40x100.png") 50% 50% repeat-x;opacity:.2;filter:Alpha(Opacity=20);border-radius:5px}
|
1 |
+
/*! jQuery UI - v1.11.0 - 2014-06-26
|
2 |
+
* http://jqueryui.com
|
3 |
+
* Includes: core.css, accordion.css, autocomplete.css, button.css, datepicker.css, dialog.css, draggable.css, menu.css, progressbar.css, resizable.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css
|
4 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=gloss_wave&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=highlight_soft&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=glass&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=highlight_soft&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=diagonals_thick&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=diagonals_thick&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=flat&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
|
5 |
+
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
|
6 |
+
|
7 |
.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;min-height:0;font-size:100%}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:none}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{position:relative;margin:0;padding:3px 1em 3px .4em;cursor:pointer;min-height:0;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url("images/animated-overlay.gif");height:100%;filter:alpha(opacity=25);opacity:0.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.ui-selectmenu-menu .ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px 0.4em;margin:0.5em 0 0 0;height:auto;border:0}.ui-selectmenu-open{display:block}.ui-selectmenu-button{display:inline-block;overflow:hidden;position:relative;text-decoration:none;cursor:pointer}.ui-selectmenu-button span.ui-icon{right:0.5em;left:auto;margin-top:-8px;position:absolute;top:50%}.ui-selectmenu-button span.ui-selectmenu-text{text-align:left;padding:0.4em 2.1em 0.4em 1em;display:block;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:none;border-bottom:none;border-right:none}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #ddd;background:#eee url("images/ui-bg_highlight-soft_100_eeeeee_1x100.png") 50% top repeat-x;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #e78f08;background:#f6a828 url("images/ui-bg_gloss-wave_35_f6a828_500x100.png") 50% 50% repeat-x;color:#fff;font-weight:bold}.ui-widget-header a{color:#fff}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #ccc;background:#f6f6f6 url("images/ui-bg_glass_100_f6f6f6_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#1c94c4}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#1c94c4;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #fbcb09;background:#fdf5ce url("images/ui-bg_glass_100_fdf5ce_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#c77405}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#c77405;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #fbd850;background:#fff url("images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#eb8f00}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#eb8f00;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fed22f;background:#ffe45c url("images/ui-bg_highlight-soft_75_ffe45c_1x100.png") 50% top repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#b81900 url("images/ui-bg_diagonals-thick_18_b81900_40x40.png") 50% 50% repeat;color:#fff}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#fff}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#fff}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url("images/ui-icons_222222_256x240.png")}.ui-widget-header .ui-icon{background-image:url("images/ui-icons_ffffff_256x240.png")}.ui-state-default .ui-icon{background-image:url("images/ui-icons_ef8c08_256x240.png")}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url("images/ui-icons_ef8c08_256x240.png")}.ui-state-active .ui-icon{background-image:url("images/ui-icons_ef8c08_256x240.png")}.ui-state-highlight .ui-icon{background-image:url("images/ui-icons_228ef1_256x240.png")}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url("images/ui-icons_ffd27a_256x240.png")}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#666 url("images/ui-bg_diagonals-thick_20_666666_40x40.png") 50% 50% repeat;opacity:.5;filter:Alpha(Opacity=50)}.ui-widget-shadow{margin:-5px 0 0 -5px;padding:5px;background:#000 url("images/ui-bg_flat_10_000000_40x100.png") 50% 50% repeat-x;opacity:.2;filter:Alpha(Opacity=20);border-radius:5px}
|
assets/css/sabox-admin-style.css
CHANGED
@@ -1,630 +1,630 @@
|
|
1 |
-
/* ADMIN PLUGIN STYLE
|
2 |
-
-------------------------------------------------------------- */
|
3 |
-
.sabox-table.form-table th {
|
4 |
-
width: 400px;
|
5 |
-
padding: 10px 15px;
|
6 |
-
vertical-align: middle;
|
7 |
-
}
|
8 |
-
|
9 |
-
.sabox-table.form-table {
|
10 |
-
margin-bottom: 30px;
|
11 |
-
}
|
12 |
-
|
13 |
-
.sabox-table .epfw-tooltip {
|
14 |
-
color: #b8cad7;
|
15 |
-
margin-right: 10px;
|
16 |
-
}
|
17 |
-
|
18 |
-
.sabox-table .wp-picker-container {
|
19 |
-
text-align: right;
|
20 |
-
}
|
21 |
-
|
22 |
-
.sabox-table .wp-picker-holder {
|
23 |
-
position: absolute;
|
24 |
-
}
|
25 |
-
|
26 |
-
.sabox-table select {
|
27 |
-
float: right;
|
28 |
-
}
|
29 |
-
|
30 |
-
.sabox-table.form-table tr {
|
31 |
-
background-color: #fff;
|
32 |
-
border-bottom: 1px solid #eee;
|
33 |
-
vertical-align: middle !important;
|
34 |
-
}
|
35 |
-
|
36 |
-
.sabox-table tbody {
|
37 |
-
border: 1px solid #ddd;
|
38 |
-
}
|
39 |
-
|
40 |
-
.sabox-table.form-table tr:last-of-type {
|
41 |
-
border-bottom: 0;
|
42 |
-
}
|
43 |
-
|
44 |
-
.sabox-wrap {
|
45 |
-
max-width: 860px;
|
46 |
-
padding-left: 20px;
|
47 |
-
margin: 0 auto;
|
48 |
-
}
|
49 |
-
|
50 |
-
.hide {
|
51 |
-
display: none;
|
52 |
-
}
|
53 |
-
|
54 |
-
/*.sabox-slider-container .saboxfield {
|
55 |
-
display: none;
|
56 |
-
}*/
|
57 |
-
.sabox-slider-container {
|
58 |
-
max-width: 390px;
|
59 |
-
padding-bottom: 5px;
|
60 |
-
box-sizing: border-box;
|
61 |
-
}
|
62 |
-
|
63 |
-
.sabox-slider-container .ui-slider .ui-slider-handle {
|
64 |
-
width: auto;
|
65 |
-
text-align: center;
|
66 |
-
min-width: 1.2em;
|
67 |
-
}
|
68 |
-
|
69 |
-
.sabox-table p.description {
|
70 |
-
font-weight: normal;
|
71 |
-
}
|
72 |
-
|
73 |
-
.wp-admin .checkbox_switch {
|
74 |
-
display: inline-block;
|
75 |
-
width: 100%;
|
76 |
-
text-align: right;
|
77 |
-
}
|
78 |
-
|
79 |
-
.customize-control-title.onoffswitch_label {
|
80 |
-
width: 71%;
|
81 |
-
}
|
82 |
-
|
83 |
-
.sabox-table .onoffswitch_label {
|
84 |
-
display: inline-block;
|
85 |
-
vertical-align: top;
|
86 |
-
margin-right: 21px;
|
87 |
-
margin-top: -1px;
|
88 |
-
}
|
89 |
-
|
90 |
-
.sabox-table .onoffswitch {
|
91 |
-
position: relative;
|
92 |
-
width: 52px;
|
93 |
-
display: inline-block;
|
94 |
-
-webkit-user-select: none;
|
95 |
-
-moz-user-select: none;
|
96 |
-
-ms-user-select: none;
|
97 |
-
}
|
98 |
-
|
99 |
-
.sabox-table .onoffswitch-checkbox {
|
100 |
-
display: none !important;
|
101 |
-
}
|
102 |
-
|
103 |
-
.sabox-table .onoffswitch-label {
|
104 |
-
display: block;
|
105 |
-
overflow: hidden;
|
106 |
-
cursor: pointer;
|
107 |
-
height: 22px;
|
108 |
-
padding: 0;
|
109 |
-
line-height: 19px;
|
110 |
-
transition: background-color 0.2s ease-in;
|
111 |
-
-webkit-border-radius: 11px;
|
112 |
-
-moz-border-radius: 11px;
|
113 |
-
border-radius: 30px;
|
114 |
-
background-color: #c4c4c4;
|
115 |
-
-webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.11);
|
116 |
-
-moz-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.11);
|
117 |
-
box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.11);
|
118 |
-
}
|
119 |
-
|
120 |
-
.sabox-table .onoffswitch-label:before {
|
121 |
-
content: "";
|
122 |
-
display: block;
|
123 |
-
width: 18px;
|
124 |
-
height: 18px;
|
125 |
-
margin: 0;
|
126 |
-
position: absolute;
|
127 |
-
top: 2px;
|
128 |
-
bottom: 0;
|
129 |
-
right: 32px;
|
130 |
-
background-color: #fff;
|
131 |
-
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
|
132 |
-
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
|
133 |
-
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
|
134 |
-
-webkit-border-radius: 10px;
|
135 |
-
-moz-border-radius: 10px;
|
136 |
-
border-radius: 10px;
|
137 |
-
transition: all 0.2s ease-in 0s;
|
138 |
-
}
|
139 |
-
|
140 |
-
.sabox-table .onoffswitch-label:after {
|
141 |
-
content: "OFF";
|
142 |
-
display: block;
|
143 |
-
color: #fff;
|
144 |
-
position: absolute;
|
145 |
-
top: 2px;
|
146 |
-
bottom: 2px;
|
147 |
-
right: 6px;
|
148 |
-
font-size: 11px;
|
149 |
-
font-family: 'Arial';
|
150 |
-
}
|
151 |
-
|
152 |
-
.sabox-table .onoffswitch-checkbox:checked + .onoffswitch-label {
|
153 |
-
background-color: #3caf0e;
|
154 |
-
}
|
155 |
-
|
156 |
-
.sabox-table .onoffswitch-checkbox:checked + .onoffswitch-label,
|
157 |
-
.sabox-table .onoffswitch-checkbox:checked + .onoffswitch-label:before {
|
158 |
-
border-color: #3caf0e;
|
159 |
-
}
|
160 |
-
|
161 |
-
.sabox-table .onoffswitch-checkbox:checked + .onoffswitch-label:before {
|
162 |
-
right: 2px;
|
163 |
-
}
|
164 |
-
|
165 |
-
.sabox-table .onoffswitch-checkbox:checked + .onoffswitch-label:after {
|
166 |
-
content: "ON";
|
167 |
-
display: block;
|
168 |
-
color: #fff;
|
169 |
-
position: absolute;
|
170 |
-
top: 2px;
|
171 |
-
bottom: 2px;
|
172 |
-
right: 27px;
|
173 |
-
font-size: 11px;
|
174 |
-
font-family: 'Arial';
|
175 |
-
}
|
176 |
-
|
177 |
-
.sabox-table .slider-container {
|
178 |
-
position: relative;
|
179 |
-
padding-left: 50px;
|
180 |
-
}
|
181 |
-
|
182 |
-
.sabox-table .slider-container input[type="text"] {
|
183 |
-
border: none;
|
184 |
-
text-align: center;
|
185 |
-
padding: 2px;
|
186 |
-
margin: 0;
|
187 |
-
font-size: 12px;
|
188 |
-
color: #333;
|
189 |
-
border-radius: 10px;
|
190 |
-
background-color: #f8f8f8;
|
191 |
-
-webkit-box-shadow: inset 0px 2px 5px 0px rgba(0, 0, 0, 0.1);
|
192 |
-
-moz-box-shadow: inset 0px 2px 5px 0px rgba(0, 0, 0, 0.1);
|
193 |
-
box-shadow: inset 0px 2px 5px 0px rgba(0, 0, 0, 0.1);
|
194 |
-
width: 42px;
|
195 |
-
height: 22px;
|
196 |
-
position: absolute;
|
197 |
-
left: 0;
|
198 |
-
top: 2px;
|
199 |
-
}
|
200 |
-
|
201 |
-
.sabox-table .slider-container .ui-slider {
|
202 |
-
position: relative;
|
203 |
-
text-align: left;
|
204 |
-
height: 2px;
|
205 |
-
border-radius: 3px;
|
206 |
-
border: none;
|
207 |
-
margin-top: 10px;
|
208 |
-
margin-left: 22px;
|
209 |
-
display: inline-block;
|
210 |
-
width: 97%;
|
211 |
-
background: #d6d6d6;
|
212 |
-
}
|
213 |
-
|
214 |
-
.sabox-table .slider-container .ui-slider .ui-slider-handle {
|
215 |
-
position: absolute;
|
216 |
-
z-index: 2;
|
217 |
-
top: -10px;
|
218 |
-
cursor: default;
|
219 |
-
-ms-touch-action: none;
|
220 |
-
touch-action: none;
|
221 |
-
width: 18px;
|
222 |
-
height: 18px;
|
223 |
-
-webkit-border-radius: 9px;
|
224 |
-
-moz-border-radius: 9px;
|
225 |
-
border-radius: 9px;
|
226 |
-
background-color: #fff;
|
227 |
-
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
228 |
-
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
229 |
-
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
230 |
-
border: solid 1px #d7d7d7;
|
231 |
-
transform: translateX(-50%);
|
232 |
-
}
|
233 |
-
|
234 |
-
.sabox-table .slider-container .ui-slider .ui-slider-range {
|
235 |
-
position: absolute;
|
236 |
-
z-index: 1;
|
237 |
-
font-size: 0.7em;
|
238 |
-
display: block;
|
239 |
-
border: 0;
|
240 |
-
background-position: 0 0;
|
241 |
-
background: #e04d43;
|
242 |
-
top: 0;
|
243 |
-
bottom: 0;
|
244 |
-
}
|
245 |
-
|
246 |
-
/* Social Links */
|
247 |
-
.sabox-add-social-link {
|
248 |
-
text-align: center;
|
249 |
-
padding: 10px 0;
|
250 |
-
max-width: 570px;
|
251 |
-
}
|
252 |
-
|
253 |
-
.sabox-add-social-link:hover {
|
254 |
-
border-color: #000;
|
255 |
-
}
|
256 |
-
|
257 |
-
#sabox-social-table .dashicons-trash {
|
258 |
-
vertical-align: middle;
|
259 |
-
cursor: pointer;
|
260 |
-
color: #a00;
|
261 |
-
}
|
262 |
-
|
263 |
-
#sabox-social-table .dashicons-trash:hover {
|
264 |
-
color: #dc3232;
|
265 |
-
}
|
266 |
-
|
267 |
-
/* Simple Author Box Badge */
|
268 |
-
#sab-current-image img {
|
269 |
-
max-width: 130px;
|
270 |
-
height: auto;
|
271 |
-
}
|
272 |
-
|
273 |
-
.checkbox-label {
|
274 |
-
text-transform: capitalize;
|
275 |
-
}
|
276 |
-
|
277 |
-
/* EPFW Styles
|
278 |
-
*
|
279 |
-
* @since 2.0.4
|
280 |
-
*
|
281 |
-
-------------------------------------------------------------- */
|
282 |
-
|
283 |
-
/* tab styling */
|
284 |
-
.epfw-tab-wrapper.nav-tab-wrapper {
|
285 |
-
background: #fff;
|
286 |
-
padding: 0;
|
287 |
-
border: 1px solid #ddd;
|
288 |
-
text-align: center;
|
289 |
-
margin-bottom: 20px;
|
290 |
-
}
|
291 |
-
|
292 |
-
.epfw-tab.nav-tab {
|
293 |
-
background: transparent;
|
294 |
-
border: 0;
|
295 |
-
display: inline-block;
|
296 |
-
margin-right: 20px;
|
297 |
-
margin-left: 0;
|
298 |
-
padding: 10px;
|
299 |
-
border-bottom: 2px solid transparent;
|
300 |
-
color: #0073aa;
|
301 |
-
font-weight: 400;
|
302 |
-
position: relative;
|
303 |
-
bottom: -2px;
|
304 |
-
}
|
305 |
-
|
306 |
-
.epfw-tab.nav-tab.nav-tab-active {
|
307 |
-
border-bottom: 2px solid #2e4453;
|
308 |
-
color: #2e4453;
|
309 |
-
}
|
310 |
-
|
311 |
-
/* admin options page styling */
|
312 |
-
.masthead {
|
313 |
-
text-align: center;
|
314 |
-
border-bottom: 1px solid #DDD;
|
315 |
-
margin-bottom: 20px;
|
316 |
-
padding: 20px;
|
317 |
-
}
|
318 |
-
|
319 |
-
.masthead h1 {
|
320 |
-
margin: 0;
|
321 |
-
padding: 0;
|
322 |
-
display: inline-block;
|
323 |
-
font-size: 20px;
|
324 |
-
color: #000;
|
325 |
-
font-weight: 500;
|
326 |
-
}
|
327 |
-
|
328 |
-
.masthead a {
|
329 |
-
display: inline-block;
|
330 |
-
margin: 0 10px;
|
331 |
-
text-decoration: none;
|
332 |
-
}
|
333 |
-
|
334 |
-
.sabox-version {
|
335 |
-
margin: 20px auto;
|
336 |
-
padding: 20px 0;
|
337 |
-
display: block;
|
338 |
-
text-align: center;
|
339 |
-
border-bottom: 1px solid #ddd;
|
340 |
-
border-top: 1px solid #ddd;
|
341 |
-
}
|
342 |
-
|
343 |
-
body.toplevel_page_simple-author-box-options {
|
344 |
-
background-color: #f3f6f8;
|
345 |
-
}
|
346 |
-
|
347 |
-
body.toplevel_page_simple-author-box-options #wpcontent {
|
348 |
-
padding-left: 0;
|
349 |
-
}
|
350 |
-
|
351 |
-
.sabox-masthead-left,
|
352 |
-
.sabox-masthead-right {
|
353 |
-
display: inline-block;
|
354 |
-
}
|
355 |
-
|
356 |
-
.sabox-masthead-left {
|
357 |
-
float: left;
|
358 |
-
}
|
359 |
-
|
360 |
-
.sabox-masthead-right {
|
361 |
-
float: right;
|
362 |
-
}
|
363 |
-
|
364 |
-
/* tooltips styling */
|
365 |
-
.epfw-tooltip {
|
366 |
-
position: relative;
|
367 |
-
display: inline;
|
368 |
-
margin-right: 10px;
|
369 |
-
}
|
370 |
-
|
371 |
-
.epfw-tooltip:after {
|
372 |
-
font-weight: 400;
|
373 |
-
display: block;
|
374 |
-
visibility: hidden;
|
375 |
-
position: absolute;
|
376 |
-
bottom: 0;
|
377 |
-
left: 20%;
|
378 |
-
opacity: 0;
|
379 |
-
content: attr(data-tooltip); /* might also use attr(title) */
|
380 |
-
height: auto;
|
381 |
-
min-width: 300px;
|
382 |
-
z-index: 999;
|
383 |
-
text-decoration: none;
|
384 |
-
text-align: center;
|
385 |
-
border: 1px solid #c8d7e1;
|
386 |
-
border-radius: 4px;
|
387 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 56px rgba(0, 0, 0, 0.075);
|
388 |
-
background: #fff;
|
389 |
-
color: #4f748e;
|
390 |
-
font-size: 13px;
|
391 |
-
padding: 16px;
|
392 |
-
}
|
393 |
-
|
394 |
-
.epfw-tooltip:before {
|
395 |
-
position: absolute;
|
396 |
-
visibility: hidden;
|
397 |
-
width: 0;
|
398 |
-
height: 0;
|
399 |
-
left: 50%;
|
400 |
-
bottom: 0px;
|
401 |
-
opacity: 0;
|
402 |
-
content: "";
|
403 |
-
border-style: solid;
|
404 |
-
border-width: 6px 6px 0 6px;
|
405 |
-
border-color: rgba(255, 255, 255, 0.85) transparent transparent transparent;
|
406 |
-
}
|
407 |
-
|
408 |
-
.epfw-tooltip:hover:after {
|
409 |
-
visibility: visible;
|
410 |
-
opacity: 1;
|
411 |
-
bottom: 20px;
|
412 |
-
}
|
413 |
-
|
414 |
-
.epfw-tooltip:hover:before {
|
415 |
-
visibility: visible;
|
416 |
-
opacity: 1;
|
417 |
-
bottom: 14px;
|
418 |
-
}
|
419 |
-
|
420 |
-
/* radio group styling */
|
421 |
-
.sabox-table input[type="radio"] {
|
422 |
-
display: none;
|
423 |
-
margin: 10px;
|
424 |
-
}
|
425 |
-
|
426 |
-
.sabox-table input[type="radio"] + label {
|
427 |
-
margin: .25em 0 .5em !important;
|
428 |
-
min-width: 100px;
|
429 |
-
display: inline-block;
|
430 |
-
padding: 4px 12px;
|
431 |
-
font-size: 14px;
|
432 |
-
line-height: 20px;
|
433 |
-
color: #333;
|
434 |
-
text-align: center;
|
435 |
-
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
436 |
-
vertical-align: middle;
|
437 |
-
cursor: pointer;
|
438 |
-
background-color: #f5f5f5;
|
439 |
-
background-image: -moz-linear-gradient(top, #fff, #e6e6e6);
|
440 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e6e6));
|
441 |
-
background-image: -webkit-linear-gradient(top, #fff, #e6e6e6);
|
442 |
-
background-image: -o-linear-gradient(top, #fff, #e6e6e6);
|
443 |
-
background-image: linear-gradient(to bottom, #fff, #e6e6e6);
|
444 |
-
background-repeat: repeat-x;
|
445 |
-
border: 1px solid #ccc;
|
446 |
-
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
|
447 |
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
448 |
-
border-bottom-color: #b3b3b3;
|
449 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
|
450 |
-
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
451 |
-
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
452 |
-
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
453 |
-
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
454 |
-
}
|
455 |
-
|
456 |
-
.sabox-table input[type="radio"]:checked + label {
|
457 |
-
background-image: none;
|
458 |
-
outline: 0;
|
459 |
-
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
460 |
-
-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
461 |
-
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
462 |
-
background-color: #e0e0e0;
|
463 |
-
}
|
464 |
-
|
465 |
-
.sabox-radio-group {
|
466 |
-
text-align: right;
|
467 |
-
}
|
468 |
-
|
469 |
-
.sabox-multicheckbox {
|
470 |
-
text-align: right;
|
471 |
-
}
|
472 |
-
|
473 |
-
.sabox-multicheckbox > div {
|
474 |
-
display: inline-block;
|
475 |
-
margin: 0 0 10px 10px;
|
476 |
-
}
|
477 |
-
|
478 |
-
/* Upsell */
|
479 |
-
a.upgrade-pro {
|
480 |
-
float: right;
|
481 |
-
color: red !important;
|
482 |
-
margin-right: 0 !important;
|
483 |
-
text-decoration: none;
|
484 |
-
font-size: 14px;
|
485 |
-
padding: 12px;
|
486 |
-
}
|
487 |
-
|
488 |
-
a.upgrade-pro:after {
|
489 |
-
font-family: 'dashicons';
|
490 |
-
content: '\f155';
|
491 |
-
margin-left: 7px;
|
492 |
-
vertical-align: middle;
|
493 |
-
}
|
494 |
-
|
495 |
-
.wp-has-submenu a[href*="admin.php?page=sab-upgrade"] {
|
496 |
-
color: red !important;
|
497 |
-
}
|
498 |
-
|
499 |
-
.wp-has-submenu a[href*="admin.php?page=sab-upgrade"]:after {
|
500 |
-
font-family: 'dashicons';
|
501 |
-
content: '\f155';
|
502 |
-
margin-left: 7px;
|
503 |
-
vertical-align: middle;
|
504 |
-
}
|
505 |
-
|
506 |
-
/* Lite vs PRO SEction */
|
507 |
-
.featured-section.features .row {
|
508 |
-
display: inline-block;
|
509 |
-
width: 97%;
|
510 |
-
padding: 15px;
|
511 |
-
border-bottom: 1px solid rgba(0, 0, 0, .06);
|
512 |
-
}
|
513 |
-
|
514 |
-
.featured-section.features .row .dashicons-yes {
|
515 |
-
color: #2cbe4e;
|
516 |
-
}
|
517 |
-
|
518 |
-
.featured-section.features .row .dashicons-no-alt {
|
519 |
-
color: #ff3d2e;
|
520 |
-
}
|
521 |
-
|
522 |
-
.featured-section.features .row > div {
|
523 |
-
display: inline-block;
|
524 |
-
float: left;
|
525 |
-
width: 15%;
|
526 |
-
text-align: center;
|
527 |
-
}
|
528 |
-
|
529 |
-
.featured-section.features .row > .feature {
|
530 |
-
width: 70%;
|
531 |
-
text-align: left;
|
532 |
-
}
|
533 |
-
|
534 |
-
.featured-section .free-pro-table {
|
535 |
-
border-spacing: 0;
|
536 |
-
width: 100%;
|
537 |
-
margin-top: 40px;
|
538 |
-
}
|
539 |
-
|
540 |
-
.featured-section .free-pro-table th {
|
541 |
-
padding-bottom: 20px;
|
542 |
-
}
|
543 |
-
|
544 |
-
.featured-section .free-pro-table td {
|
545 |
-
border-top: 1px solid #ccc;
|
546 |
-
padding: 20px 0 25px;
|
547 |
-
}
|
548 |
-
|
549 |
-
.featured-section .free-pro-table h3 {
|
550 |
-
margin: 0;
|
551 |
-
}
|
552 |
-
|
553 |
-
.featured-section .free-pro-table td p {
|
554 |
-
margin: 0;
|
555 |
-
}
|
556 |
-
|
557 |
-
.featured-section .free-pro-table .sab-feature,
|
558 |
-
.featured-section .free-pro-table .sab-pro-feature {
|
559 |
-
text-align: center;
|
560 |
-
width: 15%;
|
561 |
-
}
|
562 |
-
|
563 |
-
.featured-section .free-pro-table .dashicons-yes {
|
564 |
-
color: #00a878;
|
565 |
-
}
|
566 |
-
|
567 |
-
.featured-section .free-pro-table .dashicons-no-alt {
|
568 |
-
color: #ff3439;
|
569 |
-
}
|
570 |
-
|
571 |
-
.featured-section .free-pro-table .dashicons-before:before,
|
572 |
-
.featured-section .free-pro-table .dashicons-before:before {
|
573 |
-
font-size: 35px;
|
574 |
-
height: 35px;
|
575 |
-
width: 35px;
|
576 |
-
}
|
577 |
-
|
578 |
-
.featured-section .button-hero .dashicons {
|
579 |
-
font-size: 16px;
|
580 |
-
vertical-align: middle;
|
581 |
-
}
|
582 |
-
|
583 |
-
.featured-section .ti-about-page-text-center {
|
584 |
-
text-align: center;
|
585 |
-
}
|
586 |
-
|
587 |
-
.free-pro-table .text-right {
|
588 |
-
text-align: right;
|
589 |
-
}
|
590 |
-
|
591 |
-
body .simple-author-box-wrap .wp-badge {
|
592 |
-
background: url('../img/sab-big-icon.png') center 35px no-repeat #27547d;
|
593 |
-
padding-top: 160px;
|
594 |
-
height: 0;
|
595 |
-
background-size: 80%;
|
596 |
-
}
|
597 |
-
|
598 |
-
/* Preview */
|
599 |
-
.sabox-preview {
|
600 |
-
border: 1px solid #ddd;
|
601 |
-
margin: 20px auto;
|
602 |
-
padding: 0;
|
603 |
-
}
|
604 |
-
|
605 |
-
.sabox-preview .saboxplugin-wrap {
|
606 |
-
background-color: #FFF;
|
607 |
-
}
|
608 |
-
|
609 |
-
.sabox-preview .sabox-preview-topbar {
|
610 |
-
background-color: #FAFAFA;
|
611 |
-
border-bottom: 1px solid #DDD;
|
612 |
-
text-align: center;
|
613 |
-
padding: 10px;
|
614 |
-
margin-bottom: 40px;
|
615 |
-
}
|
616 |
-
|
617 |
-
.sabox-preview .sabox-preview-topbar .dashicons {
|
618 |
-
position: relative;
|
619 |
-
top: 2px;
|
620 |
-
margin-right: 10px;
|
621 |
-
}
|
622 |
-
|
623 |
-
.sabox-preview .note {
|
624 |
-
margin-top: 40px;
|
625 |
-
padding: 10px;
|
626 |
-
background-color: #fafafa;
|
627 |
-
border-top: 1px solid #ddd;
|
628 |
-
font-style: italic;
|
629 |
-
color: #777;
|
630 |
-
}
|
1 |
+
/* ADMIN PLUGIN STYLE
|
2 |
+
-------------------------------------------------------------- */
|
3 |
+
.sabox-table.form-table th {
|
4 |
+
width: 400px;
|
5 |
+
padding: 10px 15px;
|
6 |
+
vertical-align: middle;
|
7 |
+
}
|
8 |
+
|
9 |
+
.sabox-table.form-table {
|
10 |
+
margin-bottom: 30px;
|
11 |
+
}
|
12 |
+
|
13 |
+
.sabox-table .epfw-tooltip {
|
14 |
+
color: #b8cad7;
|
15 |
+
margin-right: 10px;
|
16 |
+
}
|
17 |
+
|
18 |
+
.sabox-table .wp-picker-container {
|
19 |
+
text-align: right;
|
20 |
+
}
|
21 |
+
|
22 |
+
.sabox-table .wp-picker-holder {
|
23 |
+
position: absolute;
|
24 |
+
}
|
25 |
+
|
26 |
+
.sabox-table select {
|
27 |
+
float: right;
|
28 |
+
}
|
29 |
+
|
30 |
+
.sabox-table.form-table tr {
|
31 |
+
background-color: #fff;
|
32 |
+
border-bottom: 1px solid #eee;
|
33 |
+
vertical-align: middle !important;
|
34 |
+
}
|
35 |
+
|
36 |
+
.sabox-table tbody {
|
37 |
+
border: 1px solid #ddd;
|
38 |
+
}
|
39 |
+
|
40 |
+
.sabox-table.form-table tr:last-of-type {
|
41 |
+
border-bottom: 0;
|
42 |
+
}
|
43 |
+
|
44 |
+
.sabox-wrap {
|
45 |
+
max-width: 860px;
|
46 |
+
padding-left: 20px;
|
47 |
+
margin: 0 auto;
|
48 |
+
}
|
49 |
+
|
50 |
+
.hide {
|
51 |
+
display: none;
|
52 |
+
}
|
53 |
+
|
54 |
+
/*.sabox-slider-container .saboxfield {
|
55 |
+
display: none;
|
56 |
+
}*/
|
57 |
+
.sabox-slider-container {
|
58 |
+
max-width: 390px;
|
59 |
+
padding-bottom: 5px;
|
60 |
+
box-sizing: border-box;
|
61 |
+
}
|
62 |
+
|
63 |
+
.sabox-slider-container .ui-slider .ui-slider-handle {
|
64 |
+
width: auto;
|
65 |
+
text-align: center;
|
66 |
+
min-width: 1.2em;
|
67 |
+
}
|
68 |
+
|
69 |
+
.sabox-table p.description {
|
70 |
+
font-weight: normal;
|
71 |
+
}
|
72 |
+
|
73 |
+
.wp-admin .checkbox_switch {
|
74 |
+
display: inline-block;
|
75 |
+
width: 100%;
|
76 |
+
text-align: right;
|
77 |
+
}
|
78 |
+
|
79 |
+
.customize-control-title.onoffswitch_label {
|
80 |
+
width: 71%;
|
81 |
+
}
|
82 |
+
|
83 |
+
.sabox-table .onoffswitch_label {
|
84 |
+
display: inline-block;
|
85 |
+
vertical-align: top;
|
86 |
+
margin-right: 21px;
|
87 |
+
margin-top: -1px;
|
88 |
+
}
|
89 |
+
|
90 |
+
.sabox-table .onoffswitch {
|
91 |
+
position: relative;
|
92 |
+
width: 52px;
|
93 |
+
display: inline-block;
|
94 |
+
-webkit-user-select: none;
|
95 |
+
-moz-user-select: none;
|
96 |
+
-ms-user-select: none;
|
97 |
+
}
|
98 |
+
|
99 |
+
.sabox-table .onoffswitch-checkbox {
|
100 |
+
display: none !important;
|
101 |
+
}
|
102 |
+
|
103 |
+
.sabox-table .onoffswitch-label {
|
104 |
+
display: block;
|
105 |
+
overflow: hidden;
|
106 |
+
cursor: pointer;
|
107 |
+
height: 22px;
|
108 |
+
padding: 0;
|
109 |
+
line-height: 19px;
|
110 |
+
transition: background-color 0.2s ease-in;
|
111 |
+
-webkit-border-radius: 11px;
|
112 |
+
-moz-border-radius: 11px;
|
113 |
+
border-radius: 30px;
|
114 |
+
background-color: #c4c4c4;
|
115 |
+
-webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.11);
|
116 |
+
-moz-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.11);
|
117 |
+
box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.11);
|
118 |
+
}
|
119 |
+
|
120 |
+
.sabox-table .onoffswitch-label:before {
|
121 |
+
content: "";
|
122 |
+
display: block;
|
123 |
+
width: 18px;
|
124 |
+
height: 18px;
|
125 |
+
margin: 0;
|
126 |
+
position: absolute;
|
127 |
+
top: 2px;
|
128 |
+
bottom: 0;
|
129 |
+
right: 32px;
|
130 |
+
background-color: #fff;
|
131 |
+
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
|
132 |
+
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
|
133 |
+
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
|
134 |
+
-webkit-border-radius: 10px;
|
135 |
+
-moz-border-radius: 10px;
|
136 |
+
border-radius: 10px;
|
137 |
+
transition: all 0.2s ease-in 0s;
|
138 |
+
}
|
139 |
+
|
140 |
+
.sabox-table .onoffswitch-label:after {
|
141 |
+
content: "OFF";
|
142 |
+
display: block;
|
143 |
+
color: #fff;
|
144 |
+
position: absolute;
|
145 |
+
top: 2px;
|
146 |
+
bottom: 2px;
|
147 |
+
right: 6px;
|
148 |
+
font-size: 11px;
|
149 |
+
font-family: 'Arial';
|
150 |
+
}
|
151 |
+
|
152 |
+
.sabox-table .onoffswitch-checkbox:checked + .onoffswitch-label {
|
153 |
+
background-color: #3caf0e;
|
154 |
+
}
|
155 |
+
|
156 |
+
.sabox-table .onoffswitch-checkbox:checked + .onoffswitch-label,
|
157 |
+
.sabox-table .onoffswitch-checkbox:checked + .onoffswitch-label:before {
|
158 |
+
border-color: #3caf0e;
|
159 |
+
}
|
160 |
+
|
161 |
+
.sabox-table .onoffswitch-checkbox:checked + .onoffswitch-label:before {
|
162 |
+
right: 2px;
|
163 |
+
}
|
164 |
+
|
165 |
+
.sabox-table .onoffswitch-checkbox:checked + .onoffswitch-label:after {
|
166 |
+
content: "ON";
|
167 |
+
display: block;
|
168 |
+
color: #fff;
|
169 |
+
position: absolute;
|
170 |
+
top: 2px;
|
171 |
+
bottom: 2px;
|
172 |
+
right: 27px;
|
173 |
+
font-size: 11px;
|
174 |
+
font-family: 'Arial';
|
175 |
+
}
|
176 |
+
|
177 |
+
.sabox-table .slider-container {
|
178 |
+
position: relative;
|
179 |
+
padding-left: 50px;
|
180 |
+
}
|
181 |
+
|
182 |
+
.sabox-table .slider-container input[type="text"] {
|
183 |
+
border: none;
|
184 |
+
text-align: center;
|
185 |
+
padding: 2px;
|
186 |
+
margin: 0;
|
187 |
+
font-size: 12px;
|
188 |
+
color: #333;
|
189 |
+
border-radius: 10px;
|
190 |
+
background-color: #f8f8f8;
|
191 |
+
-webkit-box-shadow: inset 0px 2px 5px 0px rgba(0, 0, 0, 0.1);
|
192 |
+
-moz-box-shadow: inset 0px 2px 5px 0px rgba(0, 0, 0, 0.1);
|
193 |
+
box-shadow: inset 0px 2px 5px 0px rgba(0, 0, 0, 0.1);
|
194 |
+
width: 42px;
|
195 |
+
height: 22px;
|
196 |
+
position: absolute;
|
197 |
+
left: 0;
|
198 |
+
top: 2px;
|
199 |
+
}
|
200 |
+
|
201 |
+
.sabox-table .slider-container .ui-slider {
|
202 |
+
position: relative;
|
203 |
+
text-align: left;
|
204 |
+
height: 2px;
|
205 |
+
border-radius: 3px;
|
206 |
+
border: none;
|
207 |
+
margin-top: 10px;
|
208 |
+
margin-left: 22px;
|
209 |
+
display: inline-block;
|
210 |
+
width: 97%;
|
211 |
+
background: #d6d6d6;
|
212 |
+
}
|
213 |
+
|
214 |
+
.sabox-table .slider-container .ui-slider .ui-slider-handle {
|
215 |
+
position: absolute;
|
216 |
+
z-index: 2;
|
217 |
+
top: -10px;
|
218 |
+
cursor: default;
|
219 |
+
-ms-touch-action: none;
|
220 |
+
touch-action: none;
|
221 |
+
width: 18px;
|
222 |
+
height: 18px;
|
223 |
+
-webkit-border-radius: 9px;
|
224 |
+
-moz-border-radius: 9px;
|
225 |
+
border-radius: 9px;
|
226 |
+
background-color: #fff;
|
227 |
+
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
228 |
+
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
229 |
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
230 |
+
border: solid 1px #d7d7d7;
|
231 |
+
transform: translateX(-50%);
|
232 |
+
}
|
233 |
+
|
234 |
+
.sabox-table .slider-container .ui-slider .ui-slider-range {
|
235 |
+
position: absolute;
|
236 |
+
z-index: 1;
|
237 |
+
font-size: 0.7em;
|
238 |
+
display: block;
|
239 |
+
border: 0;
|
240 |
+
background-position: 0 0;
|
241 |
+
background: #e04d43;
|
242 |
+
top: 0;
|
243 |
+
bottom: 0;
|
244 |
+
}
|
245 |
+
|
246 |
+
/* Social Links */
|
247 |
+
.sabox-add-social-link {
|
248 |
+
text-align: center;
|
249 |
+
padding: 10px 0;
|
250 |
+
max-width: 570px;
|
251 |
+
}
|
252 |
+
|
253 |
+
.sabox-add-social-link:hover {
|
254 |
+
border-color: #000;
|
255 |
+
}
|
256 |
+
|
257 |
+
#sabox-social-table .dashicons-trash {
|
258 |
+
vertical-align: middle;
|
259 |
+
cursor: pointer;
|
260 |
+
color: #a00;
|
261 |
+
}
|
262 |
+
|
263 |
+
#sabox-social-table .dashicons-trash:hover {
|
264 |
+
color: #dc3232;
|
265 |
+
}
|
266 |
+
|
267 |
+
/* Simple Author Box Badge */
|
268 |
+
#sab-current-image img {
|
269 |
+
max-width: 130px;
|
270 |
+
height: auto;
|
271 |
+
}
|
272 |
+
|
273 |
+
.checkbox-label {
|
274 |
+
text-transform: capitalize;
|
275 |
+
}
|
276 |
+
|
277 |
+
/* EPFW Styles
|
278 |
+
*
|
279 |
+
* @since 2.0.4
|
280 |
+
*
|
281 |
+
-------------------------------------------------------------- */
|
282 |
+
|
283 |
+
/* tab styling */
|
284 |
+
.epfw-tab-wrapper.nav-tab-wrapper {
|
285 |
+
background: #fff;
|
286 |
+
padding: 0;
|
287 |
+
border: 1px solid #ddd;
|
288 |
+
text-align: center;
|
289 |
+
margin-bottom: 20px;
|
290 |
+
}
|
291 |
+
|
292 |
+
.epfw-tab.nav-tab {
|
293 |
+
background: transparent;
|
294 |
+
border: 0;
|
295 |
+
display: inline-block;
|
296 |
+
margin-right: 20px;
|
297 |
+
margin-left: 0;
|
298 |
+
padding: 10px;
|
299 |
+
border-bottom: 2px solid transparent;
|
300 |
+
color: #0073aa;
|
301 |
+
font-weight: 400;
|
302 |
+
position: relative;
|
303 |
+
bottom: -2px;
|
304 |
+
}
|
305 |
+
|
306 |
+
.epfw-tab.nav-tab.nav-tab-active {
|
307 |
+
border-bottom: 2px solid #2e4453;
|
308 |
+
color: #2e4453;
|
309 |
+
}
|
310 |
+
|
311 |
+
/* admin options page styling */
|
312 |
+
.masthead {
|
313 |
+
text-align: center;
|
314 |
+
border-bottom: 1px solid #DDD;
|
315 |
+
margin-bottom: 20px;
|
316 |
+
padding: 20px;
|
317 |
+
}
|
318 |
+
|
319 |
+
.masthead h1 {
|
320 |
+
margin: 0;
|
321 |
+
padding: 0;
|
322 |
+
display: inline-block;
|
323 |
+
font-size: 20px;
|
324 |
+
color: #000;
|
325 |
+
font-weight: 500;
|
326 |
+
}
|
327 |
+
|
328 |
+
.masthead a {
|
329 |
+
display: inline-block;
|
330 |
+
margin: 0 10px;
|
331 |
+
text-decoration: none;
|
332 |
+
}
|
333 |
+
|
334 |
+
.sabox-version {
|
335 |
+
margin: 20px auto;
|
336 |
+
padding: 20px 0;
|
337 |
+
display: block;
|
338 |
+
text-align: center;
|
339 |
+
border-bottom: 1px solid #ddd;
|
340 |
+
border-top: 1px solid #ddd;
|
341 |
+
}
|
342 |
+
|
343 |
+
body.toplevel_page_simple-author-box-options {
|
344 |
+
background-color: #f3f6f8;
|
345 |
+
}
|
346 |
+
|
347 |
+
body.toplevel_page_simple-author-box-options #wpcontent {
|
348 |
+
padding-left: 0;
|
349 |
+
}
|
350 |
+
|
351 |
+
.sabox-masthead-left,
|
352 |
+
.sabox-masthead-right {
|
353 |
+
display: inline-block;
|
354 |
+
}
|
355 |
+
|
356 |
+
.sabox-masthead-left {
|
357 |
+
float: left;
|
358 |
+
}
|
359 |
+
|
360 |
+
.sabox-masthead-right {
|
361 |
+
float: right;
|
362 |
+
}
|
363 |
+
|
364 |
+
/* tooltips styling */
|
365 |
+
.epfw-tooltip {
|
366 |
+
position: relative;
|
367 |
+
display: inline;
|
368 |
+
margin-right: 10px;
|
369 |
+
}
|
370 |
+
|
371 |
+
.epfw-tooltip:after {
|
372 |
+
font-weight: 400;
|
373 |
+
display: block;
|
374 |
+
visibility: hidden;
|
375 |
+
position: absolute;
|
376 |
+
bottom: 0;
|
377 |
+
left: 20%;
|
378 |
+
opacity: 0;
|
379 |
+
content: attr(data-tooltip); /* might also use attr(title) */
|
380 |
+
height: auto;
|
381 |
+
min-width: 300px;
|
382 |
+
z-index: 999;
|
383 |
+
text-decoration: none;
|
384 |
+
text-align: center;
|
385 |
+
border: 1px solid #c8d7e1;
|
386 |
+
border-radius: 4px;
|
387 |
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 56px rgba(0, 0, 0, 0.075);
|
388 |
+
background: #fff;
|
389 |
+
color: #4f748e;
|
390 |
+
font-size: 13px;
|
391 |
+
padding: 16px;
|
392 |
+
}
|
393 |
+
|
394 |
+
.epfw-tooltip:before {
|
395 |
+
position: absolute;
|
396 |
+
visibility: hidden;
|
397 |
+
width: 0;
|
398 |
+
height: 0;
|
399 |
+
left: 50%;
|
400 |
+
bottom: 0px;
|
401 |
+
opacity: 0;
|
402 |
+
content: "";
|
403 |
+
border-style: solid;
|
404 |
+
border-width: 6px 6px 0 6px;
|
405 |
+
border-color: rgba(255, 255, 255, 0.85) transparent transparent transparent;
|
406 |
+
}
|
407 |
+
|
408 |
+
.epfw-tooltip:hover:after {
|
409 |
+
visibility: visible;
|
410 |
+
opacity: 1;
|
411 |
+
bottom: 20px;
|
412 |
+
}
|
413 |
+
|
414 |
+
.epfw-tooltip:hover:before {
|
415 |
+
visibility: visible;
|
416 |
+
opacity: 1;
|
417 |
+
bottom: 14px;
|
418 |
+
}
|
419 |
+
|
420 |
+
/* radio group styling */
|
421 |
+
.sabox-table input[type="radio"] {
|
422 |
+
display: none;
|
423 |
+
margin: 10px;
|
424 |
+
}
|
425 |
+
|
426 |
+
.sabox-table input[type="radio"] + label {
|
427 |
+
margin: .25em 0 .5em !important;
|
428 |
+
min-width: 100px;
|
429 |
+
display: inline-block;
|
430 |
+
padding: 4px 12px;
|
431 |
+
font-size: 14px;
|
432 |
+
line-height: 20px;
|
433 |
+
color: #333;
|
434 |
+
text-align: center;
|
435 |
+
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
436 |
+
vertical-align: middle;
|
437 |
+
cursor: pointer;
|
438 |
+
background-color: #f5f5f5;
|
439 |
+
background-image: -moz-linear-gradient(top, #fff, #e6e6e6);
|
440 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e6e6));
|
441 |
+
background-image: -webkit-linear-gradient(top, #fff, #e6e6e6);
|
442 |
+
background-image: -o-linear-gradient(top, #fff, #e6e6e6);
|
443 |
+
background-image: linear-gradient(to bottom, #fff, #e6e6e6);
|
444 |
+
background-repeat: repeat-x;
|
445 |
+
border: 1px solid #ccc;
|
446 |
+
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
|
447 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
448 |
+
border-bottom-color: #b3b3b3;
|
449 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
|
450 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
451 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
452 |
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
453 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
454 |
+
}
|
455 |
+
|
456 |
+
.sabox-table input[type="radio"]:checked + label {
|
457 |
+
background-image: none;
|
458 |
+
outline: 0;
|
459 |
+
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
460 |
+
-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
461 |
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
|
462 |
+
background-color: #e0e0e0;
|
463 |
+
}
|
464 |
+
|
465 |
+
.sabox-radio-group {
|
466 |
+
text-align: right;
|
467 |
+
}
|
468 |
+
|
469 |
+
.sabox-multicheckbox {
|
470 |
+
text-align: right;
|
471 |
+
}
|
472 |
+
|
473 |
+
.sabox-multicheckbox > div {
|
474 |
+
display: inline-block;
|
475 |
+
margin: 0 0 10px 10px;
|
476 |
+
}
|
477 |
+
|
478 |
+
/* Upsell */
|
479 |
+
a.upgrade-pro {
|
480 |
+
float: right;
|
481 |
+
color: red !important;
|
482 |
+
margin-right: 0 !important;
|
483 |
+
text-decoration: none;
|
484 |
+
font-size: 14px;
|
485 |
+
padding: 12px;
|
486 |
+
}
|
487 |
+
|
488 |
+
a.upgrade-pro:after {
|
489 |
+
font-family: 'dashicons';
|
490 |
+
content: '\f155';
|
491 |
+
margin-left: 7px;
|
492 |
+
vertical-align: middle;
|
493 |
+
}
|
494 |
+
|
495 |
+
.wp-has-submenu a[href*="admin.php?page=sab-upgrade"] {
|
496 |
+
color: red !important;
|
497 |
+
}
|
498 |
+
|
499 |
+
.wp-has-submenu a[href*="admin.php?page=sab-upgrade"]:after {
|
500 |
+
font-family: 'dashicons';
|
501 |
+
content: '\f155';
|
502 |
+
margin-left: 7px;
|
503 |
+
vertical-align: middle;
|
504 |
+
}
|
505 |
+
|
506 |
+
/* Lite vs PRO SEction */
|
507 |
+
.featured-section.features .row {
|
508 |
+
display: inline-block;
|
509 |
+
width: 97%;
|
510 |
+
padding: 15px;
|
511 |
+
border-bottom: 1px solid rgba(0, 0, 0, .06);
|
512 |
+
}
|
513 |
+
|
514 |
+
.featured-section.features .row .dashicons-yes {
|
515 |
+
color: #2cbe4e;
|
516 |
+
}
|
517 |
+
|
518 |
+
.featured-section.features .row .dashicons-no-alt {
|
519 |
+
color: #ff3d2e;
|
520 |
+
}
|
521 |
+
|
522 |
+
.featured-section.features .row > div {
|
523 |
+
display: inline-block;
|
524 |
+
float: left;
|
525 |
+
width: 15%;
|
526 |
+
text-align: center;
|
527 |
+
}
|
528 |
+
|
529 |
+
.featured-section.features .row > .feature {
|
530 |
+
width: 70%;
|
531 |
+
text-align: left;
|
532 |
+
}
|
533 |
+
|
534 |
+
.featured-section .free-pro-table {
|
535 |
+
border-spacing: 0;
|
536 |
+
width: 100%;
|
537 |
+
margin-top: 40px;
|
538 |
+
}
|
539 |
+
|
540 |
+
.featured-section .free-pro-table th {
|
541 |
+
padding-bottom: 20px;
|
542 |
+
}
|
543 |
+
|
544 |
+
.featured-section .free-pro-table td {
|
545 |
+
border-top: 1px solid #ccc;
|
546 |
+
padding: 20px 0 25px;
|
547 |
+
}
|
548 |
+
|
549 |
+
.featured-section .free-pro-table h3 {
|
550 |
+
margin: 0;
|
551 |
+
}
|
552 |
+
|
553 |
+
.featured-section .free-pro-table td p {
|
554 |
+
margin: 0;
|
555 |
+
}
|
556 |
+
|
557 |
+
.featured-section .free-pro-table .sab-feature,
|
558 |
+
.featured-section .free-pro-table .sab-pro-feature {
|
559 |
+
text-align: center;
|
560 |
+
width: 15%;
|
561 |
+
}
|
562 |
+
|
563 |
+
.featured-section .free-pro-table .dashicons-yes {
|
564 |
+
color: #00a878;
|
565 |
+
}
|
566 |
+
|
567 |
+
.featured-section .free-pro-table .dashicons-no-alt {
|
568 |
+
color: #ff3439;
|
569 |
+
}
|
570 |
+
|
571 |
+
.featured-section .free-pro-table .dashicons-before:before,
|
572 |
+
.featured-section .free-pro-table .dashicons-before:before {
|
573 |
+
font-size: 35px;
|
574 |
+
height: 35px;
|
575 |
+
width: 35px;
|
576 |
+
}
|
577 |
+
|
578 |
+
.featured-section .button-hero .dashicons {
|
579 |
+
font-size: 16px;
|
580 |
+
vertical-align: middle;
|
581 |
+
}
|
582 |
+
|
583 |
+
.featured-section .ti-about-page-text-center {
|
584 |
+
text-align: center;
|
585 |
+
}
|
586 |
+
|
587 |
+
.free-pro-table .text-right {
|
588 |
+
text-align: right;
|
589 |
+
}
|
590 |
+
|
591 |
+
body .simple-author-box-wrap .wp-badge {
|
592 |
+
background: url('../img/sab-big-icon.png') center 35px no-repeat #27547d;
|
593 |
+
padding-top: 160px;
|
594 |
+
height: 0;
|
595 |
+
background-size: 80%;
|
596 |
+
}
|
597 |
+
|
598 |
+
/* Preview */
|
599 |
+
.sabox-preview {
|
600 |
+
border: 1px solid #ddd;
|
601 |
+
margin: 20px auto;
|
602 |
+
padding: 0;
|
603 |
+
}
|
604 |
+
|
605 |
+
.sabox-preview .saboxplugin-wrap {
|
606 |
+
background-color: #FFF;
|
607 |
+
}
|
608 |
+
|
609 |
+
.sabox-preview .sabox-preview-topbar {
|
610 |
+
background-color: #FAFAFA;
|
611 |
+
border-bottom: 1px solid #DDD;
|
612 |
+
text-align: center;
|
613 |
+
padding: 10px;
|
614 |
+
margin-bottom: 40px;
|
615 |
+
}
|
616 |
+
|
617 |
+
.sabox-preview .sabox-preview-topbar .dashicons {
|
618 |
+
position: relative;
|
619 |
+
top: 2px;
|
620 |
+
margin-right: 10px;
|
621 |
+
}
|
622 |
+
|
623 |
+
.sabox-preview .note {
|
624 |
+
margin-top: 40px;
|
625 |
+
padding: 10px;
|
626 |
+
background-color: #fafafa;
|
627 |
+
border-top: 1px solid #ddd;
|
628 |
+
font-style: italic;
|
629 |
+
color: #777;
|
630 |
+
}
|
assets/css/simple-author-box.css
CHANGED
@@ -1,409 +1,409 @@
|
|
1 |
-
.saboxplugin-wrap {
|
2 |
-
-webkit-box-sizing: border-box;
|
3 |
-
-moz-box-sizing: border-box;
|
4 |
-
-ms-box-sizing: border-box;
|
5 |
-
box-sizing: border-box;
|
6 |
-
border: 1px solid;
|
7 |
-
border-color: #eee;
|
8 |
-
width: 100%;
|
9 |
-
clear: both;
|
10 |
-
display: block;
|
11 |
-
overflow: hidden;
|
12 |
-
word-wrap: break-word;
|
13 |
-
position: relative;
|
14 |
-
}
|
15 |
-
|
16 |
-
.saboxplugin-wrap .saboxplugin-gravatar {
|
17 |
-
float: left;
|
18 |
-
padding: 20px;
|
19 |
-
}
|
20 |
-
|
21 |
-
.saboxplugin-wrap .saboxplugin-gravatar img {
|
22 |
-
max-width: 100px;
|
23 |
-
height: auto;
|
24 |
-
}
|
25 |
-
|
26 |
-
|
27 |
-
.saboxplugin-wrap .saboxplugin-authorname {
|
28 |
-
font-size: 18px;
|
29 |
-
line-height: 1;
|
30 |
-
margin: 20px 0 0 20px;
|
31 |
-
display: block;
|
32 |
-
}
|
33 |
-
|
34 |
-
.saboxplugin-wrap .saboxplugin-authorname a {
|
35 |
-
text-decoration: none;
|
36 |
-
}
|
37 |
-
|
38 |
-
.saboxplugin-wrap .saboxplugin-authorname a:focus {
|
39 |
-
outline: none;
|
40 |
-
}
|
41 |
-
|
42 |
-
.saboxplugin-wrap .saboxplugin-desc {
|
43 |
-
display: block;
|
44 |
-
margin: 5px 20px;
|
45 |
-
}
|
46 |
-
|
47 |
-
.saboxplugin-wrap .saboxplugin-desc a {
|
48 |
-
text-decoration: underline;
|
49 |
-
}
|
50 |
-
|
51 |
-
.saboxplugin-wrap .saboxplugin-desc p {
|
52 |
-
margin: 5px 0 12px 0;
|
53 |
-
}
|
54 |
-
|
55 |
-
.saboxplugin-wrap .saboxplugin-web {
|
56 |
-
margin: 0 20px 15px;
|
57 |
-
text-align: left;
|
58 |
-
}
|
59 |
-
|
60 |
-
.saboxplugin-wrap .sab-web-position {
|
61 |
-
text-align: right;
|
62 |
-
}
|
63 |
-
|
64 |
-
.saboxplugin-wrap .saboxplugin-web a {
|
65 |
-
color: #ccc;
|
66 |
-
text-decoration: none;
|
67 |
-
}
|
68 |
-
|
69 |
-
.saboxplugin-wrap .saboxplugin-socials {
|
70 |
-
position: relative;
|
71 |
-
display: block;
|
72 |
-
background: #fcfcfc;
|
73 |
-
padding: 5px;
|
74 |
-
border-top: 1px solid #eee;
|
75 |
-
}
|
76 |
-
|
77 |
-
.saboxplugin-wrap .saboxplugin-socials a svg {
|
78 |
-
width: 18px;
|
79 |
-
height: 18px;
|
80 |
-
}
|
81 |
-
|
82 |
-
.saboxplugin-wrap .saboxplugin-socials a svg .st2 {
|
83 |
-
fill: #fff;
|
84 |
-
}
|
85 |
-
.saboxplugin-wrap .saboxplugin-socials a svg .st1 {
|
86 |
-
fill: rgba( 0, 0, 0, .3 );
|
87 |
-
}
|
88 |
-
|
89 |
-
.saboxplugin-wrap .saboxplugin-socials a:hover {
|
90 |
-
opacity: 0.8;
|
91 |
-
-webkit-transition: opacity 0.4s;
|
92 |
-
-moz-transition: opacity 0.4s;
|
93 |
-
-o-transition: opacity 0.4s;
|
94 |
-
transition: opacity 0.4s;
|
95 |
-
box-shadow: none !important;
|
96 |
-
-webkit-box-shadow: none !important;
|
97 |
-
}
|
98 |
-
|
99 |
-
.saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-color {
|
100 |
-
text-decoration: none;
|
101 |
-
box-shadow: none; /* twentyseventeen adds a box shadow under all links inside content */
|
102 |
-
padding: 0;
|
103 |
-
margin: 0;
|
104 |
-
border: 0;
|
105 |
-
-webkit-transition: opacity 0.4s;
|
106 |
-
-moz-transition: opacity 0.4s;
|
107 |
-
-o-transition: opacity 0.4s;
|
108 |
-
transition: opacity 0.4s;
|
109 |
-
display: inline-block;
|
110 |
-
color: #fff;
|
111 |
-
font-size: 0;
|
112 |
-
text-decoration: inherit;
|
113 |
-
margin: 5px;
|
114 |
-
-webkit-border-radius: 0;
|
115 |
-
-moz-border-radius: 0;
|
116 |
-
-ms-border-radius: 0;
|
117 |
-
-o-border-radius: 0;
|
118 |
-
border-radius: 0;
|
119 |
-
overflow: hidden;
|
120 |
-
}
|
121 |
-
|
122 |
-
.saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-grey {
|
123 |
-
text-decoration: inherit;
|
124 |
-
box-shadow: none; /* twentyseventeen adds a box shadow under all links inside content */
|
125 |
-
position: relative;
|
126 |
-
display: -moz-inline-stack;
|
127 |
-
display: inline-block;
|
128 |
-
vertical-align: middle;
|
129 |
-
zoom: 1;
|
130 |
-
margin: 10px 5px;
|
131 |
-
color: #444;
|
132 |
-
}
|
133 |
-
|
134 |
-
.clearfix:after,
|
135 |
-
.clearfix:before {
|
136 |
-
content: ' ';
|
137 |
-
display: table;
|
138 |
-
line-height: 0;
|
139 |
-
clear: both;
|
140 |
-
}
|
141 |
-
|
142 |
-
.ie7 .clearfix {
|
143 |
-
zoom: 1;
|
144 |
-
}
|
145 |
-
|
146 |
-
/* COLORED BACKGROUND AND LONG SHADOW EFFECT FOR SOCIAL ICONS
|
147 |
-
-------------------------------------------------------------- */
|
148 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-twitch {
|
149 |
-
border-color: #38245c;
|
150 |
-
}
|
151 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-addthis {
|
152 |
-
border-color: #e91c00;
|
153 |
-
}
|
154 |
-
|
155 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-behance {
|
156 |
-
border-color: #003eb0;
|
157 |
-
}
|
158 |
-
|
159 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-delicious {
|
160 |
-
border-color: #0066cc;
|
161 |
-
}
|
162 |
-
|
163 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-deviantart {
|
164 |
-
border-color: #036824;
|
165 |
-
}
|
166 |
-
|
167 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-digg {
|
168 |
-
border-color: #00327c;
|
169 |
-
}
|
170 |
-
|
171 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-dribbble {
|
172 |
-
border-color: #ba1655;
|
173 |
-
}
|
174 |
-
|
175 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-facebook {
|
176 |
-
border-color: #1e2e4f;
|
177 |
-
}
|
178 |
-
|
179 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-flickr {
|
180 |
-
border-color: #003576;
|
181 |
-
}
|
182 |
-
|
183 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-github {
|
184 |
-
border-color: #264874;
|
185 |
-
}
|
186 |
-
|
187 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-google {
|
188 |
-
border-color: #0b51c5;
|
189 |
-
}
|
190 |
-
|
191 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-googleplus {
|
192 |
-
border-color: #96271a;
|
193 |
-
}
|
194 |
-
|
195 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-html5 {
|
196 |
-
border-color: #902e13;
|
197 |
-
}
|
198 |
-
|
199 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-instagram {
|
200 |
-
border-color: #1630aa;
|
201 |
-
}
|
202 |
-
|
203 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-linkedin {
|
204 |
-
border-color: #00344f;
|
205 |
-
}
|
206 |
-
|
207 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-pinterest {
|
208 |
-
border-color: #5b040e;
|
209 |
-
}
|
210 |
-
|
211 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-reddit {
|
212 |
-
border-color: #992900;
|
213 |
-
}
|
214 |
-
|
215 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-rss {
|
216 |
-
border-color: #a43b0a;
|
217 |
-
}
|
218 |
-
|
219 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-sharethis {
|
220 |
-
border-color: #5d8420;
|
221 |
-
}
|
222 |
-
|
223 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-skype {
|
224 |
-
border-color: #00658a;
|
225 |
-
}
|
226 |
-
|
227 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-soundcloud {
|
228 |
-
border-color: #995200;
|
229 |
-
}
|
230 |
-
|
231 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-spotify {
|
232 |
-
border-color: #0f612c;
|
233 |
-
}
|
234 |
-
|
235 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-stackoverflow {
|
236 |
-
border-color: #a95009;
|
237 |
-
}
|
238 |
-
|
239 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-steam {
|
240 |
-
border-color: #006388;
|
241 |
-
}
|
242 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-user_email {
|
243 |
-
border-color: #b84e05;
|
244 |
-
}
|
245 |
-
|
246 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-stumbleUpon {
|
247 |
-
border-color: #9b280e;
|
248 |
-
}
|
249 |
-
|
250 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-tumblr {
|
251 |
-
border-color: #10151b;
|
252 |
-
}
|
253 |
-
|
254 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-twitter {
|
255 |
-
border-color: #0967a0;
|
256 |
-
}
|
257 |
-
|
258 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-vimeo {
|
259 |
-
border-color: #0d7091;
|
260 |
-
}
|
261 |
-
|
262 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-windows {
|
263 |
-
border-color: #003f71;
|
264 |
-
}
|
265 |
-
|
266 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-wordpress {
|
267 |
-
border-color: #0f3647;
|
268 |
-
}
|
269 |
-
|
270 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-yahoo {
|
271 |
-
border-color: #14002d;
|
272 |
-
}
|
273 |
-
|
274 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-youtube {
|
275 |
-
border-color: #990000;
|
276 |
-
}
|
277 |
-
|
278 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-xing {
|
279 |
-
border-color: #000202;
|
280 |
-
}
|
281 |
-
|
282 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-mixcloud {
|
283 |
-
border-color: #2475a0;
|
284 |
-
}
|
285 |
-
|
286 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-vk {
|
287 |
-
border-color: #243549;
|
288 |
-
}
|
289 |
-
|
290 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-medium {
|
291 |
-
border-color: #00452c;
|
292 |
-
}
|
293 |
-
|
294 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-quora {
|
295 |
-
border-color: #420e00;
|
296 |
-
}
|
297 |
-
|
298 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-meetup {
|
299 |
-
border-color: #9b181c;
|
300 |
-
}
|
301 |
-
|
302 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-goodreads {
|
303 |
-
border-color: #000;
|
304 |
-
}
|
305 |
-
|
306 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-snapchat {
|
307 |
-
border-color: #999700;
|
308 |
-
}
|
309 |
-
|
310 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-500px {
|
311 |
-
border-color: #00557f;
|
312 |
-
}
|
313 |
-
|
314 |
-
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-mastodont {
|
315 |
-
border-color: #185886;
|
316 |
-
}
|
317 |
-
|
318 |
-
.sabox-plus-item {
|
319 |
-
margin-bottom: 20px;
|
320 |
-
}
|
321 |
-
|
322 |
-
/* - GLOBAL MEDIA QUERIES
|
323 |
-
-------------------------------------------------------------- */
|
324 |
-
@media screen and (max-width: 480px) {
|
325 |
-
|
326 |
-
.saboxplugin-wrap {
|
327 |
-
text-align: center;
|
328 |
-
}
|
329 |
-
|
330 |
-
.saboxplugin-wrap .saboxplugin-gravatar {
|
331 |
-
float: none;
|
332 |
-
padding: 20px 0;
|
333 |
-
text-align: center;
|
334 |
-
margin: 0 auto;
|
335 |
-
display: block;
|
336 |
-
}
|
337 |
-
|
338 |
-
.saboxplugin-wrap .saboxplugin-gravatar img {
|
339 |
-
float: none;
|
340 |
-
display: inline-block;
|
341 |
-
display: -moz-inline-stack;
|
342 |
-
vertical-align: middle;
|
343 |
-
zoom: 1;
|
344 |
-
}
|
345 |
-
|
346 |
-
.saboxplugin-wrap .saboxplugin-desc {
|
347 |
-
margin: 0 10px 20px;
|
348 |
-
text-align: center;
|
349 |
-
}
|
350 |
-
|
351 |
-
.saboxplugin-wrap .saboxplugin-authorname {
|
352 |
-
text-align: center;
|
353 |
-
margin: 10px 0 20px;
|
354 |
-
}
|
355 |
-
|
356 |
-
}
|
357 |
-
|
358 |
-
/* @Since 2.0.4
|
359 |
-
-------------------------------------------------------------- */
|
360 |
-
body .saboxplugin-authorname a,
|
361 |
-
body .saboxplugin-authorname a:hover {
|
362 |
-
box-shadow: none;
|
363 |
-
-webkit-box-shadow: none;
|
364 |
-
}
|
365 |
-
|
366 |
-
a.sab-profile-edit {
|
367 |
-
font-size: 16px !important;
|
368 |
-
line-height: 1 !important;
|
369 |
-
}
|
370 |
-
|
371 |
-
a.sab-profile-edit,
|
372 |
-
.sab-edit-settings a{
|
373 |
-
color: #0073aa !important; /* default WP link color */
|
374 |
-
box-shadow: none !important;
|
375 |
-
-webkit-box-shadow: none !important;
|
376 |
-
}
|
377 |
-
|
378 |
-
.sab-edit-settings {
|
379 |
-
margin-right: 15px;
|
380 |
-
position: absolute;
|
381 |
-
right: 0;
|
382 |
-
z-index: 2;
|
383 |
-
bottom: 10px;
|
384 |
-
line-height: 20px;
|
385 |
-
}
|
386 |
-
|
387 |
-
.sab-edit-settings i {
|
388 |
-
margin-left: 5px;
|
389 |
-
}
|
390 |
-
|
391 |
-
.saboxplugin-socials {
|
392 |
-
line-height: 1 !important;
|
393 |
-
}
|
394 |
-
|
395 |
-
/* RTL Support */
|
396 |
-
.rtl .saboxplugin-wrap .saboxplugin-gravatar {
|
397 |
-
float: right;
|
398 |
-
}
|
399 |
-
.rtl .saboxplugin-wrap .saboxplugin-authorname {
|
400 |
-
display: flex;
|
401 |
-
align-items: center;
|
402 |
-
}
|
403 |
-
.rtl .saboxplugin-wrap .saboxplugin-authorname .sab-profile-edit {
|
404 |
-
margin-right: 10px;
|
405 |
-
}
|
406 |
-
.rtl .sab-edit-settings {
|
407 |
-
right: auto;
|
408 |
-
left: 0;
|
409 |
}
|
1 |
+
.saboxplugin-wrap {
|
2 |
+
-webkit-box-sizing: border-box;
|
3 |
+
-moz-box-sizing: border-box;
|
4 |
+
-ms-box-sizing: border-box;
|
5 |
+
box-sizing: border-box;
|
6 |
+
border: 1px solid;
|
7 |
+
border-color: #eee;
|
8 |
+
width: 100%;
|
9 |
+
clear: both;
|
10 |
+
display: block;
|
11 |
+
overflow: hidden;
|
12 |
+
word-wrap: break-word;
|
13 |
+
position: relative;
|
14 |
+
}
|
15 |
+
|
16 |
+
.saboxplugin-wrap .saboxplugin-gravatar {
|
17 |
+
float: left;
|
18 |
+
padding: 20px;
|
19 |
+
}
|
20 |
+
|
21 |
+
.saboxplugin-wrap .saboxplugin-gravatar img {
|
22 |
+
max-width: 100px;
|
23 |
+
height: auto;
|
24 |
+
}
|
25 |
+
|
26 |
+
|
27 |
+
.saboxplugin-wrap .saboxplugin-authorname {
|
28 |
+
font-size: 18px;
|
29 |
+
line-height: 1;
|
30 |
+
margin: 20px 0 0 20px;
|
31 |
+
display: block;
|
32 |
+
}
|
33 |
+
|
34 |
+
.saboxplugin-wrap .saboxplugin-authorname a {
|
35 |
+
text-decoration: none;
|
36 |
+
}
|
37 |
+
|
38 |
+
.saboxplugin-wrap .saboxplugin-authorname a:focus {
|
39 |
+
outline: none;
|
40 |
+
}
|
41 |
+
|
42 |
+
.saboxplugin-wrap .saboxplugin-desc {
|
43 |
+
display: block;
|
44 |
+
margin: 5px 20px;
|
45 |
+
}
|
46 |
+
|
47 |
+
.saboxplugin-wrap .saboxplugin-desc a {
|
48 |
+
text-decoration: underline;
|
49 |
+
}
|
50 |
+
|
51 |
+
.saboxplugin-wrap .saboxplugin-desc p {
|
52 |
+
margin: 5px 0 12px 0;
|
53 |
+
}
|
54 |
+
|
55 |
+
.saboxplugin-wrap .saboxplugin-web {
|
56 |
+
margin: 0 20px 15px;
|
57 |
+
text-align: left;
|
58 |
+
}
|
59 |
+
|
60 |
+
.saboxplugin-wrap .sab-web-position {
|
61 |
+
text-align: right;
|
62 |
+
}
|
63 |
+
|
64 |
+
.saboxplugin-wrap .saboxplugin-web a {
|
65 |
+
color: #ccc;
|
66 |
+
text-decoration: none;
|
67 |
+
}
|
68 |
+
|
69 |
+
.saboxplugin-wrap .saboxplugin-socials {
|
70 |
+
position: relative;
|
71 |
+
display: block;
|
72 |
+
background: #fcfcfc;
|
73 |
+
padding: 5px;
|
74 |
+
border-top: 1px solid #eee;
|
75 |
+
}
|
76 |
+
|
77 |
+
.saboxplugin-wrap .saboxplugin-socials a svg {
|
78 |
+
width: 18px;
|
79 |
+
height: 18px;
|
80 |
+
}
|
81 |
+
|
82 |
+
.saboxplugin-wrap .saboxplugin-socials a svg .st2 {
|
83 |
+
fill: #fff;
|
84 |
+
}
|
85 |
+
.saboxplugin-wrap .saboxplugin-socials a svg .st1 {
|
86 |
+
fill: rgba( 0, 0, 0, .3 );
|
87 |
+
}
|
88 |
+
|
89 |
+
.saboxplugin-wrap .saboxplugin-socials a:hover {
|
90 |
+
opacity: 0.8;
|
91 |
+
-webkit-transition: opacity 0.4s;
|
92 |
+
-moz-transition: opacity 0.4s;
|
93 |
+
-o-transition: opacity 0.4s;
|
94 |
+
transition: opacity 0.4s;
|
95 |
+
box-shadow: none !important;
|
96 |
+
-webkit-box-shadow: none !important;
|
97 |
+
}
|
98 |
+
|
99 |
+
.saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-color {
|
100 |
+
text-decoration: none;
|
101 |
+
box-shadow: none; /* twentyseventeen adds a box shadow under all links inside content */
|
102 |
+
padding: 0;
|
103 |
+
margin: 0;
|
104 |
+
border: 0;
|
105 |
+
-webkit-transition: opacity 0.4s;
|
106 |
+
-moz-transition: opacity 0.4s;
|
107 |
+
-o-transition: opacity 0.4s;
|
108 |
+
transition: opacity 0.4s;
|
109 |
+
display: inline-block;
|
110 |
+
color: #fff;
|
111 |
+
font-size: 0;
|
112 |
+
text-decoration: inherit;
|
113 |
+
margin: 5px;
|
114 |
+
-webkit-border-radius: 0;
|
115 |
+
-moz-border-radius: 0;
|
116 |
+
-ms-border-radius: 0;
|
117 |
+
-o-border-radius: 0;
|
118 |
+
border-radius: 0;
|
119 |
+
overflow: hidden;
|
120 |
+
}
|
121 |
+
|
122 |
+
.saboxplugin-wrap .saboxplugin-socials .saboxplugin-icon-grey {
|
123 |
+
text-decoration: inherit;
|
124 |
+
box-shadow: none; /* twentyseventeen adds a box shadow under all links inside content */
|
125 |
+
position: relative;
|
126 |
+
display: -moz-inline-stack;
|
127 |
+
display: inline-block;
|
128 |
+
vertical-align: middle;
|
129 |
+
zoom: 1;
|
130 |
+
margin: 10px 5px;
|
131 |
+
color: #444;
|
132 |
+
}
|
133 |
+
|
134 |
+
.clearfix:after,
|
135 |
+
.clearfix:before {
|
136 |
+
content: ' ';
|
137 |
+
display: table;
|
138 |
+
line-height: 0;
|
139 |
+
clear: both;
|
140 |
+
}
|
141 |
+
|
142 |
+
.ie7 .clearfix {
|
143 |
+
zoom: 1;
|
144 |
+
}
|
145 |
+
|
146 |
+
/* COLORED BACKGROUND AND LONG SHADOW EFFECT FOR SOCIAL ICONS
|
147 |
+
-------------------------------------------------------------- */
|
148 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-twitch {
|
149 |
+
border-color: #38245c;
|
150 |
+
}
|
151 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-addthis {
|
152 |
+
border-color: #e91c00;
|
153 |
+
}
|
154 |
+
|
155 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-behance {
|
156 |
+
border-color: #003eb0;
|
157 |
+
}
|
158 |
+
|
159 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-delicious {
|
160 |
+
border-color: #0066cc;
|
161 |
+
}
|
162 |
+
|
163 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-deviantart {
|
164 |
+
border-color: #036824;
|
165 |
+
}
|
166 |
+
|
167 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-digg {
|
168 |
+
border-color: #00327c;
|
169 |
+
}
|
170 |
+
|
171 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-dribbble {
|
172 |
+
border-color: #ba1655;
|
173 |
+
}
|
174 |
+
|
175 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-facebook {
|
176 |
+
border-color: #1e2e4f;
|
177 |
+
}
|
178 |
+
|
179 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-flickr {
|
180 |
+
border-color: #003576;
|
181 |
+
}
|
182 |
+
|
183 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-github {
|
184 |
+
border-color: #264874;
|
185 |
+
}
|
186 |
+
|
187 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-google {
|
188 |
+
border-color: #0b51c5;
|
189 |
+
}
|
190 |
+
|
191 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-googleplus {
|
192 |
+
border-color: #96271a;
|
193 |
+
}
|
194 |
+
|
195 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-html5 {
|
196 |
+
border-color: #902e13;
|
197 |
+
}
|
198 |
+
|
199 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-instagram {
|
200 |
+
border-color: #1630aa;
|
201 |
+
}
|
202 |
+
|
203 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-linkedin {
|
204 |
+
border-color: #00344f;
|
205 |
+
}
|
206 |
+
|
207 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-pinterest {
|
208 |
+
border-color: #5b040e;
|
209 |
+
}
|
210 |
+
|
211 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-reddit {
|
212 |
+
border-color: #992900;
|
213 |
+
}
|
214 |
+
|
215 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-rss {
|
216 |
+
border-color: #a43b0a;
|
217 |
+
}
|
218 |
+
|
219 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-sharethis {
|
220 |
+
border-color: #5d8420;
|
221 |
+
}
|
222 |
+
|
223 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-skype {
|
224 |
+
border-color: #00658a;
|
225 |
+
}
|
226 |
+
|
227 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-soundcloud {
|
228 |
+
border-color: #995200;
|
229 |
+
}
|
230 |
+
|
231 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-spotify {
|
232 |
+
border-color: #0f612c;
|
233 |
+
}
|
234 |
+
|
235 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-stackoverflow {
|
236 |
+
border-color: #a95009;
|
237 |
+
}
|
238 |
+
|
239 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-steam {
|
240 |
+
border-color: #006388;
|
241 |
+
}
|
242 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-user_email {
|
243 |
+
border-color: #b84e05;
|
244 |
+
}
|
245 |
+
|
246 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-stumbleUpon {
|
247 |
+
border-color: #9b280e;
|
248 |
+
}
|
249 |
+
|
250 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-tumblr {
|
251 |
+
border-color: #10151b;
|
252 |
+
}
|
253 |
+
|
254 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-twitter {
|
255 |
+
border-color: #0967a0;
|
256 |
+
}
|
257 |
+
|
258 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-vimeo {
|
259 |
+
border-color: #0d7091;
|
260 |
+
}
|
261 |
+
|
262 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-windows {
|
263 |
+
border-color: #003f71;
|
264 |
+
}
|
265 |
+
|
266 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-wordpress {
|
267 |
+
border-color: #0f3647;
|
268 |
+
}
|
269 |
+
|
270 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-yahoo {
|
271 |
+
border-color: #14002d;
|
272 |
+
}
|
273 |
+
|
274 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-youtube {
|
275 |
+
border-color: #990000;
|
276 |
+
}
|
277 |
+
|
278 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-xing {
|
279 |
+
border-color: #000202;
|
280 |
+
}
|
281 |
+
|
282 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-mixcloud {
|
283 |
+
border-color: #2475a0;
|
284 |
+
}
|
285 |
+
|
286 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-vk {
|
287 |
+
border-color: #243549;
|
288 |
+
}
|
289 |
+
|
290 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-medium {
|
291 |
+
border-color: #00452c;
|
292 |
+
}
|
293 |
+
|
294 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-quora {
|
295 |
+
border-color: #420e00;
|
296 |
+
}
|
297 |
+
|
298 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-meetup {
|
299 |
+
border-color: #9b181c;
|
300 |
+
}
|
301 |
+
|
302 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-goodreads {
|
303 |
+
border-color: #000;
|
304 |
+
}
|
305 |
+
|
306 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-snapchat {
|
307 |
+
border-color: #999700;
|
308 |
+
}
|
309 |
+
|
310 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-500px {
|
311 |
+
border-color: #00557f;
|
312 |
+
}
|
313 |
+
|
314 |
+
.saboxplugin-socials.sabox-colored .saboxplugin-icon-color .sab-mastodont {
|
315 |
+
border-color: #185886;
|
316 |
+
}
|
317 |
+
|
318 |
+
.sabox-plus-item {
|
319 |
+
margin-bottom: 20px;
|
320 |
+
}
|
321 |
+
|
322 |
+
/* - GLOBAL MEDIA QUERIES
|
323 |
+
-------------------------------------------------------------- */
|
324 |
+
@media screen and (max-width: 480px) {
|
325 |
+
|
326 |
+
.saboxplugin-wrap {
|
327 |
+
text-align: center;
|
328 |
+
}
|
329 |
+
|
330 |
+
.saboxplugin-wrap .saboxplugin-gravatar {
|
331 |
+
float: none;
|
332 |
+
padding: 20px 0;
|
333 |
+
text-align: center;
|
334 |
+
margin: 0 auto;
|
335 |
+
display: block;
|
336 |
+
}
|
337 |
+
|
338 |
+
.saboxplugin-wrap .saboxplugin-gravatar img {
|
339 |
+
float: none;
|
340 |
+
display: inline-block;
|
341 |
+
display: -moz-inline-stack;
|
342 |
+
vertical-align: middle;
|
343 |
+
zoom: 1;
|
344 |
+
}
|
345 |
+
|
346 |
+
.saboxplugin-wrap .saboxplugin-desc {
|
347 |
+
margin: 0 10px 20px;
|
348 |
+
text-align: center;
|
349 |
+
}
|
350 |
+
|
351 |
+
.saboxplugin-wrap .saboxplugin-authorname {
|
352 |
+
text-align: center;
|
353 |
+
margin: 10px 0 20px;
|
354 |
+
}
|
355 |
+
|
356 |
+
}
|
357 |
+
|
358 |
+
/* @Since 2.0.4
|
359 |
+
-------------------------------------------------------------- */
|
360 |
+
body .saboxplugin-authorname a,
|
361 |
+
body .saboxplugin-authorname a:hover {
|
362 |
+
box-shadow: none;
|
363 |
+
-webkit-box-shadow: none;
|
364 |
+
}
|
365 |
+
|
366 |
+
a.sab-profile-edit {
|
367 |
+
font-size: 16px !important;
|
368 |
+
line-height: 1 !important;
|
369 |
+
}
|
370 |
+
|
371 |
+
a.sab-profile-edit,
|
372 |
+
.sab-edit-settings a{
|
373 |
+
color: #0073aa !important; /* default WP link color */
|
374 |
+
box-shadow: none !important;
|
375 |
+
-webkit-box-shadow: none !important;
|
376 |
+
}
|
377 |
+
|
378 |
+
.sab-edit-settings {
|
379 |
+
margin-right: 15px;
|
380 |
+
position: absolute;
|
381 |
+
right: 0;
|
382 |
+
z-index: 2;
|
383 |
+
bottom: 10px;
|
384 |
+
line-height: 20px;
|
385 |
+
}
|
386 |
+
|
387 |
+
.sab-edit-settings i {
|
388 |
+
margin-left: 5px;
|
389 |
+
}
|
390 |
+
|
391 |
+
.saboxplugin-socials {
|
392 |
+
line-height: 1 !important;
|
393 |
+
}
|
394 |
+
|
395 |
+
/* RTL Support */
|
396 |
+
.rtl .saboxplugin-wrap .saboxplugin-gravatar {
|
397 |
+
float: right;
|
398 |
+
}
|
399 |
+
.rtl .saboxplugin-wrap .saboxplugin-authorname {
|
400 |
+
display: flex;
|
401 |
+
align-items: center;
|
402 |
+
}
|
403 |
+
.rtl .saboxplugin-wrap .saboxplugin-authorname .sab-profile-edit {
|
404 |
+
margin-right: 10px;
|
405 |
+
}
|
406 |
+
.rtl .sab-edit-settings {
|
407 |
+
right: auto;
|
408 |
+
left: 0;
|
409 |
}
|
assets/js/plugin-install.js
CHANGED
@@ -1,55 +1,55 @@
|
|
1 |
-
(function( wp, $ ) {
|
2 |
-
'use strict';
|
3 |
-
|
4 |
-
if ( ! wp ) {
|
5 |
-
return;
|
6 |
-
}
|
7 |
-
|
8 |
-
function activatePlugin( url, el ) {
|
9 |
-
var message = el.data( 'message' );
|
10 |
-
|
11 |
-
$.ajax( {
|
12 |
-
async: true,
|
13 |
-
type: 'GET',
|
14 |
-
dataType: 'html',
|
15 |
-
url: url,
|
16 |
-
success: function() {
|
17 |
-
el.removeClass( 'sab-updating' );
|
18 |
-
el.text( message );
|
19 |
-
}
|
20 |
-
} );
|
21 |
-
}
|
22 |
-
|
23 |
-
$( function() {
|
24 |
-
$( document ).on( 'click', '.sab-plugin-button', function( event ) {
|
25 |
-
var action = $( this ).data( 'action' ),
|
26 |
-
url = $( this ).attr( 'href' ),
|
27 |
-
slug = $( this ).data( 'slug' );
|
28 |
-
|
29 |
-
event.preventDefault();
|
30 |
-
|
31 |
-
if ( 'install' === action ) {
|
32 |
-
|
33 |
-
$( this ).addClass( 'sab-updating disabled' );
|
34 |
-
|
35 |
-
wp.updates.installPlugin( {
|
36 |
-
slug: slug
|
37 |
-
} );
|
38 |
-
|
39 |
-
} else if ( 'activate' === action ) {
|
40 |
-
|
41 |
-
$( this ).addClass( 'sab-updating disabled' );
|
42 |
-
activatePlugin( url, $( this ) );
|
43 |
-
|
44 |
-
}
|
45 |
-
|
46 |
-
} );
|
47 |
-
|
48 |
-
$( document ).on( 'wp-plugin-install-success', function( response, data ) {
|
49 |
-
var el = $( '.sab-plugin-button[data-slug="' + data.slug + '"]' );
|
50 |
-
event.preventDefault();
|
51 |
-
activatePlugin( data.activateUrl, el );
|
52 |
-
} );
|
53 |
-
|
54 |
-
} );
|
55 |
-
})( window.wp, jQuery );
|
1 |
+
(function( wp, $ ) {
|
2 |
+
'use strict';
|
3 |
+
|
4 |
+
if ( ! wp ) {
|
5 |
+
return;
|
6 |
+
}
|
7 |
+
|
8 |
+
function activatePlugin( url, el ) {
|
9 |
+
var message = el.data( 'message' );
|
10 |
+
|
11 |
+
$.ajax( {
|
12 |
+
async: true,
|
13 |
+
type: 'GET',
|
14 |
+
dataType: 'html',
|
15 |
+
url: url,
|
16 |
+
success: function() {
|
17 |
+
el.removeClass( 'sab-updating' );
|
18 |
+
el.text( message );
|
19 |
+
}
|
20 |
+
} );
|
21 |
+
}
|
22 |
+
|
23 |
+
$( function() {
|
24 |
+
$( document ).on( 'click', '.sab-plugin-button', function( event ) {
|
25 |
+
var action = $( this ).data( 'action' ),
|
26 |
+
url = $( this ).attr( 'href' ),
|
27 |
+
slug = $( this ).data( 'slug' );
|
28 |
+
|
29 |
+
event.preventDefault();
|
30 |
+
|
31 |
+
if ( 'install' === action ) {
|
32 |
+
|
33 |
+
$( this ).addClass( 'sab-updating disabled' );
|
34 |
+
|
35 |
+
wp.updates.installPlugin( {
|
36 |
+
slug: slug
|
37 |
+
} );
|
38 |
+
|
39 |
+
} else if ( 'activate' === action ) {
|
40 |
+
|
41 |
+
$( this ).addClass( 'sab-updating disabled' );
|
42 |
+
activatePlugin( url, $( this ) );
|
43 |
+
|
44 |
+
}
|
45 |
+
|
46 |
+
} );
|
47 |
+
|
48 |
+
$( document ).on( 'wp-plugin-install-success', function( response, data ) {
|
49 |
+
var el = $( '.sab-plugin-button[data-slug="' + data.slug + '"]' );
|
50 |
+
event.preventDefault();
|
51 |
+
activatePlugin( data.activateUrl, el );
|
52 |
+
} );
|
53 |
+
|
54 |
+
} );
|
55 |
+
})( window.wp, jQuery );
|
assets/js/sab-preview.js
CHANGED
@@ -1,401 +1,401 @@
|
|
1 |
-
wp.SAB = 'undefined' === typeof( wp.SAB ) ? {} : wp.SAB;
|
2 |
-
wp.SAB.views = 'undefined' === typeof( wp.SAB.views ) ? {} : wp.SAB.views;
|
3 |
-
wp.SAB.models = 'undefined' === typeof( wp.SAB.models ) ? {} : wp.SAB.models;
|
4 |
-
wp.SAB.contructors = 'undefined' === typeof( wp.SAB.contructors ) ? [] : wp.SAB.contructors;
|
5 |
-
|
6 |
-
wp.SAB.models.Settings = Backbone.Model.extend({
|
7 |
-
initialize: function(){
|
8 |
-
var model = this;
|
9 |
-
|
10 |
-
var view = new wp.SAB.views.Settings({
|
11 |
-
model: this,
|
12 |
-
el: jQuery( '#sabox-container' )
|
13 |
-
});
|
14 |
-
|
15 |
-
this.set( 'view', view );
|
16 |
-
},
|
17 |
-
getAttribute: function( type ){
|
18 |
-
var value = this.get( type );
|
19 |
-
|
20 |
-
if ( 'undefined' == typeof value ) {
|
21 |
-
value = jQuery( '#' + type ).val();
|
22 |
-
}
|
23 |
-
|
24 |
-
return value;
|
25 |
-
}
|
26 |
-
});
|
27 |
-
|
28 |
-
wp.SAB.views.Settings = Backbone.View.extend({
|
29 |
-
|
30 |
-
events: {
|
31 |
-
// Settings specific events
|
32 |
-
'keyup input': 'updateModel',
|
33 |
-
'keyup textarea': 'updateModel',
|
34 |
-
'change input': 'updateModel',
|
35 |
-
'change textarea': 'updateModel',
|
36 |
-
'blur textarea': 'updateModel',
|
37 |
-
'change select': 'updateModel',
|
38 |
-
},
|
39 |
-
|
40 |
-
initialize: function( args ) {
|
41 |
-
|
42 |
-
// Check for Google Fonts
|
43 |
-
this.checkGoogleFonts();
|
44 |
-
|
45 |
-
this.listenTo( this.model, 'change:sab_email', this.emailVisibility );
|
46 |
-
|
47 |
-
// Author website
|
48 |
-
this.listenTo( this.model, 'change:sab_web', this.websiteVisibility );
|
49 |
-
this.listenTo( this.model, 'change:sab_web_position', this.websitePosition );
|
50 |
-
|
51 |
-
// Social Icons
|
52 |
-
this.listenTo( this.model, 'change:sab_hide_socials', this.socialsVisibility );
|
53 |
-
this.listenTo( this.model, 'change:sab_colored', this.socialIconTypeVisibility );
|
54 |
-
this.listenTo( this.model, 'change:sab_icons_style', this.socialIconTypeVisibility );
|
55 |
-
this.listenTo( this.model, 'change:sab_social_hover', this.socialIconHover );
|
56 |
-
this.listenTo( this.model, 'change:sab_box_long_shadow', this.socialIconShadow );
|
57 |
-
this.listenTo( this.model, 'change:sab_box_thin_border', this.socialIconBorder );
|
58 |
-
|
59 |
-
// Avatar
|
60 |
-
this.listenTo( this.model, 'change:sab_avatar_style', this.avatarStyle );
|
61 |
-
this.listenTo( this.model, 'change:sab_avatar_hover', this.avatarHover );
|
62 |
-
|
63 |
-
// Padding
|
64 |
-
this.listenTo( this.model, 'change:sab_box_padding_top_bottom', this.adjustPadding );
|
65 |
-
this.listenTo( this.model, 'change:sab_box_padding_left_right', this.adjustPadding );
|
66 |
-
|
67 |
-
// Author Box Border
|
68 |
-
this.listenTo( this.model, 'change:sab_box_border_width', this.adjustBorder );
|
69 |
-
this.listenTo( this.model, 'change:sab_box_border', this.adjustBorder );
|
70 |
-
|
71 |
-
// Adjust Author name settings
|
72 |
-
this.listenTo( this.model, 'change:sab_box_name_size', this.adjustAuthorName );
|
73 |
-
this.listenTo( this.model, 'change:sab_box_name_font', this.adjustAuthorName );
|
74 |
-
this.listenTo( this.model, 'change:sab_box_author_color', this.adjustAuthorName );
|
75 |
-
|
76 |
-
// Adjust Author website settings
|
77 |
-
this.listenTo( this.model, 'change:sab_box_web_font', this.adjustAuthorWebsite );
|
78 |
-
this.listenTo( this.model, 'change:sab_box_web_size', this.adjustAuthorWebsite );
|
79 |
-
this.listenTo( this.model, 'change:sab_box_web_color', this.adjustAuthorWebsite );
|
80 |
-
|
81 |
-
// Adjust Author description settings
|
82 |
-
this.listenTo( this.model, 'change:sab_box_desc_font', this.adjustAuthorDescription );
|
83 |
-
this.listenTo( this.model, 'change:sab_box_desc_size', this.adjustAuthorDescription );
|
84 |
-
this.listenTo( this.model, 'change:sab_box_author_p_color', this.adjustAuthorDescription );
|
85 |
-
this.listenTo( this.model, 'change:sab_box_author_a_color', this.adjustAuthorDescription );
|
86 |
-
this.listenTo( this.model, 'change:sab_desc_style', this.adjustAuthorDescription );
|
87 |
-
|
88 |
-
// Icon Size
|
89 |
-
this.listenTo( this.model, 'change:sab_box_icon_size', this.adjustIconSize );
|
90 |
-
|
91 |
-
// Social Bar Background Color
|
92 |
-
this.listenTo( this.model, 'change:sab_box_icons_back', this.changeSocialBarBackground );
|
93 |
-
|
94 |
-
// Author Box Background Color
|
95 |
-
this.listenTo( this.model, 'change:sab_box_author_back', this.changeAuthorBoxBackground );
|
96 |
-
|
97 |
-
// Author Box Background Color
|
98 |
-
this.listenTo( this.model, 'change:sab_box_icons_color', this.changeSocialIconsColor );
|
99 |
-
|
100 |
-
},
|
101 |
-
|
102 |
-
emailVisibility: function() {
|
103 |
-
var showEmail = wp.SAB.Settings.get( 'sab_email' );
|
104 |
-
|
105 |
-
if ( '1' == showEmail ) {
|
106 |
-
jQuery('.sab-user_email').parent().show();
|
107 |
-
}else{
|
108 |
-
jQuery('.sab-user_email').parent().hide();
|
109 |
-
}
|
110 |
-
},
|
111 |
-
|
112 |
-
socialsVisibility: function(){
|
113 |
-
var hideSocials = wp.SAB.Settings.get( 'sab_hide_socials' );
|
114 |
-
|
115 |
-
if ( '1' == hideSocials ) {
|
116 |
-
jQuery('.saboxplugin-socials').hide();
|
117 |
-
}else{
|
118 |
-
jQuery('.saboxplugin-socials').show();
|
119 |
-
}
|
120 |
-
},
|
121 |
-
|
122 |
-
websiteVisibility: function(){
|
123 |
-
var showWesite = wp.SAB.Settings.get( 'sab_web' );
|
124 |
-
|
125 |
-
if ( '1' == showWesite ) {
|
126 |
-
jQuery('.saboxplugin-web').show();
|
127 |
-
}else{
|
128 |
-
jQuery('.saboxplugin-web').hide();
|
129 |
-
}
|
130 |
-
},
|
131 |
-
|
132 |
-
websitePosition: function() {
|
133 |
-
var attribute = wp.SAB.Settings.get( 'sab_web_position' );
|
134 |
-
|
135 |
-
if ( '1' == attribute ) {
|
136 |
-
jQuery('.saboxplugin-web').addClass( 'sab-web-position' );
|
137 |
-
}else{
|
138 |
-
jQuery('.saboxplugin-web').removeClass( 'sab-web-position' );
|
139 |
-
}
|
140 |
-
},
|
141 |
-
|
142 |
-
socialIconTypeVisibility: function() {
|
143 |
-
var iconType = wp.SAB.Settings.getAttribute( 'sab_colored' ),
|
144 |
-
iconStyle = wp.SAB.Settings.getAttribute( 'sab_icons_style' );
|
145 |
-
|
146 |
-
jQuery('.saboxplugin-socials').removeClass( 'sab-show-simple sab-show-circle sab-show-square' );
|
147 |
-
if ( '1' == iconType ) {
|
148 |
-
if ( '1' == iconStyle ) {
|
149 |
-
jQuery('.saboxplugin-socials').addClass( 'sab-show-circle' );
|
150 |
-
}else{
|
151 |
-
jQuery('.saboxplugin-socials').addClass( 'sab-show-square' );
|
152 |
-
}
|
153 |
-
}else{
|
154 |
-
jQuery('.saboxplugin-socials').addClass( 'sab-show-simple' );
|
155 |
-
}
|
156 |
-
|
157 |
-
},
|
158 |
-
|
159 |
-
socialIconHover: function() {
|
160 |
-
var attribute = wp.SAB.Settings.get( 'sab_social_hover' );
|
161 |
-
|
162 |
-
if ( '1' == attribute ) {
|
163 |
-
jQuery('.saboxplugin-socials').addClass( 'sab-rotate-icons' );
|
164 |
-
}else{
|
165 |
-
jQuery('.saboxplugin-socials').removeClass( 'sab-rotate-icons' );
|
166 |
-
}
|
167 |
-
},
|
168 |
-
|
169 |
-
socialIconShadow: function() {
|
170 |
-
var attribute = wp.SAB.Settings.get( 'sab_box_long_shadow' );
|
171 |
-
|
172 |
-
if ( '1' == attribute ) {
|
173 |
-
jQuery('.saboxplugin-socials').removeClass( 'without-long-shadow' );
|
174 |
-
}else{
|
175 |
-
jQuery('.saboxplugin-socials').addClass( 'without-long-shadow' );
|
176 |
-
}
|
177 |
-
},
|
178 |
-
|
179 |
-
socialIconBorder: function() {
|
180 |
-
var attribute = wp.SAB.Settings.get( 'sab_box_thin_border' );
|
181 |
-
|
182 |
-
if ( '1' == attribute ) {
|
183 |
-
jQuery('.saboxplugin-socials').addClass( 'sab-icons-with-border' );
|
184 |
-
}else{
|
185 |
-
jQuery('.saboxplugin-socials').removeClass( 'sab-icons-with-border' );
|
186 |
-
}
|
187 |
-
},
|
188 |
-
|
189 |
-
avatarStyle: function() {
|
190 |
-
var attribute = wp.SAB.Settings.get( 'sab_avatar_style' );
|
191 |
-
|
192 |
-
if ( '1' == attribute ) {
|
193 |
-
jQuery('.saboxplugin-gravatar').addClass( 'sab-round-image' );
|
194 |
-
}else{
|
195 |
-
jQuery('.saboxplugin-gravatar').removeClass( 'sab-round-image' );
|
196 |
-
}
|
197 |
-
},
|
198 |
-
|
199 |
-
avatarHover: function() {
|
200 |
-
var attribute = wp.SAB.Settings.get( 'sab_avatar_hover' );
|
201 |
-
|
202 |
-
if ( '1' == attribute ) {
|
203 |
-
jQuery('.saboxplugin-gravatar').addClass( 'sab-rotate-img' );
|
204 |
-
}else{
|
205 |
-
jQuery('.saboxplugin-gravatar').removeClass( 'sab-rotate-img' );
|
206 |
-
}
|
207 |
-
},
|
208 |
-
|
209 |
-
adjustPadding: function() {
|
210 |
-
var paddingTopBottom = wp.SAB.Settings.getAttribute( 'sab_box_padding_top_bottom' ),
|
211 |
-
paddingLeftRight = wp.SAB.Settings.getAttribute( 'sab_box_padding_left_right' );
|
212 |
-
|
213 |
-
jQuery( '.saboxplugin-wrap' ).css({ 'padding' : paddingTopBottom + ' ' + paddingLeftRight });
|
214 |
-
|
215 |
-
},
|
216 |
-
|
217 |
-
adjustBorder: function() {
|
218 |
-
var border = wp.SAB.Settings.getAttribute( 'sab_box_border_width' ),
|
219 |
-
borderColor = wp.SAB.Settings.getAttribute( 'sab_box_border' );
|
220 |
-
|
221 |
-
if ( '' == borderColor ) {
|
222 |
-
borderColor = 'inherit';
|
223 |
-
}
|
224 |
-
|
225 |
-
jQuery( '.saboxplugin-wrap' ).css({ 'border-width' : border, 'border-color' : borderColor });
|
226 |
-
jQuery( '.saboxplugin-wrap .saboxplugin-socials' ).css({ 'border-width' : border, 'border-color' : borderColor });
|
227 |
-
},
|
228 |
-
|
229 |
-
adjustAuthorName: function() {
|
230 |
-
var font = wp.SAB.Settings.getAttribute( 'sab_box_name_font' ),
|
231 |
-
size = wp.SAB.Settings.getAttribute( 'sab_box_name_size' ),
|
232 |
-
color = wp.SAB.Settings.getAttribute( 'sab_box_author_color' ),
|
233 |
-
lineHeight = parseInt( size ) + 7;
|
234 |
-
|
235 |
-
if ( '' == color ) {
|
236 |
-
color = 'inherit';
|
237 |
-
}
|
238 |
-
|
239 |
-
if ( '' == font || 'None' == font ) {
|
240 |
-
font = 'inherit';
|
241 |
-
}else{
|
242 |
-
this.loadGoogleFonts( font );
|
243 |
-
}
|
244 |
-
|
245 |
-
|
246 |
-
jQuery( '.saboxplugin-wrap .saboxplugin-authorname a' ).css({ 'font-family' : font, 'color' : color, 'font-size': size, 'line-height' : lineHeight.toString() + 'px' });
|
247 |
-
},
|
248 |
-
|
249 |
-
adjustAuthorWebsite: function() {
|
250 |
-
var font = wp.SAB.Settings.getAttribute( 'sab_box_web_font' ),
|
251 |
-
size = wp.SAB.Settings.getAttribute( 'sab_box_web_size' ),
|
252 |
-
color = wp.SAB.Settings.getAttribute( 'sab_box_web_color' ),
|
253 |
-
lineHeight = parseInt( size ) + 7;
|
254 |
-
|
255 |
-
if ( '' == color ) {
|
256 |
-
color = 'inherit';
|
257 |
-
}
|
258 |
-
|
259 |
-
if ( '' == font || 'None' == font ) {
|
260 |
-
font = 'inherit';
|
261 |
-
}else{
|
262 |
-
this.loadGoogleFonts( font );
|
263 |
-
}
|
264 |
-
|
265 |
-
|
266 |
-
jQuery( '.saboxplugin-wrap .saboxplugin-web a' ).css({ 'font-family' : font, 'color' : color, 'font-size': size, 'line-height' : lineHeight.toString() + 'px' });
|
267 |
-
},
|
268 |
-
|
269 |
-
adjustAuthorDescription: function() {
|
270 |
-
var font = wp.SAB.Settings.getAttribute( 'sab_box_desc_font' ),
|
271 |
-
size = wp.SAB.Settings.getAttribute( 'sab_box_desc_size' ),
|
272 |
-
color = wp.SAB.Settings.getAttribute( 'sab_box_author_p_color' ),
|
273 |
-
link_color = wp.SAB.Settings.getAttribute( 'sab_box_author_a_color' ),
|
274 |
-
style = wp.SAB.Settings.getAttribute( 'sab_desc_style' ),
|
275 |
-
lineHeight = parseInt( size ) + 7;
|
276 |
-
|
277 |
-
if ( '' == color ) {
|
278 |
-
color = 'inherit';
|
279 |
-
}
|
280 |
-
|
281 |
-
if ( '' == link_color ) {
|
282 |
-
link_color = 'inherit';
|
283 |
-
}
|
284 |
-
|
285 |
-
if ( '' == font || 'None' == font ) {
|
286 |
-
font = 'inherit';
|
287 |
-
}else{
|
288 |
-
this.loadGoogleFonts( font );
|
289 |
-
}
|
290 |
-
|
291 |
-
if ( '0' == style ) {
|
292 |
-
style = 'normal';
|
293 |
-
}else{
|
294 |
-
style = 'italic';
|
295 |
-
}
|
296 |
-
|
297 |
-
|
298 |
-
jQuery( '.saboxplugin-wrap .saboxplugin-desc p, .saboxplugin-wrap .saboxplugin-desc' ).css({ 'font-family' : font, 'color' : color, 'font-size': size, 'line-height' : lineHeight.toString() + 'px', 'font-style' : style });
|
299 |
-
jQuery( '.saboxplugin-wrap .saboxplugin-desc a' ).css({ 'font-family' : font, 'color' : link_color, 'font-size': size, 'line-height' : lineHeight.toString() + 'px', 'font-style' : style });
|
300 |
-
},
|
301 |
-
|
302 |
-
adjustIconSize: function() {
|
303 |
-
var size = this.model.get( 'sab_box_icon_size' ),
|
304 |
-
size2x = parseInt( size ) * 2;
|
305 |
-
|
306 |
-
jQuery( '.saboxplugin-wrap .saboxplugin-socials a.saboxplugin-icon-grey svg' ).css({ 'width' : size, 'height' : size });
|
307 |
-
jQuery( '.saboxplugin-wrap .saboxplugin-socials a.saboxplugin-icon-color svg' ).css({ 'width' : size2x.toString() + 'px', 'height' : size2x.toString() + 'px' });
|
308 |
-
},
|
309 |
-
|
310 |
-
changeSocialBarBackground: function() {
|
311 |
-
var color = this.model.get( 'sab_box_icons_back' );
|
312 |
-
|
313 |
-
if ( '' == color ) {
|
314 |
-
color = 'inherit';
|
315 |
-
}
|
316 |
-
|
317 |
-
jQuery( '.saboxplugin-wrap .saboxplugin-socials' ).css({ 'background-color' : color });
|
318 |
-
|
319 |
-
},
|
320 |
-
|
321 |
-
changeAuthorBoxBackground: function() {
|
322 |
-
var color = this.model.get( 'sab_box_author_back' );
|
323 |
-
|
324 |
-
if ( '' == color ) {
|
325 |
-
color = 'inherit';
|
326 |
-
}
|
327 |
-
|
328 |
-
jQuery( '.saboxplugin-wrap' ).css({ 'background-color' : color });
|
329 |
-
|
330 |
-
},
|
331 |
-
|
332 |
-
changeSocialIconsColor: function() {
|
333 |
-
var color = this.model.get( 'sab_box_icons_color' );
|
334 |
-
|
335 |
-
if ( '' == color ) {
|
336 |
-
color = 'inherit';
|
337 |
-
}
|
338 |
-
|
339 |
-
jQuery( '.saboxplugin-wrap .saboxplugin-socials a.saboxplugin-icon-grey svg' ).css({ 'color' : color });
|
340 |
-
|
341 |
-
},
|
342 |
-
|
343 |
-
updateModel: function( event ) {
|
344 |
-
var value, setting;
|
345 |
-
|
346 |
-
|
347 |
-
// Check if the target has a data-field. If not, it's not a model value we want to store
|
348 |
-
if ( undefined === event.target.id ) {
|
349 |
-
return;
|
350 |
-
}
|
351 |
-
|
352 |
-
// Update the model's value, depending on the input type
|
353 |
-
if ( event.target.type == 'checkbox' ) {
|
354 |
-
value = ( event.target.checked ? '1' : '0' );
|
355 |
-
} else {
|
356 |
-
value = event.target.value;
|
357 |
-
}
|
358 |
-
|
359 |
-
// Update the model
|
360 |
-
this.model.set( event.target.id, value );
|
361 |
-
|
362 |
-
},
|
363 |
-
|
364 |
-
checkGoogleFonts: function() {
|
365 |
-
var authorFont = this.model.getAttribute( 'sab_box_name_font' ),
|
366 |
-
webFont = this.model.getAttribute( 'sab_box_web_font' ),
|
367 |
-
descriptionFont = this.model.getAttribute( 'sab_box_desc_font' );
|
368 |
-
|
369 |
-
if ( '' != authorFont && 'None' != authorFont ) {
|
370 |
-
this.loadGoogleFonts( authorFont );
|
371 |
-
}
|
372 |
-
|
373 |
-
if ( '' != webFont && 'None' != webFont ) {
|
374 |
-
this.loadGoogleFonts( webFont );
|
375 |
-
}
|
376 |
-
|
377 |
-
if ( '' != descriptionFont && 'None' != descriptionFont ) {
|
378 |
-
this.loadGoogleFonts( descriptionFont );
|
379 |
-
}
|
380 |
-
|
381 |
-
},
|
382 |
-
|
383 |
-
loadGoogleFonts: function( font ) {
|
384 |
-
if ( ! wp.SAB.Fonts.includes( font ) ) {
|
385 |
-
wp.SAB.Fonts.push( font );
|
386 |
-
WebFont.load({
|
387 |
-
google: {
|
388 |
-
families: [ font ]
|
389 |
-
}
|
390 |
-
});
|
391 |
-
}
|
392 |
-
},
|
393 |
-
|
394 |
-
});
|
395 |
-
|
396 |
-
jQuery( document ).ready(function(){
|
397 |
-
|
398 |
-
wp.SAB.Fonts = [];
|
399 |
-
wp.SAB.Settings = new wp.SAB.models.Settings();
|
400 |
-
|
401 |
});
|
1 |
+
wp.SAB = 'undefined' === typeof( wp.SAB ) ? {} : wp.SAB;
|
2 |
+
wp.SAB.views = 'undefined' === typeof( wp.SAB.views ) ? {} : wp.SAB.views;
|
3 |
+
wp.SAB.models = 'undefined' === typeof( wp.SAB.models ) ? {} : wp.SAB.models;
|
4 |
+
wp.SAB.contructors = 'undefined' === typeof( wp.SAB.contructors ) ? [] : wp.SAB.contructors;
|
5 |
+
|
6 |
+
wp.SAB.models.Settings = Backbone.Model.extend({
|
7 |
+
initialize: function(){
|
8 |
+
var model = this;
|
9 |
+
|
10 |
+
var view = new wp.SAB.views.Settings({
|
11 |
+
model: this,
|
12 |
+
el: jQuery( '#sabox-container' )
|
13 |
+
});
|
14 |
+
|
15 |
+
this.set( 'view', view );
|
16 |
+
},
|
17 |
+
getAttribute: function( type ){
|
18 |
+
var value = this.get( type );
|
19 |
+
|
20 |
+
if ( 'undefined' == typeof value ) {
|
21 |
+
value = jQuery( '#' + type ).val();
|
22 |
+
}
|
23 |
+
|
24 |
+
return value;
|
25 |
+
}
|
26 |
+
});
|
27 |
+
|
28 |
+
wp.SAB.views.Settings = Backbone.View.extend({
|
29 |
+
|
30 |
+
events: {
|
31 |
+
// Settings specific events
|
32 |
+
'keyup input': 'updateModel',
|
33 |
+
'keyup textarea': 'updateModel',
|
34 |
+
'change input': 'updateModel',
|
35 |
+
'change textarea': 'updateModel',
|
36 |
+
'blur textarea': 'updateModel',
|
37 |
+
'change select': 'updateModel',
|
38 |
+
},
|
39 |
+
|
40 |
+
initialize: function( args ) {
|
41 |
+
|
42 |
+
// Check for Google Fonts
|
43 |
+
this.checkGoogleFonts();
|
44 |
+
|
45 |
+
this.listenTo( this.model, 'change:sab_email', this.emailVisibility );
|
46 |
+
|
47 |
+
// Author website
|
48 |
+
this.listenTo( this.model, 'change:sab_web', this.websiteVisibility );
|
49 |
+
this.listenTo( this.model, 'change:sab_web_position', this.websitePosition );
|
50 |
+
|
51 |
+
// Social Icons
|
52 |
+
this.listenTo( this.model, 'change:sab_hide_socials', this.socialsVisibility );
|
53 |
+
this.listenTo( this.model, 'change:sab_colored', this.socialIconTypeVisibility );
|
54 |
+
this.listenTo( this.model, 'change:sab_icons_style', this.socialIconTypeVisibility );
|
55 |
+
this.listenTo( this.model, 'change:sab_social_hover', this.socialIconHover );
|
56 |
+
this.listenTo( this.model, 'change:sab_box_long_shadow', this.socialIconShadow );
|
57 |
+
this.listenTo( this.model, 'change:sab_box_thin_border', this.socialIconBorder );
|
58 |
+
|
59 |
+
// Avatar
|
60 |
+
this.listenTo( this.model, 'change:sab_avatar_style', this.avatarStyle );
|
61 |
+
this.listenTo( this.model, 'change:sab_avatar_hover', this.avatarHover );
|
62 |
+
|
63 |
+
// Padding
|
64 |
+
this.listenTo( this.model, 'change:sab_box_padding_top_bottom', this.adjustPadding );
|
65 |
+
this.listenTo( this.model, 'change:sab_box_padding_left_right', this.adjustPadding );
|
66 |
+
|
67 |
+
// Author Box Border
|
68 |
+
this.listenTo( this.model, 'change:sab_box_border_width', this.adjustBorder );
|
69 |
+
this.listenTo( this.model, 'change:sab_box_border', this.adjustBorder );
|
70 |
+
|
71 |
+
// Adjust Author name settings
|
72 |
+
this.listenTo( this.model, 'change:sab_box_name_size', this.adjustAuthorName );
|
73 |
+
this.listenTo( this.model, 'change:sab_box_name_font', this.adjustAuthorName );
|
74 |
+
this.listenTo( this.model, 'change:sab_box_author_color', this.adjustAuthorName );
|
75 |
+
|
76 |
+
// Adjust Author website settings
|
77 |
+
this.listenTo( this.model, 'change:sab_box_web_font', this.adjustAuthorWebsite );
|
78 |
+
this.listenTo( this.model, 'change:sab_box_web_size', this.adjustAuthorWebsite );
|
79 |
+
this.listenTo( this.model, 'change:sab_box_web_color', this.adjustAuthorWebsite );
|
80 |
+
|
81 |
+
// Adjust Author description settings
|
82 |
+
this.listenTo( this.model, 'change:sab_box_desc_font', this.adjustAuthorDescription );
|
83 |
+
this.listenTo( this.model, 'change:sab_box_desc_size', this.adjustAuthorDescription );
|
84 |
+
this.listenTo( this.model, 'change:sab_box_author_p_color', this.adjustAuthorDescription );
|
85 |
+
this.listenTo( this.model, 'change:sab_box_author_a_color', this.adjustAuthorDescription );
|
86 |
+
this.listenTo( this.model, 'change:sab_desc_style', this.adjustAuthorDescription );
|
87 |
+
|
88 |
+
// Icon Size
|
89 |
+
this.listenTo( this.model, 'change:sab_box_icon_size', this.adjustIconSize );
|
90 |
+
|
91 |
+
// Social Bar Background Color
|
92 |
+
this.listenTo( this.model, 'change:sab_box_icons_back', this.changeSocialBarBackground );
|
93 |
+
|
94 |
+
// Author Box Background Color
|
95 |
+
this.listenTo( this.model, 'change:sab_box_author_back', this.changeAuthorBoxBackground );
|
96 |
+
|
97 |
+
// Author Box Background Color
|
98 |
+
this.listenTo( this.model, 'change:sab_box_icons_color', this.changeSocialIconsColor );
|
99 |
+
|
100 |
+
},
|
101 |
+
|
102 |
+
emailVisibility: function() {
|
103 |
+
var showEmail = wp.SAB.Settings.get( 'sab_email' );
|
104 |
+
|
105 |
+
if ( '1' == showEmail ) {
|
106 |
+
jQuery('.sab-user_email').parent().show();
|
107 |
+
}else{
|
108 |
+
jQuery('.sab-user_email').parent().hide();
|
109 |
+
}
|
110 |
+
},
|
111 |
+
|
112 |
+
socialsVisibility: function(){
|
113 |
+
var hideSocials = wp.SAB.Settings.get( 'sab_hide_socials' );
|
114 |
+
|
115 |
+
if ( '1' == hideSocials ) {
|
116 |
+
jQuery('.saboxplugin-socials').hide();
|
117 |
+
}else{
|
118 |
+
jQuery('.saboxplugin-socials').show();
|
119 |
+
}
|
120 |
+
},
|
121 |
+
|
122 |
+
websiteVisibility: function(){
|
123 |
+
var showWesite = wp.SAB.Settings.get( 'sab_web' );
|
124 |
+
|
125 |
+
if ( '1' == showWesite ) {
|
126 |
+
jQuery('.saboxplugin-web').show();
|
127 |
+
}else{
|
128 |
+
jQuery('.saboxplugin-web').hide();
|
129 |
+
}
|
130 |
+
},
|
131 |
+
|
132 |
+
websitePosition: function() {
|
133 |
+
var attribute = wp.SAB.Settings.get( 'sab_web_position' );
|
134 |
+
|
135 |
+
if ( '1' == attribute ) {
|
136 |
+
jQuery('.saboxplugin-web').addClass( 'sab-web-position' );
|
137 |
+
}else{
|
138 |
+
jQuery('.saboxplugin-web').removeClass( 'sab-web-position' );
|
139 |
+
}
|
140 |
+
},
|
141 |
+
|
142 |
+
socialIconTypeVisibility: function() {
|
143 |
+
var iconType = wp.SAB.Settings.getAttribute( 'sab_colored' ),
|
144 |
+
iconStyle = wp.SAB.Settings.getAttribute( 'sab_icons_style' );
|
145 |
+
|
146 |
+
jQuery('.saboxplugin-socials').removeClass( 'sab-show-simple sab-show-circle sab-show-square' );
|
147 |
+
if ( '1' == iconType ) {
|
148 |
+
if ( '1' == iconStyle ) {
|
149 |
+
jQuery('.saboxplugin-socials').addClass( 'sab-show-circle' );
|
150 |
+
}else{
|
151 |
+
jQuery('.saboxplugin-socials').addClass( 'sab-show-square' );
|
152 |
+
}
|
153 |
+
}else{
|
154 |
+
jQuery('.saboxplugin-socials').addClass( 'sab-show-simple' );
|
155 |
+
}
|
156 |
+
|
157 |
+
},
|
158 |
+
|
159 |
+
socialIconHover: function() {
|
160 |
+
var attribute = wp.SAB.Settings.get( 'sab_social_hover' );
|
161 |
+
|
162 |
+
if ( '1' == attribute ) {
|
163 |
+
jQuery('.saboxplugin-socials').addClass( 'sab-rotate-icons' );
|
164 |
+
}else{
|
165 |
+
jQuery('.saboxplugin-socials').removeClass( 'sab-rotate-icons' );
|
166 |
+
}
|
167 |
+
},
|
168 |
+
|
169 |
+
socialIconShadow: function() {
|
170 |
+
var attribute = wp.SAB.Settings.get( 'sab_box_long_shadow' );
|
171 |
+
|
172 |
+
if ( '1' == attribute ) {
|
173 |
+
jQuery('.saboxplugin-socials').removeClass( 'without-long-shadow' );
|
174 |
+
}else{
|
175 |
+
jQuery('.saboxplugin-socials').addClass( 'without-long-shadow' );
|
176 |
+
}
|
177 |
+
},
|
178 |
+
|
179 |
+
socialIconBorder: function() {
|
180 |
+
var attribute = wp.SAB.Settings.get( 'sab_box_thin_border' );
|
181 |
+
|
182 |
+
if ( '1' == attribute ) {
|
183 |
+
jQuery('.saboxplugin-socials').addClass( 'sab-icons-with-border' );
|
184 |
+
}else{
|
185 |
+
jQuery('.saboxplugin-socials').removeClass( 'sab-icons-with-border' );
|
186 |
+
}
|
187 |
+
},
|
188 |
+
|
189 |
+
avatarStyle: function() {
|
190 |
+
var attribute = wp.SAB.Settings.get( 'sab_avatar_style' );
|
191 |
+
|
192 |
+
if ( '1' == attribute ) {
|
193 |
+
jQuery('.saboxplugin-gravatar').addClass( 'sab-round-image' );
|
194 |
+
}else{
|
195 |
+
jQuery('.saboxplugin-gravatar').removeClass( 'sab-round-image' );
|
196 |
+
}
|
197 |
+
},
|
198 |
+
|
199 |
+
avatarHover: function() {
|
200 |
+
var attribute = wp.SAB.Settings.get( 'sab_avatar_hover' );
|
201 |
+
|
202 |
+
if ( '1' == attribute ) {
|
203 |
+
jQuery('.saboxplugin-gravatar').addClass( 'sab-rotate-img' );
|
204 |
+
}else{
|
205 |
+
jQuery('.saboxplugin-gravatar').removeClass( 'sab-rotate-img' );
|
206 |
+
}
|
207 |
+
},
|
208 |
+
|
209 |
+
adjustPadding: function() {
|
210 |
+
var paddingTopBottom = wp.SAB.Settings.getAttribute( 'sab_box_padding_top_bottom' ),
|
211 |
+
paddingLeftRight = wp.SAB.Settings.getAttribute( 'sab_box_padding_left_right' );
|
212 |
+
|
213 |
+
jQuery( '.saboxplugin-wrap' ).css({ 'padding' : paddingTopBottom + ' ' + paddingLeftRight });
|
214 |
+
|
215 |
+
},
|
216 |
+
|
217 |
+
adjustBorder: function() {
|
218 |
+
var border = wp.SAB.Settings.getAttribute( 'sab_box_border_width' ),
|
219 |
+
borderColor = wp.SAB.Settings.getAttribute( 'sab_box_border' );
|
220 |
+
|
221 |
+
if ( '' == borderColor ) {
|
222 |
+
borderColor = 'inherit';
|
223 |
+
}
|
224 |
+
|
225 |
+
jQuery( '.saboxplugin-wrap' ).css({ 'border-width' : border, 'border-color' : borderColor });
|
226 |
+
jQuery( '.saboxplugin-wrap .saboxplugin-socials' ).css({ 'border-width' : border, 'border-color' : borderColor });
|
227 |
+
},
|
228 |
+
|
229 |
+
adjustAuthorName: function() {
|
230 |
+
var font = wp.SAB.Settings.getAttribute( 'sab_box_name_font' ),
|
231 |
+
size = wp.SAB.Settings.getAttribute( 'sab_box_name_size' ),
|
232 |
+
color = wp.SAB.Settings.getAttribute( 'sab_box_author_color' ),
|
233 |
+
lineHeight = parseInt( size ) + 7;
|
234 |
+
|
235 |
+
if ( '' == color ) {
|
236 |
+
color = 'inherit';
|
237 |
+
}
|
238 |
+
|
239 |
+
if ( '' == font || 'None' == font ) {
|
240 |
+
font = 'inherit';
|
241 |
+
}else{
|
242 |
+
this.loadGoogleFonts( font );
|
243 |
+
}
|
244 |
+
|
245 |
+
|
246 |
+
jQuery( '.saboxplugin-wrap .saboxplugin-authorname a' ).css({ 'font-family' : font, 'color' : color, 'font-size': size, 'line-height' : lineHeight.toString() + 'px' });
|
247 |
+
},
|
248 |
+
|
249 |
+
adjustAuthorWebsite: function() {
|
250 |
+
var font = wp.SAB.Settings.getAttribute( 'sab_box_web_font' ),
|
251 |
+
size = wp.SAB.Settings.getAttribute( 'sab_box_web_size' ),
|
252 |
+
color = wp.SAB.Settings.getAttribute( 'sab_box_web_color' ),
|
253 |
+
lineHeight = parseInt( size ) + 7;
|
254 |
+
|
255 |
+
if ( '' == color ) {
|
256 |
+
color = 'inherit';
|
257 |
+
}
|
258 |
+
|
259 |
+
if ( '' == font || 'None' == font ) {
|
260 |
+
font = 'inherit';
|
261 |
+
}else{
|
262 |
+
this.loadGoogleFonts( font );
|
263 |
+
}
|
264 |
+
|
265 |
+
|
266 |
+
jQuery( '.saboxplugin-wrap .saboxplugin-web a' ).css({ 'font-family' : font, 'color' : color, 'font-size': size, 'line-height' : lineHeight.toString() + 'px' });
|
267 |
+
},
|
268 |
+
|
269 |
+
adjustAuthorDescription: function() {
|
270 |
+
var font = wp.SAB.Settings.getAttribute( 'sab_box_desc_font' ),
|
271 |
+
size = wp.SAB.Settings.getAttribute( 'sab_box_desc_size' ),
|
272 |
+
color = wp.SAB.Settings.getAttribute( 'sab_box_author_p_color' ),
|
273 |
+
link_color = wp.SAB.Settings.getAttribute( 'sab_box_author_a_color' ),
|
274 |
+
style = wp.SAB.Settings.getAttribute( 'sab_desc_style' ),
|
275 |
+
lineHeight = parseInt( size ) + 7;
|
276 |
+
|
277 |
+
if ( '' == color ) {
|
278 |
+
color = 'inherit';
|
279 |
+
}
|
280 |
+
|
281 |
+
if ( '' == link_color ) {
|
282 |
+
link_color = 'inherit';
|
283 |
+
}
|
284 |
+
|
285 |
+
if ( '' == font || 'None' == font ) {
|
286 |
+
font = 'inherit';
|
287 |
+
}else{
|
288 |
+
this.loadGoogleFonts( font );
|
289 |
+
}
|
290 |
+
|
291 |
+
if ( '0' == style ) {
|
292 |
+
style = 'normal';
|
293 |
+
}else{
|
294 |
+
style = 'italic';
|
295 |
+
}
|
296 |
+
|
297 |
+
|
298 |
+
jQuery( '.saboxplugin-wrap .saboxplugin-desc p, .saboxplugin-wrap .saboxplugin-desc' ).css({ 'font-family' : font, 'color' : color, 'font-size': size, 'line-height' : lineHeight.toString() + 'px', 'font-style' : style });
|
299 |
+
jQuery( '.saboxplugin-wrap .saboxplugin-desc a' ).css({ 'font-family' : font, 'color' : link_color, 'font-size': size, 'line-height' : lineHeight.toString() + 'px', 'font-style' : style });
|
300 |
+
},
|
301 |
+
|
302 |
+
adjustIconSize: function() {
|
303 |
+
var size = this.model.get( 'sab_box_icon_size' ),
|
304 |
+
size2x = parseInt( size ) * 2;
|
305 |
+
|
306 |
+
jQuery( '.saboxplugin-wrap .saboxplugin-socials a.saboxplugin-icon-grey svg' ).css({ 'width' : size, 'height' : size });
|
307 |
+
jQuery( '.saboxplugin-wrap .saboxplugin-socials a.saboxplugin-icon-color svg' ).css({ 'width' : size2x.toString() + 'px', 'height' : size2x.toString() + 'px' });
|
308 |
+
},
|
309 |
+
|
310 |
+
changeSocialBarBackground: function() {
|
311 |
+
var color = this.model.get( 'sab_box_icons_back' );
|
312 |
+
|
313 |
+
if ( '' == color ) {
|
314 |
+
color = 'inherit';
|
315 |
+
}
|
316 |
+
|
317 |
+
jQuery( '.saboxplugin-wrap .saboxplugin-socials' ).css({ 'background-color' : color });
|
318 |
+
|
319 |
+
},
|
320 |
+
|
321 |
+
changeAuthorBoxBackground: function() {
|
322 |
+
var color = this.model.get( 'sab_box_author_back' );
|
323 |
+
|
324 |
+
if ( '' == color ) {
|
325 |
+
color = 'inherit';
|
326 |
+
}
|
327 |
+
|
328 |
+
jQuery( '.saboxplugin-wrap' ).css({ 'background-color' : color });
|
329 |
+
|
330 |
+
},
|
331 |
+
|
332 |
+
changeSocialIconsColor: function() {
|
333 |
+
var color = this.model.get( 'sab_box_icons_color' );
|
334 |
+
|
335 |
+
if ( '' == color ) {
|
336 |
+
color = 'inherit';
|
337 |
+
}
|
338 |
+
|
339 |
+
jQuery( '.saboxplugin-wrap .saboxplugin-socials a.saboxplugin-icon-grey svg' ).css({ 'color' : color });
|
340 |
+
|
341 |
+
},
|
342 |
+
|
343 |
+
updateModel: function( event ) {
|
344 |
+
var value, setting;
|
345 |
+
|
346 |
+
|
347 |
+
// Check if the target has a data-field. If not, it's not a model value we want to store
|
348 |
+
if ( undefined === event.target.id ) {
|
349 |
+
return;
|
350 |
+
}
|
351 |
+
|
352 |
+
// Update the model's value, depending on the input type
|
353 |
+
if ( event.target.type == 'checkbox' ) {
|
354 |
+
value = ( event.target.checked ? '1' : '0' );
|
355 |
+
} else {
|
356 |
+
value = event.target.value;
|
357 |
+
}
|
358 |
+
|
359 |
+
// Update the model
|
360 |
+
this.model.set( event.target.id, value );
|
361 |
+
|
362 |
+
},
|
363 |
+
|
364 |
+
checkGoogleFonts: function() {
|
365 |
+
var authorFont = this.model.getAttribute( 'sab_box_name_font' ),
|
366 |
+
webFont = this.model.getAttribute( 'sab_box_web_font' ),
|
367 |
+
descriptionFont = this.model.getAttribute( 'sab_box_desc_font' );
|
368 |
+
|
369 |
+
if ( '' != authorFont && 'None' != authorFont ) {
|
370 |
+
this.loadGoogleFonts( authorFont );
|
371 |
+
}
|
372 |
+
|
373 |
+
if ( '' != webFont && 'None' != webFont ) {
|
374 |
+
this.loadGoogleFonts( webFont );
|
375 |
+
}
|
376 |
+
|
377 |
+
if ( '' != descriptionFont && 'None' != descriptionFont ) {
|
378 |
+
this.loadGoogleFonts( descriptionFont );
|
379 |
+
}
|
380 |
+
|
381 |
+
},
|
382 |
+
|
383 |
+
loadGoogleFonts: function( font ) {
|
384 |
+
if ( ! wp.SAB.Fonts.includes( font ) ) {
|
385 |
+
wp.SAB.Fonts.push( font );
|
386 |
+
WebFont.load({
|
387 |
+
google: {
|
388 |
+
families: [ font ]
|
389 |
+
}
|
390 |
+
});
|
391 |
+
}
|
392 |
+
},
|
393 |
+
|
394 |
+
});
|
395 |
+
|
396 |
+
jQuery( document ).ready(function(){
|
397 |
+
|
398 |
+
wp.SAB.Fonts = [];
|
399 |
+
wp.SAB.Settings = new wp.SAB.models.Settings();
|
400 |
+
|
401 |
});
|
assets/js/sabox-admin.js
CHANGED
@@ -1,134 +1,134 @@
|
|
1 |
-
( function( $ ) {
|
2 |
-
|
3 |
-
'use strict';
|
4 |
-
var context = $( '#sabox-container' );
|
5 |
-
context.find( '.saboxfield' ).on( 'change', function() {
|
6 |
-
var value = getElementValue( $( this ) );
|
7 |
-
var elements = context.find( '.show_if_' + $( this ).attr( 'id' ) );
|
8 |
-
|
9 |
-
if ( value && '0' != value ) {
|
10 |
-
elements.show( 300 );
|
11 |
-
} else {
|
12 |
-
elements.hide( 250 );
|
13 |
-
}
|
14 |
-
});
|
15 |
-
|
16 |
-
function getElementValue( $element ) {
|
17 |
-
var type = $element.attr( 'type' );
|
18 |
-
var name = $element.attr( 'name' );
|
19 |
-
|
20 |
-
if ( 'checkbox' === type ) {
|
21 |
-
if ( $element.is( ':checked' ) ) {
|
22 |
-
return 1;
|
23 |
-
} else {
|
24 |
-
return 0;
|
25 |
-
}
|
26 |
-
} else {
|
27 |
-
return $element.val();
|
28 |
-
}
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Handle UI tab switching via jQuery instead of relying on CSS only
|
33 |
-
*/
|
34 |
-
function adminTabSwitching() {
|
35 |
-
|
36 |
-
var navTabSelector = '.nav-tab-wrapper .epfw-tab:not( .epfw-tab-link )',
|
37 |
-
initialTabHref,
|
38 |
-
initialTabID,
|
39 |
-
url;
|
40 |
-
|
41 |
-
// Get the current tab
|
42 |
-
if ( '' !== window.location.hash && $( window.location.hash + '-tab.epfw-turn-into-tab' ).length > 0 ) {
|
43 |
-
initialTabHref = window.location.hash;
|
44 |
-
} else {
|
45 |
-
initialTabHref = $( navTabSelector + ':first' ).attr( 'href' );
|
46 |
-
}
|
47 |
-
|
48 |
-
initialTabID = initialTabHref + '-tab';
|
49 |
-
|
50 |
-
/**
|
51 |
-
* Default tab handling
|
52 |
-
*/
|
53 |
-
|
54 |
-
// Make the first tab active by default
|
55 |
-
$( navTabSelector + '[href="' + initialTabHref + '"]' ).addClass( 'nav-tab-active' );
|
56 |
-
|
57 |
-
// Make all the tabs, except the first one hidden
|
58 |
-
$( '.epfw-turn-into-tab' ).each( function( index, value ) {
|
59 |
-
if ( '#' + $( this ).attr( 'id' ) !== initialTabID ) {
|
60 |
-
$( this ).hide();
|
61 |
-
}
|
62 |
-
});
|
63 |
-
|
64 |
-
/**
|
65 |
-
* Listen for click events on nav-tab links
|
66 |
-
*/
|
67 |
-
$( navTabSelector ).click( function( event ) {
|
68 |
-
|
69 |
-
var clickedTab = $( this ).attr( 'href' ) + '-tab';
|
70 |
-
$( navTabSelector ).removeClass( 'nav-tab-active' ); // Remove class from previous selector
|
71 |
-
$( this ).addClass( 'nav-tab-active' ).blur(); // Add class to currently clicked selector
|
72 |
-
|
73 |
-
$( '.epfw-turn-into-tab' ).each( function( index, value ) {
|
74 |
-
if ( '#' + $( this ).attr( 'id' ) !== clickedTab ) {
|
75 |
-
$( this ).hide();
|
76 |
-
}
|
77 |
-
|
78 |
-
$( clickedTab ).fadeIn();
|
79 |
-
|
80 |
-
});
|
81 |
-
|
82 |
-
});
|
83 |
-
}
|
84 |
-
|
85 |
-
$( document ).ready( function() {
|
86 |
-
var elements = context.find( '.saboxfield' ),
|
87 |
-
sliders = context.find( '.sabox-slider' ),
|
88 |
-
colorpickers = context.find( '.sabox-color' );
|
89 |
-
|
90 |
-
elements.each( function( $index, $element ) {
|
91 |
-
var element = $( $element ),
|
92 |
-
value = getElementValue( element ),
|
93 |
-
elements = context.find( '.show_if_' + element.attr( 'id' ) );
|
94 |
-
if ( value && '0' !== value ) {
|
95 |
-
elements.removeClass( 'hide' );
|
96 |
-
} else {
|
97 |
-
elements.addClass( 'hide' );
|
98 |
-
}
|
99 |
-
});
|
100 |
-
if ( sliders.length > 0 ) {
|
101 |
-
sliders.each( function( $index, $slider ) {
|
102 |
-
var input = $( $slider ).parent().find( '.saboxfield' ),
|
103 |
-
max = input.data( 'max' ),
|
104 |
-
min = input.data( 'min' ),
|
105 |
-
step = input.data( 'step' ),
|
106 |
-
value = parseInt( input.val(), 10 );
|
107 |
-
|
108 |
-
$( $slider ).slider({
|
109 |
-
value: value,
|
110 |
-
min: min,
|
111 |
-
max: max,
|
112 |
-
step: step,
|
113 |
-
slide: function( event, ui ) {
|
114 |
-
input.val( ui.value + 'px' ).trigger( 'change' );
|
115 |
-
}
|
116 |
-
});
|
117 |
-
});
|
118 |
-
}
|
119 |
-
if ( colorpickers.length > 0 ) {
|
120 |
-
colorpickers.each( function( $index, $colorpicker ) {
|
121 |
-
$( $colorpicker ).wpColorPicker({
|
122 |
-
change : function( event, ui ){
|
123 |
-
jQuery( event.target ).val( ui.color.toString() ).trigger( 'change' );
|
124 |
-
}
|
125 |
-
});
|
126 |
-
});
|
127 |
-
}
|
128 |
-
|
129 |
-
adminTabSwitching();
|
130 |
-
|
131 |
-
});
|
132 |
-
|
133 |
-
})( jQuery );
|
134 |
-
|
1 |
+
( function( $ ) {
|
2 |
+
|
3 |
+
'use strict';
|
4 |
+
var context = $( '#sabox-container' );
|
5 |
+
context.find( '.saboxfield' ).on( 'change', function() {
|
6 |
+
var value = getElementValue( $( this ) );
|
7 |
+
var elements = context.find( '.show_if_' + $( this ).attr( 'id' ) );
|
8 |
+
|
9 |
+
if ( value && '0' != value ) {
|
10 |
+
elements.show( 300 );
|
11 |
+
} else {
|
12 |
+
elements.hide( 250 );
|
13 |
+
}
|
14 |
+
});
|
15 |
+
|
16 |
+
function getElementValue( $element ) {
|
17 |
+
var type = $element.attr( 'type' );
|
18 |
+
var name = $element.attr( 'name' );
|
19 |
+
|
20 |
+
if ( 'checkbox' === type ) {
|
21 |
+
if ( $element.is( ':checked' ) ) {
|
22 |
+
return 1;
|
23 |
+
} else {
|
24 |
+
return 0;
|
25 |
+
}
|
26 |
+
} else {
|
27 |
+
return $element.val();
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Handle UI tab switching via jQuery instead of relying on CSS only
|
33 |
+
*/
|
34 |
+
function adminTabSwitching() {
|
35 |
+
|
36 |
+
var navTabSelector = '.nav-tab-wrapper .epfw-tab:not( .epfw-tab-link )',
|
37 |
+
initialTabHref,
|
38 |
+
initialTabID,
|
39 |
+
url;
|
40 |
+
|
41 |
+
// Get the current tab
|
42 |
+
if ( '' !== window.location.hash && $( window.location.hash + '-tab.epfw-turn-into-tab' ).length > 0 ) {
|
43 |
+
initialTabHref = window.location.hash;
|
44 |
+
} else {
|
45 |
+
initialTabHref = $( navTabSelector + ':first' ).attr( 'href' );
|
46 |
+
}
|
47 |
+
|
48 |
+
initialTabID = initialTabHref + '-tab';
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Default tab handling
|
52 |
+
*/
|
53 |
+
|
54 |
+
// Make the first tab active by default
|
55 |
+
$( navTabSelector + '[href="' + initialTabHref + '"]' ).addClass( 'nav-tab-active' );
|
56 |
+
|
57 |
+
// Make all the tabs, except the first one hidden
|
58 |
+
$( '.epfw-turn-into-tab' ).each( function( index, value ) {
|
59 |
+
if ( '#' + $( this ).attr( 'id' ) !== initialTabID ) {
|
60 |
+
$( this ).hide();
|
61 |
+
}
|
62 |
+
});
|
63 |
+
|
64 |
+
/**
|
65 |
+
* Listen for click events on nav-tab links
|
66 |
+
*/
|
67 |
+
$( navTabSelector ).click( function( event ) {
|
68 |
+
|
69 |
+
var clickedTab = $( this ).attr( 'href' ) + '-tab';
|
70 |
+
$( navTabSelector ).removeClass( 'nav-tab-active' ); // Remove class from previous selector
|
71 |
+
$( this ).addClass( 'nav-tab-active' ).blur(); // Add class to currently clicked selector
|
72 |
+
|
73 |
+
$( '.epfw-turn-into-tab' ).each( function( index, value ) {
|
74 |
+
if ( '#' + $( this ).attr( 'id' ) !== clickedTab ) {
|
75 |
+
$( this ).hide();
|
76 |
+
}
|
77 |
+
|
78 |
+
$( clickedTab ).fadeIn();
|
79 |
+
|
80 |
+
});
|
81 |
+
|
82 |
+
});
|
83 |
+
}
|
84 |
+
|
85 |
+
$( document ).ready( function() {
|
86 |
+
var elements = context.find( '.saboxfield' ),
|
87 |
+
sliders = context.find( '.sabox-slider' ),
|
88 |
+
colorpickers = context.find( '.sabox-color' );
|
89 |
+
|
90 |
+
elements.each( function( $index, $element ) {
|
91 |
+
var element = $( $element ),
|
92 |
+
value = getElementValue( element ),
|
93 |
+
elements = context.find( '.show_if_' + element.attr( 'id' ) );
|
94 |
+
if ( value && '0' !== value ) {
|
95 |
+
elements.removeClass( 'hide' );
|
96 |
+
} else {
|
97 |
+
elements.addClass( 'hide' );
|
98 |
+
}
|
99 |
+
});
|
100 |
+
if ( sliders.length > 0 ) {
|
101 |
+
sliders.each( function( $index, $slider ) {
|
102 |
+
var input = $( $slider ).parent().find( '.saboxfield' ),
|
103 |
+
max = input.data( 'max' ),
|
104 |
+
min = input.data( 'min' ),
|
105 |
+
step = input.data( 'step' ),
|
106 |
+
value = parseInt( input.val(), 10 );
|
107 |
+
|
108 |
+
$( $slider ).slider({
|
109 |
+
value: value,
|
110 |
+
min: min,
|
111 |
+
max: max,
|
112 |
+
step: step,
|
113 |
+
slide: function( event, ui ) {
|
114 |
+
input.val( ui.value + 'px' ).trigger( 'change' );
|
115 |
+
}
|
116 |
+
});
|
117 |
+
});
|
118 |
+
}
|
119 |
+
if ( colorpickers.length > 0 ) {
|
120 |
+
colorpickers.each( function( $index, $colorpicker ) {
|
121 |
+
$( $colorpicker ).wpColorPicker({
|
122 |
+
change : function( event, ui ){
|
123 |
+
jQuery( event.target ).val( ui.color.toString() ).trigger( 'change' );
|
124 |
+
}
|
125 |
+
});
|
126 |
+
});
|
127 |
+
}
|
128 |
+
|
129 |
+
adminTabSwitching();
|
130 |
+
|
131 |
+
});
|
132 |
+
|
133 |
+
})( jQuery );
|
134 |
+
|
assets/js/sabox-editor.js
CHANGED
@@ -1,105 +1,105 @@
|
|
1 |
-
(function( $ ) {
|
2 |
-
|
3 |
-
'use strict';
|
4 |
-
var SABox = {};
|
5 |
-
|
6 |
-
var mediaControl = {
|
7 |
-
|
8 |
-
// Initializes a new media manager or returns an existing frame.
|
9 |
-
// @see wp.media.featuredImage.frame()
|
10 |
-
selector: null,
|
11 |
-
size: null,
|
12 |
-
container: null,
|
13 |
-
frame: function() {
|
14 |
-
if ( this._frame ) {
|
15 |
-
return this._frame;
|
16 |
-
|
17 |
-
}
|
18 |
-
|
19 |
-
this._frame = wp.media( {
|
20 |
-
title: 'Media',
|
21 |
-
button: {
|
22 |
-
text: 'Update'
|
23 |
-
},
|
24 |
-
multiple: false
|
25 |
-
} );
|
26 |
-
|
27 |
-
this._frame.on( 'open', this.updateFrame ).state( 'library' ).on( 'select', this.select );
|
28 |
-
|
29 |
-
return this._frame;
|
30 |
-
|
31 |
-
},
|
32 |
-
|
33 |
-
select: function() {
|
34 |
-
var context = $( '#sabox-custom-profile-image' ),
|
35 |
-
input = context.find( '#sabox-custom-image' ),
|
36 |
-
image = context.find( 'img' ),
|
37 |
-
attachment = mediaControl.frame().state().get( 'selection' ).first().toJSON();
|
38 |
-
|
39 |
-
image.attr( 'src', attachment.url );
|
40 |
-
input.val( attachment.url );
|
41 |
-
|
42 |
-
},
|
43 |
-
|
44 |
-
init: function() {
|
45 |
-
var context = $( '#sabox-custom-profile-image' );
|
46 |
-
context.on( 'click', '#sabox-add-image', function( e ) {
|
47 |
-
e.preventDefault();
|
48 |
-
mediaControl.frame().open();
|
49 |
-
} );
|
50 |
-
|
51 |
-
context.on( 'click', '#sabox-remove-image', function( e ) {
|
52 |
-
var context = $( '#sabox-custom-profile-image' ),
|
53 |
-
input = context.find( '#sabox-custom-image' ),
|
54 |
-
image = context.find( 'img' );
|
55 |
-
|
56 |
-
e.preventDefault();
|
57 |
-
|
58 |
-
input.val( '' );
|
59 |
-
image.attr( 'src', image.data( 'default' ) );
|
60 |
-
} );
|
61 |
-
|
62 |
-
}
|
63 |
-
|
64 |
-
};
|
65 |
-
|
66 |
-
$( document ).ready( function() {
|
67 |
-
if ( $( '#description' ).length > 0 ) {
|
68 |
-
wp.editor.initialize( 'description', {
|
69 |
-
tinymce: {
|
70 |
-
wpautop: true
|
71 |
-
},
|
72 |
-
quicktags: true
|
73 |
-
} );
|
74 |
-
}
|
75 |
-
|
76 |
-
// Add Social Links
|
77 |
-
$( '.sabox-add-social-link a' ).click( function( e ) {
|
78 |
-
|
79 |
-
e.preventDefault();
|
80 |
-
|
81 |
-
if ( undefined === SABox.html ) {
|
82 |
-
SABox.html = '<tr> <th><span class="sabox-drag"></span><select name="sabox-social-icons[]">';
|
83 |
-
$.each( SABHerlper.socialIcons, function( key, name ) {
|
84 |
-
SABox.html = SABox.html + '<option value="' + key + '">' + name + '</option>';
|
85 |
-
} );
|
86 |
-
SABox.html = SABox.html + '</select></th><td><input name="sabox-social-links[]" type="text" class="regular-text"><span class="dashicons dashicons-trash"></span><td></tr>';
|
87 |
-
}
|
88 |
-
|
89 |
-
$( '#sabox-social-table' ).append( SABox.html );
|
90 |
-
|
91 |
-
} );
|
92 |
-
|
93 |
-
// Remove Social Link
|
94 |
-
$( '#sabox-social-table' ).on( 'click', '.dashicons-trash', function() {
|
95 |
-
var row = $( this ).parents( 'tr' );
|
96 |
-
row.fadeOut( 'slow', function() {
|
97 |
-
row.remove();
|
98 |
-
} );
|
99 |
-
} );
|
100 |
-
|
101 |
-
mediaControl.init();
|
102 |
-
|
103 |
-
} );
|
104 |
-
|
105 |
-
})( jQuery );
|
1 |
+
(function( $ ) {
|
2 |
+
|
3 |
+
'use strict';
|
4 |
+
var SABox = {};
|
5 |
+
|
6 |
+
var mediaControl = {
|
7 |
+
|
8 |
+
// Initializes a new media manager or returns an existing frame.
|
9 |
+
// @see wp.media.featuredImage.frame()
|
10 |
+
selector: null,
|
11 |
+
size: null,
|
12 |
+
container: null,
|
13 |
+
frame: function() {
|
14 |
+
if ( this._frame ) {
|
15 |
+
return this._frame;
|
16 |
+
|
17 |
+
}
|
18 |
+
|
19 |
+
this._frame = wp.media( {
|
20 |
+
title: 'Media',
|
21 |
+
button: {
|
22 |
+
text: 'Update'
|
23 |
+
},
|
24 |
+
multiple: false
|
25 |
+
} );
|
26 |
+
|
27 |
+
this._frame.on( 'open', this.updateFrame ).state( 'library' ).on( 'select', this.select );
|
28 |
+
|
29 |
+
return this._frame;
|
30 |
+
|
31 |
+
},
|
32 |
+
|
33 |
+
select: function() {
|
34 |
+
var context = $( '#sabox-custom-profile-image' ),
|
35 |
+
input = context.find( '#sabox-custom-image' ),
|
36 |
+
image = context.find( 'img' ),
|
37 |
+
attachment = mediaControl.frame().state().get( 'selection' ).first().toJSON();
|
38 |
+
|
39 |
+
image.attr( 'src', attachment.url );
|
40 |
+
input.val( attachment.url );
|
41 |
+
|
42 |
+
},
|
43 |
+
|
44 |
+
init: function() {
|
45 |
+
var context = $( '#sabox-custom-profile-image' );
|
46 |
+
context.on( 'click', '#sabox-add-image', function( e ) {
|
47 |
+
e.preventDefault();
|
48 |
+
mediaControl.frame().open();
|
49 |
+
} );
|
50 |
+
|
51 |
+
context.on( 'click', '#sabox-remove-image', function( e ) {
|
52 |
+
var context = $( '#sabox-custom-profile-image' ),
|
53 |
+
input = context.find( '#sabox-custom-image' ),
|
54 |
+
image = context.find( 'img' );
|
55 |
+
|
56 |
+
e.preventDefault();
|
57 |
+
|
58 |
+
input.val( '' );
|
59 |
+
image.attr( 'src', image.data( 'default' ) );
|
60 |
+
} );
|
61 |
+
|
62 |
+
}
|
63 |
+
|
64 |
+
};
|
65 |
+
|
66 |
+
$( document ).ready( function() {
|
67 |
+
if ( $( '#description' ).length > 0 ) {
|
68 |
+
wp.editor.initialize( 'description', {
|
69 |
+
tinymce: {
|
70 |
+
wpautop: true
|
71 |
+
},
|
72 |
+
quicktags: true
|
73 |
+
} );
|
74 |
+
}
|
75 |
+
|
76 |
+
// Add Social Links
|
77 |
+
$( '.sabox-add-social-link a' ).click( function( e ) {
|
78 |
+
|
79 |
+
e.preventDefault();
|
80 |
+
|
81 |
+
if ( undefined === SABox.html ) {
|
82 |
+
SABox.html = '<tr> <th><span class="sabox-drag"></span><select name="sabox-social-icons[]">';
|
83 |
+
$.each( SABHerlper.socialIcons, function( key, name ) {
|
84 |
+
SABox.html = SABox.html + '<option value="' + key + '">' + name + '</option>';
|
85 |
+
} );
|
86 |
+
SABox.html = SABox.html + '</select></th><td><input name="sabox-social-links[]" type="text" class="regular-text"><span class="dashicons dashicons-trash"></span><td></tr>';
|
87 |
+
}
|
88 |
+
|
89 |
+
$( '#sabox-social-table' ).append( SABox.html );
|
90 |
+
|
91 |
+
} );
|
92 |
+
|
93 |
+
// Remove Social Link
|
94 |
+
$( '#sabox-social-table' ).on( 'click', '.dashicons-trash', function() {
|
95 |
+
var row = $( this ).parents( 'tr' );
|
96 |
+
row.fadeOut( 'slow', function() {
|
97 |
+
row.remove();
|
98 |
+
} );
|
99 |
+
} );
|
100 |
+
|
101 |
+
mediaControl.init();
|
102 |
+
|
103 |
+
} );
|
104 |
+
|
105 |
+
})( jQuery );
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Simple Author Box ===
|
2 |
Contributors: machothemes, silkalns
|
3 |
-
Tags: author box, responsive author box, author profile fields, author social icons, profile fields, author bio, author description, author profile,
|
4 |
Requires at least: 4.6
|
5 |
Requires PHP: 5.6
|
6 |
-
Stable tag: 2.2.
|
7 |
Tested up to: 5.0
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -12,6 +12,8 @@ Adds a cool responsive author box with social icons on your posts.
|
|
12 |
|
13 |
== Description ==
|
14 |
|
|
|
|
|
15 |
**Simple Author Box** adds a responsive author box at the end of your posts, showing the author name, author gravatar and author description. It also adds over 30 social profile fields on WordPress user profile screen, allowing to display the author social icons.
|
16 |
|
17 |
= Main Features =
|
@@ -120,7 +122,10 @@ Or you can give back by recommending this amazing plugin to your friends!
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
-
= 2.2.
|
|
|
|
|
|
|
124 |
* Fixed author box appearing on every page.
|
125 |
|
126 |
= 2.2.0 =
|
1 |
=== Simple Author Box ===
|
2 |
Contributors: machothemes, silkalns
|
3 |
+
Tags: author box, responsive author box, author profile fields, author social icons, profile fields, author bio, author description, author profile, post author, rtl author box, amp, accelerated mobile pages
|
4 |
Requires at least: 4.6
|
5 |
Requires PHP: 5.6
|
6 |
+
Stable tag: 2.2.2
|
7 |
Tested up to: 5.0
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
**Simple Author Box** is a standalone plugin built, maintained & operated by the friendly folks over at [MachoThemes](https://www.machothemes.com/)
|
16 |
+
|
17 |
**Simple Author Box** adds a responsive author box at the end of your posts, showing the author name, author gravatar and author description. It also adds over 30 social profile fields on WordPress user profile screen, allowing to display the author social icons.
|
18 |
|
19 |
= Main Features =
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 2.2.2 =
|
126 |
+
* Added schema.org tags.
|
127 |
+
|
128 |
+
= 2.2.1 =
|
129 |
* Fixed author box appearing on every page.
|
130 |
|
131 |
= 2.2.0 =
|
simple-author-box.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
* Plugin Name: Simple Author Box
|
4 |
* Plugin URI: http://wordpress.org/plugins/simple-author-box/
|
5 |
* Description: Adds a responsive author box with social icons on your posts.
|
6 |
-
* Version: 2.2.
|
7 |
-
* Author:
|
8 |
* Author URI: https://www.machothemes.com/
|
9 |
* License: GPLv3
|
10 |
*/
|
11 |
|
12 |
-
/* Copyright
|
13 |
|
14 |
THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
|
15 |
IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
|
@@ -30,7 +30,7 @@
|
|
30 |
define( 'SIMPLE_AUTHOR_BOX_PATH', plugin_dir_path( __FILE__ ) );
|
31 |
define( 'SIMPLE_AUTHOR_BOX_ASSETS', plugins_url( '/assets/', __FILE__ ) );
|
32 |
define( 'SIMPLE_AUTHOR_BOX_SLUG', plugin_basename( __FILE__ ) );
|
33 |
-
define( 'SIMPLE_AUTHOR_BOX_VERSION', '2.2.
|
34 |
define( 'SIMPLE_AUTHOR_SCRIPT_DEBUG', false );
|
35 |
|
36 |
require_once SIMPLE_AUTHOR_BOX_PATH . 'inc/class-simple-author-box.php';
|
3 |
* Plugin Name: Simple Author Box
|
4 |
* Plugin URI: http://wordpress.org/plugins/simple-author-box/
|
5 |
* Description: Adds a responsive author box with social icons on your posts.
|
6 |
+
* Version: 2.2.2
|
7 |
+
* Author: MachoThemes
|
8 |
* Author URI: https://www.machothemes.com/
|
9 |
* License: GPLv3
|
10 |
*/
|
11 |
|
12 |
+
/* Copyright 2019 Machothemes (email : office [at] machothemes [dot] com)
|
13 |
|
14 |
THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
|
15 |
IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
|
30 |
define( 'SIMPLE_AUTHOR_BOX_PATH', plugin_dir_path( __FILE__ ) );
|
31 |
define( 'SIMPLE_AUTHOR_BOX_ASSETS', plugins_url( '/assets/', __FILE__ ) );
|
32 |
define( 'SIMPLE_AUTHOR_BOX_SLUG', plugin_basename( __FILE__ ) );
|
33 |
+
define( 'SIMPLE_AUTHOR_BOX_VERSION', '2.2.2' );
|
34 |
define( 'SIMPLE_AUTHOR_SCRIPT_DEBUG', false );
|
35 |
|
36 |
require_once SIMPLE_AUTHOR_BOX_PATH . 'inc/class-simple-author-box.php';
|
template/template-sab.php
CHANGED
@@ -23,7 +23,7 @@ if ( '1' == $sabox_options['sab_web_rel'] ) {
|
|
23 |
$sab_web_rel = '';
|
24 |
}
|
25 |
|
26 |
-
$sab_author_link = sprintf( '<a href="%s" class="vcard author"><span class="fn">%s</span></a>', esc_url( get_author_posts_url( $sabox_author_id ) ), esc_html( get_the_author_meta( 'display_name', $sabox_author_id ) ) );
|
27 |
|
28 |
if ( get_the_author_meta( 'description' ) != '' || '0' == $sabox_options['sab_no_description'] ) { // hide the author box if no description is provided
|
29 |
|
@@ -31,7 +31,7 @@ if ( get_the_author_meta( 'description' ) != '' || '0' == $sabox_options['sab_no
|
|
31 |
|
32 |
if ( $show_guest_only != "on" ) {
|
33 |
|
34 |
-
echo '<div class="saboxplugin-wrap">'; // start saboxplugin-wrap div
|
35 |
|
36 |
// author box gravatar
|
37 |
echo '<div class="saboxplugin-gravatar">';
|
@@ -39,9 +39,9 @@ if ( get_the_author_meta( 'description' ) != '' || '0' == $sabox_options['sab_no
|
|
39 |
if ( '' != $custom_profile_image ) {
|
40 |
$mediaid = attachment_url_to_postid( $custom_profile_image );
|
41 |
$alt = $mediaid ? get_post_meta( $mediaid, '_wp_attachment_image_alt', true ) : '';
|
42 |
-
echo '<img src="' . esc_url( $custom_profile_image ) . '" alt="' . esc_attr( $alt ) . '">';
|
43 |
} else {
|
44 |
-
echo get_avatar( get_the_author_meta( 'user_email', $sabox_author_id ), '100' );
|
45 |
}
|
46 |
|
47 |
echo '</div>';
|
@@ -58,7 +58,7 @@ if ( get_the_author_meta( 'description' ) != '' || '0' == $sabox_options['sab_no
|
|
58 |
|
59 |
// author box description
|
60 |
echo '<div class="saboxplugin-desc">';
|
61 |
-
echo '<div>';
|
62 |
$description = get_the_author_meta( 'description', $sabox_author_id );
|
63 |
$description = wptexturize( $description );
|
64 |
$description = wpautop( $description );
|
23 |
$sab_web_rel = '';
|
24 |
}
|
25 |
|
26 |
+
$sab_author_link = sprintf( '<a href="%s" class="vcard author" rel="author" itemprop="url"><span class="fn" itemprop="name">%s</span></a>', esc_url( get_author_posts_url( $sabox_author_id ) ), esc_html( get_the_author_meta( 'display_name', $sabox_author_id ) ) );
|
27 |
|
28 |
if ( get_the_author_meta( 'description' ) != '' || '0' == $sabox_options['sab_no_description'] ) { // hide the author box if no description is provided
|
29 |
|
31 |
|
32 |
if ( $show_guest_only != "on" ) {
|
33 |
|
34 |
+
echo '<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author">'; // start saboxplugin-wrap div
|
35 |
|
36 |
// author box gravatar
|
37 |
echo '<div class="saboxplugin-gravatar">';
|
39 |
if ( '' != $custom_profile_image ) {
|
40 |
$mediaid = attachment_url_to_postid( $custom_profile_image );
|
41 |
$alt = $mediaid ? get_post_meta( $mediaid, '_wp_attachment_image_alt', true ) : '';
|
42 |
+
echo '<img src="' . esc_url( $custom_profile_image ) . '" alt="' . esc_attr( $alt ) . '" itemprop="image">';
|
43 |
} else {
|
44 |
+
echo get_avatar( get_the_author_meta( 'user_email', $sabox_author_id ), '100', '', '', array('extra_attr' => 'itemprop="image"') );
|
45 |
}
|
46 |
|
47 |
echo '</div>';
|
58 |
|
59 |
// author box description
|
60 |
echo '<div class="saboxplugin-desc">';
|
61 |
+
echo '<div itemprop="description">';
|
62 |
$description = get_the_author_meta( 'description', $sabox_author_id );
|
63 |
$description = wptexturize( $description );
|
64 |
$description = wpautop( $description );
|
uninstall.php
CHANGED
@@ -1,26 +1,26 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*----------------------------------------------------------------------------------------------------------
|
4 |
-
Uninstall Simple Author Box plugin - deletes plugin data in database
|
5 |
-
-----------------------------------------------------------------------------------------------------------*/
|
6 |
-
|
7 |
-
// Exit if accessed directly
|
8 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
-
exit;
|
10 |
-
}
|
11 |
-
|
12 |
-
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
13 |
-
exit();
|
14 |
-
}
|
15 |
-
|
16 |
-
delete_option( 'saboxplugin_options' );
|
17 |
-
delete_option( 'sab_box_margin_top' );
|
18 |
-
delete_option( 'sab_box_margin_bottom' );
|
19 |
-
delete_option( 'sab_box_icon_size' );
|
20 |
-
delete_option( 'sab_box_name_size' );
|
21 |
-
delete_option( 'sab_box_name_font' );
|
22 |
-
delete_option( 'sab_box_subset' );
|
23 |
-
delete_option( 'sab_box_desc_font' );
|
24 |
-
delete_option( 'sab_box_desc_size' );
|
25 |
-
delete_option( 'sab_box_desc_font' );
|
26 |
-
delete_option( 'sab_box_web_size' );
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*----------------------------------------------------------------------------------------------------------
|
4 |
+
Uninstall Simple Author Box plugin - deletes plugin data in database
|
5 |
+
-----------------------------------------------------------------------------------------------------------*/
|
6 |
+
|
7 |
+
// Exit if accessed directly
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit;
|
10 |
+
}
|
11 |
+
|
12 |
+
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
13 |
+
exit();
|
14 |
+
}
|
15 |
+
|
16 |
+
delete_option( 'saboxplugin_options' );
|
17 |
+
delete_option( 'sab_box_margin_top' );
|
18 |
+
delete_option( 'sab_box_margin_bottom' );
|
19 |
+
delete_option( 'sab_box_icon_size' );
|
20 |
+
delete_option( 'sab_box_name_size' );
|
21 |
+
delete_option( 'sab_box_name_font' );
|
22 |
+
delete_option( 'sab_box_subset' );
|
23 |
+
delete_option( 'sab_box_desc_font' );
|
24 |
+
delete_option( 'sab_box_desc_size' );
|
25 |
+
delete_option( 'sab_box_desc_font' );
|
26 |
+
delete_option( 'sab_box_web_size' );
|