author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 15 Sep 2019 23:40:51 +0300 | |
changeset 2375 | c2bfaae890f8 |
parent 2228 | 837f1337c59b |
permissions | -rw-r--r-- |
1045 | 1 |
.. -*- coding: utf-8; -*- |
2 |
||
1920 | 3 |
===== |
4 |
CSS |
|
5 |
===== |
|
1045 | 6 |
.. contents:: |
1905
fba288d59662
Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1789
diff
changeset
|
7 |
:local: |
1045 | 8 |
|
2065 | 9 |
CSS specification |
10 |
================= |
|
11 |
||
12 |
Starting from CSS level 2 specification splited into individual modules. Each |
|
13 |
module have own levels. |
|
14 |
||
15 |
CSS level 3 means CSS level 2 plus modules that refine and extend CSS 2. |
|
16 |
||
17 |
https://www.w3.org/TR/CSS/ |
|
18 |
Definition of CSS standards. |
|
19 |
https://www.w3.org/Style/CSS/ |
|
20 |
Home page for CSS specification umbrella. |
|
21 |
https://www.w3.org/Style/CSS/current-work |
|
22 |
Status of all modules. |
|
23 |
https://www.w3.org/TR/CSS2/ |
|
2066
3d76849f1abf
https://www.w3.org/TR/CSS21/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2065
diff
changeset
|
24 |
CSS level 2 at latest rev. |
3d76849f1abf
https://www.w3.org/TR/CSS21/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2065
diff
changeset
|
25 |
https://www.w3.org/TR/CSS21/ |
2065 | 26 |
CSS level 2 rev 1. |
27 |
||
2070 | 28 |
Default style for HTML elements |
29 |
=============================== |
|
30 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
31 |
* http://www.w3.org/TR/CSS2/sample.html |
2070 | 32 |
|
1920 | 33 |
Adding CSS to HTML |
34 |
================== |
|
1045 | 35 |
|
1919
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
36 |
Include to CSS file in ``head`` tag:: |
1045 | 37 |
|
38 |
<html> |
|
39 |
<head> |
|
40 |
<link href="path-to.css" rel="stylesheet" type="text/css"> |
|
41 |
</head> |
|
42 |
... |
|
43 |
<html> |
|
44 |
||
1919
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
45 |
or embed style into ``style`` tag (that tag valid only in ``head`` tag):: |
1045 | 46 |
|
47 |
<head> |
|
48 |
<style type="text/css"> |
|
49 |
h1 {border-width: 1; border: solid; text-align: center} |
|
50 |
</style> |
|
51 |
</head> |
|
52 |
||
1919
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
53 |
HTML 5 standard doesn't require ``type`` attribute, above example may be |
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
54 |
rewritten into:: |
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
55 |
|
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
56 |
<head> |
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
57 |
<style> |
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
58 |
h1 {border-width: 1; border: solid; text-align: center} |
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
59 |
</style> |
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
60 |
</head> |
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
61 |
|
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
62 |
To change style of specific tag embedding into ``style`` attribute (style syntax |
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
63 |
doesn't use selectors!):: |
1045 | 64 |
|
65 |
<b style="color: blue; font-family: ariel">Welcome!</b> |
|
66 |
||
2067 | 67 |
CSS encoding |
68 |
============ |
|
69 |
||
70 |
``@charset`` rule should be the first sequence in CSS document without preceding |
|
71 |
white spaces, should use double quotes and exactly one space between keyword and |
|
72 |
charset:: |
|
73 |
||
74 |
@charset "UTF-8"; |
|
75 |
||
76 |
UTF BOM have precedence over ``@charset``. |
|
77 |
||
78 |
Another source of encoding is HTTP header ``Content-Type`` that have highest |
|
79 |
precedence:: |
|
80 |
||
81 |
Content-Type: text/css; charset=utf-8 |
|
82 |
||
83 |
Using ``charset`` attribute on the ``link`` element is deprecated by HTML5. |
|
84 |
||
85 |
https://www.w3.org/International/questions/qa-css-charset.en |
|
86 |
Declaring character encodings in CSS. |
|
2068
cd5c05825627
*@charset CSS at-rule* at MDN.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2067
diff
changeset
|
87 |
https://developer.mozilla.org/en-US/docs/Web/CSS/@charset |
cd5c05825627
*@charset CSS at-rule* at MDN.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2067
diff
changeset
|
88 |
*@charset CSS at-rule* at MDN. |
2067 | 89 |
|
1920 | 90 |
Selectors |
91 |
========= |
|
1389
4ab574ec7067
Add links to standard.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
92 |
:: |
1045 | 93 |
|
94 |
tag {} |
|
95 |
.class {} |
|
96 |
#id {} для id разрешены символы |
|
97 |
* {} - любой элемент |
|
98 |
||
99 |
tag tag1 {} - выбор tag1, у которых есть предок tag |
|
100 |
tag > tag {} - выбор дочернего элемента |
|
101 |
tag + tag {} - выбор соседних элементов |
|
102 |
tag ~ tag {} - выбор любого соседа |
|
103 |
||
104 |
[attr] {} |
|
1433
933af00eae13
Selector by several attributes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1408
diff
changeset
|
105 |
[attr1][attr2] {} |
1045 | 106 |
[attr="..."] {} |
107 |
[attr~="..."] {} - присутствует слово ... в поле атрибута |
|
108 |
[attr*="..."] {} - присутствует набор символов ... в поле атрибута |
|
109 |
[attr^="..."] {} - начинается с ... в поле атрибута |
|
110 |
[attr$="..."] {} - заканчивается на ... в поле атрибута |
|
111 |
tag [attr|="..."] {} |
|
112 |
||
113 |
:link - не посещенные ссылки |
|
114 |
:visited - посещенные ссылки |
|
115 |
:active - нажатие на левую клавишу мыши на элементе |
|
116 |
:hover - назначать при наведении |
|
117 |
:focus - при фокусировке элемента |
|
118 |
:first-child - первый подэлемент |
|
119 |
:last-child - последний подэлемент |
|
120 |
||
121 |
:first-line |
|
122 |
:first-letter - выбрать первую букву (не приминимо к inline элементам) |
|
123 |
:before{content:"..."}, ставит перед контентом элементов строку xxx (можно |
|
124 |
использовать счетчики) |
|
125 |
:after{} - тоже, что и before, только ставит текст после контента тега |
|
126 |
||
1389
4ab574ec7067
Add links to standard.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
127 |
See: |
4ab574ec7067
Add links to standard.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
128 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
129 |
* https://www.w3.org/TR/CSS2/selector.html |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
130 |
* https://www.w3.org/TR/css3-selectors/#selectors |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
131 |
* https://www.w3.org/TR/CSS/#selectors |
1389
4ab574ec7067
Add links to standard.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
132 |
|
2071
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
133 |
CSS import statement |
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
134 |
==================== |
1408
085cde50fc0c
CSS include statement.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1389
diff
changeset
|
135 |
|
2071
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
136 |
Any ``@import`` rules must precede all other at-rules and style rules in a style |
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
137 |
sheet (besides ``@charset``):: |
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
138 |
|
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
139 |
@import "common.css"; |
1408
085cde50fc0c
CSS include statement.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1389
diff
changeset
|
140 |
@import url("common.css"); |
085cde50fc0c
CSS include statement.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1389
diff
changeset
|
141 |
|
2071
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
142 |
Import statment supports media query syntax:: |
1919
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
143 |
|
2071
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
144 |
@import url("print.css") print; |
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
145 |
@import url("bluish.css") projection, tv; |
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
146 |
@import url("narrow.css") handheld and (max-width: 400px); |
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
147 |
|
15c3e60f7faa
Refine "CSS import statement".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2070
diff
changeset
|
148 |
https://www.w3.org/TR/css-cascade-3/#at-import |
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
149 |
Importing Style Sheets: the @import rule. |
1919
83069b397c1f
Include statment supports media query syntax
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
150 |
|
2070 | 151 |
Including font |
152 |
============== |
|
153 |
:: |
|
1461
f030b717a402
Default style for HTML elements.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1433
diff
changeset
|
154 |
|
2070 | 155 |
@font-face { |
156 |
font-family: Gentium; |
|
157 |
src: url(http://example.com/fonts/Gentium.woff); |
|
158 |
} |
|
159 |
||
160 |
p { font-family: Gentium, serif; } |
|
161 |
||
162 |
https://www.w3.org/TR/css-fonts-3/ |
|
163 |
CSS Fonts Module Level 3. |
|
1461
f030b717a402
Default style for HTML elements.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1433
diff
changeset
|
164 |
|
1920 | 165 |
Media queries |
166 |
============= |
|
1045 | 167 |
|
1924
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
168 |
Syntax for media queries inside CSS file is:: |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
169 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
170 |
@media print { ... } |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
171 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
172 |
@media (min-width: 400px) and (max-width: 600px) { ... } |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
173 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
174 |
@import url(print.css) print; |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
175 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
176 |
It is possible to link to CSS file with media queries with ``media`` attribute:: |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
177 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
178 |
<link rel="stylesheet" media="(max-width: 640px)" href="max-640px.css"> |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
179 |
<link rel="stylesheet" media="(min-width: 640px)" href="min-640px.css"> |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
180 |
<link rel="stylesheet" media="(orientation: portrait)" href="portrait.css"> |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
181 |
<link rel="stylesheet" media="(orientation: landscape)" href="landscape.css"> |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
182 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
183 |
Possible predicates: |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
184 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
185 |
``(min-width: VAL)`` |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
186 |
Rules applied for any browser width over the value defined in the query. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
187 |
``(max-width: VAL)`` |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
188 |
Rules applied for any browser width below the value defined in the query. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
189 |
``(min-height: VAL)`` |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
190 |
Rules applied for any browser height over the value defined in the query. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
191 |
``(max-height: VAL)`` |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
192 |
Rules applied for any browser height below the value defined in the query. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
193 |
``(orientation=portrait)`` |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
194 |
Rules applied for any browser where the height is greater than or equal to the width. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
195 |
``(orientation=landscape)`` |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
196 |
Rules for any browser where the width is greater than the height. |
1924
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
197 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
198 |
See: |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
199 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
200 |
https://developers.google.com/web/fundamentals/design-and-ui/responsive/fundamentals/use-media-queries |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
201 |
Use CSS media queries for responsiveness |
1924
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
202 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
203 |
Viewport |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
204 |
======== |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
205 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
206 |
Specs: |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
207 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
208 |
https://www.w3.org/TR/css-device-adapt/ |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
209 |
Unpublished: CSS Device Adaptation Module Level 1 |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
210 |
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
211 |
``viewport`` attribute in ``meta`` tag. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
212 |
https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
213 |
Firefox mobile support for viewport. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
214 |
https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
215 |
Original viewport specs. |
1924
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
216 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
217 |
Compatibility: |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
218 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
219 |
http://www.quirksmode.org/mobile/tableViewport.html |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
220 |
Compatibility table. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
221 |
http://viewportsizes.com/ |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
222 |
Device table with viewport width. |
1924
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
223 |
|
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
224 |
Articles: |
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
225 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
226 |
http://www.quirksmode.org/mobile/viewports.html |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
227 |
How viewports and the widths of various important elements work, such as the |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
228 |
``<html>`` element, as well as the window and the screen. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
229 |
http://www.quirksmode.org/mobile/viewports2.html |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
230 |
How viewports and the widths of various important elements work, such as the |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
231 |
``<html>`` element, as well as the window and the screen. |
1924
46a080141f3a
Media queries, Viewport
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1921
diff
changeset
|
232 |
|
1920 | 233 |
CSS compilers |
234 |
============= |
|
1535
e499cb39b573
CSS frameworks. CSS compilers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1461
diff
changeset
|
235 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
236 |
http://lesscss.org/ |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
237 |
LESS extends CSS with dynamic behavior such as variables, |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
238 |
mixins, operations and functions. |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
239 |
http://sass-lang.com/ |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
240 |
Sass is the most mature, stable, and powerful professional grade |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
241 |
CSS extension language in the world. |
1535
e499cb39b573
CSS frameworks. CSS compilers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1461
diff
changeset
|
242 |
|
1920 | 243 |
CSS browser support |
244 |
=================== |
|
245 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
246 |
* http://www.quirksmode.org/css/contents.html |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
247 |
* http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28CSS%29 |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2071
diff
changeset
|
248 |
* https://www.css3.info/modules/selector-compat/ |
1920 | 249 |
|
250 |
Editor support |
|
251 |
============== |
|
252 |
||
2069 | 253 |
Emacs:: |
1920 | 254 |
|
255 |
$ sudo apt-get install css-mode |
|
256 |
||
2069 | 257 |
Graphical editor:: |
258 |
||
259 |
$ sudo apt-get install cssed |