Compass的误解与新发现

简介: 最后个人感觉 Compass是 css世界的.NET 很久以前看到 Compass 误以为是css编译器,因为总是在看到如何安装Scss的文章里面看到的 知道最近不小心进入 Compass官网溜达,才发现 The CSS3 module provides cross-browser mixi...

最后个人感觉 Compass是 css世界的.NET

很久以前看到 Compass 误以为是css编译器,因为总是在看到如何安装Scss的文章里面看到的

知道最近不小心进入 Compass官网溜达,才发现

The CSS3 module provides cross-browser mixins for CSS properties introduced in CSS3, for example border-radius and text-shadow.

What rendering engines you support for the experimental css properties is governed by the configurable variables defined in the browser support module.

This file can be imported using: @import "compass/css3"

应为虽然不是很懂,但是module provides 基本就明白了Compass最起码是一个css类库,跨浏览器的类库,好比jq屏蔽了dom在不同浏览器下的差异,.NET屏蔽了不懂win操作系统api的差异,对外提供了大量可用的一致的api,心想我要是早几年进官网,我的css会不会微笑更好点

看了官网和一些资料,对Compass的了解和印象如下

Compass is an open-source CSS Authoring Framework.    ------------------Compass 是一个开源的CSS制作框架。

优点: 拥有大量写css的最佳实践,写css变的更加轻松

另外:Compass的确是Sass的编译器

Compass 包含的主要模块,Buttons 、Colors 、Debug 、Fancy Type 、Form 、Grid 、Interaction、 Internet Explorer 、Link Icons 、Liquid
、Print 、Reset 、Rtl 、Scaffolding 、Typography 、Utilities

看这名字是不是和vs左侧工具栏很像,其中有些生僻字谷歌看看,结果悲剧了

令人遗憾的是 这个名字起得 例如 谷歌搜索Compass 模块,不知道是我搜索的不对还是什么问题

image

比较好奇的是这几个模块

Blueprint Fancy Type:Fancy Typography for your website.     为站点提供基础的文字样式

Blueprint Debug:Styles for debugging your grid alignments   css 竟然可以调试了!

Blueprint Interaction:Some classes that are used in common website interactions.  提供通用的css

Blueprint Liquid:Import this to have a liquid grid. 引入自适应特性

Blueprint Scaffolding:Training wheels... So that your site doesn't look too bad when you're starting out.

Blueprint Typography:A base typography for your website that follows a typographic rhythm. 排版相关

Blueprint Utilities:Some utility classes. 工具类

Compass 的核心由 CSS3、辅助类、布局类、排版类、工具类 组成

                                 css3 、Helpers、 Layout Layout 、Typography、 Utilities

有人也许会问 Compass 看起来比较复杂的感觉,干嘛绑上Compass的战车呢?

这就像有了.NET你也用win32api做网站,写桌面程序?

test
相关文章
|
2月前
|
JSON 数据格式
Cannot parse date while it seems to fit format ‘yyyy-MM-dd‘T‘HH:mm:ss.SSSZ‘
Cannot parse date while it seems to fit format ‘yyyy-MM-dd‘T‘HH:mm:ss.SSSZ‘
107 0
|
5月前
proxy_pass
proxy_pass
18 1
|
网络协议 Linux
ss 命令
ss 命令
106 0
|
自然语言处理 算法 数据挖掘
浅谈Single-Pass算法
Single-Pass算法又称单通道法或单遍法,是流式数据聚类的经典方法。对于依次到达的数据流,该方法按输入顺序每次处理一个数据,依据当前数据与已有类的匹配度大小,将该数据判为已有类或者创建一个新的数据类,实现流式数据的增量和动态聚类,适合对流数据进行挖掘,而且算法的时间效率高;不足之处主要表现在该方法具有输入次序依赖特性,即对于同一聚类对象按不同的次序输入,会出现不同的聚类结果。
187 0
SS搭建
很多教程在这里或其他平台都无法访问,所以以后有关这些东西会在github上更新,大家可以在我的github上查看https://github.com/HarryHq/ffa
1663 0
|
网络安全
|
网络安全
|
关系型数据库