Comments (18)
Yes, all the output styles will be implemented. It's currently a low priority compared to other features such as full interpolation and selector inheritance.
from libsass.
Awww, we didn't mean to ruin your excitement.
On Tue, May 1, 2012 at 6:05 AM, Jamie Rumbelow <
[email protected]
wrote:
I got all excited about adding different output styles to my libsass
binding to discover that onlySASS_STYLE_NESTED
is working!Are there still plans to make the other style constants work?
Reply to this email directly or view it on GitHub:
#15
from libsass.
We also would like to see compressed!
from libsass.
I'll be getting this feature in by the end of the month!
from libsass.
Added support for compressed output styles. Please give it a try!
from libsass.
Not working for me. Getting an empty output
from libsass.
Can you provide more details on how you're invoking LibSass? It's been working for us.
from libsass.
Using SassC
as in
./bin/sassc [input file]
from libsass.
Oh, the SassC command-line tool is still hard-coded to use the nested style (haven't had time to update that yet!). To use the compressed style, you currently have to set the flag in the C interface when invoking LibSass as a library.
from libsass.
I'm just working on sassc flag handling now. Is it ok to use getopt or does it need to be Windows friendly?
from libsass.
Hmm ... preferably Windows-friendly, but that's less of a priority than keeping the core library itself portable. So I'd say go ahead and use getopt if it makes things much easier and more robust. Thanks for the help!
from libsass.
Sorry if i being a bit dense - dont have much experience with C
Changed the sassc.c file line 16 to ctx->options.output_style = SASS_STYLE_COMPRESSED;
Then ran make
Output is now empty
from libsass.
Have you updated the libsass submodule? Try going into the libsass
subfolder and run git pull
. Then back out and do a make clean
and make
.
from libsass.
That did it! Thanks for the help...
Seems to be working well
from libsass.
No problem! And let me know if the styles don't look right!
from libsass.
Will be testing tomorrow. Ill let you know if there any problems!
from libsass.
Isn't expanded
and nested
somewhat redundant?
Supposedly, nested
produces the following output:
a > b > c {
declaration }
a > b > c > d {
declaration1;
declaration2; }
and the expanded
is supposed to be:
a > b > c
{
declaration;
}
a > b > c > d
{
declaration1;
declaration2;
}
Then there might be a requirement which begs another kind of nested expansion:
a > b > c
{
declaration;
}
a > b > c > d
{
declaration1;
declaration2;
}
So, wouldn't it make sense to have just two styles: expanded
(which is nested-expansion; unobtrusive, well-formatted and nested) and compact
(minified flavor)? Perhaps, expanded
can be aided by another option --indent
, which is the base indentation in case of multi-nesting (normally its 2 or 4).
On a related note, both kind of outputs should get the _detailed_ source maps pinpointing the location for each source-to-source artifacts (exactly how lessc
does it), as opposed to the mere hints -- not capturing the details to full extent / depriving consumers of implementing some extraordinary features. See #324.
from libsass.
We are trying to match the styles produced by the Ruby implementation. I'm going to close this since the issue is actually about the constants, not compatibility with Ruby sass.
from libsass.
Related Issues (20)
- libsass.org has expired HOT 2
- SassError: media query expression must begin with '(' HOT 2
- build with autotools failed on ubuntu16.04
- extend does not extend all values
- 'There are no more files' error with Ruby 2.7..3 & Windows 7 (might be ffi related) HOT 3
- Read null address in Sass::SharedPtr::obj and Sass::Functions::sass_if HOT 2
- Read null address in Sass::Inspect::operator() HOT 1
- Is any precombiled so files for Raspberry ARM64
- can't find stylesheet to import "~@angular/material/theming"; HOT 1
- AddressSanitizer: SEGV on unknown address 0x000000000000 at inspect.cpp:466 HOT 2
- AddressSanitizer: stack-overflow on address 0x7ffff3e46ff8 (pc 0x7f13120dddd5 bp 0x615000000be8 sp 0x7ffff3e47000 T0) HOT 2
- random($limit) should no longer ignore units HOT 1
- A stack-overflow src/ast_selectors.cpp:557 in Sass::CompoundSelector::has_real_parent_ref() const HOT 7
- AddressSanitizer: stack-overflow src/ast_selectors.cpp:464 in Sass::ComplexSelector::has_placeholder() const HOT 2
- LeakSanitizer: detected memory leaks HOT 1
- LibSass not doing inplace text replacement for variables in unknown at rules HOT 2
- Ambiguous operator== overloads with GCC 13 and C++20
- Validated `or` css-operator usage does not compile in media query when included in SCSS HOT 5
- `mix(...)` sass semantics in relation to `color-mix(...)` css semantics HOT 3
- 3.6.6: compile time watnings HOT 1
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 libsass.