forked from sakamies/css-vocabulary
-
Notifications
You must be signed in to change notification settings - Fork 28
/
index.html
187 lines (184 loc) · 8.54 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>CSS 词汇表</title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes, minimal-ui">
<link href="css/cssvocab.css" rel="stylesheet">
<script src="lib/jquery-2.0.3.min.js"></script>
<script src="lib/keymaster.js"></script>
<script src="js/cssvocab.js"></script>
<!-- Typekit: -->
<script type="text/javascript" src="//use.typekit.net/kxi2hrv.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
</head>
<body class="noise-png">
<div class="toggles">
<button class="sidebar-show-btn btn-icon">
<img src="img/view-off.svg" alt="">
</button>
<button class="sidebar-hide-btn btn-icon">
<img src="img/view-on.svg" alt="">
</button>
</div>
<div class="layout">
<div class="sidebar">
<br>
<h1 class="title">
CSS 词汇表
</h1>
<ul class="vocabList"></ul>
</div>
<div class="content">
<code class="css">
<br>
<pre class="comment">
<code>
/*
<br>
单击CSS或者侧边栏可以看到相应的内容,
<br>
还可以通过键盘使用Tab键来浏览。
<br>
*/
</code>
</pre>
<br>
<div class="statement at-rule import"><span class="identifier">import</span> <span class="string">extra.css</span></div>
<div class="statement rule-set">
<h2 class="selector">
<span class="universal-selector">*</span>
</h2>
<div class="block declaration-block" tabindex="0">
<dl class="declaration" tabindex="0">
<dt class="property hilite" tabindex="0">margin</dt>
<dd class="value" tabindex="0"><span class="number hover hilite selected" tabindex="0">0</span></dd>
</dl>
</div>
</div>
<div class="statement rule-set">
<h2 class="selector"><span class="simple-selector type-selector">ul</span><span class="combinator descendant-combinator"> </span><span class="simple-selector type-selector">li</span></h2>
<div class="block declaration-block">
<dl class="declaration">
<dt class="property">list-style</dt>
<dd class="value"><span class="keyword">linear</span></dd>
</dl>
<dl class="declaration">
<dt class="property">margin</dt>
<dd class="value"><span class="length"><span class="number">2</span><span class="unit">em</span></span> <span class="percentage"><span class="number">20</span>%</span> <span class="length"><span class="number">15</span><span class="unit">px</span></span> <span class="number">0</span></dd>
</dl>
</div>
</div>
<div class="statement rule-set">
<h2 class="selector"><span class="simple-selector id-selector">#content</span></h2>
<div class="block declaration-block">
<dl class="declaration">
<dt class="property"><span class="vendor-prefix">-webkit-</span>font-smoothing</dt>
<dd class="value"><span class="keyword">antialiased</span></dd>
</dl>
<dl class="declaration">
<dt class="property">background</dt>
<dd class="value">
<dl class="function">
<dt class="function-name">url</dt>
<dd class="argument"><span class="url">img/gradient.png</span></dd>
</dl>
</dd>
</dl>
<dl class="declaration">
<dt class="property">background</dt>
<dd class="value">
<dl class="function">
<dt class="function-name">linear-gradient</dt>
<dd class="argument"><span class="keyword">to</span><span class="keyword">bottom</span></dd>
<dd class="argument"><span class="keyword color">red</span></dd>
<dd class="argument"><span class="color">rgba(255,0,0,0)</span></dd>
</dl>
</dd>
</dl>
</div>
</div>
<div class="statement at-rule rule-set media-query"><span class="identifier">media</span>
<span class="media-query-list">
<span class="keyword">only</span>
<span class="media-type">screen</span>
<span class="keyword">and</span>
<span class="expression"><span class="media-feature">min-width</span> <span class="value"><span class="length"><span class="number">35</span><span class="unit">em</span></span></span></span>
</span>
<div class="block">
<div class="statement rule-set">
<h2 class="selector"><span class="simple-selector id-selector">#content</span></h2>
<div class="block declaration-block">
<dl class="declaration">
<dt class="property">width</dt><dd class="value"><span class="percentage"><span class="number">50</span>%</span></dd></dl>
</div>
</div>
</div>
</div>
<div class="statement rule-set">
<h2 class="selector"><span class="simple-selector class-selector">.item</span><span class="combinator adjacent-sibling-combinator">+</span><span class="simple-selector class-selector">.item</span></h2>
<h2 class="selector"><span class="simple-selector class-selector">.item</span><span class="combinator general-sibling-combinator">~</span><span class="simple-selector class-selector">.item</span></h2>
<div class="block declaration-block">
<dl class="declaration">
<dt class="property">margin-left</dt>
<dd class="value"><span class="length"><span class="number">-15</span><span class="unit">px</span></span></dd>
</dl>
</div>
</div>
<div class="statement rule-set">
<h2 class="selector"><span class="simple-selector id-selector">#buttons</span><span class="simple-selector class-selector">.lotsofcontent</span></h2>
<h2 class="selector"><span class="simple-selector id-selector">#buttons</span><span class="combinator child-combinator">></span><span class="simple-selector universal-selector">*</span></h2>
<h2 class="selector"><span class="simple-selector type-selector">input</span><span class="simple-selector attribute-selector">[type=submit]</span></h2>
<div class="block declaration-block">
<dl class="declaration">
<dt class="property">border-radius</dt>
<dd class="value"><span class="length"><span class="number">.3</span><span class="unit">rem</span></span></dd>
</dl>
</div>
</div>
<div class="statement rule-set">
<h2 class="selector"><span class="simple-selector type-selector">a</span><span class="simple-selector pseudo-class">hover</span></h2>
<h2 class="selector"><span class="simple-selector type-selector">a</span><span class="simple-selector pseudo-class">focus</span></h2>
<div class="block declaration-block">
<dl class="declaration">
<dt class="property">color</dt>
<dd class="value"><span class="keyword color">green</span></dd>
</dl>
</div>
</div>
<div class="statement rule-set">
<h2 class="selector"><span class="simple-selector type-selector">blockquote</span><span class="pseudo-element">before</span></h2>
<h2 class="selector"><span class="simple-selector type-selector">blockquote</span><span class="pseudo-element">after</span></h2>
<div class="block declaration-block">
<dl class="declaration">
<dt class="property">content</dt>
<dd class="value"><span class="string">\201d</span></dd>
</dl>
</div>
</div>
<div class="comment">
/*
<br>
作者 <a href="http://twitter.com/sakamies">@sakamies</a>
<br>
欢迎指正 <a href="https://github.com/sakamies/css-vocabulary">https://github.com/sakamies/css-vocabulary</a>
<br>
<p>
翻译:<a href="http://weibo.com/jieorlin">@yisi</a>
</p>
*/
</div>
<br>
<br>
<br>
<br>
</code>
<!-- <p>
<a class="logo" href="http://workflower.fi">
<img src="workflower-logo.png" alt="by workflower">
</a>
</p> -->
</div>
</div>
</body>
</html>