compass

unable to install compass

こ雲淡風輕ζ 提交于 2019-12-06 19:21:17
问题 Last week I made an update in cygwin because of the bash "vulnerable problem". After that I couldn't compile sass anymore. I tried to reinstall ruby, after some install fails and reinstalling cygwin I installed it and updated with "gem update --system" it run, but when I tried to install compass I got following message: > /usr/bin/ruby.exe -r ./siteconf20141006-7856-1td7wzb.rb extconf.rb > checking for ffi.h... *** extconf.rb failed *** Could not create > Makefile due to some reason, probably

在webstorm下使用compass 和 sass

*爱你&永不变心* 提交于 2019-12-06 07:35:14
一直想玩sass,但发现这玩意似乎在linux下使用的,而我这样的只是侧重前端的人玩linux做啥,最好是所见即所得,省时间精力!后来百度了下网上,几乎很多方法都是错的,后来通过这些方法的启发,竟然研究成功了,所以写下方法备注一下。 之前为了进阶css,狠抓了一下sass(现在叫scss,编程风格和css类似)和它的框架compass,由于本人对命令行的恐惧,因此总想将其弄到IDE中。 先安装ruby,sass,compass。 先在这里下载ruby 我下载的是最新版的ruby Ruby安装包下载地址:http://rubyinstaller.org/downloads/下载对应系统版本的安装包; 2、双击rubyinstaller-2.2.3-x64.exe开始安装,如下图所示安装; 3、检查是否安装成功win+r输入cmd回车打开终端输入ruby -v; Gem的使用方法 安装完Ruby实际上已经安装好了gem,通过win+r输入cmd回车打开终端。 查看已经安装的gem软件 gem list 下面安装sass gem install sass 按回车键确认,等待一段时间就会提示你sass安装成功。最近因为墙的比较厉害,如果你没有安装成功,那么请参考下面的淘宝的RubyGems镜像安装sass,如果成功则忽略。 如果要安装beta版本的,可以在命令行中输入 gem

MongoDB官方推荐的GUI工具-Compass的使用

微笑、不失礼 提交于 2019-12-06 06:48:22
探索和操作MongoDB数据的最简单方法 用于MongoDB的GUI。可视化地查看数据。以秒为单位运行临时查询。使用完整的CRUD功能与数据交互。查看和优化查询性能。可在Linux、Mac或Windows上使用。Compass使您能够在索引、文档验证等方面做出更明智的决策。 1.下载 https://www.mongodb.com/download-center/compass 我下载的压缩包,直接解压后,找到文件夹中的 MongoDBCompass.exe文件,直接点击运行就可以。 2.配置连接 进去之后,就可以看到相关的信息 3.工具的使用 创建数据库 插入数据 查询数据 修改数据 删除数据    来源: https://www.cnblogs.com/hello-wei/p/11966632.html

【AngularJs学习笔记二】Yeoman自动构建js项目

北城以北 提交于 2019-12-05 18:08:54
#0 系列目录# AngularJs学习笔记 【AngularJs学习笔记一】bower解决js的依赖管理 【AngularJs学习笔记二】Yeoman自动构建js项目 #1 Yeoman介绍# Yeoman是Google的团队和外部贡献者团队合作开发的, 他的目标是通过Grunt(一个用于开发任务自动化的命令行工具)和Bower(一个HTML、CSS、Javascript和图片等前端资源的包管理器)的包装为开发者创建一个易用的工作流 。 Yeoman主要有三部分组成:yo(脚手架工具)、grunt(构建工具)、bower(包管理器) 。这三个工具是分别独立开发的,但是需要配合使用,来实现我们高效的工作流模式。 #2 Yeoman工具包yo命令# yo插件都是通过npm, Node.js包管理器安装和管理的. 全局安装yo ~ D:\workspace\javascript>npm install -g yo 如果你还没有安装grunt,bower,也需要一起安装 ~ D:\workspace\javascript>npm install -g grunt-cli bower 通过help查看帮助 ~ D:\workspace\javascript>yo --help Yeoman is a mask worn by the following members of the

Sass watch is detecting changes but not compiling to css

时光毁灭记忆、已成空白 提交于 2019-12-05 05:36:23
When I run sass --watch app.sass:app.css terminal shows that changes have been detected to sass but won't compile to css. I am using Bourbon so all my .scss and .sass files are imported via mixins. ex. >>> Sass is watching for changes. Press Ctrl-C to stop. >>> Change detected to: css/2-modules/top-nav.scss iamlukem Make sure the file you are saving with an _filename.scss has been properly imported into the mainfile.scss . if you have not imported the _filename.scss it will detect a change but not compile. I had the same issue! In my case, it was caused by having several @imports listed like

unable to install compass

孤者浪人 提交于 2019-12-05 00:59:46
Last week I made an update in cygwin because of the bash "vulnerable problem". After that I couldn't compile sass anymore. I tried to reinstall ruby, after some install fails and reinstalling cygwin I installed it and updated with "gem update --system" it run, but when I tried to install compass I got following message: > /usr/bin/ruby.exe -r ./siteconf20141006-7856-1td7wzb.rb extconf.rb > checking for ffi.h... *** extconf.rb failed *** Could not create > Makefile due to some reason, probably lack of necessary libraries > and/or headers. Check the mkmf.log file for more details. You may > need

How to configure webpack to use compass in my project

你。 提交于 2019-12-05 00:29:17
I'm new in webpack and i don't know how we can use Compass ( CSS Authoring Framework ) in a project. Is there a good method ? Thanks you can use compass-mixins var path = require('path'); module.exports = { ... module: { loaders: [ { test: /\.scss$/, loader: "style!css!sass?includePaths[]=" + path.resolve(__dirname, "./node_modules/compass-mixins/lib") } ] } }; here is a helpful webpack boilerplate Update: You can use sass-resources-loader that will @import your SASS resources into every required SASS module. where you will never have to import your resources in all your sass files. module

compass watch compiles once, fails to notice further changes

家住魔仙堡 提交于 2019-12-04 18:20:00
问题 I work with SASS + Compass on Windows 7. I recently upgraded SASS from 3.2.10 to 3.4.2 and Compass from 0.12.2 to 1.0.1. I did the upgrade by uninstalling the old versions and install the new versions using gem uninstall/install in the command prompt. Now when I make changes to an SCSS file after running compass watch, only the first set of changes is noticed and compiled. After that compass watch just looks like it's watching for changes but in reality no other changes after the first are

Installing 'Compass' via the command line receive error “extconf failed, exit code 1”

你说的曾经没有我的故事 提交于 2019-12-04 18:02:55
问题 Couldn't find an answer to this. Running OS X Yosemite Beta v2 When following compass install guide ensure that your gem is up-to-date gem update --system Then run gem install compass 回答1: Assuming your installation failed for the same reason as mine, you'll notice that the error logs states: "You have to install development tools first." So, install xcode and try: xcode-select --install Follow the onscreen instructions and you should be golden. For reference, this is the error I received

How to handle responsive images with vertical rhythm?

风格不统一 提交于 2019-12-04 11:41:42
I'm developing an HTML page using Compass/SCSS and a vertical rhythm approach. I've set up a baseline and specified heights for paragraphs and headings in rem units. It works great and lays on a vertical rhythm grid nicely. However, I have a central image that takes 100% width of the column (I want it to be responsive and scale with the browser window). The problem is that this image breaks vertical rhythm because it's height is calculated dynamically according to the browser width and image aspect ratio and is not respecting the baseline. How do I handle this situation in order to have a