0
Welcome Guest! Login
0 items Join Now

How to learn more about LESS

    • earthdog's Avatar
    • earthdog
    • Jr. Rocketeer
    • Posts: 35
    • Thanks: 0

    Re: How to learn more about LESS

    Posted 11 years 10 months ago
    • Henning wrote:
      just increase css specificity ...


      @media screen and (max-width: 480px) {
      div#rt-header a#rt-logo {
      background-image: url(http://mypathtoimage)
      }
      }

      ..and in which custom.less file to put the code?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: How to learn more about LESS

    Posted 11 years 10 months ago
    • Does not need to be a less file.
      Add it to your rt_metropolis-custom.css ....
    • earthdog's Avatar
    • earthdog
    • Jr. Rocketeer
    • Posts: 35
    • Thanks: 0

    Re: How to learn more about LESS

    Posted 11 years 10 months ago
    • nope..

      i tried putting the file in css and /or css-compiled dirs but nothing changed.

      i tried more specific syntax:
      div#rt-header div#rt-alpha div#rt-block#logo-block a#rt-logo

      but again nothing.

      i tried also putting it in .less files:

      mediaqueries-custom.less
      main-style-custom.less

      but again nothing... :cry:
    • earthdog's Avatar
    • earthdog
    • Jr. Rocketeer
    • Posts: 35
    • Thanks: 0

    Re: How to learn more about LESS

    Posted 11 years 10 months ago
    • unbelievable... :)

      I had to put !important
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: How to learn more about LESS

    Posted 11 years 10 months ago
    • no wonder cause

      div#rt-header div#rt-alpha div#rt-block#logo-block a#rt-logo

      does not exist.
    • earthdog's Avatar
    • earthdog
    • Jr. Rocketeer
    • Posts: 35
    • Thanks: 0

    Re: How to learn more about LESS

    Posted 11 years 10 months ago
    • Henning wrote:
      no wonder cause

      div#rt-header div#rt-alpha div#rt-block#logo-block a#rt-logo

      does not exist.

      it worked with
      div#rt-header a#rt-logo
      BUT also with adding !important
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: How to learn more about LESS

    Posted 11 years 10 months ago
    • rt-alpha and rt.block are classes and not ids so

      div#rt-header div.rt-alpha div.rt-block a#rt-logo would have worked too I guess

Time to create page: 0.056 seconds