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
君の名は。
Search
nayu
December 02, 2016
Technology
2
380
君の名は。
2016.12.2 DIST.13 「トクするCSS」 @中野ICTCO
nayu
December 02, 2016
Tweet
Share
More Decks by nayu
See All by nayu
デザイナー女子と 付き合うことについての 心理学的考察
nayucolony
1
2.4k
#しゅきしゅきお冷やCrew
nayucolony
3
310
組み合わせで簡単!WP REST APIとGitHubでつくる、よりよいメディア運営のワークフロー
nayucolony
4
8.1k
ファックス💘入門
nayucolony
1
660
Other Decks in Technology
See All in Technology
「違う現場で格闘する二人」——社内コミュニティがつないだトヨタ流アジャイルの実践とその先
shinichitakeuchi
0
360
スクラムを一度諦めたチームにアジャイルコーチが入ってどう変化したか / A Team's Second Try at Scrum with an Agile Coach
kaonavi
0
240
2026/01/16_実体験から学ぶ 2025年の失敗と対策_Progate Bar
teba_eleven
1
170
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
1
910
2025年 山梨の技術コミュニティを振り返る
yuukis
0
160
困ったCSVファイルの話
mottyzzz
0
230
これまでのネットワーク運用を変えるかもしれないアプデをおさらい
hatahata021
2
130
Introduction to Bill One Development Engineer
sansan33
PRO
0
350
Node vs Deno vs Bun 〜推しランタイムを見つけよう〜
kamekyame
1
480
AI Agent Standards and Protocols: a Walkthrough of MCP, A2A, and more...
glaforge
0
290
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
21k
ALB「証明書上限問題」からの脱却
nishiokashinji
0
130
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
0
31k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.9k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
130
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
400
Context Engineering - Making Every Token Count
addyosmani
9
600
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
98
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
130
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
From π to Pie charts
rasagy
0
110
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.5k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Transcript
ɻ ܅ ͷ ໊ ɻ DIST.13 @nayucolony
φϢ @nayucolony גࣜձࣾτΡʔΞʔϧ ϑϩϯτΤϯυΤϯδχΞ
ཪλΠτϧ ʮ܅ͷ໊ɻʯʹֶͿCSSઃܭ ࡞தͰʮ໊લ͕Θ͔Βͳͯ͘࠶ձͰ͖ͨʯ ‑ CSSʹ໊͓͍ͯલʹґଘ͗͢͠ͳ͍ɺ ݁ͼ͖ͭʹॏ͖Λஔ͍ͨղܾΛߟ͑Δɻ
༰ ࣗͳΓͷϚʔΫΞοϓͷखॱΛհ
ઃܭख๏ RSCSSΛ༻͍ͨ ίϯϙʔωϯτͰߟ͑ΔϚʔΫΞοϓ
RSCSSͷ̏ཁૉ
RSCSSͷ̏ཁૉ ػೳͰ۠ͬͯߟ͑Δ Component
RSCSSͷ̏ཁૉ ػೳͰ۠ͬͯߟ͑Δ Component Componentͷߏཁૉ Element
RSCSSͷ̏ཁૉ ػೳͰ۠ͬͯߟ͑Δ Component Componentͷߏཁૉ Element ݟͨҧ͍Λද͢ Variant
RSCSS̏ཁૉͷنଇ 1. ʮComponentʯ=>ӳ୯ޠ̎ͭΛ - Ͱܨ͙ (ex) .two-words 2. ʮElementʯ=>̍୯ޠͰද͢ (ex)
.element , elementparts 3. ʮVariantʯ=> ʮ - ʯΛ಄ʹ͚ͭΔ (ex) .-small , -reverse
ͦͷଞϧʔϧ • ͑Δͷ͔ͳΒͣࢠηϨΫλʮʼʯΛ͏ • ཁૉηϨΫλΛ༻ͤͣશͯʹclassΛ͚Δ
ηϚϯςΟΫεແࢹ͠·͢ ʢclassͰӡ༻͢Δ͜ͱʹͯ͠΄͍͠ʣ ʢઆ໌͕࣌ؒΓͳ͍ʣ ʢࢲ͕ͦͦΑ͘Θ͔ͬͯͳ͍ʣ
None
ηΫγϣϯ͝ͱʹΘ͚Δ
ࠓճϔομʔ͔ΒΓ·͢ɻ ʢ͙͢ऴΘΓͦ͏ͳͷ͔ΒΔʣ
ػೳ͝ͱʹݟΔ ϔομʔ
ػೳ͝ͱʹݟΔ ϔομʔ
ͦΕͧΕΛߟ͑Δ ϔομʔ
ϩΰ ୯ޠ̎ͭΛ - Ͱͭͳ͙ ୯ޠ̍ͭ
ϩΰ ࢠηϨΫλΛ͏
φϏήʔγϣϯ
φϏήʔγϣϯ
$44 φϏήʔγϣϯ
ϨΠΞτ࡞ۀ
.logo .navi Componentʹ Elementͱͯ͠ͷclassΛ༩
.logo .navi
DONE
DONE
هࣄComponent
None
None
DONE DONE
DONE DONE
هࣄϦετComponent
هࣄΧʔυComponentͷ ू߹ମ
هࣄΧʔυComponent
None
None
.item .item .item .item Componentʹ Elementͱͯ͠ͷclassΛ༩
.item .item .item .item Componentʹ Elementͱͯ͠ͷclassΛ༩
DONE DONE DONE
DONE DONE DONE
ϑολʔ
ϑολʔ
άϩʔόϧφϏComponent
ϔομʔͷφϏήʔγϣϯͷݟͨҧ͍ άϩʔόϧφϏComponent
Variant
VariantԼʹ্ॻ͖ελΠϧΛهड़
.navi
.navi
DONE DONE DONE DONE
None
.header .main .aside .footer
.header .main .aside .footer
DONE
·ͱΊ • RSCSS໊͕͍̍ͭ̍ͭલͰ͔͚ͯεοΩϦ • ػೳ୯ҐͰߟ͑Δͱίϯϙʔωϯτ͔Γ͍͢ • ʮίϯϙʔωϯτΛ࡞Δʯͱ ʮίϯϙʔωϯτΛஔ͢ΔʯͱͰ͚ͯߟ͑Δ
͔͑ͨͬͨ͜ͱ • ໋໊نଇ͕શͯͰͳ͍ • ཁૉಉ࢜ͷϜεϏΛߟ͑Δ͜ͱେࣄ • ͍ࢹͰCSSઃܭΛʹ͚͍͖ͯ·͠ΐ͏
ࡢQiitaॻ͖·ͨ͠ɻ ͬͱΓ͍ͨਓ༻ ࠙͘͠ձtwitterͰ