Comments (4)
Can you attach the content of base.less?
from less.rb.
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.
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.
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)
- dumpLineNumbers option not working HOT 1
- error evaluating function `image-url` HOT 1
- Error when parsing nested parentheses HOT 5
- conflict with the nodejs-less HOT 2
- Make less work on Windows, or use 'node' gem. HOT 4
- Imports from a DB or other dynamic source HOT 1
- Support Less.js 1.4.x HOT 4
- Better error messages HOT 2
- License missing from gemspec HOT 1
- method `method_missing' called on terminated object HOT 1
- Update for less 1.7 HOT 8
- Update to LESS 2.X HOT 8
- Is :paths option ignored?
- "request" dependency for inlining external files HOT 3
- “Maximum call stack size exceeded” when using Fibers HOT 1
- Getting WeakRef::RefError: Invalid Reference - probably recycled error
- Can Less.rb support MiniRacer runtime? HOT 1
- Crashes with hardened libc
- Upgrading to Less 3.x
- how does it add mixin XD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from less.rb.