Skip to content

Commit

Permalink
Change css to less
Browse files Browse the repository at this point in the history
  • Loading branch information
mageprince committed Mar 22, 2020
1 parent ad3b699 commit e96d688
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<default>
<buynow>
<general>
<keep_cart_products>0</keep_cart_products>
<keep_cart_products>1</keep_cart_products>
<enable_list>1</enable_list>
<enable_view>1</enable_view>
<enable_search>1</enable_search>
Expand Down
3 changes: 0 additions & 3 deletions view/frontend/layout/catalog_category_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="Mageprince_BuyNow::css/buynow.css"/>
</head>
<body>
<referenceBlock name="category.product.addto">
<block class="Mageprince\BuyNow\Block\Product\ListProduct"
Expand Down
3 changes: 0 additions & 3 deletions view/frontend/layout/catalog_product_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="Mageprince_BuyNow::css/buynow.css"/>
</head>
<body>
<referenceBlock name="product.info.addtocart">
<block class="Magento\Catalog\Block\Product\View"
Expand Down
14 changes: 7 additions & 7 deletions view/frontend/web/css/buynow.css → view/frontend/web/css/source/_module.less
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.catalog-category-view .actions-primary + .actions-secondary {
vertical-align: top;
vertical-align: top;
}

.catalog-category-view button.buynow {
margin-left: 5px;
margin-left: 5px;
}

.catalog-product-view #product-addtocart-button {
float: left;
float: left;
}

@media(max-width: 767px){
.catalog-category-view button.buynow{
margin-top: 5px;
margin-left: 0px;
}
.catalog-category-view button.buynow{
margin-top: 5px;
margin-left: 0px;
}
}

0 comments on commit e96d688

Please sign in to comment.