compass

compass 查询单独的类型,Meta-data 可能有效

心不动则不痛 提交于 2019-11-29 20:06:05
12.5.4. CompassQuery and CompassQueryBuilder Compass::Core comes with the CompassQueryBuilder interface, which provides programmatic API for building a query. The query builder creates a CompassQuery which can than be used to add sorting and executing the query. Working with objects Compass - Java Search Engine 108Using the CompassQueryBuilder, simple queries can be created (i.e. eq, between, prefix, fuzzy), and more complex query builders can be created as well (such as a boolean query, multi-phrase, and query string). The following code shows how to use a query string query builder and using

How to make CSS sourcemapping work in Chrome with Compass (SASS)

只愿长相守 提交于 2019-11-29 12:46:25
the thing is that I'm trying to get CSS mapping working with my Compass project in Chrome (v38, OS X) so It reloads my CSS without the need to reload page. I followed this https://developer.chrome.com/devtools/docs/css-preprocessors and also this http://www.sitepoint.com/using-source-maps-debug-sass-chrome/ I have fully working Compass project and I'm compiling using compass watch . Into Config.rb I have added sourcemap = true and .map file has been successfully created. When I load my site, I can see .map file loaded in Network tab in Console (status code 200) Enable CSS source maps and Auto

Using libsass with compass

夙愿已清 提交于 2019-11-29 11:31:19
问题 Exactly as the title says. Compilation times over 50 seconds are unacceptable. So, is there a way, let's say: a single (partial) file with compass magic (like sprite mixins, etc.), and the rest of files with pure sass? I'm considering moving to less (reference importing), and substituting all compass tricks with additional grunt tasks, but I'm more comfortable around sass than less. I saw those tickets, but I hoped there would be a way to compile a single file with compass, and the rest to be

Windows 7 64-bit: Could not find a valid gem 'compass' (>= 0), here is why: Unable to download data from https://rubygems.org/

