at-import / jacket Goto Github PK
View Code? Open in Web Editor NEWConditional Styles with Sass. Dress you CSS appropriately.
License: BSD 3-Clause "New" or "Revised" License
Conditional Styles with Sass. Dress you CSS appropriately.
License: BSD 3-Clause "New" or "Revised" License
for my project I have implemented a Function like that:
@function jacketOrElse($value, $else, $contexts...) {}
It will return $value
if the $contexts
match or $else
if not.
If you think his would be an interesting addition to Jacket, drop me a note. I will Fork Jacket and place a pull request.
I had to implement his function because I did not find a way to get a Value if none of the $contexts
matched.
Regards, Hannes
What's the recommended way of pulling styles out of media queries with jacket? (in the case of ie8) Or is breakpoint no-queries still recommended for that task?
jacket rendre quote like this: "
ex;
[data-foo="test"]
result: [data-foo="test"]
SASS/Compass newbie so apologies if this is a silly question.
I've installed Jacket as a Ruby gem, have required it in my config.rb and included it in my stylesheet, but when I compile with Codekit I get no such file to load -- jacket.
What have I missed?
It it possible to output only the conditional style in my conditional stylesheet? Because, I don't want to add weight to my conditional sheet. The only thing I want is the fix I did for IE.
Ex:
.exemple {
width: 100px;
height: 300px;
@include jacket(ie8) {
width: 200px;
}
}
output css:
screen.css
.exemple {
width: 100px;
height: 300px;
}
ie8.css
.ie8 .exemple {
width: 200px;
}
rather than
screen.css
.exemple {
width: 100px;
height: 300px;
}
ie8.css
.exemple {
width: 100px;
height: 300px;
}
.ie8 .exemple {
width: 200px;
}
Sorry, this might be a dumb question, i've installed Jacket with bower, so i got the folder:
components/jacket/**
I've tried to install the plugin using the following on my config.rb file:
require "components/jacket/";
When i try to compile i get:
LoadError on line 31 of /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb: no such file to load -- components/jacket/
Could you provide any help?
Although I have Sass 3.4.5 installed jacket gem refuses to be installed :(
\Ruby193\Ruby193\bin>gem install jacket
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: jacket requires sass (~> 3.3.0.rc.2)
No trouble installing other gems like Susy, Brekapoint, sass-toolkit etc.
Thanks
Win7/Ruby1.93
The documentation states: "Until Sass 3.3 is released Jacket requires Compass."
We're up to Sass 3.4 and it looks like jacket still requires Compass. I'd love to remove Compass from my stack.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.