Code Monkey home page Code Monkey logo

Comments (4)

cowboyd avatar cowboyd commented on September 14, 2024

Can you attach the content of base.less?

from less.rb.

mavam avatar mavam commented on September 14, 2024

Here it is:

@navbar_font: 'Droid Serif', serif;
@title_font: 'Essays 1743', Palatino, Helvetica, sans-serif;
@header_font: 'Droid Serif', serif;
@body_font: Georgia, Palatino, Times, 'Times New Roman', sans-serif;
@code_font: 'Droid Sans Mono', monospace;

@primary_color: #1240ab;
@primary_color_light: #4671d5;
@primary_color_dark: #06266f;
@secondary_color: #e78900;
@secondary_color_light: #ffbf40;
@secondary_color_dark: #d96600;
@grey_on_white: #ccc;

@name_color: #ddd;
@background_color: #f0f0f0;
@link_color: @primary_color;
@hover_color: @primary_color_light;
@border_color: @secondary_color;
@alt_color: @secondary_color;

@body_width: 700px;

.shadow (@x: 1px, @y: 3px, @blur: 20px, @color: #888) {
  box-shadow: @x @y @blur @color;
  -moz-box-shadow: @x @y @blur @color;
  -webkit-box-shadow: @x @y @blur @color;
  -o-box-shadow: @x @y @blur @color;
}

.border-radius (@radius: 8px) {
  border-radius: @radius;
  -moz-border-radius: @radius;
  -webkit-border-radius: @radius;
  -o-border-radius: @radius;
}

.rotate (@angle: -90deg) {
  transform: rotate(@angle);
  -webkit-transform: rotate(@angle);
  -moz-transform: rotate(@angle);
  -o-transform: rotate(@angle);
}

.gradient (@from: #000, @to: #fff) {
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(@from), to(@to));
  background-image: -moz-linear-gradient(top, @from 1%, @to 100%);
}

.shadow { .shadow(); }

.border-radius { .border-radius(); }

from less.rb.

mavam avatar mavam commented on September 14, 2024

I tracked down the offending statements: the last two class definitions cause the error. Thus far I used these special classes to allow for constructs like this: <tag class="shadow">. I guess I have to rename these classes now since less-js does not seem to support them anymore. That said, this problem is not related to less.rb but more an artifact of the new underlying JavaScript less engine.

from less.rb.

cowboyd avatar cowboyd commented on September 14, 2024

I agree, but it the error that you got should have made that apparent right off the bat. Instead you got some obscure error. I'm going to use your example to improve the error reporting, so thanks!

cheers,
Charles

On Jun 9, 2011, at 5:06 PM, mavam wrote:

I tracked down the offending statements: the last two class definitions cause the error. Thus far I used these special classes to allow for constructs like this: <tag class="shadow">. I guess I have to rename these classes now since less-js does not seem to support them anymore. That said, this problem is not related to less.rb but more an artifact of the new underlying JavaScript less engine.

Reply to this email directly or view it on GitHub:
#3 (comment)

from less.rb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.