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
320
組み合わせで簡単!WP REST APIとGitHubでつくる、よりよいメディア運営のワークフロー
nayucolony
4
8.2k
ファックス💘入門
nayucolony
1
660
Other Decks in Technology
See All in Technology
Claude Codeの進化と各機能の活かし方
oikon48
18
8.6k
組織のSREを推進するためのPlatform EngineeringとEKS / Platform Engineering and EKS to drive SRE in your organization
chmikata
0
190
EMからICへ、二周目人材としてAI全振りのプロダクト開発で見つけた武器
yug1224
5
470
トップマネジメントとコンピテンシーから考えるエンジニアリングマネジメント
zigorou
4
740
技術的負債の泥沼から組織を救う3つの転換点
nwiizo
8
3k
事例に見るスマートファクトリーへの道筋〜工場データをAI Readyにする実践ステップ〜
hamadakoji
0
190
オンプレとGoogle Cloudを安全に繋ぐための、セキュア通信の勘所
waiwai2111
3
1.1k
GitLab Duo Agent Platform + Local LLMサービングで幸せになりたい
jyoshise
0
180
JAWS DAYS 2026 ExaWizards_20260307
exawizards
0
110
JAWS DAYS 2026 CDP道場 事前説明会 / JAWS DAYS 2026 CDP Dojo briefing document
naospon
0
200
新職業『オーケストレーター』誕生 — エージェント10体を同時に回すAgentOps
gunta
4
1.6k
元エンジニアPdM、IDEが恋しすぎてCursorに全業務を集約したら、スライド作成まで爆速になった話
doiko123
1
460
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Automating Front-end Workflow
addyosmani
1370
200k
The Cost Of JavaScript in 2023
addyosmani
55
9.7k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
220
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.4k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
470
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
980
How to train your dragon (web standard)
notwaldorf
97
6.5k
From π to Pie charts
rasagy
0
150
Raft: Consensus for Rubyists
vanstee
141
7.3k
How to Ace a Technical Interview
jacobian
281
24k
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Ͱ