rider
rider
是基于 Stylus 与后处理器、无侵入风格的 CSS 样式工具库。
基于 rider
开发 项目 或 UI 样式库,能有效提高开发效率,延长代码生命周期。
功能
使用
License
MIT © Baidu Inc.
Rider 是一个基于 Stylus 与后处理器、无侵入风格的 CSS 样式工具库
License: MIT License
使用设置背景图片的 mixin 后,读取本地图片路径,若发现有带 @2x
、@3x
后缀的同名文件,则自动增加包含 media query 的支持代码。
比如,本地只有 woff
和 ttf
格式的字体文件,生成出的 CSS 就只包含这两种类型的引用。
现在的 Stylus 已有比较靠谱的嵌套 @media
合并功能,所以组合式的用法就显得多余了,如:
.box
+breakpoint('screen', +below(4))
foo: bar
实际上等价于:
.box
@media screen
+below(4)
foo: bar
虽说多了一层缩进,但从理解上会更简单,所以 2.0
中将废除第一段代码中的用法。
Echart在android的webview中偶尔显示,偶尔不显示,不知道这是什么问题?请大神指教
增加图片、字体等静态资源的版本号自动生成功能。
目测现在的 DEMO 已经被玩坏了,需要写个新的 DEMO 网站。
RT,替换为社区常用的构建工具作为示范。
简单描述一下对各浏览器的支持程度
重写 2.0 版的文档与教程。
autoprefixer-core
已经支持对 min-resolution
的处理,去除此部分的兼容代码。
由于 breakpoint
中移除了 retina
的支持,需要新增名为 +retina()
的 block mixin:
// 无参数时,以 1.5dppx 生成 media query
// 认为是通常意义上的 retina 设备
+retina()
.test-1
foo: bar
// 接收一个无单位的 unit 类型参数,代表 dppx
+retina(2)
.test-2
foo: bar
生成代码为:
@media (min-resolution: 1.5dppx), (min-resolution: 144dpi) {
.test-1 {
foo: bar;
}
}
@media (min-resolution: 2dppx), (min-resolution: 192dpi) {
.test-2 {
foo: bar;
}
}
兼容性可由 Autoprefixer 处理。
较小的图标字体或子集化字体,可通过 inline 的方式引入以节省链接数。
参考 polymer 中 layout attributes 的布局支持,使用方式可能会是这样:
<div class="container">
<div>Alpha</div>
<div class="beta">Beta (flex)</div>
<div>Gamma</div>
</div>
.container
horizontal()
.beta
flex()
See https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore
The .idea folder includes many files which are meant to be shared between developers.
增加对「CSS Color Module Level 4」中 HWB 颜色格式的支持。
为了支持更多的使用场景,加入 normalize 作为初始化的另一选项。
增加 file-exists(file)
与 is-url(path)
两个 API。
现在的 animate 部分的版本较老,升级至新版本的 animate.css
RT.
版本更新应该是后处理器管的事儿,靠手工维护根本不靠谱。
done.
现在的 test 粒度太粗,出了问题很难定位,需要更好的测试代码
在 2.0 版需要想想是否在 rider 层面解决。
一般在用字体图标的时候,font-weight
与 font-style
设置为 normal
就好了。
但是引入一些英文字体时,会有定义粗体、斜体的需求,所以加两个可选参数支持这种场景。
现在单位换算会自动截取 3 位小数,有时候会不够精确,此处需要改进。
使用传入图片,并自动计算合适的 background-size
尺寸。
RT
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.