一世执手 提交于 2019-11-28 17:35:38
I cannot install compass. I want to install compass on my project so when I try to update, I get this: c:\wamp\www\danjasnowski.com>gem install compass ERROR: Could not find a valid gem 'compass' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed ( https://api.rubygems.org/specs.4.8.gz ) Also.. my current version. c:\wamp\www\danjasnowski.com>gem --version 2.4.1 and irb(main):001:0> RUBY_VERSION => "2.0.0" irb(main):002:0> RUBY_RELEASE_DATE => "2014-05-08" irb(main):003:0>

How to make CSS sourcemapping work in Chrome with Compass (SASS)

大兔子大兔子 提交于 2019-11-28 06:11:02
问题 the thing is that I'm trying to get CSS mapping working with my Compass project in Chrome (v38, OS X) so It reloads my CSS without the need to reload page. I followed this https://developer.chrome.com/devtools/docs/css-preprocessors and also this http://www.sitepoint.com/using-source-maps-debug-sass-chrome/ I have fully working Compass project and I'm compiling using compass watch . Into Config.rb I have added sourcemap = true and .map file has been successfully created. When I load my site,

ERROR: While executing gem … (Errno::EPERM) Operation not permitted [duplicate]

偶尔善良 提交于 2019-11-27 16:35:49
This question already has an answer here: Can't install gems on OS X “El Capitan” 14 answers I just updated my Mac to OSX 10.11 El Capitan and some gems didn't remain. The problem arose when I tried to run installations of different gems... e.g.: > sudo gem install compass Once I execute, I get the error: > ERROR: While executing gem ... (Errno::EPERM) Operation not permitted This happens with other gems, as well... I've run Homebrew and tried to install Ruby again, but nothing is working. Roy Calderon I found the answer on SASS issues.. https://github.com/sass/sass/issues/1768 Apparently with

Configure compass browser support (Compass 1.x syntax)

倾然丶 夕夏残阳落幕 提交于 2019-11-27 15:18:57
With 0.12.x version of Compass, I was defining support for oldies that way: @import "compass/support" $legacy-support-for-ie6: false; $legacy-support-for-ie7: true; $legacy-support-for-ie8: true; $legacy-support-for-mozilla: false; @if ($legacy-support-for-ie7) { // specific declaration if ie7 is supported } I'm wonder how I should define browser support following Compass 1.x system . Maybe something like that: // Add support for a specific browser $browser-minimum-versions: ( 'ie': "7", 'ie': "8" ); // Reject browsers $supported-browsers: reject(browser-versions("ie"), "6", "7", "8"); But it

「续集」Sass简易指南:多风格编译和运行以及文件注释

こ雲淡風輕ζ 提交于 2019-11-27 15:00:56
1. 使用Compass创建工程 一般情况下可以在编辑器中直接创建Sass或者Scss文件。如果项目比较复杂那么我们可以使用Compass创建工程,命令如下: compass create 这样创建出的项目会自带几个文件夹: sass文件夹存放sass文件或scss文件,stylesheets存放css文件,config.rb是设置文件,后面会有介绍。 同时,可以带参数创建: compass create --bare --sass-dir "sass" --css-dir "css" --images-dir "img" --javascripts-dir "js" 很明显其中的各个参数是分别设置 sass文件、css文件、图片文件和js文件的保存路径。 config.rb文件是设置文件,内容如下: 可以分别修改配置参数以便修改保存目录。 2. 使用sass命令编译生成css文件 编译单个文件 sass <sass file> <css file> --style [nested|expanded|compact|compressed] 编译监视单个文件 sass --watch <sass file>:<css file> 编译监视文件夹 sass --watch <sass folder>:<css folder> 3. 使用compass命令编译生成css文件

ERROR: While executing gem … (Errno::EPERM) Operation not permitted [duplicate]

和自甴很熟 提交于 2019-11-27 04:09:19
问题 This question already has answers here : Can't install gems on OS X “El Capitan” (14 answers) Closed 4 years ago . I just updated my Mac to OSX 10.11 El Capitan and some gems didn't remain. The problem arose when I tried to run installations of different gems... e.g.: > sudo gem install compass Once I execute, I get the error: > ERROR: While executing gem ... (Errno::EPERM) Operation not permitted This happens with other gems, as well... I've run Homebrew and tried to install Ruby again, but

初接触 Sass 与Compass 遇到的几个坑

落花浮王杯 提交于 2019-11-27 01:42:29
最近开始接触传说中高大上的CSS 预处理器之一Sass 以及Compass ,本文不会对Sass 与Compass 技术层面做过多介绍,只是记录自己折腾过程中遇到的几个坑。 前言 Jeff 本身也是刚接触Sass,因此本文也许会有些错误的地方,如果发现有,还望雅正。 之前一直有这么一个误区:Sass 、Less 这些预处理器是偷懒人士的做法,但现在发现应该是用CSS 驾驭得好的才能用好这些预处理器。提高效率的工具之所以能提高效率在于使用的人本身有能力驾驭这个工具(有点拗口)。并且很考验开发者的整体的重构能力,貌似一不小心就会写出很亢余的代码。所以,如果你想使用这些CSS 预处理器,建议对CSS 有所熟知。 下面就说下自己折腾过程中遇到的几个坑。 安装Compass 源文件被墙问题 Jeff 使用的环境是Windows,在安装完Ruby 后就是要安装Sass 和Compass,Sass 倒没问题,但Compass的话因为安装源是在Amazon S3这个被墙的地址上的,因此“正常”来说会显示如下图: 解决方法是有不少,比如说设置终端http代理等,但考虑到现在我以shadowsocks 作为科学上网方案行不通(shadowsocks 是SOCKS代理);而后找到了淘宝网的RubyGems 镜像: http://ruby.taobao.org/ 由于国内网络原因(你懂的),导致