File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed
Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,4 @@ notes/*/*.md
3333! notes /* /304.md
3434! notes /* /403.md
3535! notes /* /404.md
36+ ! notes /* /405.md
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ issue: 17
4343401| [ 15] 单侧投影|-|〃|-
4444402| [ 16] 不规则投影|-|〃|-
4545403| [ 17] 染色效果|-|〃| [ 免费阅读] ( https://github.com/cssmagic/CSS-Secrets/issues/56 )
46- 404| [ 18] 毛玻璃效果|[ 试读] ( https://github.com/cssmagic/CSS-Secrets/issues/12 ) |〃|-
47- 405| [ 19] 折角效果|-|〃|-
46+ 404| [ 18] 毛玻璃效果|[ 试读] ( https://github.com/cssmagic/CSS-Secrets/issues/12 ) |〃| [ 免费阅读 ] ( https://github.com/cssmagic/CSS-Secrets/issues/57 )
47+ 405| [ 19] 折角效果|-|〃| [ 免费阅读 ] ( https://github.com/cssmagic/CSS-Secrets/issues/58 )
4848|
4949** 第五章** | ** 字体排印** || [ 购买后阅读 <sup >↗</sup >] ( http://www.ituring.com.cn/tupubarticle/9397 ) |
5050501| [ 20] 连字符断行|-|〃|-
Original file line number Diff line number Diff line change 1+ ---
2+ title : " [注解] [405] 折角效果"
3+ issue : 58
4+ ---
5+
6+ ## 花絮与注解
7+
8+ #### 第 111 页 ‧ 警告栏
9+
10+ > 在编写本书时,** SCSS** 还没有原生支持三角函数。如果想正常使用三角函数,你就需要用到 [ Compass 框架] ( http://compass-style.org ) 或其他库。借助泰勒展开式,你其实还可以自己写一套三角函数的实现……
11+
12+ 关于 “泰勒级数”(Taylor Series)和 “泰勒展开式”(Taylor Expansion),可以参考 [ 维基百科的相关条目] ( https://zh.wikipedia.org/wiki/%E6%B3%B0%E5%8B%92%E7%BA%A7%E6%95%B0 ) 。
13+
14+ 关于在 Sass 中用泰勒展开式实现三角函数,可以参考这个代码片断:
15+ [ SCSS/SASS module calculating sin/cos/tan using Taylor Expansion] ( https://gist.github.com/kamikat/c4d472ce3c61feec6376 )
16+
17+ > ……另一方面,** Stylus** 和 ** LESS** 是原生内置了三角函数的。
18+
19+ 原文其实没有提到 Stylus。Stylus 的内置函数相当丰富,可以参考 [ 相关文档] ( http://stylus-lang.com/docs/bifs.html ) 。
20+
21+ 本书作者 Lea Verou 似乎对 Stylus 成见颇深。她曾 [ 在 Twitter 上表示] ( https://twitter.com/leaverou/status/561678335731044353 ) ,她不喜欢 Stylus 是因为 “它的语法最不像 CSS”(但实际上 Stylus 完全支持 CSS 语法),而且 “社区很小”(唉,真是势利啊……)。
22+
23+ 是的,魔法哥是 Stylus 铁粉。
You can’t perform that action at this time.
0 commit comments