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
darrenyaoyaoyao
November 13, 2020
Programming
79
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
76
Pug.pdf
darrenyaoyaoyao
0
96
jquery.pdf
darrenyaoyaoyao
1
110
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
78
bootstrap.pdf
darrenyaoyaoyao
1
94
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
100
Javascript_基礎二.pdf
darrenyaoyaoyao
0
150
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
77
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
54
Other Decks in Programming
See All in Programming
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
21
21k
カツオ、ご期待ください
suneo3476
0
160
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2k
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
160
AIに “答え“を書かせるのを やめてみた
___akari11
0
110
R8 の設定見直しでアプリサイズ削減
andpad
0
190
contenteditable と日本語入力に向き合う
colorful12
0
180
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
270
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
390
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5k
SREの越境 / SRE Collaboration
y0hgi
2
300
Are APIs Still Relevant in the AI Era?
soyuka
0
440
Featured
See All Featured
The agentic SEO stack - context over prompts
schlessera
0
970
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
590
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
870
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
920
Abbi's Birthday
coloredviolet
4
10k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Test your architecture with Archunit
thirion
2
2.4k
KATA
mclloyd
PRO
35
16k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Navigating Team Friction
lara
192
16k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
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; }