fix desktop image
This commit is contained in:
parent
7f6f3538ce
commit
5add4fc858
3 changed files with 126 additions and 97 deletions
|
@ -1,23 +1,30 @@
|
||||||
/* AlaskarDev Changes */
|
/* AlaskarDev Changes */
|
||||||
* {
|
* {
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
}
|
}
|
||||||
body, html {
|
|
||||||
overflow-x: hidden;
|
body,
|
||||||
|
html {
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
body del {
|
body del {
|
||||||
text-decoration: line-through !important;
|
text-decoration: line-through !important;
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery-item {
|
.gallery-item {
|
||||||
padding: 0px !important;
|
padding: 0px !important;
|
||||||
}
|
}
|
||||||
.elementor-473 .elementor-element.elementor-element-4eab943>.elementor-element-populated {
|
|
||||||
max-height: 550px;
|
.elementor-element.elementor-element-b38b99c.elementor-hidden-desktop.elementor-hidden-tablet.yes.elementor-widget.elementor-widget-woocommerce-product-images {
|
||||||
|
max-height: 550px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-control-nav.flex-control-thumbs {
|
.flex-control-nav.flex-control-thumbs {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@media (max-width: 767px) {*/
|
/*@media (max-width: 767px) {*/
|
||||||
/*.elementor-473 .elementor-element.elementor-element-9b3c06d {*/
|
/*.elementor-473 .elementor-element.elementor-element-9b3c06d {*/
|
||||||
/* padding: 0px !important;*/
|
/* padding: 0px !important;*/
|
||||||
|
@ -25,11 +32,11 @@ body del {
|
||||||
/* }*/
|
/* }*/
|
||||||
/** Title **/
|
/** Title **/
|
||||||
.elementor h1 {
|
.elementor h1 {
|
||||||
font-size: 13px !important;
|
font-size: 13px !important;
|
||||||
max-height: 20px !important;
|
max-height: 20px !important;
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
|
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Price **/
|
/** Price **/
|
||||||
|
@ -59,50 +66,56 @@ p.price del {
|
||||||
|
|
||||||
/** Mobile **/
|
/** Mobile **/
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.product_title {
|
.product_title {
|
||||||
text-align: left !important;
|
text-align: left !important;
|
||||||
margin-left: 15px !important;
|
margin-left: 15px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.price {
|
||||||
|
text-align: left;
|
||||||
|
padding: 0px 0px 0px 42px;
|
||||||
|
display: flex-start;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p.price {
|
/* Complete the look */
|
||||||
text-align: left;
|
|
||||||
padding: 0px 0px 0px 42px;
|
|
||||||
display: flex-start;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Complete the look */
|
|
||||||
/**************************************************************
|
/**************************************************************
|
||||||
* Force images to fill available width and height
|
* Force images to fill available width and height
|
||||||
**************************************************************/
|
**************************************************************/
|
||||||
.woocommerce ul.products li.product {
|
.woocommerce ul.products li.product {
|
||||||
height: 550px; /* Fixed height for Desktop */
|
height: 550px;
|
||||||
width: 450px;
|
/* Fixed height for Desktop */
|
||||||
border: solid;
|
width: 450px;
|
||||||
border-width: 1px;
|
border: solid;
|
||||||
|
border-width: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce ul.products li.product img {
|
.woocommerce ul.products li.product img {
|
||||||
position: static !important;
|
position: static !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce ul.products, .woocommerce-page ul.products {
|
.woocommerce ul.products,
|
||||||
gap: 0px !important;
|
.woocommerce-page ul.products {
|
||||||
margin-bottom: 0px !important;
|
gap: 0px !important;
|
||||||
height: 550px;
|
margin-bottom: 0px !important;
|
||||||
|
height: 550px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.woocommerce ul.products li.product img {
|
.woocommerce ul.products li.product img {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto; /* Allow the image to scale proportionally */
|
height: auto;
|
||||||
max-height: 1024px; /* Set a max height for the image (adjust as needed) */
|
/* Allow the image to scale proportionally */
|
||||||
max-width: auto;
|
max-height: 1024px;
|
||||||
|
/* Set a max height for the image (adjust as needed) */
|
||||||
|
max-width: auto;
|
||||||
|
|
||||||
object-fit: cover; /* Crop edges if the image is too tall/wide */
|
object-fit: cover;
|
||||||
object-position: top; /* Align the image to the top */
|
/* Crop edges if the image is too tall/wide */
|
||||||
|
object-position: top;
|
||||||
|
/* Align the image to the top */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -112,84 +125,101 @@ p.price {
|
||||||
***********************************************/
|
***********************************************/
|
||||||
|
|
||||||
.woocommerce ul.products li.product .ast-loop-product__link {
|
.woocommerce ul.products li.product .ast-loop-product__link {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce ul.products li.product .ast-loop-product__link h2 {
|
.woocommerce ul.products li.product .ast-loop-product__link h2 {
|
||||||
font-size: 12px !important; /* Adjust heading font size */
|
font-size: 12px !important;
|
||||||
text-align: left !important; /* Align heading to the right */
|
/* Adjust heading font size */
|
||||||
margin: 0px 0px !important; /* Adjust margin as needed */
|
text-align: left !important;
|
||||||
|
/* Align heading to the right */
|
||||||
|
margin: 0px 0px !important;
|
||||||
|
/* Adjust margin as needed */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Adjust price font size and alignment */
|
/* Adjust price font size and alignment */
|
||||||
.woocommerce ul.products li.product .woocommerce-Price-amount {
|
.woocommerce ul.products li.product .woocommerce-Price-amount {
|
||||||
font-size: 10px !important; /* Adjust price font size */
|
font-size: 10px !important;
|
||||||
text-align: left !important;/* Align price to the right */
|
/* Adjust price font size */
|
||||||
align-items: left !important;
|
text-align: left !important;
|
||||||
|
/* Align price to the right */
|
||||||
|
align-items: left !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce ul.products li.product .astra-shop-summary-wrap {
|
.woocommerce ul.products li.product .astra-shop-summary-wrap {
|
||||||
text-align: left !important;
|
text-align: left !important;
|
||||||
align-items: left !important;
|
align-items: left !important;
|
||||||
display: inline !important;
|
display: inline !important;
|
||||||
margin: 10px 10px !important;
|
margin: 10px 10px !important;
|
||||||
}
|
}
|
||||||
.woocommerce-js ul.products li.product .price, .woocommerce-page ul.products li.product .price {
|
|
||||||
line-height: 1;
|
.woocommerce-js ul.products li.product .price,
|
||||||
font-size: 12px !important;
|
.woocommerce-page ul.products li.product .price {
|
||||||
color: red !important;
|
line-height: 1;
|
||||||
|
font-size: 12px !important;
|
||||||
|
color: red !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce-Price-amount amount {
|
.woocommerce-Price-amount amount {
|
||||||
font-size: 10px !important;
|
font-size: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************
|
/***************************************************
|
||||||
* Headings: Ensure they are consistent
|
* Headings: Ensure they are consistent
|
||||||
***************************************************/
|
***************************************************/
|
||||||
a.ast-loop-product__link h2 {
|
a.ast-loop-product__link h2 {
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0 0;
|
margin: 0 0;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tp-image-hover {
|
.tp-image-hover {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************
|
/***********************************************
|
||||||
* Mobile-specific styles (applies to screens ≤ 768px)
|
* Mobile-specific styles (applies to screens ≤ 768px)
|
||||||
***********************************************/
|
***********************************************/
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
/* Show only 2 items per row on mobile */
|
|
||||||
.woocommerce ul.products li.product {
|
|
||||||
flex: 0 0 50%; /* Each item takes up 50% of the row */
|
|
||||||
max-width: 50%; /* Each item takes up 50% of the row */
|
|
||||||
height: 272px; /* Fixed height for mobile */
|
|
||||||
margin-bottom: 15px; /* Add spacing between rows (optional) */
|
|
||||||
}
|
|
||||||
|
|
||||||
.woocommerce ul.products, .woocommerce-page ul.products {
|
/* Show only 2 items per row on mobile */
|
||||||
column-gap: 20px !important;
|
.woocommerce ul.products li.product {
|
||||||
margin-bottom: 0px !important;
|
flex: 0 0 50%;
|
||||||
height: auto;
|
/* Each item takes up 50% of the row */
|
||||||
|
max-width: 50%;
|
||||||
|
/* Each item takes up 50% of the row */
|
||||||
|
height: 272px;
|
||||||
|
/* Fixed height for mobile */
|
||||||
|
margin-bottom: 15px;
|
||||||
|
/* Add spacing between rows (optional) */
|
||||||
|
}
|
||||||
|
|
||||||
|
.woocommerce ul.products,
|
||||||
|
.woocommerce-page ul.products {
|
||||||
|
column-gap: 20px !important;
|
||||||
|
margin-bottom: 0px !important;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* End of Complete the look */
|
||||||
|
.elementor img {
|
||||||
|
position: relative;
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
/* End of Complete the look */
|
|
||||||
.elementor img {
|
|
||||||
position: relative;
|
|
||||||
z-index: -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*/* single product image */*/
|
/*/* single product image */
|
||||||
@media (max-width: 768px) {
|
*/ @media (max-width: 768px) {
|
||||||
|
|
||||||
|
.elementor-widget-container {
|
||||||
|
max-height: 560px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.elementor-widget-image-carousel .swiper .swiper-slide figure {
|
||||||
|
max-height: 560px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.elementor-widget-container {
|
|
||||||
max-height: 560px;
|
|
||||||
}
|
|
||||||
.elementor-widget-image-carousel .swiper .swiper-slide figure {
|
|
||||||
max-height: 560px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* End of AlaskarDev */
|
/* End of AlaskarDev */
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
/**
|
/**
|
||||||
* Define Constants
|
* Define Constants
|
||||||
*/
|
*/
|
||||||
define( 'CHILD_THEME_OONT_THEME_VERSION', '1.7.2' );
|
define( 'CHILD_THEME_OONT_THEME_VERSION', '1.7.3' );
|
||||||
define( 'SOFTOBA_RETURN_POST_TYPE', 'return_request' );
|
define( 'SOFTOBA_RETURN_POST_TYPE', 'return_request' );
|
||||||
define( 'SOFTOBA_EXCHANGE_POST_TYPE', 'exchange_request' );
|
define( 'SOFTOBA_EXCHANGE_POST_TYPE', 'exchange_request' );
|
||||||
define('SOFTOBA_THEME_DIR', get_stylesheet_directory());
|
define('SOFTOBA_THEME_DIR', get_stylesheet_directory());
|
||||||
|
|
|
@ -3,7 +3,7 @@ Theme Name: OONT THEME V last
|
||||||
Author: Brainstorm Force
|
Author: Brainstorm Force
|
||||||
Author URI: http://wpastra.com/about/
|
Author URI: http://wpastra.com/about/
|
||||||
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
|
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
|
||||||
Version: 1.7.1
|
Version: 1.7.2
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Text Domain: oont-theme
|
Text Domain: oont-theme
|
||||||
|
@ -15,21 +15,21 @@ form.variations_form.cart table.variations th.label {
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce a.remove .ahfb-svg-iconset .ast-close-svg {
|
.woocommerce a.remove .ahfb-svg-iconset .ast-close-svg {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide the "x" */
|
/* Hide the "x" */
|
||||||
|
|
||||||
a.remove {
|
a.remove {
|
||||||
text-indent: -9999px;
|
text-indent: -9999px;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add a Fontawesome icon instead */
|
/* Add a Fontawesome icon instead */
|
||||||
/* Learn More in the Following Paragraphs */
|
/* Learn More in the Following Paragraphs */
|
||||||
|
|
||||||
a.remove:before {
|
a.remove:before {
|
||||||
font-family: FontAwesome;
|
font-family: FontAwesome;
|
||||||
content: "\f1f8";
|
content: "\f1f8";
|
||||||
|
@ -37,7 +37,6 @@ a.remove:before {
|
||||||
text-indent: 0;
|
text-indent: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quantity{
|
.quantity {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue