Remove Premium-only styles from Free, cleanup styles [PREMIUM-1]
This commit is contained in:
@@ -2,7 +2,6 @@ $excellent-badge-color = #2993ab
|
|||||||
$good-badge-color = #f0b849
|
$good-badge-color = #f0b849
|
||||||
$bad-badge-color = #d54e21
|
$bad-badge-color = #d54e21
|
||||||
$green-badge-color = #55bd56
|
$green-badge-color = #55bd56
|
||||||
$grey-stat-color = #707070
|
|
||||||
|
|
||||||
#newsletters_container
|
#newsletters_container
|
||||||
h2.nav-tab-wrapper
|
h2.nav-tab-wrapper
|
||||||
@@ -23,20 +22,6 @@ $grey-stat-color = #707070
|
|||||||
&_bad
|
&_bad
|
||||||
color: $bad-badge-color
|
color: $bad-badge-color
|
||||||
|
|
||||||
&_grey
|
|
||||||
color: $grey-stat-color
|
|
||||||
|
|
||||||
&_big
|
|
||||||
font-size: 23px
|
|
||||||
font-weight: 600
|
|
||||||
line-height: normal
|
|
||||||
|
|
||||||
&_spaced
|
|
||||||
margin-bottom: 1rem
|
|
||||||
|
|
||||||
&_triple-spaced
|
|
||||||
margin-bottom: 3rem
|
|
||||||
|
|
||||||
&_hidden
|
&_hidden
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
|
@@ -6,8 +6,7 @@ class Badge extends React.Component {
|
|||||||
render() {
|
render() {
|
||||||
const badgeClasses = classNames(
|
const badgeClasses = classNames(
|
||||||
'mailpoet_badge',
|
'mailpoet_badge',
|
||||||
this.props.type ? `mailpoet_badge_${this.props.type}` : '',
|
this.props.type ? `mailpoet_badge_${this.props.type}` : ''
|
||||||
this.props.size ? `mailpoet_badge_size_${this.props.size}` : ''
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const tooltip = this.props.tooltip ? this.props.tooltip.replace(/\n/g, '<br />') : false;
|
const tooltip = this.props.tooltip ? this.props.tooltip.replace(/\n/g, '<br />') : false;
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
import MailPoet from 'mailpoet'
|
import MailPoet from 'mailpoet'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import classNames from 'classnames'
|
|
||||||
|
|
||||||
import Badge from './badge.jsx'
|
import Badge from './badge.jsx'
|
||||||
|
|
||||||
@@ -90,14 +89,9 @@ class StatsBadge extends React.Component {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (this.props.headline) {
|
if (this.props.headline) {
|
||||||
const headlineClasses = classNames(
|
|
||||||
`mailpoet_stat_${badgeType}`,
|
|
||||||
this.props.size ? `mailpoet_badge_size_${this.props.size}` : ''
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<span className={headlineClasses}>
|
<span className={`mailpoet_stat_${badgeType}`}>
|
||||||
{this.props.headline}
|
{this.props.headline}
|
||||||
</span> {content}
|
</span> {content}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -31,6 +31,9 @@ jQuery('.toplevel_page_mailpoet-newsletters.menu-top-last')
|
|||||||
<%= stylesheet(
|
<%= stylesheet(
|
||||||
'admin.css'
|
'admin.css'
|
||||||
)%>
|
)%>
|
||||||
|
|
||||||
|
<%= do_action('mailpoet_styles_admin_after') %>
|
||||||
|
|
||||||
<!-- rtl specific stylesheet -->
|
<!-- rtl specific stylesheet -->
|
||||||
<% if is_rtl %>
|
<% if is_rtl %>
|
||||||
<%= stylesheet('rtl.css') %>
|
<%= stylesheet('rtl.css') %>
|
||||||
|
Reference in New Issue
Block a user