forked from LiveCarta/LiveCartaWP
Changed source root directory
This commit is contained in:
@@ -0,0 +1,740 @@
|
||||
#dashboard-widgets .meta-box-sortables .postbox:last-child .post-smtp-dash-widget-settings-menu {
|
||||
top: auto;
|
||||
bottom: 50px
|
||||
}
|
||||
|
||||
@media(min-width: 800px) {
|
||||
#dashboard-widgets .meta-box-sortables .postbox:last-child .post-smtp-dash-widget-settings-menu {
|
||||
bottom: 40px
|
||||
}
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_pro .inside,
|
||||
#post_smtp_reports_widget_lite .inside {
|
||||
margin: 0;
|
||||
padding: 0
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget button:focus {
|
||||
outline: none
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget-block {
|
||||
position: relative;
|
||||
padding: 0 12px;
|
||||
margin-top: 12px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget-block h3 {
|
||||
display: inline-block;
|
||||
line-height: 2
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget-block p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-chart-block-container {
|
||||
position: relative
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-chart-block {
|
||||
height: 291px;
|
||||
border-bottom: 1px solid #eee;
|
||||
padding: 0 12px 12px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings {
|
||||
display: flex;
|
||||
align-items: start;
|
||||
justify-content: space-between;
|
||||
margin-top: 0;
|
||||
padding: 13px;
|
||||
background-color: #fafafa
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings>div {
|
||||
display: flex
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings>div:first-child {
|
||||
flex-wrap: wrap
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings>div:first-child a {
|
||||
line-height: 30px
|
||||
}
|
||||
|
||||
@media(max-width: 980px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings {
|
||||
padding: 13px 4px
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 960px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings {
|
||||
padding: 13px
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 856px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings {
|
||||
padding: 13px 2px
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 799px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings {
|
||||
padding: 13px
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 436px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings {
|
||||
flex-direction: column;
|
||||
align-items: normal
|
||||
}
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings select {
|
||||
width: 100%;
|
||||
margin: 0 0 10px
|
||||
}
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-select-timespan {
|
||||
width: calc(100% - 38px)
|
||||
}
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings a {
|
||||
vertical-align: middle
|
||||
}
|
||||
|
||||
@media(max-width: 1150px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings a {
|
||||
display: none
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: 1500px)and (max-width: 1630px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings a {
|
||||
display: none
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: 1801px)and (max-width: 2080px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings a {
|
||||
display: none
|
||||
}
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-select-email-type {
|
||||
margin-right: 6px
|
||||
}
|
||||
|
||||
@media(max-width: 830px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-select-email-type {
|
||||
margin-right: 2px
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 436px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-select-email-type {
|
||||
margin-right: 0
|
||||
}
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-container {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
vertical-align: top;
|
||||
margin-left: 6px
|
||||
}
|
||||
|
||||
@media(max-width: 830px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-container {
|
||||
margin-left: 2px
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: 799px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-container {
|
||||
margin-left: 6px
|
||||
}
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button {
|
||||
background: #fafafa;
|
||||
color: #787c82;
|
||||
border-color: #787c82;
|
||||
padding: 1px 6px 0;
|
||||
margin-bottom: 0;
|
||||
line-height: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button:hover,
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button:active,
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button:focus {
|
||||
color: #2271b1;
|
||||
border-color: #2271b1
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button:hover svg path,
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button:active svg path,
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button:focus svg path {
|
||||
fill: #2271b1
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button.open svg path {
|
||||
transform: rotate(90deg)
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button svg {
|
||||
display: inline-block;
|
||||
width: 19px;
|
||||
height: 19px
|
||||
}
|
||||
|
||||
@media(max-width: 782px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button svg {
|
||||
padding: 5px
|
||||
}
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-button svg path {
|
||||
fill: #787c82;
|
||||
transition: transform .2s;
|
||||
transform-origin: center center
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: #fff;
|
||||
width: 160px;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0px 5px 15px rgba(0, 0, 0, .15);
|
||||
padding: 10px;
|
||||
z-index: 9999;
|
||||
right: 0;
|
||||
top: 50px
|
||||
}
|
||||
|
||||
@media(min-width: 800px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu {
|
||||
top: 40px
|
||||
}
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--style,
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--color {
|
||||
border-bottom: 1px solid #eee
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--style h4,
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--color h4 {
|
||||
text-transform: uppercase !important;
|
||||
color: #3c434a !important;
|
||||
font-size: 11px !important;
|
||||
font-weight: 500 !important;
|
||||
line-height: 13px !important;
|
||||
margin: 0 0 10px !important
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--style .post-smtp-dash-widget-settings-menu-item,
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--color .post-smtp-dash-widget-settings-menu-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #3c434a;
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
margin: 0 0 13px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--style .post-smtp-dash-widget-settings-menu-item:last-child,
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--color .post-smtp-dash-widget-settings-menu-item:last-child {
|
||||
margin: 0 0 10px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--style .post-smtp-dash-widget-settings-menu-item input[type=radio],
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--color .post-smtp-dash-widget-settings-menu-item input[type=radio] {
|
||||
margin-right: 5px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--style .post-smtp-dash-widget-settings-menu-item label,
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--color .post-smtp-dash-widget-settings-menu-item label {
|
||||
vertical-align: top;
|
||||
margin-top: -3px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu--color {
|
||||
margin-top: 10px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-settings .post-smtp-dash-widget-settings-menu-save {
|
||||
margin-top: 10px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block {
|
||||
margin-top: 0
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table {
|
||||
width: calc(100% + 24px);
|
||||
margin: 0 -12px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table .post-smtp-dash-widget-email-stats-table-cell {
|
||||
padding: 10px 6px;
|
||||
border-right: 1px solid #eee;
|
||||
border-top: 1px solid #eee;
|
||||
color: #3c434a;
|
||||
font-size: 14px;
|
||||
width: 50%;
|
||||
line-height: 17px
|
||||
}
|
||||
|
||||
@media(max-width: 436px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table .post-smtp-dash-widget-email-stats-table-cell {
|
||||
display: block;
|
||||
width: 100%
|
||||
}
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table .post-smtp-dash-widget-email-stats-table-cell--2:not(:first-child) {
|
||||
border-right: none
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table .post-smtp-dash-widget-email-stats-table-cell--3 {
|
||||
width: 33.33%
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table .post-smtp-dash-widget-email-stats-table-cell--4 {
|
||||
width: 25%
|
||||
}
|
||||
|
||||
@media(max-width: 436px) {
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table .post-smtp-dash-widget-email-stats-table-cell--3 {
|
||||
width: 100%
|
||||
}
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table .post-smtp-dash-widget-email-stats-table-cell--3:last-child {
|
||||
border-right: none
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table .post-smtp-dash-widget-email-stats-table-cell--4:last-child {
|
||||
border-right: none
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table .post-smtp-dash-widget-email-stats-table-cell-container {
|
||||
display: flex;
|
||||
align-items: center
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block table .post-smtp-dash-widget-email-stats-table-cell-container img {
|
||||
width: 18px;
|
||||
margin-right: 5px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-stats-block .post-smtp-dash-widget-overlay {
|
||||
background-position-y: 50%
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-recommended-plugin-block {
|
||||
display: flex;
|
||||
padding: 12px 7px 12px 12px;
|
||||
border-top: 1px solid #eee;
|
||||
color: #787c82;
|
||||
font-size: 13px;
|
||||
line-height: 16px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-recommended-plugin-block b {
|
||||
color: #3c434a
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-recommended-plugin-block .sep {
|
||||
display: inline-block;
|
||||
margin: 0 3px;
|
||||
color: #ddd
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-recommended-plugin-block .sep-vertical {
|
||||
color: #ddd
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-recommended-plugin-block p {
|
||||
margin: 0
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-recommended-plugin-block .post-smtp-dash-widget-recommended-plugin {
|
||||
display: inline-block;
|
||||
width: calc(100% - 24px)
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-recommended-plugin-block .post-smtp-dash-widget-recommended-plugin span {
|
||||
display: inline-block
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-recommended-plugin-block .post-smtp-dash-widget-dismiss-recommended-plugin-block {
|
||||
display: inline-block;
|
||||
border: 0;
|
||||
color: gray;
|
||||
opacity: .3;
|
||||
vertical-align: baseline;
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
padding: 0 2px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-recommended-plugin-block .post-smtp-dash-widget-dismiss-recommended-plugin-block:hover {
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-recommended-plugin-block .post-smtp-dash-widget-dismiss-recommended-plugin-block .dashicons {
|
||||
font-size: 16px;
|
||||
height: 16px;
|
||||
width: 16px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-alerts-education {
|
||||
align-items: center;
|
||||
border-left: 4px solid #d63638;
|
||||
border-top: 1px solid #eee;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-top: 0;
|
||||
padding: 10px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-alerts-education-error-icon {
|
||||
display: flex;
|
||||
height: 44px;
|
||||
width: 40px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-alerts-education-error-icon img {
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
margin: auto
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-alerts-education-content {
|
||||
padding-right: 14px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-alerts-education-content p {
|
||||
color: #1d2327;
|
||||
font-size: 14px;
|
||||
line-height: 20px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-alerts-education-content p a {
|
||||
color: #2271b1;
|
||||
font-weight: 500
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-alerts-education-content p strong {
|
||||
font-weight: 500
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-alerts-education .post-smtp-dash-widget-dismiss-email-alert-block {
|
||||
background: none;
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
top: 10px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-email-alerts-education .post-smtp-dash-widget-dismiss-email-alert-block .dashicons {
|
||||
color: #a0a5aa;
|
||||
font-size: 16px;
|
||||
height: 17px;
|
||||
width: 16px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-error {
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-chart-upgrade,
|
||||
.post-smtp-dash-widget .post-smtp-error-no-data-chart {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
background: rgba(255, 255, 255, 0);
|
||||
background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
|
||||
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgb(255, 255, 255)));
|
||||
background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
|
||||
background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
|
||||
background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
|
||||
background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%)
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-chart-upgrade .post-smtp-dash-widget-modal,
|
||||
.post-smtp-dash-widget .post-smtp-error-no-data-chart .post-smtp-dash-widget-modal {
|
||||
position: absolute;
|
||||
top: calc(50% - 2em);
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
padding: 1.5em 2em 2em 2em;
|
||||
box-shadow: 0 0 25px 10px rgba(0, 0, 0, .08);
|
||||
border-radius: 3px;
|
||||
background-color: #fff;
|
||||
text-align: center;
|
||||
width: 20em
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-chart-upgrade .post-smtp-dash-widget-modal h2,
|
||||
.post-smtp-dash-widget .post-smtp-error-no-data-chart .post-smtp-dash-widget-modal h2 {
|
||||
padding: 0;
|
||||
margin-bottom: 5px;
|
||||
font-size: 18px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-chart-upgrade .post-smtp-dash-widget-modal p,
|
||||
.post-smtp-dash-widget .post-smtp-error-no-data-chart .post-smtp-dash-widget-modal p {
|
||||
line-height: 1.3
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-error-no-data-email-stats {
|
||||
padding-top: 16px;
|
||||
padding-bottom: 16px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-logs-disabled {
|
||||
padding: 21px 25px 30px;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-logs-disabled .post-smtp-dash-widget-block-logo {
|
||||
width: 75px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-logs-disabled h2 {
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
font-weight: 500;
|
||||
padding: 10px 0 0
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-logs-disabled p {
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
margin: 7px 0 19px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-block-logs-disabled a.button:first-of-type:not(:only-of-type) {
|
||||
margin-right: 10px
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .post-smtp-dash-widget-overlay {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: url(../images/wp-spinner.gif) no-repeat center calc(50% - 12px);
|
||||
background-color: #fff;
|
||||
z-index: 10
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget i.post-smtp-dash-widget-loader {
|
||||
background-image: url(../images/wp-spinner.gif);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover
|
||||
}
|
||||
|
||||
.post-smtp-dash-widget .hidden {
|
||||
display: none !important
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-chart-block-container #post-smtp-dash-widget-chart {
|
||||
opacity: .35
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-chart-upgrade {
|
||||
background: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-chart-upgrade h2 {
|
||||
font-size: 20px !important;
|
||||
line-height: 20px !important;
|
||||
font-weight: 500 !important;
|
||||
color: #3c434a !important;
|
||||
margin-bottom: 15px !important
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-chart-upgrade p {
|
||||
font-size: 14px;
|
||||
line-height: 18px;
|
||||
color: #787c82;
|
||||
margin-bottom: 15px
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-chart-upgrade p:last-child {
|
||||
margin-bottom: 0
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-chart-upgrade a.button.button-hero {
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
padding: 9px 24px;
|
||||
min-height: 40px;
|
||||
border-radius: 100px;
|
||||
background: linear-gradient(45deg, #FFDAA5, #F9AA39);
|
||||
border: none;
|
||||
color: black;
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-chart-upgrade .post-smtp-dash-widget-modal {
|
||||
position: relative;
|
||||
top: inherit;
|
||||
left: inherit;
|
||||
transform: none;
|
||||
width: 24em;
|
||||
padding: 2.5em;
|
||||
box-shadow: 0 5px 25px rgba(0, 0, 0, .15);
|
||||
border-radius: 12px;
|
||||
border: 1px solid #e1e1e1;
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-dismiss-chart-upgrade {
|
||||
position: absolute;
|
||||
width: 16px;
|
||||
height: 17px;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
color: #a0a5aa;
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-dismiss-chart-upgrade .dashicons {
|
||||
width: 16px;
|
||||
height: 17px;
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
font-size: 24px;
|
||||
line-height: 6px
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-settings-menu input[type=radio]:checked::before {
|
||||
background-color: #a0a5aa
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-settings-menu * {
|
||||
cursor: not-allowed
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block {
|
||||
margin-top: 0;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
border-top: 1px solid #eee;
|
||||
font-size: 13px;
|
||||
line-height: 16px
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block>div {
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
background: #f0f6fc
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-setting {
|
||||
display: flex;
|
||||
align-items: center
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-setting label {
|
||||
display: flex;
|
||||
margin: 0 10px 0 0;
|
||||
color: #3c434a
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-setting label input,
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-setting label i {
|
||||
margin: 0 10px 0 0
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-setting label i {
|
||||
display: none;
|
||||
width: 16px;
|
||||
height: 16px
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-setting label b {
|
||||
font-weight: 500
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-setting a {
|
||||
white-space: nowrap;
|
||||
margin-right: 10px
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-setting .dashicons-dismiss {
|
||||
margin-left: auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
font-size: 16px;
|
||||
color: #a0a5aa;
|
||||
cursor: pointer
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-setting .dashicons-dismiss:hover {
|
||||
color: #2271b1
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-applied {
|
||||
display: flex
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-summary-report-email-block-applied .post-smtp-dashicons-yes-alt-green {
|
||||
margin-right: 10px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background-image: url("../images/dash-widget/yes-green.svg")
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-upgrade-footer {
|
||||
padding: 12px 0px 12px 0px !important;
|
||||
margin-top: 0 !important;
|
||||
border-top: 1px solid #eee !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
div#post-smtp-dash-widget-upgrade-footer {
|
||||
padding: 12px 0px 0px 0px !important;
|
||||
margin-top: 0 !important;
|
||||
border-top: 1px solid #eee !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-upgrade-footer p {
|
||||
font-size: 13px;
|
||||
line-height: 16px
|
||||
}
|
||||
|
||||
div#post-smtp-dash-widget-upgrade-footer p {
|
||||
font-size: 13px;
|
||||
line-height: 16px
|
||||
}
|
||||
|
||||
#post_smtp_reports_widget_lite .post-smtp-dash-widget-upgrade-footer--hide {
|
||||
display: none
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.37868 5.87868C3.5 6.75736 3.5 8.17157 3.5 11V13C3.5 15.8284 3.5 17.2426 4.37868 18.1213C5.25736 19 6.67157 19 9.5 19H15.5C18.3284 19 19.7426 19 20.6213 18.1213C21.5 17.2426 21.5 15.8284 21.5 13V11C21.5 8.17157 21.5 6.75736 20.6213 5.87868C19.7426 5 18.3284 5 15.5 5H9.5C6.67157 5 5.25736 5 4.37868 5.87868ZM7.0547 8.16795C6.59517 7.8616 5.9743 7.98577 5.66795 8.4453C5.3616 8.90483 5.48577 9.5257 5.9453 9.83205L11.3906 13.4622C12.0624 13.9101 12.9376 13.9101 13.6094 13.4622L19.0547 9.83205C19.5142 9.5257 19.6384 8.90483 19.3321 8.4453C19.0257 7.98577 18.4048 7.8616 17.9453 8.16795L12.5 11.7982L7.0547 8.16795Z" fill="#646464"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 787 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM7.29289 16.7071C6.90237 16.3166 6.90237 15.6834 7.29289 15.2929L10.5858 12L7.29289 8.70711C6.90237 8.31658 6.90237 7.68342 7.29289 7.29289C7.68342 6.90237 8.31658 6.90237 8.70711 7.29289L12 10.5858L15.2929 7.29289C15.6834 6.90237 16.3166 6.90237 16.7071 7.29289C17.0976 7.68342 17.0976 8.31658 16.7071 8.70711L13.4142 12L16.7071 15.2929C17.0976 15.6834 17.0976 16.3166 16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071L12 13.4142L8.70711 16.7071C8.31658 17.0976 7.68342 17.0976 7.29289 16.7071Z" fill="#E57373"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 793 B |
@@ -0,0 +1,4 @@
|
||||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="3.5" y="3" width="18" height="18" rx="9" fill="#F9AA39"/>
|
||||
<path d="M9.07174 10.2856L12.5003 12.4285L15.9289 10.2856L12.5003 8.14278L9.07174 10.2856ZM16.786 10.2856V14.5713C16.786 14.7987 16.6957 15.0167 16.535 15.1774C16.3742 15.3382 16.1562 15.4285 15.9289 15.4285H9.07174C8.84441 15.4285 8.6264 15.3382 8.46565 15.1774C8.30491 15.0167 8.2146 14.7987 8.2146 14.5713V10.2856C8.2146 9.97278 8.38174 9.70278 8.63031 9.55278L12.5003 7.13135L16.3703 9.55278C16.6189 9.70278 16.786 9.97278 16.786 10.2856Z" fill="white"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 629 B |
@@ -0,0 +1,3 @@
|
||||
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.5 21C17.4706 21 21.5 16.9706 21.5 12C21.5 7.02944 17.4706 3 12.5 3C7.52944 3 3.5 7.02944 3.5 12C3.5 16.9706 7.52944 21 12.5 21ZM17.2682 9.64018C17.6218 9.21591 17.5645 8.58534 17.1402 8.23178C16.7159 7.87821 16.0853 7.93554 15.7318 8.35982L12.1338 12.6774C11.7871 13.0934 11.5922 13.3238 11.4366 13.4653L11.4306 13.4707L11.4242 13.4659C11.2564 13.339 11.0415 13.1272 10.6585 12.7443L9.20711 11.2929C8.81658 10.9024 8.18342 10.9024 7.79289 11.2929C7.40237 11.6834 7.40237 12.3166 7.79289 12.7071L9.24428 14.1585L9.28511 14.1993L9.28512 14.1993C9.61161 14.526 9.9257 14.8402 10.2179 15.0611C10.5453 15.3087 10.974 15.5415 11.5234 15.5165C12.0728 15.4916 12.4787 15.221 12.7823 14.9448C13.0534 14.6983 13.3377 14.3569 13.6333 14.0021L13.6333 14.0021L13.6703 13.9577L17.2682 9.64018Z" fill="#74B27B"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 954 B |
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
15
html/wp-content/plugins/post-smtp/Postman/Postman-Controller/assets/js/chart.min.js
vendored
Normal file
15
html/wp-content/plugins/post-smtp/Postman/Postman-Controller/assets/js/chart.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
html/wp-content/plugins/post-smtp/Postman/Postman-Controller/assets/js/moment.min.js
vendored
Normal file
2
html/wp-content/plugins/post-smtp/Postman/Postman-Controller/assets/js/moment.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,187 @@
|
||||
window.chartInstances = window.chartInstances || {};
|
||||
jQuery(document).ready(function($) {
|
||||
|
||||
var el = {
|
||||
canvas : jQuery('#post-smtp-dash-widget-chart'),
|
||||
settingsBtn : jQuery('#post-smtp-dash-widget-settings-button'),
|
||||
dismissBtn : jQuery('.post-smtp-dash-widget-dismiss-chart-upgrade'),
|
||||
summaryReportEmailBlock : jQuery('.post-smtp-dash-widget-summary-report-email-block'),
|
||||
summaryReportEmailDismissBtn : jQuery('.post-smtp-dash-widget-summary-report-email-dismiss'),
|
||||
summaryReportEmailEnableInput: jQuery('#post-smtp-dash-widget-summary-report-email-enable'),
|
||||
emailAlertsDismissBtn : jQuery('#post-smtp-dash-widget-dismiss-email-alert-block')
|
||||
};
|
||||
// Initialize Chart
|
||||
var ctx = el.canvas[0].getContext('2d');
|
||||
|
||||
var transactionChart = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: [],
|
||||
datasets: [
|
||||
{
|
||||
label: '',
|
||||
data: [],
|
||||
backgroundColor: 'rgba(34, 113, 177, 0.15)',
|
||||
borderColor: 'rgba(34, 113, 177, 1)',
|
||||
borderWidth: 2,
|
||||
pointRadius: 4,
|
||||
pointBorderWidth: 1,
|
||||
pointBackgroundColor: 'rgba(255, 255, 255, 1)'
|
||||
}
|
||||
]
|
||||
},
|
||||
options: {
|
||||
// responsive: true,
|
||||
maintainAspectRatio: false, // Maintain aspect ratio
|
||||
scales: {
|
||||
y: {
|
||||
beginAtZero: true,
|
||||
ticks: {
|
||||
stepSize: 1,
|
||||
},
|
||||
},
|
||||
x: {
|
||||
grid: {
|
||||
display: true
|
||||
}
|
||||
}
|
||||
},
|
||||
elements: {
|
||||
line: {
|
||||
tension: 0.4,
|
||||
},
|
||||
},
|
||||
animation: {
|
||||
duration: 1000, // Animation duration in milliseconds
|
||||
easing: 'easeInOutQuart', // Easing function to make it smooth
|
||||
},
|
||||
hover: {
|
||||
animationDuration: 0,
|
||||
},
|
||||
legend: {
|
||||
display: true,
|
||||
},
|
||||
tooltip: {
|
||||
mode: 'index',
|
||||
intersect: false
|
||||
},
|
||||
responsiveAnimationDuration: 0,
|
||||
},
|
||||
});
|
||||
window.chartInstances['myChart'] = transactionChart;
|
||||
updateWithDummyData(transactionChart);
|
||||
|
||||
el.settingsBtn.on( 'click', function( e ) {
|
||||
$( this ).toggleClass( 'open' );
|
||||
$( this ).siblings( '.post-smtp-dash-widget-settings-menu' ).fadeToggle( 200 );
|
||||
} );
|
||||
|
||||
el.dismissBtn.on( 'click', function( event ) {
|
||||
event.preventDefault();
|
||||
|
||||
// saveWidgetMeta( 'hide_graph', 1 );
|
||||
$( this ).closest( '.post-smtp-dash-widget-chart-block-container' ).remove();
|
||||
// $( '#post-smtp-dash-widget-upgrade-footer' ).show();
|
||||
} );
|
||||
|
||||
// Hide summary report email block on dismiss icon click.
|
||||
el.summaryReportEmailDismissBtn.on( 'click', function( event ) {
|
||||
event.preventDefault();
|
||||
|
||||
saveWidgetMeta( 'hide_summary_report_email_block', 1 );
|
||||
el.summaryReportEmailBlock.slideUp();
|
||||
} );
|
||||
|
||||
// Enable summary report email on checkbox enable.
|
||||
el.summaryReportEmailEnableInput.on( 'change', function( event ) {
|
||||
event.preventDefault();
|
||||
|
||||
var $self = $( this ),
|
||||
$loader = $self.next( 'i' );
|
||||
|
||||
$self.hide();
|
||||
$loader.show();
|
||||
|
||||
var data = {
|
||||
_wpnonce: post_smtp_dashboard_widget.nonce,
|
||||
action : 'post_smtp_' + post_smtp_dashboard_widget.slug + '_enable_summary_report_email'
|
||||
};
|
||||
|
||||
$.post( post_smtp_dashboard_widget.ajax_url, data )
|
||||
.done( function() {
|
||||
el.summaryReportEmailBlock.find( '.post-smtp-dash-widget-summary-report-email-block-setting' )
|
||||
.addClass( 'hidden' );
|
||||
el.summaryReportEmailBlock.find( '.post-smtp-dash-widget-summary-report-email-block-applied' )
|
||||
.removeClass( 'hidden' );
|
||||
} )
|
||||
.fail( function() {
|
||||
$self.show();
|
||||
$loader.hide();
|
||||
} );
|
||||
} );
|
||||
|
||||
// Hide email alerts banner on dismiss icon click.
|
||||
el.emailAlertsDismissBtn.on( 'click', function( event ) {
|
||||
event.preventDefault();
|
||||
|
||||
$( '#post-smtp-dash-widget-email-alerts-education' ).remove();
|
||||
saveWidgetMeta( 'hide_email_alerts_banner', 1 );
|
||||
} );
|
||||
|
||||
// chart.init();
|
||||
|
||||
});
|
||||
|
||||
function updateWithDummyData(chart) {
|
||||
var end = moment().startOf('day'),
|
||||
days = 7, // Number of days to go back
|
||||
data = [55, 45, 34, 45, 32, 55, 65], // The dummy data points
|
||||
date,
|
||||
i;
|
||||
|
||||
// Clear the previous data in the chart
|
||||
chart.data.labels = [];
|
||||
chart.data.datasets[0].data = [];
|
||||
|
||||
// Loop to create dummy data for each day in the range
|
||||
for (i = 0; i < days; i++) {
|
||||
// Clone the 'end' date to avoid modifying the original 'end' date
|
||||
date = end.clone().subtract(i, 'days');
|
||||
|
||||
// Push formatted date to labels (e.g., 'Apr 27', 'Apr 26', etc.)
|
||||
chart.data.labels.push(date.format('MMM DD')); // Format the date as string (e.g., 'Apr 27')
|
||||
|
||||
// Push the data for this day to the dataset
|
||||
chart.data.datasets[0].data.push({
|
||||
t: date.valueOf(), // Convert the Moment object to Unix timestamp (milliseconds)
|
||||
y: data[i], // Corresponding y value
|
||||
});
|
||||
}
|
||||
|
||||
console.log('chart data updated: ', chart.data); // Log the chart data for debugging
|
||||
|
||||
// Update the chart with the new data
|
||||
chart.update();
|
||||
removeOverlay( jQuery('#post-smtp-dash-widget-chart') );
|
||||
}
|
||||
|
||||
function removeOverlay( $el ) {
|
||||
$el.siblings( '.post-smtp-dash-widget-overlay' ).hide();
|
||||
}
|
||||
|
||||
function showOverlay( $el ) {
|
||||
$el.siblings( '.post-smtp-dash-widget-overlay' ).show();
|
||||
}
|
||||
function saveWidgetMeta( meta, value ) {
|
||||
|
||||
var data = {
|
||||
_wpnonce: post_smtp_dashboard_widget.nonce,
|
||||
action : 'post_smtp_' + post_smtp_dashboard_widget.slug + '_save_widget_meta',
|
||||
meta : meta,
|
||||
value : value,
|
||||
};
|
||||
|
||||
jQuery.post( post_smtp_dashboard_widget.ajax_url, data );
|
||||
|
||||
jQuery( '.post-smtp-dash-widget-settings-menu' ).fadeToggle( 200 );
|
||||
}
|
||||
Reference in New Issue
Block a user