-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
234 lines (212 loc) · 7.29 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Как пользоваться успехом у женщин с помощью CSS</title>
<meta charset="utf-8">
<meta name="viewport" content="width=792, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="shower/themes/bright/styles/screen.css">
</head>
<body class="list">
<header class="caption">
<h1>Успех и CSS</h1>
<p><a href="https://github.com/vast">Василий Половнёв</a>, <a href="http:/flatstack.com">Flatstack</a></p>
</header>
<section class="slide" id="Cover"><div>
<h2>Успех и CSS</h2>
<p>Как пользоваться успехом у женщин с помощью CSS</p>
<p class="note">Василий Половнёв, Flatstack</p>
</div></section>
<section class="slide cover">
<div>
<h2>Успех</h2>
<ul>
<li>Autoprefixer</li>
<li>Методологии</li>
</ul>
<img src="pictures/lucky-boy.jpg" alt="" width="100%">
</div>
</section>
<section class="slide">
<div>
<h2>Из <a href="http://sass-lang.com/guide#6">документации к SASS</a></h2>
<pre>
<code>@mixin border-radius($radius) {</code>
<code> -webkit-border-radius: $radius;</code>
<code> -moz-border-radius: $radius;</code>
<code> -ms-border-radius: $radius;</code>
<code> -o-border-radius: $radius;</code>
<code> border-radius: $radius;</code>
<code>}</code>
</pre>
</div>
</section>
<section class="slide">
<div>
<h2>Ох</h2>
<pre>
<code>@mixin border-radius($radius) {</code>
<code> -webkit-border-radius: $radius; // Safari 4.0 (2008 год)</code>
<code> -moz-border-radius: $radius; // Firefox 3.6 (2010 год)</code>
<code> -ms-border-radius: $radius; // не существовал</code>
<code> -o-border-radius: $radius; // не существовал</code>
<code> border-radius: $radius;</code>
<code>}</code>
</pre>
</div>
</section>
<section class="slide">
<div>
<h2>nib</h2>
<pre>
<code>* {</code>
<code> -webkit-box-sizing: border-box;</code>
<code> -moz-box-sizing: border-box;</code>
<code> box-sizing: border-box;</code>
<code>}</code>
</pre>
</div>
</section>
<section class="slide">
<div>
<h2>Ох</h2>
<pre>
<code>* {</code>
<code> -webkit-box-sizing: border-box; // Chrome 9 (2011)</code>
<code> -moz-box-sizing: border-box; // Firefox 28, (Март 2014)</code>
<code> box-sizing: border-box;</code>
<code>}</code>
</pre>
</div>
</section>
<section class="slide cover">
<div>
<img src="pictures/irobot.jpg" alt="" style="height: 100%">
<h2 style="color: #fff; text-align: right;">Пусть страдают <br />роботы</h2>
</div>
</section>
<section class="slide shout">
<div>
<h2 style="text-align: center">
<a href="https://github.com/postcss/autoprefixer">Autoprefixer</a>
</h2>
</div>
</section>
<section class="slide">
<div>
<h2>Autoprefixer</h2>
<ul>
<li>возьмет данные с caniuse.com</li>
<li>расставит <em>нужные</em> префиксы</li>
<li>уберет ненужные</li>
<li>gradient, flexbox, <code>:fullscreen</code>, <code>@keyframes</code>, <code>background-size</code>, <code>transform</code></li>
</ul>
</div>
</section>
<section class="slide" style="background: url(pictures/another-level.jpg) center center no-repeat;">
<div></div>
</section>
<!-- section class="slide">
<div>
<h2>Проблемы CSS</h2>
<ul>
<li>вертикальное центрирование</li>
<li>колонки одинаковой высоты</li>
<li>верстка для IE6</li>
<li>хаки</li>
</ul>
</div>
</section>
<section class="slide">
<div>
<h2>Настоящие проблемы CSS</h2>
<ul>
<li>непредсказуемый каскад</li>
<li>вес селекторов</li>
<li>удаление старого кода</li>
</ul>
</div>
</section>
<section class="slide">
<div>
<p>Нет уверенности, что изменения в стилях не сломают что-то еще.</p>
<p>Люди <em>боятся</em> вносить изменения, потому что не могут предсказать последствия.</p>
</div>
</section>
<section class="slide">
<div>
<pre>
<code>.attachments {</code>
<code> margin: 1em 0;</code>
<code>}</code>
<span class="next"><code>// Override margin of attachment class,</code>
<code>// so it doesn't mess up page layout.</code>
<code>body.attachments {</code>
<code> margin-top: 0;</code>
<code>}</code></span>
</pre>
</div>
</section>
<section class="slide">
<div>
<pre>
<code>@media (min-width: 1440px) {</code>
<code> .projects {</code>
<code> ul.tests {</code>
<code> li.test .contents {</code>
<code> .inner_contents {</code>
<code> .description_container {</code>
<code> width: 50%!important;</code>
<code> }</code>
<code> }</code>
<code> }</code>
<code> }</code>
<code> }</code>
<code>}</code>
</pre>
</div>
</section>
<section class="slide" style="background: url(pictures/xfiles.jpg) center center no-repeat;">
<div></div>
</section>
<section class="slide shout">
<div><h2>Перестаньте херачить CSS, начните думать</h2></div>
</section>
<section class="slide">
<div>
<p>
CSS — не только средство визуального дизайна, это код.
</p>
<p>
CSS с хорошей архитектурой предсказуем,
его легко поддерживать, масштабировать и использовать повторно.
А писать такой CSS помогают методологии, своды правил и рекомендаций.
</p>
</div>
</section>
<section class="slide">
<div>
<h2>Методологии</h2>
<ul>
<li class="next"><a href="http://ru.bem.info/method/">БЭМ</a>, Блок-Элемент-Модификатор от Яндекса</li>
<li class="next"><a href="http://mvcss.io/">MVCSS</a>, Modular View CSS от Envy, CodeSchool</li>
<li class="next"><a href="http://smacss.com/">SMACSS</a>, Scalable and Modular Architecture for CSS</li>
<li class="next"><a href="http://operatino.github.io/MCSS/en/">MCSS</a>, Multilayer CSS от Одноклассников</li>
<li class="next"><a href="http://oocss.org/">OOCSS</a>, Object-Oriented CSS</li>
<li class="next"><a href="http://nano.sapegin.ru/all/opor-methodology">OPOR</a>, микро-методология Артема Сапегина</li>
</ul>
</div>
</section>
<section class="slide shout">
<div><h2>CSS — тоже код, и требует любви</h2></div>
</section -->
<!--
To hide progress bar from entire presentation
just remove “progress” element.
-->
<div class="progress"><div></div></div>
<script src="shower/shower.min.js"></script>
<!-- Copyright © 2014 Yours Truly, Famous Inc. -->
<!-- Photos by John Carey, fiftyfootshadows.net -->
</body>
</html>