Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Sass.pdf
Search
darrenyaoyaoyao
November 13, 2020
Programming
72
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Sass.pdf
darrenyaoyaoyao
November 13, 2020
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
72
Pug.pdf
darrenyaoyaoyao
0
89
jquery.pdf
darrenyaoyaoyao
1
100
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
74
bootstrap.pdf
darrenyaoyaoyao
1
92
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
99
Javascript_基礎二.pdf
darrenyaoyaoyao
0
150
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
77
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
53
Other Decks in Programming
See All in Programming
Claude Codeを組織的に動かして月400PRを実現した話
happy_ryo
0
250
PyConJP2026_wat_Python × Signal Processing: How to Draw Pictures with Sound Using Spectrogram Art
wat
0
650
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
0
130
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
810
いまどきの Codex で開発する visionOS アプリの開発スタイルについて
karad
0
180
Vibes Containers 〜AIで変わるコンテナ設計と運用〜
tkikuc
1
430
AI時代に学ぶ 好きなルール 嫌いなルール Linter編
shorty5121
0
800
私のClaude Code活用法 (個人開発編) - PHPerKaigi mini #4(2026/08/24)
panda_program
1
200
DynamoDBの基礎を振り返りながらベクトル検索機能を理解する
musan
3
260
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
1
250
数年滞っていたダークモード対応をおよそ2週間で完了させる
chigichan24
0
650
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
0
360
Featured
See All Featured
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
510
Utilizing Notion as your number one productivity tool
mfonobong
4
570
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Google's AI Overviews - The New Search
badams
0
1.6k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
410
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.9k
Making the Leap to Tech Lead
cromwellryan
135
10k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
680
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
320
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
490
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
410
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; }