Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 37893

Questions about the less CSS preprocessor usage in Magento. It supercharges the CSS for the developers with extra features and gets compiled back to CSS in the front/back end to be processed by the browser like a normal CSS.

1 vote
Accepted

Can't modify style in custom theme using Grunt

Change your code in theme.js file as below: bentriz: { area: 'frontend', name: 'Hiddentechies/bentriz', locale: 'ja_JP', files: [ 'css/styles-m', …
Dipesh Rangani's user avatar
0 votes

Magento 2 - Overriding CSS without using !important everywhere

You have to override same .less file of parent theme you want to override, like if you want to override _theme.less file, then you have to copy this file to child theme over here (make sure same path …
Dipesh Rangani's user avatar
1 vote

How to edit custom css and java script In Magento 2

You have to create custom theme first read this How to create a storefront theme? Apply new created theme from backend given path below Content -> Design -> Configuration Then you have to configur …
Dipesh Rangani's user avatar
6 votes

Magento 2 How to override vendor/magento/magento2-base/lib/web/css/source/lib/_navigation.less?

1) You have to copy _navigation.less from your parent theme to app\design\frontend\vendor\theme\web\css\source(your custom theme) and override your css after .lib-main-navigation(); and .lib-main-nav …
Dipesh Rangani's user avatar
6 votes
Accepted

How do you change the color of buttons to a custom color?

You have to override variable value in your custom theme _theme.less file as below: @button__color: red; @button__background: yellow; If you did,t configure compilation then refer this How to confi …
Dipesh Rangani's user avatar
1 vote

Magento 2 and change CSS styles - in LUMA - as a child theme

Update variable value in your _theme.less file: @header-panel__background-color: red; if you want add custom .less file refer this How do I add a custom CSS file
Dipesh Rangani's user avatar
0 votes

how to automatic update file `.less` in custom theme magento2?

Follow below steps:- Just add new custom file here app\design\frontend\Vendor\Themename\web\css\source\_custom.less and import this file in source file given path below app\design\frontend\Vendor …
Dipesh Rangani's user avatar
1 vote

How to update/customize/override Magento 2 css styles

First you have to configure compilation of style in admin path given below Store -> Configuration -> Advanced -> Developer -> Front-end development workflow change to Client side less compilation …
Dipesh Rangani's user avatar
2 votes

Magento 2 add background image in custom theme

Just add style in _module.less file of given path below: app/design/frontend/vendor/theme/Magento_theme/css/source body { .lib-css(background-image, @page__background-image); } you need to dep …
Dipesh Rangani's user avatar
12 votes
Accepted

How can I add custom less file and in a particular theme compile less file in Magento 2

Just add new file here app\design\frontend\Vendor\Themename\web\css\source\_new.less and import this file in source file given path below app\design\frontend\Vendor\Themename\web\css\source\_sourc …
Dipesh Rangani's user avatar
33 votes
Accepted

Magento2 : How to path for background image in .less file?

First add image in app\design\frontend\vendor\theme\web\images folder and write css as below: background: url('@{baseDir}images/icon_sprite.png'); after add new image run command as below: - php b …
Dipesh Rangani's user avatar
1 vote
Accepted

How to properly edit Magento 2 stylesheets? And what to do next to see it in the frontend?

Don't edit pub folder style files(less or css), first you have to configure compilation of style in admin path given below Store -> Configuration -> Advanced -> Developer -> Front-end development wor …
Dipesh Rangani's user avatar