compass-sass

how to construct a compass sass with high efficiency [closed]

前提是你 提交于 2019-12-12 06:57:06
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am a beginer of compass sass,I want to know how to how to construct a compass sass project with high efficiency. Is there any existed compass sass framework in github . Or can any experienced developer suggest

Is it possible to make compass compile only modified partials?

我们两清 提交于 2019-12-12 04:09:48
问题 We use compass/sass in a large-scale project, with hundreds of partial scss files. When running 'compass compile' it takes more than a minute to compile the output css file. Does compass use caching on a partial level? Is it possible to force compass to compile only the modified files? Is it possible to run compass in a 'verbose' mode so I can understand how the cache is being used? 回答1: Compass will compile only modified files if you use compass watch [path/to/project] . 回答2: You should use

Sass/Compass - Generate rule only if parameter is not default?

梦想与她 提交于 2019-12-12 03:35:21
问题 I have something like this in one of my SCSS include files: $inputBorderRadius: 0 !default; .input { @include border-radius($inputBorderRadius); } This works fine; I can override the $inputBorderRadius before including the above code and everything behaves the way I expect. What I'm wondering is whether there's a way to tell SASS not to generate the border-radius rule at all if (for example) $inputBorderRadius is null. In my case, I just don't want to generate superfluous rules like border

How to configure Compass build with rbenv in Sublime Text 2?

人走茶凉 提交于 2019-12-12 03:31:05
问题 Trying to build a SASS file under OSX with rbenv and the default Compass build file results in: /bin/sh: compass: command not found [Finished in 0.2s with exit code 127] How to fix? 回答1: Add this to your ~/Library/Application Support/Sublime Text 2/Packages/Compass/Compass.sublime-build file: "osx": { "path": "/usr/local/bin:/Users/USERNAME/.rbenv/shims:$PATH" }, You may have to restart Sublime. 来源: https://stackoverflow.com/questions/13712801/how-to-configure-compass-build-with-rbenv-in

Invalid gemspec error while running compass in ruby

好久不见. 提交于 2019-12-12 03:20:06
问题 I receive the following error when running a new compass project in OSX 10.7.3. Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/multipart-post-1.1.5.gemspec]: invalid date format in specification: "2012-02-13 00:00:00.000000000Z" I have tried running sudo gem update --system to cure the problem but I get the same error when doing so. 回答1: Try this gem install rubygems-update update_rubygems You may also find this helpful esp. the answer of GaborKomaromi Invalid date format

SCSS / Sass - Statement referencing to parent not work

╄→гoц情女王★ 提交于 2019-12-12 03:18:13
问题 .a, .b { color: red; $x: &; @if $x == '.b' { color: $x; } } http://sassmeister.com/gist/ad7fa7f3a431f3e2d4e0 Not work, why? Could you help me someone with some fix? 回答1: Because $x is equal to the full selector ( .a, .b ), never to .a or .b . What you're trying to achieve would be: .a, .b { color: red; &.b { color: blue; } } But it will generate this code (working, but not optimized): .a, .b { color: red; } .a.b, .b.b { color: blue; } 来源: https://stackoverflow.com/questions/26523745/scss-sass

oocss-compass plugin setup

别等时光非礼了梦想. 提交于 2019-12-12 03:08:36
问题 I'm having trouble in the setup of oocss-compass plugin. The steps I did: Downloaded the oocss-compass and placed it on my desktop (https://github.com/he8us/oocss-compass) Inside the oocss-compass destkop folder I runed: rvm use @global gem build oocss-compass.gemspec gem install oocss-compass-[GEMVERSION].gem The gem is on my gem list (oocss-compass) Then on my working folder (not RoR project, just empty folders and html static pages), I runed: compass create css -r oocss-compass --using

Trouble running compass on OSX - LoadError on line [“51”]

泄露秘密 提交于 2019-12-12 02:44:37
问题 I read a lot of the issues here before, unfortunately non of the described solutions worked for me. I'm on OSX and using ruby-1.9.3-p448 via rvm. Everything freshly set up. Then I did sudo gem install compass for getting compass and sass. No error messages. stnwbr$ ruby -v ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0] stnwbr$ compass -v Compass 0.12.2 (Alnilam) stnwbr$ sass -v Sass 3.2.10 (Media Mark) but as soon as I do something like compass create or compass watch I get:

Is it possible to make the height of a DIV match the width of a DIV with Compass or Susy?

久未见 提交于 2019-12-12 02:34:37
问题 I am creating a completely fluid design portfolio site that has a design thumbnail gallery page showing a grid of thumbnail tile links which a viewer can click to see the full art work. Since the site is completely fluid, the tile widths only match the tile height 3 times as one switches between the 3 responsive states since the heights are locked in place. How can I make the height match the width of each thumbnail tile? Here is the code: @import compass @import susy @import normalize $total

How to make PHP variables preserved in CSS stylesheets generated by SASS / SCSS?

♀尐吖头ヾ 提交于 2019-12-12 02:13:29
问题 I'm working on a new big PHP / Symfony 2 project and decided to use Sass / SCSS and Compass which I found both really awesome for managing CSS in a modern way. However, there's still one problem for which I couldn't find any answer: how to place PHP variables in original SCSS files and make them preserved in output CSS files? This is not a detail, because without this functionality there's no way to interface Sass generated stylesheets with PHP, which could be really limitating in some big