compass-sass

Modifying SASS output

我的未来我决定 提交于 2019-12-02 14:30:36
问题 SASS prints css comments in a new line by default. There doesn't exist a option as far as I know that allows comments to appended to the line. So, the block body { background-image: url(.....); /** comment */ color: white; /** comment */ } is converted to body { background-image: url(.....); /** comment */ color: white; /** comment */ } Is there a way to add custom formatting? 回答1: From what I have seen this isn't possible. The best example I could find is this post from 2008 by the (then)

Compass-core box mixin undefined

僤鯓⒐⒋嵵緔 提交于 2019-12-02 13:25:01
问题 I am trying to use flexbox prefix. When using compass-core box mixin, with @include display-box;` or any other box mixins, it gives: Undefined mixin 'display-box' However, if I do @include opacity (1); @include border-radius; No compilation error. Compass version: compass (1.0.0.alpha.19, 0.12.6) compass-core (1.0.0.alpha.19) compass-import-once (1.0.4) What did I miss out? 回答1: Same here. After having a look at the compass-1.0.0.alpha.21 code I noticed the line @warn "The compass/css3/box

SCSS Map won't compile in Compass [duplicate]

扶醉桌前 提交于 2019-12-02 09:47:32
问题 This question already has answers here : Is Sass 3.3 compatible with Compass? (3 answers) Closed 4 years ago . I've written an SCSS map variable and an @each loop to assign different icons to file download links, seen below. $file-icons: ( "application/vnd.ms-excel": "../images/ico-excel.png", "application/pdf": "../images/ico-pdf.png", "image/tiff": "../images/ico-img.png", "image/gif": "../images/ico-img.png", "image/png": "../images/ico-img.png", "image/jpeg": "../images/ico-img.png",

Prevent SASS/Compass From Outputting Partials

心已入冬 提交于 2019-12-02 09:26:14
I am successfully using Compass to generate a CSS file but it is also outputting my partials to the CSS directory. How can I make it only output the stylesheets that will be used in the page? There's no need to add the partials to the destination css directory. From the manual: If you have a SCSS or Sass file that you want to import but don’t want to compile to a CSS file, you can add an underscore to the beginning of the filename. This will tell Sass not to compile it to a normal CSS file. You can then import these files without using the underscore. http://sass-lang.com/documentation/file

SASS: Get value of existing background string and add to it?

隐身守侯 提交于 2019-12-02 08:02:19
I'd like to additively build backgrounds in SASS/Compass, ignorant of the existing background string. I am able to accomplish by writing to a global var, but it seems sloppy. Pseudo: =mixin-add-icon // add a background icon =mixin-add-gradient-from-color($color: blue !default) // add a background gradient =mixin-add-texture-bg // add a bg texture a background: blue +mixin-add-texture-bg // this should take the existing bg and add texture to it &.selected +mixin-add-gradient-from-color() +mixin-add-icon // these two should take the existing bgs strings from <a> and add to them Am I missing

Is there a way to prefix the url of an image referenced in .scss in case of CDN usage? [duplicate]

空扰寡人 提交于 2019-12-02 07:13:47
问题 This question already has answers here : Have a variable in images path in Sass? (4 answers) Closed 4 years ago . Currently in my .scss file I have .grid_pic { width : $width-grid; background : transparent url('/img/exemple_bg.png') 0 0 repeat; } Is there a way of removing the /img/ and to define a variable, OR a configuration files that tells to prefix all the images with the value I want ? So the day we decide to serve our images via CDN, we just have to change 1 config line from /img/ to

SCSS Map won't compile in Compass [duplicate]

别来无恙 提交于 2019-12-02 05:23:06
This question already has an answer here: Is Sass 3.3 compatible with Compass? 3 answers I've written an SCSS map variable and an @each loop to assign different icons to file download links, seen below. $file-icons: ( "application/vnd.ms-excel": "../images/ico-excel.png", "application/pdf": "../images/ico-pdf.png", "image/tiff": "../images/ico-img.png", "image/gif": "../images/ico-img.png", "image/png": "../images/ico-img.png", "image/jpeg": "../images/ico-img.png", "application/x-shockwave-flash": "../images/ico-flash.png", "audio/mpeg": "../images/ico-audio.png" ); @each $file in $file-icons

Compiling Compass in an Ember-CLI project

筅森魡賤 提交于 2019-12-01 23:20:13
问题 I'm using ember-cli v0.0.23, and am trying to get the broccoli-compass package working with my project, and I've run into some problems. First, in my Brocfile , I have replaced the standard Ember-CLI "blueprint" version of: var styles = preprocessCss(appAndDependencies, prefix + '/styles', '/assets'); with the following: var compileCompass = require('broccoli-compass'); var styles = compileCompass(appAndDependencies, 'app/styles/app.scss', { outputStyle: 'expanded', sassDir: 'app/styles',

How to combine compass with bless?

喜你入骨 提交于 2019-12-01 17:06:56
I am working on a Compass project and my final css output is huge so it needs to be be blessed . I am using Codekit to compile my SCSS files, and it has the bless option for the less and sass files but unluckly this option seems to be not available for the compass projects (BTW there is no workaround to fix the problem https://github.com/bdkjones/CodeKit/issues/163 ) Is there an alternative way to do that automatically after the compiling process? Is it possible to watch the css file with nodejs and then bless it? ==================================================== UPDATE I am not using

Weird misalignment in my Susy layout

左心房为你撑大大i 提交于 2019-12-01 13:09:39
The elements I set the Susy span-column() mixin to, do not obey to it. They are misaligned ever so slightly. How do I achieve perfect alignment of my HTML elements? Screenshot of full website misalignment Detail : <header> and <nav> misalignment Detail : <section class="main"> misalignment Here is my Sass code @import compass @import susy @import normalize /* Susy Settings */ $total-columns : 5 $column-width : 4em $gutter-width : 1em $grid-padding : $gutter-width $desktop : 12 /* Susy-grid-background override to draw out horizontal lines */ =susy-grid-background +grid-background($total-columns