Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Sass_基礎篇.pdf
Search
darrenyaoyao
October 25, 2020
Programming
32
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Sass_基礎篇.pdf
darrenyaoyao
October 25, 2020
More Decks by darrenyaoyao
See All by darrenyaoyao
HTML__CSS_基礎_.pdf
darrenyaoyao
0
28
HTML__CSS_基礎_.pdf
darrenyaoyao
0
32
HTML__CSS基礎二.pdf
darrenyaoyao
0
25
Javascript進階.pdf
darrenyaoyao
0
21
Javasrcipt_基礎一.pdf
darrenyaoyao
0
76
Bootstrap.pdf
darrenyaoyao
0
33
Github_介紹.pdf
darrenyaoyao
0
120
Javascript_基礎二.pdf
darrenyaoyao
0
22
CSS_Flex_基礎二.pdf
darrenyaoyao
0
28
Other Decks in Programming
See All in Programming
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
300
Domain-Driven Transformation
hschwentner
2
2.3k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
770
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
890
Next.js: The final boss of Web Performance
guaca
0
290
AmebaブログはKMPから卒業します
kmars0605
0
210
phperだってパンチカードでコーディングしたい
o0h
PRO
0
360
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
Performance Optimization With LLMs
xleitix
0
160
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
350
Featured
See All Featured
Scaling GitHub
holman
464
140k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Designing Powerful Visuals for Engaging Learning
tmiket
1
610
How to Talk to Developers About Accessibility
jct
2
580
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
Transcript
Sass 基礎篇 簡化你的 CSS
CSS 在 Code 很多時 會變得很難讀 Sass 是⼀種 CSS 的進化語法 更容易閱讀
Nesting:降低⽗元素重複性 .parent { color: blue; .child { font-size: 12px; }
} .parent { color: blue; } .parent .child { font-size: 12px; }
Codepen ⽀援 Sass 的語法表⽰
屬性也可以使⽤ Nesting .parent { font : { family: Roboto, sans-serif;
size: 12px; decoration: none; } } .parent { font-family: Roboto, sans- serif; font-size: 12px; font-decoration: none; }
屬性模組化 @mixin important-text { color: red; font-size: 25px; font-weight: bold;
border: 1px solid blue; } .danger { @include: important-text; background-color: green; } .danger { color: red; font-size: 25px; font-weight: bold; border: 1px solid blue; background-color: green; }
@mixin 傳入參數 @mixin bordered($color, $width) { border: $width solid $color;
} .myArticle { @include bordered(blue, 1px); } .myNotes { @include bordered(red, 2px); } .myArticle { border: 1px solid blue; } .myNotes { border: 2px solid red; }
@mixin 參數預設值 @mixin bordered($color: blue, $width: 1px) { border: $width
solid $color; } .myTips { @include bordered($color: orange) }
@extend 屬性繼承 .button-basic { border: none; padding: 15px 30px; text-align:
center; } .button-report { @extend .button-basic; background-color: red; } .button-submit { @extend .button-basic; background-color: green; } .button-basic .button- report .button-submit { border: none; padding: 15px 30px; text-align: center; } .button-report { background-color: red; } .button-submit { background-color: green; }