Skip to content

Commit

Permalink
style: [product-page-tab-pricing] responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgoud committed Mar 26, 2024
1 parent da1ebce commit 721df43
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 16 deletions.
61 changes: 46 additions & 15 deletions admin-dev/themes/new-theme/scss/pages/product/product_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,15 @@ $product-page-padding-bottom: 80px !default;
margin-bottom: 1.25rem;
}

.money-type {
max-width: 20rem;
}
@include media-breakpoint-up(md) {

&.select-widget {
max-width: 20rem;
.money-type {
max-width: 20rem;
}

&.select-widget {
max-width: 20rem;
}
}

@include media-breakpoint-down("sm") {
Expand Down Expand Up @@ -2841,16 +2844,6 @@ $mobile-menu-height: 2.6rem !default;
padding: 8px 0;
}
}

#product_stock{

#product_stock_options {

#product_stock_options_disabling_switch_low_stock_threshold {
margin-top: 7px;
}
}
}
}

.combination-page {
Expand Down Expand Up @@ -2907,6 +2900,44 @@ $mobile-menu-height: 2.6rem !default;
}
}

@include media-breakpoint-down(md) {
#product_pricing {

#product_pricing_retail_price {
flex-direction: column;
gap: 1rem;

.retail-price-tax-excluded {
margin-left: 3rem;
}
}

#product_pricing_priority_management_priorities,
#product_pricing_summary {
flex-direction: column;
}

#product_pricing_priority_management_use_custom_priority {
.form-check-label {
flex-wrap: wrap;
}
}

#product_pricing_unit_price {
.form-group {
display: flex;
flex-direction: column;
justify-content: space-between;
}
}

}
}

.form-horizontal span.ps-switch:not(.ps-switch-lg) {
margin-top: 7px;
}

@media only screen and (min-width: 320px) and (max-width: 1450px) {
// No more arrows in tabs
.product-page-v2 {
Expand Down
2 changes: 1 addition & 1 deletion themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"webpack": "^5.37.1",
"webpack-cli": "^4.7.0"
}
}
}

0 comments on commit 721df43

Please sign in to comment.