Skip to content

Commit

Permalink
Merge pull request #9776 from awesomemotive/release/3.3.6.1
Browse files Browse the repository at this point in the history
Adding 3.3.6.0/1
  • Loading branch information
cklosowski authored Jan 21, 2025
2 parents 5207cb0 + 6ab5b8a commit 74f6123
Show file tree
Hide file tree
Showing 193 changed files with 8,371 additions and 8,756 deletions.
14 changes: 14 additions & 0 deletions assets/css/admin/downloads/_actions.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.edd__handle-actions-order {
display: flex;
transition: opacity 0.25s ease-in-out;

button {
padding: 9px;
border: 0;
background: transparent;

&:disabled .dashicons {
opacity: 0.5;
}
}
}
16 changes: 10 additions & 6 deletions assets/css/admin/downloads/_prices.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.edd-section-content__fields--custom {
display: grid;
gap: 20px;
}

.edd-custom-price-option {
&-sections-wrap {
Expand All @@ -11,8 +15,8 @@

&-section {
display: block;
padding: 10px 8px;
border-bottom: 1px solid rgba( 222, 222, 222, 0.3 );
padding: .5em .5em 20px .5em;
border-bottom: 1px solid $wp-border;

&-title {
display: block;
Expand All @@ -25,10 +29,6 @@
gap: 12px;
margin-bottom: 6px;
}

&:last-child {
border-bottom: none;
}
}
}

Expand All @@ -39,3 +39,7 @@
color: $wp-text;
}
}

.edd-variable-prices__default input:checked {
opacity: .5;
}
30 changes: 0 additions & 30 deletions assets/css/admin/downloads/_product_settings.scss

This file was deleted.

67 changes: 33 additions & 34 deletions assets/css/admin/downloads/_repeatable_row.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
.edd-repeatables-wrap {
display: flex;
flex-direction: column;
gap: 16px;
}

.edd_repeatable_row {
border: 1px solid $wp-border;
border-radius: 3px;
margin: 0;
padding: 0;
}

.edd_repeatable_row.ui-sortable-placeholder {
line-height: 0;
padding: 0;
Expand All @@ -20,11 +33,6 @@
width: 100%;
}

.edd_variable_prices_wrapper:not(:first-child),
.edd_repeatable_upload_wrapper:not(:first-child) {
margin-top: 12px;
}

.edd_repeatable_row.ui-sortable-helper .edd-repeatable-row-actions .edd-remove-row {
display: none;
}
Expand All @@ -39,17 +47,14 @@
}
}

.edd-repeatable-row-header,
.edd-bundle-products-header {
.edd-repeatable-row-header {
clear: both;
background: $wp-gray-0;
border: 1px solid $wp-border;
border-bottom: 1px solid $wp-border;
display: flex;
justify-content: space-between;
}

.edd-repeatable-row-header {
cursor: move;
align-items: center;
padding: 0 8px;
}

.edd_repeatable_row:hover .edd-repeatable-row-header,
Expand All @@ -70,21 +75,21 @@
clear: both;
}

.edd-repeatable-row-title,
.edd-bundle-products-header {
font-weight: 600;
margin-top: 0;
}

