Skip to content

problem new template #735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Antonioele opened this issue Nov 8, 2014 · 5 comments
Closed

problem new template #735

Antonioele opened this issue Nov 8, 2014 · 5 comments

Comments

@Antonioele
Copy link

I used magento 0.1.0-alpha102.I changed the template blank, I added a styles.less, the line
@import "source / variables.less" I added the file variables.less I made the changes but do not work. Because '????

@buskamuza
Copy link
Contributor

Hi @Antonioele ,
could you give more details?

  1. As I understand you changed file app/design/frontend/Magento/blank/web/css/styles.less in theme "blank". Is it correct?
  2. What's path to variables.less that you created?
  3. What's content of variables.less?
  4. What result do you get (styles.css is not regenerated with new content that includes variables.less?)?
  5. What application mode do you work with? By default it's "default"

@Antonioele
Copy link
Author

the path to variables.less is app/design/Magento/blank/web/css/source/variables.less
I changed
@color-primary: #fff;
@color-primary-dark: darken(@color-primary, 35%); // #000
@color-primary-darker: darken(@color-primary, 13.5%); // #111
@color-primary-lighter: lighten(@color-primary, 29%); // #7d7d7d
@color-primary-light: lighten(@color-primary, 45%); // #a6a6a6
@color-secondary: #e8e8e8;
@color-secondary-light: lighten(@color-secondary, 5%);
@page-bg-color: #fff;
@panel-bg: darken(@page-bg-color, 6%);
@color-active: #ff5501;
@color-error: #e02b27;
in style.less
@import import "source/variables.less";
how to change mode application ??

@buskamuza
Copy link
Contributor

@Antonioele , you can change application mode by adding one of the following lines to your root .htaccess file (if you use Apache):

SetEnv MAGE_MODE developer
SetEnv MAGE_MODE production
SetEnv MAGE_MODE default # default behavior, may be skipped

Regarding your issue:

  1. @import import "source/variables.less"; - it's incorrect. Please, change it to @import "source/variables.less";
  2. After the fix remove var/cache, var/view_preprocessed and pub/static/frontend directories.
  3. Open http://your.domain/magento_path/pub/static/frontend/Magento/blank/en_US/css/styles.css
  4. If the fix doesn't help, switch to 'developer' mode - it will make the application to display errors for you.

I tried your example and it looks working - I changed @color-active to '#01f1f1' and it appeared in the generated styles.css.

@buskamuza
Copy link
Contributor

@Antonioele , one more note - it's not recommended to change core files. Are you just testing LESS implementation in Magento or you really want to change 'blank' theme?

@maksek maksek added the CS label Nov 12, 2014
@Antonioele
Copy link
Author

Il 10.11.2014 21:13 Olga ha scritto:

@Antonioele [1] , you can
change application mode by adding one of the following lines to your
root .htaccess file (if you use Apache):

SetEnv MAGE_MODE
developer SetEnv MAGE_MODE production SetEnv MAGE_MODE default # default
behavior, may be skipped

Regarding your issue:

  1. @import import
    "source/variables.less"; - it's incorrect. Please, change it to @import
    "source/variables.less";
  2. After the fix remove var/cache,
    var/view_preprocessed and pub/static/frontend directories.
  3. Open
    http://your.domain/magento_path/pub/static/frontend/Magento/blank/en_US/css/styles.css
    [2]
  4. If the fix doesn't help, switch to 'developer' mode - it will
    make the application to display errors for you.

I tried your
example and it looks working - I changed @color-active to '#01f1f1' and
it appeared in the generated styles.css.

Reply to this email
directly or view it on GitHub [3].

thanks olga buskamuza i fixed
the problem.

Connetti gratis il mondo con la nuova indoona: hai la chat, le chiamate, le video chiamate e persino le chiamate di gruppo.
E chiami gratis anche i numeri fissi e mobili nel mondo!
Scarica subito l’app Vai su https://www.indoona.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants