Skip to content

Commit

Permalink
CSS tweaks for popup
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Apr 12, 2024
1 parent edce03a commit a98950c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
--prpl-column-max-width: 30rem;
--prpl-max-columns: 4;
--prpl-border-radius: 8px;
--prpl-border-radius-big: calc(var(--prpl-border-radius) * 2);

--prpl-container-max-width: calc(var(--prpl-column-max-width) * var(--prpl-max-columns) + var(--prpl-gap) * (var(--prpl-max-columns) - 1));

Expand Down Expand Up @@ -201,7 +202,7 @@ button.prpl-info-icon {
.prpl-wrap .counter-big-wrapper {
background-color: var(--prpl-background-purple);
padding: var(--prpl-padding);
border-radius: calc(var(--prpl-border-radius) * 2);
border-radius: var(--prpl-border-radius-big);
display: flex;
flex-direction: column;
align-items: center;
Expand Down Expand Up @@ -545,20 +546,29 @@ body.prpl-popup-open.prpl-popup-badges-details #prpl-popup-badges-details {
/*------------------------------------*\
Badges popup.
\*------------------------------------*/
#popup-badges-content {
#popup-badges-content,
#popup-badges-maintenance {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: var(--prpl-padding);
}

#popup-badges-content .inner {
background: var(--prpl-background-red);
border-radius: calc(var(--prpl-border-radius) * 2);
#popup-badges-content .inner,
#popup-badges-maintenance .inner {
border-radius: var(--prpl-border-radius-big);
padding: var(--prpl-padding);
font-size: var(--prpl-font-size-small);
text-align: center;
}

#popup-badges-content .inner {
background: var(--prpl-background-red);
}

#popup-badges-maintenance .inner {
background: var(--prpl-background-blue);
}

.badges-popup-progress-total {
display: block;
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion classes/popups/class-badges.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function the_content() {
<div class="prpl-widget-wrapper">
<h3><?php \esc_html_e( 'Keep adding post and pages', 'progress-planner' ); ?></h3>
<p><?php \esc_html_e( 'The more you write, the closer you come to winning your badges. You can earn level 1 of this badge immediately after installing the plugin if you have written more than 200 posts.', 'progress-planner' ); ?></p>
<div id="popup-badges-content">
<div id="popup-badges-maintenance">
<?php $this->print_badges( 'content' ); ?>
</div>
</div>
Expand Down

0 comments on commit a98950c

Please sign in to comment.