.edd-repeatable-row-title,
.edd-repeatable-row-actions,
.edd-bundle-products-header {
padding: 8px;
box-sizing: border-box;
.edd-repeatable-row-title {
font-weight: 600;
padding: 9px 0;
margin-right: auto;
}

.edd-repeatable-row-actions {
flex-grow: 1;
text-align: right;
display: flex;
margin-left: auto;
align-items: center;
gap: 8px;
}

.edd-repeatable-row-actions .edd-remove-row,
Expand All @@ -96,23 +101,18 @@
.edd-repeatable-row-standard-fields,
.edd-bundled-product-row {
padding: 8px;
border-width: 0 1px 1px;
border-style: solid;
border-color: $wp-border;
display: flex;
justify-content: space-between;
align-items: center;
gap: 18px;
}

/* @todo: remove these when .edd-form-row has been fully implemented */
.edd-repeatable-row-standard-fields .edd-form-group,
.edd-bundled-product-row .edd-form-group {
margin-bottom: 0;
display: inline-flex;
flex-direction: column;
flex-grow: 1;
justify-content: space-between;
.edd-form-group {
margin-bottom: 0;
display: inline-flex;
flex-direction: column;
flex-grow: 1;
justify-content: space-between;
}
}

.edd-repeatable-row-setting-label .edd-help-tip {
Expand Down Expand Up @@ -154,7 +154,6 @@

@media screen and (max-width: $break-mobile) {

.edd-bundle-products-header,
.edd-repeatable-row-header,
.edd-repeatable-row-standard-fields,
.edd-bundled-product-row {
Expand Down
86 changes: 86 additions & 0 deletions assets/css/admin/downloads/_sections.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
.edd-download-editor__sections {
margin-top: 20px;

.section-content--is-dynamic {
position: relative;
}

.section-wrap .edd-section-content__fields--standard .edd-form-group {
margin-bottom: 16px;
}

.section-content .inside {
margin: 0 !important;
padding: 0;
}
}

.section-title--is-dynamic {
&:hover,
&:focus {
.edd-section-title__handle-actions:not(.edd-hidden) {
opacity: 1;
z-index: 1000;
}
}

// This CSS is added specifically to help with keyboard navigation accessibility.
.edd-section-title__handle-actions:not(.edd-hidden) {
&:focus-within {
opacity: 1;
z-index: 1000;
}
}
}

.edd-section-title__handle-actions.edd__handle-actions-order {
position: absolute;
right: -44px;
display: flex;
opacity: 0;
transition: opacity 0.25s ease-in-out;
z-index: -1;

button {
padding: 9px;
border: 1px solid $gray-200;
background-color: #fcfcfc;

&:first-of-type {
border-right: 0;
border-left: 0;
}

&:last-of-type {
border-left: 0;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}

&:disabled .dashicons {
opacity: 0.5;
}

&:focus-visible {
outline: none;
box-shadow: inset 0 0 1px 1px var(--wp-admin-theme-color);
}
}

@media only screen and (max-width: $break-medium) {
right: 0;
left: 100%;
}
}

body:not(.block-editor-page) {
#edd_product_details .inside {
margin: 0;
padding: 0;
}

.edd-download-editor__sections {
border: none;
margin-top: 0;
}
}
6 changes: 6 additions & 0 deletions assets/css/admin/downloads/_settings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.edd-buy-buttons {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 20px;
}
4 changes: 3 additions & 1 deletion assets/css/admin/downloads/style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@import "../variables/variables";
@import "prices";
@import "product_settings";
@import "repeatable_row";
@import "upload";
@import "duplicate";
@import "product-files";
@import "sections";
@import "settings";
@import "actions";
1 change: 1 addition & 0 deletions assets/css/admin/forms/_form-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@

+label {
display: unset;
font-weight: unset;
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions assets/css/admin/forms/_general.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@media screen and (max-width: $break-mobile) {
.regular-text {
width: 100%;
}
}
1 change: 1 addition & 0 deletions assets/css/admin/forms/style.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import "form-group";
@import "form-row";
@import "general";
4 changes: 4 additions & 0 deletions assets/css/admin/general/_elements.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.edd-hidden {
display: none;

&--required {
display: none !important;
}
}

.edd-clearfix:after {
Expand Down
46 changes: 46 additions & 0 deletions assets/css/admin/general/_grid.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.edd-admin--has-grid {
display: grid;
display: -ms-grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-gap: 20px;

.postbox {
margin-bottom: 0;
}

.edd-from-to-wrapper {
display: flex;
margin-bottom: 16px;
width: 100%;

input {
width: 100%;
}

span {
flex-grow: 1;
}
}

form {
display: flex;
flex-direction: column;
flex-wrap: wrap;
position: relative;
}

.postbox .edd-select {
max-width: 100%;
margin-right: 0;
}

.button.updating-message:before,
.button.updated-message:before {
vertical-align: text-bottom;
margin: 0 5px 0 0;
}

@media screen and (max-width: $break-mobile) {
grid-template-columns: 1fr;
}
}
Loading

0 comments on commit 74f6123

Please sign in to comment.