Skip to content

Commit

Permalink
1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign committed Aug 9, 2015
1 parent 109fce5 commit 34bc6d1
Show file tree
Hide file tree
Showing 21 changed files with 851 additions and 669 deletions.
16 changes: 9 additions & 7 deletions assets/css/admin-addons.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,19 @@
* @package WebMan Amplifier
*
* @since 1.2.2
* @version 1.2.2
* @version 1.2.3
*/
.hide {
display: none !important;
}

.fixed [class*="column-wmamp-thumb"] {
width: 80px;
text-align: center;
}
.fixed .wm-image-container {
display: block;
display: inline-block;
position: relative;
width: 50px;
height: 50px;
padding: 2px;
margin: -3px auto 0;
margin: -3px 0 0;
line-height: 48px;
background: #fff;
border: 1px solid #d3d3d3;
Expand All @@ -45,6 +41,12 @@
vertical-align: middle;
}

@media screen and (min-width: 782px) {
.fixed [class*="column-wmamp-thumb"] {
width: 80px;
text-align: center;
}
}
.sticky-menu #adminmenuwrap {
z-index: 999;
}
58 changes: 24 additions & 34 deletions assets/css/metabox.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @subpackage Metabox
*
* @since 1.2.2
* @version 1.2.2
* @version 1.2.3
*/
.wm-meta-wrap {
direction: ltr;
Expand Down Expand Up @@ -449,57 +449,47 @@ body.wm-visual-composer-on .wm-meta-wrap .postarea + .form-table {
width: 80px;
}

.wm-meta-wrap .option.range-wrap input {
width: 60px;
margin-right: 10px;
text-align: center;
}
.wm-meta-wrap .fieldtype-range {
display: inline-block;
position: relative;
width: 196px;
padding: 0 1em;
vertical-align: middle;
}
.wm-meta-wrap .range-wrap .ui-slider {
display: block;
position: relative;
float: left;
width: 196px;
display: block;
width: 100%;
height: 2px;
margin: 10px 0;
text-align: left;
background: #eaecee;
border: 1px solid #caccce;
background: #fff;
border: 2px solid #bbb;
border-radius: 10px;
}
.wm-meta-wrap .range-wrap .ui-slider .ui-slider-handle {
.wm-meta-wrap .range-wrap .ui-slider-handle {
position: absolute;
z-index: 2;
width: 18px;
height: 10px;
min-width: 18px;
min-height: 10px;
top: 0;
margin: -5px 0 0 -10px;
background: #fafcfe;
background-image: linear-gradient(to bottom, #fafcfe, #f5f7f9);
border: 1px solid #babcbe;
padding: .19em .62em;
text-align: center;
font-size: .81em;
font-weight: 700;
background-color: #28b;
color: #fff;
border: 2px solid #069;
outline: 0;
border-radius: 10px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25);
border-radius: 100px;
cursor: e-resize;
}
.wm-meta-wrap .range-wrap .ui-slider .ui-slider-handle .ui-slider-handle:hover,
.wm-meta-wrap .range-wrap .ui-slider .ui-slider-handle .ui-slider-handle:active {
background-color: #2a7c9e;
background-image: linear-gradient(to bottom, #2a7c9e, #257799);
border-color: #2a7c9e;
border-bottom-color: #1a6c8e;
box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.5);
}
.wm-meta-wrap .range-wrap .ui-slider .ui-slider-range-min {
left: 0;
}
.wm-meta-wrap .range-wrap .ui-slider .ui-slider-range-max {
right: 0;
box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
-webkit-transform: translateX(-50%) translateY(-50%);
-ms-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
-webkit-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
transform-origin: 50% 50%;
}

.wm-meta-wrap .image-wrap input.fieldtype-image,
Expand Down
32 changes: 23 additions & 9 deletions assets/js/metabox.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @subpackage Metabox
*
* @since 1.0
* @version 1.2.2
* @version 1.2.3
*/


Expand Down Expand Up @@ -64,7 +64,9 @@ jQuery( function() {
} else if ( $this.hasClass( 'default-slider' ) && jQuery().slider ) {

jQuery( '#' + defaultInput + '-slider' )
.slider( 'option', 'value', defaultValue );
.slider( 'option', 'value', defaultValue )
.find( '.ui-slider-handle' )
.text( parseInt( defaultValue ) );

jQuery( '#' + defaultInput )
.attr( 'value', defaultValue );
Expand Down Expand Up @@ -400,20 +402,32 @@ jQuery( function() {
// Make the input field read-only

jQuery( sliderOptionId )
.attr( 'readonly', 'readonly' );
.attr( 'type', 'hidden' );

// Initialize jQuery UI Slider

jQuery( sliderOptionId + '-slider' )
.slider( {
value : sliderOptionVal,
min : sliderOptionMin,
max : sliderOptionMax,
step : sliderOptionStep,
slide : function( event, ui ) {
value : sliderOptionVal,
min : sliderOptionMin,
max : sliderOptionMax,
step : sliderOptionStep,
create : function( e, ui ) {

jQuery( this )
.find( '.ui-slider-handle' )
.text( parseInt( jQuery( sliderOptionId ).val() ) );

},
slide : function( e, ui ) {

jQuery( this )
.find( '.ui-slider-handle' )
.text( parseInt( ui.value ) );

jQuery( sliderOptionId )
.val( ui.value );
.val( parseInt( ui.value ) )
.change();

}
} );
Expand Down
24 changes: 16 additions & 8 deletions assets/sass/admin-addons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package WebMan Amplifier
*
* @since 1.2.2
* @version 1.2.2
* @version 1.2.3
*/


Expand All @@ -21,18 +21,13 @@

.fixed {

[class*="column-wmamp-thumb"] {
width: 80px;
text-align: center;
}

.wm-image-container {
display: block;
display: inline-block;
position: relative;
width: 50px;
height: 50px;
padding: 2px;
margin: -3px auto 0;
margin: -3px 0 0;
line-height: 48px;
background: #fff;
border: 1px solid #d3d3d3;
Expand Down Expand Up @@ -64,6 +59,19 @@

}

@media screen and (min-width: 782px) {

.fixed {

[class*="column-wmamp-thumb"] {
width: 80px;
text-align: center;
}

}

}

// WordPress menu tweaks

.sticky-menu {
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/metabox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @subpackage Metabox
*
* @since 1.2.2
* @version 1.2.2
* @version 1.2.3
*/


Expand Down
77 changes: 28 additions & 49 deletions assets/sass/metabox/_field-range.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
// Range field (numeric slider)
//
// @since 1.2.2
// @version 1.2.3

.wm-meta-wrap {

.option.range-wrap {

input {
width: 60px;
margin-right: 10px;
text-align: center;
}

}

.fieldtype-range {
display: inline-block;
position: relative;
width: 196px;
padding: 0 1em;
vertical-align: middle;
}

Expand All @@ -24,51 +18,36 @@
.range-wrap {

.ui-slider {
display: block;
position: relative;
float: left;
width: 196px;
display: block;
width: 100%;
height: 2px;
margin: 10px 0;
text-align: left;
background: #eaecee;
border: 1px solid #caccce;
background: #fff;
border: 2px solid #bbb;
border-radius: 10px;
}

.ui-slider-handle {
position: absolute;
z-index: 2;
width: 18px;
height: 10px;
top: 0;
margin: -5px 0 0 -10px;
background: #fafcfe;
background-image: linear-gradient( to bottom, #fafcfe, #f5f7f9 );
border: 1px solid #babcbe;
outline: 0;
border-radius: 10px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .25);
cursor: e-resize;

.ui-slider-handle:hover,
.ui-slider-handle:active {
background-color: #2a7c9e;
background-image: linear-gradient( to bottom, #2a7c9e, #257799 );
border-color: #2a7c9e;
border-bottom-color: #1a6c8e;
box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.5);
}

}

.ui-slider-range-min {
left: 0;
}

.ui-slider-range-max {
right: 0;
}

.ui-slider-handle {
position: absolute;
z-index: 2;
min-width: 18px;
min-height: 10px;
top: 0;
padding: .19em .62em;
text-align: center;
font-size: .81em;
font-weight: 700;
background-color: #28b;
color: #fff;
border: 2px solid #069;
outline: 0;
border-radius: 100px;
cursor: e-resize;
box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2);
transform: translateX(-50%) translateY(-50%);
transform-origin: 50% 50%;
}

}
Expand Down
29 changes: 29 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# WebMan Amplifier Changelog

## 1.2.3

* **Add**: WordPress 4.3 support
* **Update**: Metabox controls styles
* **Update**: Improved accessibility
* **Update**: Allowed overriding `$helper` variable in Posts shortcode
* **Update**: Allowed premature overriding of Posts and Testimonials shortcode item
* **Update**: Added headings into Contact widget sections
* **Fix**: Visual Composer custom shortcode mapping via dashboard not working

#### Files changed:

assets/css/admin-addons.css
assets/css/metabox.css
assets/js/metabox.js
assets/sass/admin-addons.scss
assets/sass/metabox.scss
assets/sass/metabox/_field-range.scss
includes/custom-posts/logos.php
includes/custom-posts/modules.php
includes/custom-posts/projects.php
includes/custom-posts/staff.php
includes/custom-posts/testimonials.php
includes/shortcodes/class-shortcodes.php
includes/shortcodes/renderers/posts.php
includes/shortcodes/renderers/testimonials.php
includes/widgets/w-contact.php


## 1.2.2

* **Add**: Visual Composer 4.6+ support
Expand Down
Loading

0 comments on commit 34bc6d1

Please sign in to comment.