狠狠撸

狠狠撸Share a Scribd company logo
Sass 
13年12月6日金曜日
What’s Sass? 
13年12月6日金曜日
そもそも 
13年12月6日金曜日
CSSは貧弱 
13年12月6日金曜日
.button {...} 
.button .last {...} 
.button .last span {...} 
.button .txt {...} 
.button .txt .tag {...} 
.button .txt p {...} 
.button a {...} 
.button a:after {...} 
13年12月6日金曜日
.button {...} 
.button .last {...} 
.button .last span {...} 
.button .txt {...} 
.button .txt .tag {...} 
.button .txt p {...} 
.button a {...} 
.button a:after {...} 
13年12月6日金曜日
(ヽ?ω`)????? 
13年12月6日金曜日
.button { font-size: 13px; } 
... 
.footer .sub a { font-size: 13px; } 
... 
.button_active .txt p { font-size: 13px; } 
13年12月6日金曜日
.button { font-size: 13px; } 
... 
.footer .sub a { font-size: 13px; } 
... 
.button_active .txt p { font-size: 13px; } 
13年12月6日金曜日
(ヽ?ω`)????? 
13年12月6日金曜日
.button { 
font-size: 13px; 
height: 33px; 
text-align: center; 
z-index: 2; 
border: 1px solid #000; 
} 
13年12月6日金曜日
.button { 
font-size: 13px; 
height: 33px; 
text-align: center; 
z-index: 2; 
border: 1px solid #000; 
} 
<div class=”buttn CtlR”> ... </div> 
<a href=”#” class=”buttn”> ... </a> 
<div class=”buttn” data-sid=”i000000”> ... </div> 
13年12月6日金曜日
.button { 
font-size: 13px; 
height: 33px; 
text-align: center; 
z-index: 2; 
border: 1px solid #000; 
} 
<div class=”buttn CtlR”> ... </div> 
<a href=”#” class=”buttn”> ... </a> 
<div class=”buttn” data-sid=”i000000”> ... </div> 
13年12月6日金曜日
(ヽ?ω`)????? 
13年12月6日金曜日
.button { 
-webkit-border-radius: 3px; 
-moz-border-radius: 3px; 
-ms-border-radius: 3px; 
-o-border-radius: 3px; 
border-radius: 3px; 
} 
13年12月6日金曜日
.button { 
-webkit-border-radius: 3px; 
-moz-border-radius: 3px; 
-ms-border-radius: 3px; 
-o-border-radius: 3px; 
border-radius: 3px; 
} 
13年12月6日金曜日
(ヽ?ω`)????? 
13年12月6日金曜日
<head> 
... 
<link rel="stylesheet" type="text/css" href="../css/s.css" > 
<link rel="stylesheet" type="text/css" href="style.css" > 
<link rel="stylesheet" type="text/css" href="../css/sp.css" > 
<link rel="stylesheet" type="text/css" href="../css/sp_2.css" > 
<link rel="stylesheet" type="text/css" href="real_s.css" > 
<link rel="stylesheet" type="text/css" href="common.css" > 
... 
</head> 
13年12月6日金曜日
(ヽ?ω`)????? 
13年12月6日金曜日
同じことを何度も... 
クロスブラウザ対応... 
管理が... 
13年12月6日金曜日
つ Sass 
13年12月6日金曜日
What’s Sass? 
13年12月6日金曜日
メタ言語 
13年12月6日金曜日
CSSの記入を 
楽にするもの 
13年12月6日金曜日
CSS = Sass ? 
13年12月6日金曜日
No 
13年12月6日金曜日
Sassのファイルはブラウザで直接読めません 
13年12月6日金曜日
13年12月6日金曜日
どうやってコンパイルすんの? 
13年12月6日金曜日
13年12月6日金曜日
実際に書いてみる 
13年12月6日金曜日
CSS 
.touch { ... } 
.touch .button { ... } 
.touch span { color: #aaa } 
.touch .txt { ... } 
.touch a { ... } 
.touch a:hover { color: #aaa } 
.touch .sub { ... } 
.touch > div { color: #aaa } 
13年12月6日金曜日
Sass 
.touch { ... } 
.touch .button { ... } 
.touch span { color: #aaa } 
.touch .txt { ... } 
.touch a { ... } 
.touch a:hover { color: #aaa } 
.touch .sub { ... } 
.touch > div { color: #aaa } 
13年12月6日金曜日
なにも変わっていない... 
13年12月6日金曜日
それがいい 
13年12月6日金曜日
?覚えたものから使っていける 
?環境にそぐわないものは省ける 
13年12月6日金曜日
Sassのイケてる機能たち 
13年12月6日金曜日
入れ子 
13年12月6日金曜日
.button {...} 
.button .last {...} 
.button .last span {...} 
.button .txt {...} 
.button .txt .tag {...} 
.button .txt p {...} 
.button a {...} 
.button a:after {...} 
13年12月6日金曜日
.button {...} 
.button .last {...} 
.button .last span {...} 
.button .txt {...} 
.button .txt .tag {...} 
.button .txt p {...} 
.button a {...} 
.button a:after {...} 
13年12月6日金曜日
.button { 
} 
13年12月6日金曜日
.button { 
.last { 
} 
.txt { 
} 
a { 
} 
} 
13年12月6日金曜日
.button { 
.last {... 
span {...} 
} 
.txt {... 
.tag {...} 
p {...} 
} 
a {... 
&:after {...} 
} 
} 
13年12月6日金曜日
変数 
13年12月6日金曜日
.button { font-size: 13px; } 
.footer .sub a { font-size: 13px; } 
.button_act .txt p { font-size: 13px; } 
13年12月6日金曜日
.button { font-size: 13px; } 
.footer .sub a { font-size: 13px; } 
.button_act .txt p { font-size: 13px; } 
13年12月6日金曜日
$base_fs = 13px; 
13年12月6日金曜日
$base_fs = 13px; 
.button { font-size: $base_fs; } 
.footer .sub a { font-size: $base_fs; } 
.button_act .txt p { font-size: $base_fs; } 
13年12月6日金曜日
継承 
13年12月6日金曜日
似たスタイルってできがち 
13年12月6日金曜日
.twitter_button { 
height: 33px; 
border: 1px solid #000; 
/* 独自定義 */ 
} 
.facebook_button { 
height: 33px; 
border: 1px solid #000; 
/* 独自定義 */ 
} 
13年12月6日金曜日
.twitter_button { 
height: 33px; 
border: 1px solid #000; 
/* 独自定義 */ 
} 
.facebook_button { 
height: 33px; 
border: 1px solid #000; 
/* 独自定義 */ 
} 
13年12月6日金曜日
.twitter_button, .facebook_button { 
height: 33px; 
border: 1px solid #000; 
} 
. twitter_button { 
/* 独自定義 */ 
} 
.facebook_button { 
/* 独自定義 */ 
} 
13年12月6日金曜日
%base_button { 
height: 33px; 
border: 1px solid #000; 
} 
13年12月6日金曜日
%base_button { 
height: 33px; 
border: 1px solid #000; 
} 
. twitter_button { 
/* 独自定義 */ 
} 
.facebook_button { 
/* 独自定義 */ 
} 
13年12月6日金曜日
.base_button { 
height: 33px; 
border: 1px solid #000; 
} 
. twitter_button { 
@extend %base_button; 
/* 独自定義 */ 
} 
.facebook_button { 
@extend %base_button; 
/* 独自定義 */ 
} 
13年12月6日金曜日
mixin 
13年12月6日金曜日
.twitter_button { 
height: 33px; 
border: 1px solid #000; 
background-color: #66C9E9; 
} 
.facebook_button { 
height: 33px; 
border: 1px solid #000; 
background-color: #3C5A98; 
} 
13年12月6日金曜日
.twitter_button { 
height: 33px; 
border: 1px solid #000; 
background-color: #66C9E9; 
} 
.facebook_button { 
height: 33px; 
border: 1px solid #000; 
background-color: #3C5A98; 
} 
13年12月6日金曜日
.twitter_button { 
height: 33px; 
border: 1px solid #000; 
background-color: #66C9E9; 
} 
.facebook_button { 
height: 33px; 
border: 1px solid #000; 
background-color: #3C5A98; 
} 
13年12月6日金曜日
@mixin base_button($bc) { 
height: 33px; 
border: 1px solid #000; 
background-color: $bc; 
} 
13年12月6日金曜日
@mixin base_button($bc) { 
height: 33px; 
border: 1px solid #000; 
background-color: $bc; 
} 
13年12月6日金曜日
@mixin base_button($bc) { 
height: 33px; 
border: 1px solid #000; 
background-color: $bc; 
} 
13年12月6日金曜日
@mixin base_button($bc) { 
height: 33px; 
border: 1px solid #000; 
background-color: $bc; 
} 
13年12月6日金曜日
@mixin base_button($bc) { 
height: 33px; 
border: 1px solid #000; 
background-color: $bc; 
} 
. twitter_button { 
@include base_button(#66C9E9); 
} 
.facebook_button { 
@include base_button(#3C5A98); 
} 
13年12月6日金曜日
@mixin base_button($bc) { 
height: 33px; 
border: 1px solid #000; 
background-color: $bc; 
} 
. twitter_button { 
@include base_button(#66C9E9); 
} 
.facebook_button { 
@include base_button(#3C5A98); 
} 
13年12月6日金曜日
@mixin base_button($bc) { 
height: 33px; 
border: 1px solid #000; 
background-color: $bc; 
} 
. twitter_button { 
@include base_button(#66C9E9); 
} 
.facebook_button { 
@include base_button(#3C5A98); 
} 
13年12月6日金曜日
@mixin border-radius($br) { 
-webkit-border-radius: $br; 
-moz-border-radius: $br; 
-ms-border-radius: $br; 
-o-border-radius: $br; 
border-radius: $br; 
} 
13年12月6日金曜日
インポート 
13年12月6日金曜日
<head> 
... 
<link rel="stylesheet" type="text/css" href="../css/s.css" > 
<link rel="stylesheet" type="text/css" href="../css/sp.css" > 
<link rel="stylesheet" type="text/css" href="real_s.css" > 
<link rel="stylesheet" type="text/css" href="common.css" > 
... 
</head> 
13年12月6日金曜日
s.cssだけにしたい... 
13年12月6日金曜日
s.scss 
_sp.scss 
_real_s.scss 
_common.scss 
13年12月6日金曜日
s.scss 
_sp.scss 
_real_s.scss 
_common.scss 
13年12月6日金曜日
Sass s.scss CSS s.css 
@import "_sp"; 
@import "_real_s"; 
@import "_common"; 
/* _sp.scssに記載した内容 */ 
/* _real_s.scssに記載した内容 */ 
/* _common.scssに記載した内容 */ 
13年12月6日金曜日
<head> 
... 
<link rel="stylesheet" type="text/css" href="../css/s.css" > 
... 
</head> 
13年12月6日金曜日
導入してみた 
13年12月6日金曜日
1 
13年12月6日金曜日
書かなくていい 
13年12月6日金曜日
書かなくていい 
- コピペミスが減る 
13年12月6日金曜日
書かなくていい 
- コピペミスが減る 
- 記述作業が減る 
13年12月6日金曜日
2 
13年12月6日金曜日
管理が楽ちん 
13年12月6日金曜日
管理が楽ちん 
- マージ事故が減る 
13年12月6日金曜日
管理が楽ちん 
- マージ事故が減る 
- 見通しがよくなる 
13年12月6日金曜日
3 
13年12月6日金曜日
セマンティック 
13年12月6日金曜日
セマンティック 
説明すると長いから後でググってください... 
「OOCSS Sass」 
13年12月6日金曜日
困ったこと 
13年12月6日金曜日
組み方 
13年12月6日金曜日
IE 
13年12月6日金曜日
おしまい 
13年12月6日金曜日
Ad

Recommended

PDF
厂补蝉蝉(厂颁厂厂)について
Kazufumi Miyamoto
?
PDF
チーム産やさしさが香る?フロントエンドコード ?jshintとscss-lintの?ソースをかけて?
Takuhito Hihara
?
PDF
Introduction to 狠狠撸Share for Businesses
狠狠撸Share
?
PDF
How to Make Awesome 狠狠撸Shares: Tips & Tricks
狠狠撸Share
?
PDF
Getting Started With 狠狠撸Share
狠狠撸Share
?
PDF
About Sass
Minoru Hayakawa
?
PDF
ネストを覚えた人のための厂补蝉蝉の便利な使い方
Hiroki Shibata
?
PDF
CSS3 Design Recipe
Kazunari Hara
?
PDF
「尝贰厂厂」ことはじめ
Eigoro Yamamura
?
PDF
厂补蝉蝉/颁辞尘辫补蝉蝉讲习会
Beeworks
?
ZIP
実践Sass 前編
Azusa Tomita
?
PDF
First sass
Toshiaki Sasaki
?
PDF
CSS Design and Programming
Taku AMANO
?
PDF
gulp + sass で目指せ倍速コーディング(東区フロントエンド勉強会 2015年 第1回) 本編
Toshimichi Suekane
?
ZIP
実践Sass 後編
kosei27
?
PDF
なんで颁厂厂すぐ死んでしまうん
Hayato Mizuno
?
PDF
厂补蝉蝉を导入したはなし
アライドアーキテクツ株式会社
?
PDF
リファクタリングHTML/CSS ~レガシー世界を超えて~ #scripty03
驰补丑辞辞!デベロッパーネットワーク
?
PDF
厂补蝉蝉をはじめよう!
Yoshiya OKI
?
PDF
HTML/CSSを効率的にする メタ言語とツールのアレコレ
知己 久保
?
PDF
マークアップ講座 02 CSS
eiji sekiya
?
PDF
Sass
Su Ga
?
PPTX
Css3
Goro Ide
?
PDF
今日から使える! Sass/compass ゆるめ勉強会
Yuji Nojima
?
PDF
コーディングがラクになる!? “自分仕様”のさくさくコーディング法
Rico Sengan
?
PPTX
Sassについてゼロから解説 -基本の理解だけでも効率アップ-|第14回ゼロから始めるWordPress勉強会
Yoshinori Kobayashi
?
PDF
贵辞耻苍诲补迟颈辞苍の厂补蝉蝉を使いはじめた人と使いたいと考えている人へ
Seiichiro Mishiba
?

More Related Content

Similar to Sass (20)

PDF
「尝贰厂厂」ことはじめ
Eigoro Yamamura
?
PDF
厂补蝉蝉/颁辞尘辫补蝉蝉讲习会
Beeworks
?
ZIP
実践Sass 前編
Azusa Tomita
?
PDF
First sass
Toshiaki Sasaki
?
PDF
CSS Design and Programming
Taku AMANO
?
PDF
gulp + sass で目指せ倍速コーディング(東区フロントエンド勉強会 2015年 第1回) 本編
Toshimichi Suekane
?
ZIP
実践Sass 後編
kosei27
?
PDF
なんで颁厂厂すぐ死んでしまうん
Hayato Mizuno
?
PDF
厂补蝉蝉を导入したはなし
アライドアーキテクツ株式会社
?
PDF
リファクタリングHTML/CSS ~レガシー世界を超えて~ #scripty03
驰补丑辞辞!デベロッパーネットワーク
?
PDF
厂补蝉蝉をはじめよう!
Yoshiya OKI
?
PDF
HTML/CSSを効率的にする メタ言語とツールのアレコレ
知己 久保
?
PDF
マークアップ講座 02 CSS
eiji sekiya
?
PDF
Sass
Su Ga
?
PPTX
Css3
Goro Ide
?
PDF
今日から使える! Sass/compass ゆるめ勉強会
Yuji Nojima
?
PDF
コーディングがラクになる!? “自分仕様”のさくさくコーディング法
Rico Sengan
?
PPTX
Sassについてゼロから解説 -基本の理解だけでも効率アップ-|第14回ゼロから始めるWordPress勉強会
Yoshinori Kobayashi
?
PDF
贵辞耻苍诲补迟颈辞苍の厂补蝉蝉を使いはじめた人と使いたいと考えている人へ
Seiichiro Mishiba
?
「尝贰厂厂」ことはじめ
Eigoro Yamamura
?
厂补蝉蝉/颁辞尘辫补蝉蝉讲习会
Beeworks
?
実践Sass 前編
Azusa Tomita
?
First sass
Toshiaki Sasaki
?
CSS Design and Programming
Taku AMANO
?
gulp + sass で目指せ倍速コーディング(東区フロントエンド勉強会 2015年 第1回) 本編
Toshimichi Suekane
?
実践Sass 後編
kosei27
?
なんで颁厂厂すぐ死んでしまうん
Hayato Mizuno
?
厂补蝉蝉を导入したはなし
アライドアーキテクツ株式会社
?
リファクタリングHTML/CSS ~レガシー世界を超えて~ #scripty03
驰补丑辞辞!デベロッパーネットワーク
?
厂补蝉蝉をはじめよう!
Yoshiya OKI
?
HTML/CSSを効率的にする メタ言語とツールのアレコレ
知己 久保
?
マークアップ講座 02 CSS
eiji sekiya
?
Sass
Su Ga
?
今日から使える! Sass/compass ゆるめ勉強会
Yuji Nojima
?
コーディングがラクになる!? “自分仕様”のさくさくコーディング法
Rico Sengan
?
Sassについてゼロから解説 -基本の理解だけでも効率アップ-|第14回ゼロから始めるWordPress勉強会
Yoshinori Kobayashi
?
贵辞耻苍诲补迟颈辞苍の厂补蝉蝉を使いはじめた人と使いたいと考えている人へ
Seiichiro Mishiba
?

Sass