Suche senden
Hochladen
Sassを導入したはなし
•
6 gefällt mir
•
3,509 views
アライドアーキテクツ株式会社
Folgen
実際にあったサービス開発の際の問題点、その解決策としてのSassという選択肢についてお話します。 ・具体的な導入と問題解決 ・メリット・デメリット ・今後の動き …など
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 120
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Html5勉強会スライド
Html5勉強会スライド
Yu Kato
なんでCSSすぐ死んでしまうん
なんでCSSすぐ死んでしまうん
Hayato Mizuno
DreamweaverからSublime Text2へ移行して気づいたこと ~マークアップ時の考え方の変化~
DreamweaverからSublime Text2へ移行して気づいたこと ~マークアップ時の考え方の変化~
アライドアーキテクツ株式会社
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Empfohlen
Html5勉強会スライド
Html5勉強会スライド
Yu Kato
なんでCSSすぐ死んでしまうん
なんでCSSすぐ死んでしまうん
Hayato Mizuno
DreamweaverからSublime Text2へ移行して気づいたこと ~マークアップ時の考え方の変化~
DreamweaverからSublime Text2へ移行して気づいたこと ~マークアップ時の考え方の変化~
アライドアーキテクツ株式会社
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
Toru Tamaki
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
Toru Tamaki
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
Ryo Sasaki
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
iPride Co., Ltd.
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
Hiroki Ichikura
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
danielhu54
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
sugiuralab
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
Toru Tamaki
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
taisei2219
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Yuma Ohgami
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Weitere ähnliche Inhalte
Kürzlich hochgeladen
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
Toru Tamaki
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
Toru Tamaki
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
Ryo Sasaki
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
iPride Co., Ltd.
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
Hiroki Ichikura
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
danielhu54
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
sugiuralab
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
Toru Tamaki
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
taisei2219
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Yuma Ohgami
Kürzlich hochgeladen
(10)
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Empfohlen
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
Empfohlen
(20)
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
ChatGPT webinar slides
ChatGPT webinar slides
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Sassを導入したはなし
1.
Sassを導入したはなし 14年3月18日火曜日
2.
浅岡 敦子 (あさおか あつこ) フロントエンドエンジニア atsuko.a.02 甘党・猫派 14年3月18日火曜日
3.
巷ではSassが流行っているらしい コーディングが 早くなるらしい 新しくて かっこいいらしい 14年3月18日火曜日
4.
アライドで導入・運用してみました 14年3月18日火曜日
5.
導入する際の参考になれば幸いです 14年3月18日火曜日
6.
もくじ 導入の経緯 使ってみた 社内に布教する こんなときどうする? まとめ 14年3月18日火曜日
7.
導入の経緯 使ってみた 社内に布教する こんなときどうする? まとめ 14年3月18日火曜日
8.
14年3月18日火曜日
9.
コーディング環境 14年3月18日火曜日
10.
オレオレコーディング 開発速度が遅い HTML5? CSS3? リソース不足 14年3月18日火曜日
11.
14年3月18日火曜日
12.
コーディングルール策定 CSSプリプロセッサの導入 セマンティックWEB 技術の底上げ・一定化 14年3月18日火曜日
13.
CSSプリプロセッサ? 14年3月18日火曜日
14.
CSSを書くための言語 (CSSメタ言語) 14年3月18日火曜日
15.
メタファイル .css 大いなる力 14年3月18日火曜日
16.
コーディングルール策定 Sassの導入 セマンティックWEB 技術の底上げ・一定化 14年3月18日火曜日
17.
というわけで、 Sassを導入しました 14年3月18日火曜日
18.
14年3月18日火曜日
19.
CSSプリプロセッサ Rubyが必要 .scss(.sass) 14年3月18日火曜日
20.
SASS記法 .sass 文法が特殊 ※.cssとの互換性なし SCSS記法 .scss .cssとの互換性あり 最近はsass=SCSS記法が一般的 14年3月18日火曜日
21.
test.scss test.css 大いなるRubyの力 sass test.scss:test.css 黒い画面
or GUI app 14年3月18日火曜日
22.
Why Sass? 14年3月18日火曜日
23.
14年3月18日火曜日
24.
ドキュメントが豊富 記法が柔軟 compass 14年3月18日火曜日
25.
※あくまでも目的の為のツール 14年3月18日火曜日
26.
導入の経緯 使ってみた 社内に布教する こんなときどうする? まとめ 14年3月18日火曜日
27.
全員がゼロスタートの場合、一斉は難しい 14年3月18日火曜日
28.
「ひとまず使ってみて、教えてね」 14年3月18日火曜日
29.
少人数(ないし1人)で始める ↓ 共有・伝達 ↓ 標準化 14年3月18日火曜日
30.
基本機能 14年3月18日火曜日
31.
ネストと親の参照 14年3月18日火曜日
32.
section { padding: 20px; background:
#f0f0f0; .hoge { width: 50%; margin: auto; } &.fuga { border: 1px solid #333; } } .scss 14年3月18日火曜日
33.
section { padding: 20px; background:
#f0f0f0; .hoge { width: 50%; margin: auto; } &.fuga { border: 1px solid #333; } } .scss 入れ子になってる 14年3月18日火曜日
34.
section { padding: 20px; background:
#f0f0f0; .hoge { width: 50%; margin: auto; } &.fuga { border: 1px solid #333; } } .scss 親(section)を参照してる 14年3月18日火曜日
35.
section { padding: 20px; background:
#f0f0f0; } section .hoge { width: 50%; margin: auto; } section.fuga { border: 1px solid #333; } .css 14年3月18日火曜日
36.
たくさんネストする 14年3月18日火曜日
37.
section { padding: 20px; background:
#f0f0f0; .hoge { width: 50%; margin: auto; .fuga { border: 1px solid #333; } } } .scss 14年3月18日火曜日
38.
section { padding: 20px; background:
#f0f0f0; } section .hoge { width: 50%; margin: auto; } section .hoge .fuga { border: 1px solid #333; } .css セレクタが どんどん増える 14年3月18日火曜日
39.
ex) HTMLが修正になったよ! 14年3月18日火曜日
40.
section { padding: 20px; background:
#f0f0f0; .hoge { width: 50%; margin: auto; .fuga { border: 1px solid #333; } } } .scss 14年3月18日火曜日
41.
article { padding: 20px; background:
#f0f0f0; .hoge { width: 50%; margin: auto; .fuga { border: 1px solid #333; } } } .scss 14年3月18日火曜日
42.
article { padding: 20px; background:
#f0f0f0; } article .hoge { width: 50%; margin: auto; } article .hoge .fuga { border: 1px solid #333; } .css 修正が簡単 14年3月18日火曜日
43.
変数 14年3月18日火曜日
44.
$color: #11114c; a { color:
$color; } .hoge { border: 1px solid $color; } .scss 14年3月18日火曜日
45.
$color: #11114c; a { color:
$color; } .hoge { border: 1px solid $color; } .scss 変数の定義 変数の呼び出し 14年3月18日火曜日
46.
a { color: #11114c; } .hoge
{ border: 1px solid #11114c; } .css 14年3月18日火曜日
47.
Number Color String Boolean List Null Map NEW!! 3.3.0 14年3月18日火曜日
48.
演算 14年3月18日火曜日
49.
.hoge { width: 500px
+ 20; } .fuga { width: 500px - 20; } .piyo { width: 500px * 2; } .foo { width: (500px / 10); } .scss 14年3月18日火曜日
50.
.hoge { width: 520px; } .fuga
{ width: 480px; } .piyo { width: 1000px; } .foo { width: 50px; } .css 14年3月18日火曜日
51.
@import 14年3月18日火曜日
52.
style.scss style.css _style.scss 生成されない 14年3月18日火曜日
53.
style.scss style.css _base.scss _parts.scss _mixin.scss まとまる! 14年3月18日火曜日
54.
@import '_base'; @import '_parts'; .scss 14年3月18日火曜日
55.
@mixin 14年3月18日火曜日
56.
スタイルのまとまりを呼び出す 14年3月18日火曜日
57.
@mixin btnSet1 { display:
block; border: 1px solid #FFF; border-radius: 10px; background: #333; text-align: center; } .btn1 { @include btnSet1; } .scss 14年3月18日火曜日
58.
@mixin btnSet1 { display:
block; border: 1px solid #FFF; border-radius: 10px; background: #333; text-align: center; } .btn1 { @include btnSet1; } スタイルのまとまり 呼び出す .scss 14年3月18日火曜日
59.
.btn1 { display: block; border:
1px solid #FFF; border-radius: 10px; background: #333; text-align: center; } .css 14年3月18日火曜日
60.
引数をわたせるよ 14年3月18日火曜日
61.
@mixin btnSet1($mainC, $borderC)
{ display: block; border: 1px solid $borderC; border-radius: 10px; background: $mainC; text-align: center; } .btn1 { @include btnSet1(#333, #FFF); } 引数をわたせる .scss 14年3月18日火曜日
62.
.btn1 { display: block; border:
1px solid #FFF; border-radius: 10px; background: #333; text-align: center; } .css 14年3月18日火曜日
63.
ex) 色違いのボタンがたくさんほしい 14年3月18日火曜日
64.
Facebook twitter 形は同じ 14年3月18日火曜日
65.
@mixin btnBase ($mainC,
$borderC) { // button base style } .btnFacebook { @include btnBase(#3b5998, #133783); } .btnTwitter { @include btnBase(#55acee, #2972ba); } .scss 14年3月18日火曜日
66.
@extend 14年3月18日火曜日
67.
スタイルを継承する 14年3月18日火曜日
68.
// clearfix .cf:after { display:
block; clear: both; content: ""; } article { @extend .cf; background: #f0f0f0; } .scss 14年3月18日火曜日
69.
// clearfix .cf:after { display:
block; clear: both; content: ""; } article { @extend .cf; background: #f0f0f0; } 定義されたスタイル スタイルを継承 .scss 14年3月18日火曜日
70.
// clearfix .cf:after, article:after
{ display: block; clear: both; content: ""; } article { background: #f0f0f0; } .css 14年3月18日火曜日
71.
継承元が.cssとして吐き出される 14年3月18日火曜日
72.
吐き出したくないときは? 14年3月18日火曜日
73.
%contBase { // contents
base style } .hoge { @extend %contBase; border: 1px solid #f0f0f0; } .fuga { @extend %contBase; border: 2px dashed #f0f0f0; } .scss 14年3月18日火曜日
74.
%contBase { // contents
base style } .hoge { @extend %contBase; border: 1px solid #f0f0f0; } .fuga { @extend %contBase; border: 2px dashed #f0f0f0; } .scssプレースホルダー 14年3月18日火曜日
75.
.hoge, .fuga { //
contents base style } .hoge { border: 1px solid #f0f0f0; } .fuga { border: 2px dashed #f0f0f0; } .css %contBaseは 吐き出されない 14年3月18日火曜日
76.
@mixinと@extendの違い 14年3月18日火曜日
77.
@mixin 呼び出し先でスタイルが展開される 引数がわたせる @extend 継承元にセレクタが追加される 14年3月18日火曜日
78.
その他便利っぽいこと 14年3月18日火曜日
79.
@for @while @if @each @function その他デフォルト関数 とか 14年3月18日火曜日
80.
導入の経緯 使ってみた 社内に布教する こんなときどうする? まとめ 14年3月18日火曜日
81.
3週間くらい使う(中規模開発2つくらい) ↓ FE向けに社内勉強会で共有 ↓ FE陣Sass導入完了・ルール策定中 全工程1ヶ月半くらい イマココ 14年3月18日火曜日
82.
開発環境 14年3月18日火曜日
83.
14年3月18日火曜日
84.
Sublime Text 2 Editor Prepros Preprocessor 14年3月18日火曜日
85.
Emmet Zen-codingの後続 hayaku CSSの補完に特化 SCSS
scssファイルを認識してくれる CSScomb CSSのプロパティを並び替える HTML5 HTML5ファイルを認識してくれる Tag HTMLタグの自動補完強化 AutoFileName ファイル参照を自動補完 14年3月18日火曜日
86.
14年3月18日火曜日
87.
よかったこと :) 14年3月18日火曜日
88.
開発速度の向上 使い回しがしやすい 私比1.4倍 mixin集 14年3月18日火曜日
89.
困ったこと :( 14年3月18日火曜日
90.
柔軟ゆえ多少ハードルが高い for/while... 14年3月18日火曜日
91.
導入の経緯 使ってみた 社内に布教する こんなときどうする? まとめ 14年3月18日火曜日
92.
Sassが使えない人と 共同開発するときは? 14年3月18日火曜日
93.
編集用のCSSSassから生成したCSS 14年3月18日火曜日
94.
編集用のCSSSassから生成したCSS 作業用のファイルを分けて Sassファイルの内容を保持する 14年3月18日火曜日
95.
Sassが使える人と 共同開発するときは? 14年3月18日火曜日
96.
style.scss style.css _asaoka.scss _suzuki.scss _sato.scss 14年3月18日火曜日
97.
style.scss style.css _asaoka.scss _suzuki.scss _sato.scss ページ(機能)or 作業者毎に ファイルを分ける 14年3月18日火曜日
98.
既存で運用しているものにも適用したい 14年3月18日火曜日
99.
SASS記法 .sass 文法が特殊 ※.cssとの互換性なし SCSS記法 .scss .cssとの互換性あり 14年3月18日火曜日
100.
既存のCSSファイル拡張子を.scssに変更 ↓ リファクタリングとか(しなくても可) ↓ コンパイル 14年3月18日火曜日
101.
入れ子・@extendでセレクタが 大変なことになる 14年3月18日火曜日
102.
ex) clearfixを@extendで使うと... 14年3月18日火曜日
103.
.cf:after, article:after, .pager1:after,
.pager1 ul:after, header .company:after, .gnavi nav ul:after, .contBoxMain-tw footer ul:after, .contBoxSide-snsList li a:after, .modalInner- large > header:after, .modalInner-large .modalInner- cont:after, .editHead > .wrap:after, .editHead > article:after, .editHead > footer:after, header .account .editHead > ul:after, header .editHead > .company:after, .editHead .otherLink:after, .editMenu ul:after, .editSNS ul:after, .editContents ul:after, .editAccount:after, .editPostList li:after, .editMenuList li:after, .editMenuList dl:after, .addPanel ul:after { display: block; clear: both; content: ""; } 14年3月18日火曜日
104.
!? 14年3月18日火曜日
105.
@extendは元のスタイルの継承 ↓ 継承元スタイルのセレクタが増える 14年3月18日火曜日
106.
.cf:after, article:after, .pager1:after,
.pager1 ul:after, header .company:after, .gnavi nav ul:after, .contBoxMain-tw footer ul:after, .contBoxSide-snsList li a:after, .modalInner- large > header:after, .modalInner-large .modalInner- cont:after, .editHead > .wrap:after, .editHead > article:after, .editHead > footer:after, header .account .editHead > ul:after, header .editHead > .company:after, .editHead .otherLink:after, .editMenu ul:after, .editSNS ul:after, .editContents ul:after, .editAccount:after, .editPostList li:after, .editMenuList li:after, .editMenuList dl:after, .addPanel ul:after { display: block; clear: both; content: ""; } 可読性が下がる IE9以下では1ファイルにつき 4095個までしかセレクタを認識しない 14年3月18日火曜日
107.
.cf:after, article:after, .pager1:after,
.pager1 ul:after, header .company:after, .gnavi nav ul:after, .contBoxMain-tw footer ul:after, .contBoxSide-snsList li a:after, .modalInner- large > header:after, .modalInner-large .modalInner- cont:after, .editHead > .wrap:after, .editHead > article:after, .editHead > footer:after, header .account .editHead > ul:after, header .editHead > .company:after, .editHead .otherLink:after, .editMenu ul:after, .editSNS ul:after, .editContents ul:after, .editAccount:after, .editPostList li:after, .editMenuList li:after, .editMenuList dl:after, .addPanel ul:after { display: block; clear: both; content: ""; } 入れ子の階層上限を決める コメントを入れる 吐き出すcssをわける 14年3月18日火曜日
108.
@extendを多用すると clearfix等がHTML側で明示的にならない 14年3月18日火曜日
109.
.hoge { @extend .cf; ... } .fuga
{ @extend .cf; ... } .piyo { @extend .cf; ... } 14年3月18日火曜日
110.
.hoge { @extend .cf; ... } .fuga
{ @extend .cf; ... } .piyo { @extend .cf; ... } HTML側からclearfixを 使っていることがわからない 14年3月18日火曜日
111.
そもそもHTML側から CSSの内容が理解できるメリットってある? 14年3月18日火曜日
112.
修正・改修の際にはCSSも確実に開く ↓ HTML側が明示的になる必要はない 14年3月18日火曜日
113.
.hoge { @extend .cf; ... } .fuga
{ @extend .cf; ... } .piyo { @extend .cf; ... } CSS側からclearfixを 使っていることがわかりやすい 14年3月18日火曜日
114.
導入の経緯 使ってみた 社内に布教する こんなときどうする? まとめ 14年3月18日火曜日
115.
Sassで コーディングは早くなる? 結局 14年3月18日火曜日
116.
あくまでも目的の為のツール 開発速度 の向上 14年3月18日火曜日
117.
CSSプリプロセッサで コーディングは早くなる? 14年3月18日火曜日
118.
ちょっと早くなる 運用がしやすくなる 14年3月18日火曜日
119.
まずは開発環境を見直しましょう 話はそれから エディタ/ルール/ 椅子の座り心地...etc 14年3月18日火曜日
120.
Thanks! 14年3月18日火曜日
Jetzt herunterladen