|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/nandedex/.cagefs/tmp/ |
var Better_Reviews_Admin = (function ($) {
"use strict";
// module
return {
init: function () {
this.prepare_overall_rating_label();
},
prepare_overall_rating_label: function () {
if ($(".bf-section-repeater-option[data-id=_bs_review_criteria]").length <= 0)
return;
Better_Reviews_Admin.calculate_overall_rating();
$('input').on('change', function () {
if ($(this).attr('name') == 'bf-metabox-option[bs_review_metabox][_bs_review_rating_type]') {
Better_Reviews_Admin.calculate_overall_rating();
}
});
$(".bf-section-repeater-option[data-id=_bs_review_criteria]").on('change', '.bs-review-field-rating input', function () {
Better_Reviews_Admin.calculate_overall_rating();
});
$(".bf-section[data-id=_bs_review_criteria]").on('repeater_item_added', function () {
Better_Reviews_Admin.calculate_overall_rating();
});
$(".bf-section[data-id=_bs_review_criteria]").on('after_repeater_item_removed', function () {
Better_Reviews_Admin.calculate_overall_rating();
});
},
add_span: function () {
if ($(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label").length > 0) {
return $(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label i");
}
$(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3").append('<span class="overall-label">' + better_reviews_loc.overall_rating + ' ( <i>-</i> )</span>');
return $(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label i");
},
calculate_overall_rating: function () {
var $parent = $(".bf-section-repeater-option[data-id=_bs_review_criteria]");
// Adds Overall Rating Span
var $num = Better_Reviews_Admin.add_span();
var total = 0;
$parent.find('.bs-review-field-rating input[type=text]').each(function (index) {
if (parseFloat($(this).val()))
total += parseFloat($(this).val());
});
console.log($parent.find('.bs-review-field-rating input'));
$num.html(Better_Reviews_Admin.format_overall_rating_number(total, $parent.find('.bs-review-field-rating input').length));
},
format_overall_rating_number: function (sum, length) {
var type = $('[data-id=_bs_review_rating_type] .bf-controls-image_radio-option input[type=radio]:checked').val();
switch (type) {
case 'percentage':
case 'stars':
return Math.round(( ( sum * 10 ) / length ) * 10) / 10 + '%';
break;
case 'points':
return Math.round(( sum / length ) * 10) / 10;
break;
}
return Math.round(( sum / length ) * 10) / 10;
}
};
})(jQuery);
// Load when ready
jQuery(function ($) {
Better_Reviews_Admin.init();
});jQuery(function ($) {
var docCookies = {
getItem: function (sKey) {
if (!sKey) {
return null;
}
return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null;
},
setItem: function (sKey, sValue, vEnd, sPath, sDomain, bSecure) {
if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) {
return false;
}
var sExpires = "";
if (vEnd) {
switch (vEnd.constructor) {
case Number:
sExpires = vEnd === Infinity ? "; expires=Fri, 31 Dec 9999 23:59:59 GMT" : "; max-age=" + vEnd;
break;
case String:
sExpires = "; expires=" + vEnd;
break;
case Date:
sExpires = "; expires=" + vEnd.toUTCString();
break;
}
}
document.cookie = encodeURIComponent(sKey) + "=" + encodeURIComponent(sValue) + sExpires + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : "") + (bSecure ? "; secure" : "");
return true;
},
removeItem: function (sKey, sPath, sDomain) {
if (!this.hasItem(sKey)) {
return false;
}
document.cookie = encodeURIComponent(sKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : "");
return true;
},
hasItem: function (sKey) {
if (!sKey) {
return false;
}
return (new RegExp("(?:^|;\\s*)" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=")).test(document.cookie);
},
keys: function () {
var aKeys = document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, "").split(/\s*(?:\=[^;]*)?;\s*/);
for (var nLen = aKeys.length, nIdx = 0; nIdx < nLen; nIdx++) {
aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]);
}
return aKeys;
}
};
function isRatingLock(postId) {
return getStatusCookie().indexOf(postId.toString()) > -1;
}
function getStatusCookie() {
var cookie = docCookies.getItem('better-review-user-rating');
if (cookie) {
return cookie.split(',');
}
return [];
}
function lockRating(postId) {
var stat = getStatusCookie();
stat.push(postId.toString());
var time = 217.728e6; // a Year
docCookies.setItem("better-review-user-rating", stat, time, betterReviewsLoc.cp);
}
var is_rtl = $('body').hasClass('rtl');
$(".readers-ratings").on('mousemove', '.rating-stars:not(.disable)', function (e) {
var $this = $(this),
Gap = 2,
w = ($this.width() - Gap) / 100, // percentage width
elPos = Math.ceil(is_rtl ? ( $(this).offset().left + $(this).width() ) - e.pageX : e.pageX - $(this).offset().left); // element left/right position
var width = Math.min(100, Math.ceil(elPos / w)); // convert element position to width (in percent)
$this.children('span').width(width + '%').data('rate', width);
}).on('click', '.rating-stars:not(.disable)', function () {
var $this = $(this),
$wrapper = $this.closest('.betterstudio-review'),
loading = '<i class="fa fa-spinner fa-spin loading" style="margin: 0 50px;"></i>';
$this.addClass('disable'); // disable click event
// append loading
$this.fadeOut(150, function () {
$this.parent().append(loading);
});
$.ajax({
url: betterReviewsLoc.ajax_url,
type: 'POST',
dataType: 'json',
data: {
action: 'better-review-rating',
post_id: $this.data('post-id'),
rating: $this.children('span').data('rate')
},
})
.done(function (res) {
if (res.success) {
lockRating($this.data('post-id'));
//Update Rating to new value
$this.children('span').width(res.data.vote + '%').data('rate', res.data.vote);
$('.ratings-results .number', $wrapper).html(res.data.vote + '%');
$this.fadeIn(150);
// update total votes value
$('.total-votes .number', $wrapper).html(res.data.votes_count);
} else {
// Display error message
var $error = $('<span />', {
'class': 'error-message',
}).html(res.data.message);
$error.appendTo($this.parent());
$error.delay(4e3).fadeOut(150, function () {
$this.fadeIn(150);
$this.removeClass('disable'); // enable click event for next try
});
}
})
.always(function () {
$this.parent().find('.loading').remove();
});
});
// disable ratings for voted posts
$(".readers-ratings .rating-stars:not(.disable)").each(function () {
var $this = $(this);
if (isRatingLock($this.data('post-id'))) {
$this.addClass('disable');
}
});
});jQuery(function(e){function t(e){return a().indexOf(e.toString())>-1}function a(){var e=s.getItem("better-review-user-rating");return e?e.split(","):[]}function n(e){var t=a();t.push(e.toString());s.setItem("better-review-user-rating",t,217728e3,betterReviewsLoc.cp)}var s={getItem:function(e){return e?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(e,t,a,n,s,r){if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var i="";if(a)switch(a.constructor){case Number:i=a===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+a;break;case String:i="; expires="+a;break;case Date:i="; expires="+a.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+i+(s?"; domain="+s:"")+(n?"; path="+n:"")+(r?"; secure":""),!0},removeItem:function(e,t,a){return!!this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(a?"; domain="+a:"")+(t?"; path="+t:""),!0)},hasItem:function(e){return!!e&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,a=0;a<t;a++)e[a]=decodeURIComponent(e[a]);return e}},r=e("body").hasClass("rtl");e(".readers-ratings").on("mousemove",".rating-stars:not(.disable)",function(t){var a=e(this),n=(a.width()-2)/100,s=Math.ceil(r?e(this).offset().left+e(this).width()-t.pageX:t.pageX-e(this).offset().left),i=Math.min(100,Math.ceil(s/n));a.children("span").width(i+"%").data("rate",i)}).on("click",".rating-stars:not(.disable)",function(){var t=e(this),a=t.closest(".betterstudio-review");t.addClass("disable"),t.fadeOut(150,function(){t.parent().append('<i class="fa fa-spinner fa-spin loading" style="margin: 0 50px;"></i>')}),e.ajax({url:betterReviewsLoc.ajax_url,type:"POST",dataType:"json",data:{action:"better-review-rating",post_id:t.data("post-id"),rating:t.children("span").data("rate")}}).done(function(s){if(s.success)n(t.data("post-id")),t.children("span").width(s.data.vote+"%").data("rate",s.data.vote),e(".ratings-results .number",a).html(s.data.vote+"%"),t.fadeIn(150),e(".total-votes .number",a).html(s.data.votes_count);else{var r=e("<span />",{class:"error-message"}).html(s.data.message);r.appendTo(t.parent()),r.delay(4e3).fadeOut(150,function(){t.fadeIn(150),t.removeClass("disable")})}}).always(function(){t.parent().find(".loading").remove()})}),e(".readers-ratings .rating-stars:not(.disable)").each(function(){var a=e(this);t(a.data("post-id"))&&a.addClass("disable")})});var Better_Reviews_Admin=function(e){"use strict";return{init:function(){this.prepare_overall_rating_label()},prepare_overall_rating_label:function(){e(".bf-section-repeater-option[data-id=_bs_review_criteria]").length<=0||(Better_Reviews_Admin.calculate_overall_rating(),e("input").on("change",function(){"bf-metabox-option[bs_review_metabox][_bs_review_rating_type]"==e(this).attr("name")&&Better_Reviews_Admin.calculate_overall_rating()}),e(".bf-section-repeater-option[data-id=_bs_review_criteria]").on("change",".bs-review-field-rating input",function(){Better_Reviews_Admin.calculate_overall_rating()}),e(".bf-section[data-id=_bs_review_criteria]").on("repeater_item_added",function(){Better_Reviews_Admin.calculate_overall_rating()}),e(".bf-section[data-id=_bs_review_criteria]").on("after_repeater_item_removed",function(){Better_Reviews_Admin.calculate_overall_rating()}))},add_span:function(){return e(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label").length>0?e(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label i"):(e(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3").append('<span class="overall-label">'+better_reviews_loc.overall_rating+" ( <i>-</i> )</span>"),e(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label i"))},calculate_overall_rating:function(){var t=e(".bf-section-repeater-option[data-id=_bs_review_criteria]"),i=Better_Reviews_Admin.add_span(),r=0;t.find(".bs-review-field-rating input[type=text]").each(function(t){parseFloat(e(this).val())&&(r+=parseFloat(e(this).val()))}),console.log(t.find(".bs-review-field-rating input")),i.html(Better_Reviews_Admin.format_overall_rating_number(r,t.find(".bs-review-field-rating input").length))},format_overall_rating_number:function(t,i){switch(e("[data-id=_bs_review_rating_type] .bf-controls-image_radio-option input[type=radio]:checked").val()){case"percentage":case"stars":return Math.round(10*t/i*10)/10+"%";case"points":return Math.round(t/i*10)/10}return Math.round(t/i*10)/10}}}(jQuery);jQuery(function(e){Better_Reviews_Admin.init()});@import "styles/_variables.scss";
@import "styles/general-rtl.scss";
@import "styles/style-big-2-3-rtl.scss";
@import "styles/style-big-4-rtl.scss";
@import "styles/style-big-5-rtl.scss";
@import "styles/style-tall-1-2-rtl.scss";
@import "_variables.scss";
.betterstudio-review.big-2:before,
.betterstudio-review.big-3:before {
content: ' ';
display: block;
width: 1px;
height: 100%;
right: 33%;
position: absolute;
z-index: 1;
background: #ebebeb;
}
.betterstudio-review.big-2 .review-cons-pros > aside,
.betterstudio-review.big-3 .review-cons-pros > aside {
float: none;
width: 100%;
border-top-width: 0;
}
.betterstudio-review.big-2 .review-cons-pros > aside:last-child,
.betterstudio-review.big-3 .review-cons-pros > aside:last-child {
border-bottom-width: 0;
}
.betterstudio-review.big-2 .overall,
.betterstudio-review.big-3 .overall {
margin-left: 0;
margin-right: 15px;
float: left;
}
.betterstudio-review.big-2 .affiliate,
.betterstudio-review.big-3 .affiliate {
padding-right: 10px;
}
.betterstudio-review.big-3 .review-first-col {
float: right;
}
.betterstudio-review.big-3 .review-second-col {
float: left;
}
.betterstudio-review.big-3:before {
right: auto;
left: 33%;
}
.betterstudio-review.big-3 .review-first-col:first-child:last-child,
.betterstudio-review.big-2 .review-first-col:first-child:last-child {
float: none;
width: 100%;
}
.betterstudio-review.big-3.no-sec-column:before,
.betterstudio-review.big-2.no-sec-column:before {
display: none;
}
@import "_variables.scss";
.betterstudio-review.big-4 {
.verdict {
float: right;
}
.affiliate {
left: 0;
border-right: 1px solid #ebebeb;
right: auto;
border-left: none;
}
.criteria-list ul {
padding-right: 180px;
padding-left: 0;
}
.overall {
float: right;
margin-right: 0;
margin-left: 15px;
}
.review-cons-pros > aside:first-child {
padding-right: 25px;
padding-left: 0;
}
}
@import "_variables.scss";
.betterstudio-review.big-2:before,
.betterstudio-review.big-3:before {
left: 33%;
right: auto;
}
.betterstudio-review.big-2 .overall,
.betterstudio-review.big-3 .overall {
margin-right: 0;
margin-left: 15px;
float: right;
}
.betterstudio-review.big-2 .affiliate,
.betterstudio-review.big-3 .affiliate {
padding-left: 10px;
}
.betterstudio-review.big-3 .review-first-col {
float: left;
}
.betterstudio-review.big-3 .review-second-col {
float: right;
}
.betterstudio-review.big-3:before {
left: auto;
right: 33%;
}
@import "_variables.scss";
.betterstudio-review.big-5 {
.overall {
float: right;
margin-right: 0;
margin-left: 0;
}
.verdict-summary {
padding-left: 0;
padding-right: 182px;
}
.criteria-list {
float: right;
}
.heading .fa {
margin-left: 10px;
margin-right: auto;
}
}
@import "_variables.scss";
.betterstudio-review.big-5 {
.overall {
float: left;
margin-left: 0;
margin-right: 0;
}
.verdict-summary {
padding-right: 0;
padding-left: 182px;
}
.affiliate {
margin-top: 0;
border-top: none;
border-bottom: 1px solid #ebebeb;
}
.criteria-list {
float: left;
width: 100%;
padding: 0;
border-top: 1px solid #ececec;
&:first-child {
border-top: none;
}
}
.heading .fa {
margin-right: 10px;
}
}
/**
* =>Review
**/
.betterstudio-review {
clear: right;
}
.betterstudio-review .overall {
float: left;
margin-right: 15px;
margin-left: auto;
}
.betterstudio-review .criteria-list li .criterion .rate {
float: left;
}
.betterstudio-review .criteria-list li .rating-stars {
float: left;
}
.rating-stars span {
left: inherit;
right: 0;
}
/**
* =>Star rating
**/
.rating-stars {
text-align: right;
}
.post-meta .rating-stars span:before,
.post-meta .rating-stars span,
.post-meta .rating-stars:before,
.post-meta .rating-stars {
float: left;
}
/**
* =>Bar rating
**/
.rating-bar {
text-align: right;
}
.rating-bar span.rate-number {
left: -20px;
right: auto;
}
.post-meta .rating-bar {
float: left;
}
.review-pros-section,
.review-cons-section {
float: right;
}
.review-pros-section ul,
.review-cons-section ul {
padding-right: 13px;
padding-left: 0;
}
.review-pros-section li,
.review-cons-section li {
padding-right: 25px;
padding-left: 0;
}
.review-pros-section li:before,
.review-cons-section li:before {
right: 0;
left: auto;
}
.betterstudio-review .affiliate-btn {
float: left;
}
.betterstudio-review .heading .fa {
margin-left: 7px;
margin-right: auto;
}
.betterstudio-review .btn .fa {
margin-left: 5px;
margin-right: auto;
}
.betterstudio-review .review-cons-pros ul {
padding: 0 7px 0 0;
}
.betterstudio-review .readers-ratings .rating,
.betterstudio-review .readers-ratings .total-votes {
text-align: left;
margin-left: 5px;
margin-right: auto;
}
.betterstudio-review .readers-ratings > aside.rating {
float: left;
}
.betterstudio-review .readers-ratings > aside.heading {
float: right;
}
.betterstudio-review .review-first-col {
float: right;
}
.betterstudio-review .review-second-col {
float: left;
}
@import "_variables.scss";
.betterstudio-review.tall-1.left,
.betterstudio-review.tall-2.left {
float: left;
margin: 0 20px 20px 0;
}
.betterstudio-review.tall-1.right,
.betterstudio-review.tall-2.right {
float: right;
margin: 0 0 20px 20px;
}
@media only screen and (max-width: $break-medium) {
.betterstudio-review.tall-1.left,
.betterstudio-review.tall-2.left {
float: left;
margin: 0 20px 20px 0;
}
.betterstudio-review.tall-1.right,
.betterstudio-review.tall-2.right {
float: right;
margin: 0 0 20px 20px;
}
.betterstudio-review .readers-ratings > aside.rating {
float: none;
}
.betterstudio-review .readers-ratings > aside.heading {
float: none;
}
.betterstudio-review .readers-ratings .total-votes {
text-align: center;
margin: 0;
}
}
@import "_variables.scss";
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.betterstudio-review {
background-color: #ffffff;
margin-bottom: 20px;
border: 1px solid #ebebeb;
clear: left;
position: relative;
.page-heading {
margin: 0 0 10px 0;
font-size: 24px;
&:last-child {
margin-bottom: 0;
}
}
.verdict > br,
p:empty {
display: none;
}
.verdict {
padding: 20px;
margin: -20px -20px 10px;
}
.overall {
float: right;
background-color: #0080ce;
color: #fff;
padding: 10px;
width: 160px;
text-align: center;
font-family: "Open Sans", sans-serif;
font-weight: 500;
border-radius: 3px;
margin-left: 15px;
.rate {
font-size: 60px;
font-weight: 600;
line-height: 60px;
display: block;
.percentage {
font-size: 24px;
line-height: 24px;
}
}
}
.verdict-summary {
line-height: 1.45;
}
.criteria-list ul {
list-style: none;
padding: 0;
margin: 0;
}
.criteria-list li {
border-bottom: 1px solid #ebebeb;
padding: 8px 0;
&:last-child {
border-bottom: none;
}
.criterion .rate {
float: right;
}
.rating-stars {
float: right;
margin-top: -20px;
}
.rating-bar {
width: 100%;
margin: 10px 0 5px 0;
height: 15px;
span {
height: 15px;
background: $primary-color;
}
}
.review-description {
font-size: 14px;
border-top: 1px solid #ebebeb;
}
}
@media only screen and (max-width: 480px) {
.overall {
float: none;
width: 100%;
margin: 0 0 12px;
}
.verdict-summary {
padding: 0;
}
}
}
/**
* =>Star rating
**/
.rating-stars {
float: none;
max-width: 80px;
font-size: 15px;
color: #c3c3c3;
text-align: left;
position: relative;
}
.ie .rating-stars {
max-width: 95px;
width: 95px;
height: 20px;
overflow: hidden;
}
.rating-stars span,
.rating-stars span:before,
.rating-stars:before {
content: "\f005\f005\f005\f005\f005";
color: inherit;
letter-spacing: 2px;
display: block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
width: 100%;
white-space: nowrap;
}
.rating-stars span {
color: inherit;
position: absolute;
top: 0;
left: 0;
overflow: hidden;
text-indent: -9999px;
display: inline-block;
}
.rating-stars span:before {
color: $primary-color;
text-indent: 0;
}
.betterstudio-review .criteria-list .rating-stars {
color: #c3c3c3;
}
.betterstudio-review .overall .rating-stars span:before {
color: #fff;
}
.betterstudio-review .overall .rating-stars {
margin: 15px auto 7px;
color: rgba(0, 0, 0, 0.23);
}
.post-meta .rating-stars span:before,
.post-meta .rating-stars span,
.post-meta .rating-stars:before,
.post-meta .rating-stars {
display: inline-block;
font-size: 12px;
float: right;
line-height: 19px;
}
/**
* =>Bar rating
**/
.rating-bar {
float: none;
width: 60px;
font-size: 15px;
background-color: #c3c3c3;
text-align: left;
position: relative;
height: 12px;
display: block;
margin: auto;
span {
height: 12px;
display: block;
}
span.rate-number {
background-color: transparent !important;
width: auto;
height: 12px;
position: absolute;
top: 0;
margin-top: -3px;
right: -20px;
font-size: 10px;
}
}
.betterstudio-review .verdict .rating-bar {
margin: 15px auto 7px auto;
background-color: rgba(0, 0, 0, 0.23);
height: 10px;
span {
height: 10px;
background-color: #fff;
}
}
.betterstudio-review .criteria-list .rating-bar {
background-color: #c3c3c3;
}
.post-meta .rating-bar {
display: inline-block;
height: 9px;
float: right;
margin-top: 6px;
}
.post-meta .rating-bar span {
height: 9px;
}
.betterstudio-review .review-description,
.betterstudio-review .readers-ratings,
.betterstudio-review .review-cons-pros > aside,
.betterstudio-review .criteria-list,
.betterstudio-review .affiliate,
.betterstudio-review .verdict {
padding: 20px;
margin: 0;
position: relative;
}
.betterstudio-review .criteria-list {
padding: 15px 20px;
border-top: 1px solid #ebebeb;
}
.betterstudio-review .review-cons-pros > aside {
padding: 20px;
line-height: 22px;
}
.betterstudio-review .readers-ratings {
padding-top: 15px;
padding-bottom: 15px;
z-index: 2;
}
.review-pros-section,
.review-cons-section {
float: left;
width: 50%;
border-top: 1px solid #ebebeb;
}
.review-pros-section:first-child:last-child,
.review-cons-section:first-child:last-child {
float: none;
width: 100%;
}
.review-pros-section .fa,
.review-cons-section .fa {
width: 26px;
height: 26px;
line-height: 27px;
border-radius: 30px;
font-size: 16px;
text-align: center;
color: #fff;
background: #02c03c;
}
.review-cons-section .fa {
background-color: #e60000;
}
.review-pros-section ul,
.review-cons-section ul {
list-style: none;
padding-left: 13px;
overflow: hidden;
}
.review-pros-section li,
.review-cons-section li {
position: relative;
margin-bottom: 7px;
padding-left: 25px;
}
.review-pros-section li:last-child,
.review-cons-section li:last-child {
margin-bottom: 0;
}
.review-pros-section li:before,
.review-cons-section li:before {
width: 25px;
content: "\f00c";
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: absolute;
left: 0;
top: 6px;
color: #1ec64c;
}
.review-cons-section li:before {
content: "\f00d";
color: #e50000;
}
.readers-ratings {
background: #f9f9f9;
border-top: 1px solid #ebebeb;
}
.readers-ratings .rating-stars {
display: inline-block;
margin: 0 10px;
max-width: 94px;
cursor: pointer;
}
.readers-ratings .rating-stars.disable {
cursor: default;
}
.readers-ratings .rating-stars:before,
.readers-ratings .rating-stars span:before {
font-size: 19px;
}
.readers-ratings .rating-stars span:before {
color: #f5be00;
}
.betterstudio-review .affiliate {
background: #f9f9f9;
border-top: 1px solid #ebebeb;
line-height: 30px;
padding-top: 10px;
padding-bottom: 10px;
}
.betterstudio-review .affiliate-btn {
padding: 5px 15px;
border-radius: 3px;
float: right;
}
.betterstudio-review .heading {
font-size: 15px;
color: #282828;
font-weight: bolder;
}
.betterstudio-review .heading .fa {
margin-right: 7px;
}
.betterstudio-review .review-cons-pros .heading {
padding: 0;
margin: 0 0 10px;
}
.betterstudio-review .btn .fa {
margin-right: 5px;
}
.betterstudio-review .btn {
border-bottom: 2px solid rgba(0, 0, 0, 0.3);
text-transform: none !important;
background: $primary-color !important;
}
.betterstudio-review .btn:hover {
text-decoration: none !important;
color: #fff;
}
.betterstudio-review .error-message {
margin: 0 15px;
color: #e50000;
}
.betterstudio-review .verdict .page-heading {
color: $primary-color;
}
.betterstudio-review .review-cons-pros ul {
margin: 0;
padding: 0 0 0 7px;
}
.betterstudio-review .readers-ratings .rating,
.betterstudio-review .readers-ratings .total-votes {
text-align: right;
margin-right: 0;
vertical-align: top;
font-size: 14px;
height: 24px;
line-height: 24px;
display: inline-block;
}
.betterstudio-review .readers-ratings > aside.rating {
float: right;
}
.betterstudio-review .readers-ratings > aside.heading {
float: left;
}
.betterstudio-review .readers-ratings > .rating .rating {
height: 22px;
line-height: 22px;
margin-top: 2px;
}
.betterstudio-review .readers-ratings .total-votes {
color: #848484;
}
.betterstudio-review .rating-stars span {
width: 0;
}
.betterstudio-review .review-first-col {
float: left;
width: 67%;
}
.betterstudio-review .review-second-col {
float: right;
width: 33%;
}
@import "_variables.scss";
.betterstudio-review.big-4 {
.review-header {
position: relative;
}
.verdict {
float: left;
width: 65%;
}
.verdict:first-child:last-child {
width: 100%;
float: none;
padding-top: 30px;
padding-bottom: 30px;
}
.affiliate {
width: 35%;
margin: 0;
padding: 25px 15px 10px;
line-height: 25px;
position: absolute;
right: 0;
top: 0;
bottom: 0;
border-left: 1px solid #ebebeb;
border-top: 0;
text-align: center;
}
.verdict-summary {
padding: 0;
}
.heading {
font-size: 14px;
font-weight: 700;
margin-top: 0;
}
.affiliate .heading {
padding-top: 15px;
}
.review-cons-pros .heading {
font-size: 16px;
}
.criteria-list {
border-top: 1px solid #ebebeb;
padding: 20px;
}
.criteria-list ul {
padding-left: 180px;
}
.overall {
float: left;
margin-left: 0;
margin-right: 15px;
text-align: center;
.rating-bar {
margin: 5px auto;
background-color: rgba(255, 255, 255, 0.24);
&.rating-bar span {
background-color: #fff;
}
}
}
.criteria-list li:first-child {
padding-top: 0;
}
.review-cons-pros > aside:first-child {
padding-left: 25px;
}
.affiliate-btn {
float: none;
padding: 8px 18px;
border-radius: 3px;
}
}
$break-medium: 780px;
$break-small: 480px;
$primary-color: #0080ce;@import "_variables.scss";
.betterstudio-review.tall-1,
.betterstudio-review.tall-2 {
width: 315px;
border: 1px solid #ebebeb;
}
.betterstudio-review.tall-1.right,
.betterstudio-review.tall-2.right {
float: right;
margin: 0 0 20px 20px;
}
.betterstudio-review.tall-1.left,
.betterstudio-review.tall-2.left {
float: left;
margin: 0 20px 20px 0;
}
.betterstudio-review.tall-1 .overall,
.betterstudio-review.tall-2 .overall {
float: none;
width: 100%;
margin: 0;
padding: 20px 10px;
}
.betterstudio-review.tall-2 .overall {
border-radius: 0;
}
.betterstudio-review.tall-1 .verdict-summary,
.betterstudio-review.tall-2 .verdict-summary {
float: none;
padding: 0;
margin-top: 20px;
font-size: 14px;
line-height: 1.3;
}
.betterstudio-review.tall-2 .verdict-summary {
line-height: 1.5;
}
.betterstudio-review.tall-1 .review-cons-pros > aside,
.betterstudio-review.tall-2 .review-cons-pros > aside {
float: none;
width: 100%;
}
.betterstudio-review.tall-1 .readers-ratings > aside,
.betterstudio-review.tall-2 .readers-ratings > aside {
float: none;
width: 100%;
text-align: center;
}
.betterstudio-review.tall-1 .total-votes,
.betterstudio-review.tall-2 .total-votes {
display: block;
}
.betterstudio-review.tall-1 .verdict .page-heading,
.betterstudio-review.tall-2 .verdict .page-heading {
font-size: 20px;
}
.betterstudio-review.tall-1 .affiliate-btn,
.betterstudio-review.tall-2 .affiliate-btn {
float: none;
}
.betterstudio-review.tall-1 .readers-ratings,
.betterstudio-review.tall-2 .readers-ratings {
line-height: 15px;
padding: 20px 20px 15px;
}
.betterstudio-review.tall-1 .readers-ratings .heading,
.betterstudio-review.tall-2 .readers-ratings .heading {
font-size: 15px;
font-weight: 700;
}
.betterstudio-review.tall-1 .review-cons-pros .heading,
.betterstudio-review.tall-2 .review-cons-pros .heading {
margin-top: 0;
}
.betterstudio-review.tall-1 .readers-ratings .total-votes,
.betterstudio-review.tall-2 .readers-ratings .total-votes {
font-size: 13px;
text-align: center;
}
.betterstudio-review.tall-1 .readers-ratings aside.rating,
.betterstudio-review.tall-2 .readers-ratings aside.rating {
line-height: 25px;
padding-top: 10px;
height: auto;
text-align: center;
}
.betterstudio-review.tall-2 .verdict {
padding: 0;
}
.betterstudio-review.tall-2 .review-cons-pros > aside {
padding: 0;
border: none;
}
.betterstudio-review.tall-2 .the-content,
.betterstudio-review.tall-2 .review-cons-pros ul {
padding: 0 20px;
margin-bottom: 20px;
}
.betterstudio-review.tall-2 .review-cons-pros .heading {
margin-bottom: 18px;
padding: 10px 20px;
background: #f9f9f9;
border: 1px solid #ebebeb;
border-width: 1px 0;
}
@media only screen and (max-width: $break-medium) {
.betterstudio-review .review-first-col,
.betterstudio-review .review-second-col,
.betterstudio-review.big-4 .verdict,
.betterstudio-review.big-4 .criteria-list ul,
.betterstudio-review.big-4 .affiliate,
.betterstudio-review.big-5 .verdict-summary {
width: 100%;
float: none;
clear: both;
}
.betterstudio-review.big-4 .criteria-list ul {
padding-left: 0;
}
.betterstudio-review.big-4 .overall {
width: 100%;
}
.betterstudio-review.big-4 .criteria-list ul {
padding-top: 10px;
margin-bottom: 0;
clear: both;
}
.betterstudio-review.big-4 .affiliate {
float: none;
width: 100%;
border-top: 1px solid #ebebeb;
border-left-width: 0;
position: relative;
}
.betterstudio-review:before,
.betterstudio-review.big-3:before {
display: none !important;
}
.betterstudio-review.big-2 .criteria-list,
.betterstudio-review.big-3 .criteria-list {
margin-bottom: 0;
border-bottom: 1px solid #ebebeb;
}
.betterstudio-review.big-5 .verdict-summary {
padding: 10px 0 0 0;
}
.betterstudio-review.big-3 .review-description {
border-top: none;
border-bottom: 1px solid #ebebeb;
}
.betterstudio-review .readers-ratings > aside.rating {
float: none;
text-align: center;
height: auto;
display: block;
}
.betterstudio-review .readers-ratings > aside.heading {
float: none;
text-align: center;
margin-bottom: 8px;
}
.betterstudio-review .readers-ratings .total-votes {
display: block;
text-align: center;
}
.betterstudio-review .readers-ratings {
padding-top: 20px;
padding-bottom: 20px;
}
.betterstudio-review.big-2 .review-description {
border-top: none;
border-bottom: 1px solid #ebebeb;
}
.betterstudio-review.tall-1,
.betterstudio-review.tall-2 {
width: 100%;
float: none;
}
}
@media only screen and (max-width: $break-small) {
.betterstudio-review .overall {
float: none;
width: 100%;
margin-bottom: 12px;
}
.betterstudio-review .verdict-summary {
padding: 0;
}
.betterstudio-review .review-cons-pros > aside {
float: none;
width: 100%;
}
}
/*
BetterReview WP Admin Style
*/
#bf-metabox-bs_review_metabox-_criteria_options .bf-heading.bf-nonrepeater-heading{
margin-bottom: 20px;
}
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-repeater-item .bf-section-container{
width: auto;
float: left;
}
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-repeater-item .bf-section-container .bf-section.bs-review-field-rating input,
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-repeater-item .bf-section-container .bf-section.bs-review-field-label input{
width: 100%;
min-width: 100%;
max-width: 100%;
}
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label{
float: right;
font-weight: normal;
}
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label i{
font-weight: bold;
}
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-section-container{
width: 100% !important;
padding: 0 !important;
}
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-section-container .bf-section{
padding-top: 5px !important;
padding-bottom: 0 !important;
}
.bf-section-repeater-option[data-id=_cons] .bf-section-container .bf-heading,
.bf-section-repeater-option[data-id=_pros] .bf-section-container .bf-heading,
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-section-container .bf-heading {
width: 18.2% !important;
padding: 0 !important;
}
.bf-section-repeater-option[data-id=_cons] .bf-section-container .bf-controls,
.bf-section-repeater-option[data-id=_pros] .bf-section-container .bf-controls,
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-section-container .bf-controls {
width: 81.8% !important;
}
.bf-section-repeater-option[data-id=_cons] .bf-section-container .bf-heading label,
.bf-section-repeater-option[data-id=_pros] .bf-section-container .bf-heading label,
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-section-container .bf-heading label{
line-height: 34px;
display: inline-block;
}
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-section-container .bf-icon-modal-handler .select-options{
width: 40%;
min-width: 149px;
}
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-section-container .bf-icon-modal-handler .select-options .selected-option {
font-size: 12px;
}
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-repeater-item .repeater-item-container {
padding: 15px 17px 13px;
background-color: #FFF;
}
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-section .bf-heading.bf-heading h3,
.bf-section-repeater-option[data-id=_bs_review_criteria] .bf-section-container .bf-icon-modal-handler{
margin-bottom: 0 !important;
}
.bf-section-repeater-option[data-id=_cons] .bf-repeater-item .bf-section-container .bf-section,
.bf-section-repeater-option[data-id=_pros] .bf-repeater-item .bf-section-container .bf-section {
padding-top: 5px;
padding-bottom: 5px;
}
.bf-section-repeater-option[data-id=_cons] .bf-repeater-item .repeater-item-container,
.bf-section-repeater-option[data-id=_pros] .bf-repeater-item .repeater-item-container{
padding: 12px;
}
.bf-section-repeater-option[data-id=_cons] .bf-section-container,
.bf-section-repeater-option[data-id=_pros] .bf-section-container{
padding-right: 10px;
padding-left: 10px;
}
@import "styles/_variables.scss";
@import "styles/general.scss";
@import "styles/style-big-2-3.scss";
@import "styles/style-big-4.scss";
@import "styles/style-big-5.scss";
@import "styles/style-tall-1-2.scss";
@import "styles/_variables.scss";
.betterstudio-review {
.readers-ratings {
display: none;
}
.btn {
color: #fff;
text-decoration: none;
}
.rating-stars span {
width: inherit;
}
}
�PNG
IHDR z l *�15 tEXtSoftware Adobe ImageReadyq�e<