-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtips.js
139 lines (131 loc) · 3.14 KB
/
tips.js
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
var tips = [];
tips.push({
author: 'bentruyman',
message: 'Use Microsoft_Case in Your IDs and Classes So That Others <em>Familiar</em> With the English Language (or Books) Can Easily Read Your Selectors',
example: [
'.A_Nice_Looking_Container_With_White_Text {',
' color: white;',
' height: 360px;',
' width: 960px;',
'}',
'',
'.Right_Sidebar_Navigation_Item {',
' float: left;',
' margin: 0 1em;',
'}',
'',
'#Generic_Copy {',
' font-family: Georgia, Sans-Serif;',
'}',
'',
'.Masthead_Logo_Image {',
' background-image: url(...);',
' height: 95px;',
' width: 300px;',
'}'
]
});
tips.push({
author: 'bentruyman',
message: '<em>Organize</em> Properties/Value Pairs by Length',
example: [
'.container {',
' color: #fff;',
' width: 900px;',
' height: 300px;',
' padding: 1px 0;',
' margin: 3px 2px;',
' display: inline-block;',
' background-color: #333333;',
' background-repeat: no-repeat;',
' background-position: 100px -50px;',
'}'
]
});
tips.push({
author: 'bentruyman',
message: 'Creating As Many Classes As Possible to <em>Abstract</em> out Actual Implementation',
example: [
'.bold {',
' font-weight: bold;',
'}',
'',
'.float-left {',
' float: left;',
'}',
'',
'.float-right {',
' float: right;',
'}',
'',
'.italic {',
' font-style: italic;',
'}',
'',
'.red-text {',
' color: #ff0000;',
'}',
'',
'.text-aligned-right {',
' text-align: right;',
'}'
]
});
tips.push({
author: 'chpwn',
message: 'Non-Existent Because we use <em>Tables</em>',
example: [
'<table border=0>',
'<tr><td><table><tr><td></td></tr></table></td></tr>',
'</table>'
]
});
tips.push({
author: 'artsyca',
message: 'Use <em>meticulously</em> nested style rules including at least two ids per line',
example: [
'#concept #permanent .recommend {...}',
'#concept #highlightRec.recommend {left:0px;}',
'#concept #alpha.recommend {left:-3px;}',
'#concept #beta.recommend {left:-3px;}',
'#concept #gamma.recommend {left:-3px;}',
'#concept form#conceptProducts {..}',
'#concept #compare {...}',
'#concept #compare .object {...}',
'#concept #compare .object.highlight .recommend {...}',
'#concept #compare .object h5 {...}',
'#concept #compare .object .intro {...}',
'#concept #compare .object .intro .productPhoto {...}',
'#concept #compare .object .intro h4 {...}',
'...',
'#concept #compare .object .speed {...}',
'#concept #compare .object .size {...}',
'#concept #compare .object .features {...}',
'#concept #compare .object .features li {...}',
'#concept #compare .object div.order {...}'
]
});
tips.push({
author: 'artsyca',
message: 'Avoid defaults at all costs and use <em>precise</em> pixel or % sizes for all fonts and spacing',
example: [
'p.messageText{',
' font-size: 12.5px;',
'}',
'',
'h1.messagebody {',
' font-size 163%;',
' line-height: 125%;',
'}',
'',
'h1.messagebody span.callout {',
' font-size 123%;',
'}',
'',
'span.memo {',
' font-size: 94.5%',
'}',
''
]
});
module.exports = tips;