yui_reset_rails 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Yui
2
2
  module Reset
3
3
  module Rails
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
@@ -1,20 +1,24 @@
1
1
  /*
2
- Copyright (c) 2011, Yahoo! Inc. All rights reserved.
3
- Code licensed under the BSD License:
4
- http://developer.yahoo.com/yui/license.html
5
- version: 2.9.0
2
+ YUI 3.4.1 (build 4118)
3
+ Copyright 2011 Yahoo! Inc. All rights reserved.
4
+ Licensed under the BSD License.
5
+ http://yuilibrary.com/license/
6
+ */
7
+ /*
8
+ TODO will need to remove settings on HTML since we can't namespace it.
9
+ TODO with the prefix, should I group by selector or property for weight savings?
6
10
  */
7
- /**
8
- * YUI Reset
9
- * @module reset
10
- * @namespace
11
- * @requires
12
- */
13
- html {
14
- color: #000;
15
- background: #FFF;
11
+ html{
12
+ color:#000;
13
+ background:#FFF;
16
14
  }
17
-
15
+ /*
16
+ TODO remove settings on BODY since we can't namespace it.
17
+ */
18
+ /*
19
+ TODO test putting a class on HEAD.
20
+ - Fails on FF.
21
+ */
18
22
  body,
19
23
  div,
20
24
  dl,
@@ -35,218 +39,86 @@ form,
35
39
  fieldset,
36
40
  legend,
37
41
  input,
38
- button,
39
42
  textarea,
40
- select,
41
43
  p,
42
44
  blockquote,
43
45
  th,
44
46
  td {
45
- margin: 0;
46
- padding: 0;
47
+ margin:0;
48
+ padding:0;
47
49
  }
48
-
49
50
  table {
50
- border-collapse: collapse;
51
- border-spacing: 0;
51
+ border-collapse:collapse;
52
+ border-spacing:0;
52
53
  }
53
-
54
54
  fieldset,
55
55
  img {
56
- border: 0;
56
+ border:0;
57
57
  }
58
-
58
+ /*
59
+ TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
60
+ */
59
61
  address,
60
- button,
61
62
  caption,
62
63
  cite,
63
64
  code,
64
65
  dfn,
65
66
  em,
66
- input,
67
- optgroup,
68
- option,
69
- select,
70
67
  strong,
71
- textarea,
72
68
  th,
73
69
  var {
74
- font:inherit;
75
- }
76
-
77
- del,
78
- ins {
79
- text-decoration: none;
70
+ font-style:normal;
71
+ font-weight:normal;
80
72
  }
81
73
 
82
- li {
83
- list-style: none;
74
+ ol,
75
+ ul {
76
+ list-style:none;
84
77
  }
85
78
 
86
79
  caption,
87
80
  th {
88
- text-align: left;
81
+ text-align:left;
89
82
  }
90
-
91
83
  h1,
92
84
  h2,
93
85
  h3,
94
86
  h4,
95
87
  h5,
96
88
  h6 {
97
- font-size: 100%;
98
- font-weight: normal;
89
+ font-size:100%;
90
+ font-weight:normal;
99
91
  }
100
-
101
92
  q:before,
102
93
  q:after {
103
- content: '';
94
+ content:'';
104
95
  }
105
-
106
96
  abbr,
107
97
  acronym {
108
- border: 0;
109
- font-variant: normal;
98
+ border:0;
99
+ font-variant:normal;
110
100
  }
111
-
101
+ /* to preserve line-height and selector appearance */
112
102
  sup {
113
- vertical-align: baseline;
103
+ vertical-align:text-top;
114
104
  }
115
-
116
105
  sub {
117
- vertical-align: baseline;
118
- }
119
-
120
- /*because legend doesn't inherit in IE */
121
- legend {
122
- color: #000;
123
- }
124
-
125
-
126
- /*
127
- YUI 3.4.1 (build 4118)
128
- Copyright 2011 Yahoo! Inc. All rights reserved.
129
- Licensed under the BSD License.
130
- http://yuilibrary.com/license/
131
- */
132
- /* base.css, part of YUI's CSS Foundation */
133
- h1 {
134
- /*18px via YUI Fonts CSS foundation*/
135
- font-size:138.5%;
106
+ vertical-align:text-bottom;
136
107
  }
137
- h2 {
138
- /*16px via YUI Fonts CSS foundation*/
139
- font-size:123.1%;
140
- }
141
- h3 {
142
- /*14px via YUI Fonts CSS foundation*/
143
- font-size:108%;
144
- }
145
- h1,h2,h3 {
146
- /* top & bottom margin based on font size */
147
- margin:1em 0;
148
- }
149
- h1,h2,h3,h4,h5,h6,strong {
150
- /*bringing boldness back to headers and the strong element*/
151
- font-weight:bold;
152
- }
153
- abbr,acronym {
154
- /*indicating to users that more info is available */
155
- border-bottom:1px dotted #000;
156
- cursor:help;
157
- }
158
- em {
159
- /*bringing italics back to the em element*/
160
- font-style:italic;
161
- }
162
- blockquote,ul,ol,dl {
163
- /*giving blockquotes and lists room to breath*/
164
- margin:1em;
165
- }
166
- ol,ul,dl {
167
- /*bringing lists on to the page with breathing room */
168
- margin-left:2em;
169
- }
170
- ol {
171
- /*giving OL's LIs generated numbers*/
172
- list-style: decimal outside;
173
- }
174
- ul {
175
- /*giving UL's LIs generated disc markers*/
176
- list-style: disc outside;
177
- }
178
- dl dd {
179
- /*providing spacing for definition terms*/
180
- margin-left:1em;
181
- }
182
- th,td {
183
- /*borders and padding to make the table readable*/
184
- border:1px solid #000;
185
- padding:.5em;
186
- }
187
- th {
188
- /*distinguishing table headers from data cells*/
189
- font-weight:bold;
190
- text-align:center;
191
- }
192
- caption {
193
- /*coordinated margin to match cell's padding*/
194
- margin-bottom:.5em;
195
- /*centered so it doesn't blend in to other content*/
196
- text-align:center;
197
- }
198
- p,fieldset,table,pre {
199
- /*so things don't run into each other*/
200
- margin-bottom:1em;
201
- }
202
- /* setting a consistent width, 160px;
203
- control of type=file still not possible */
204
- input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;}
205
-
206
-
207
- /*
208
- YUI 3.4.1 (build 4118)
209
- Copyright 2011 Yahoo! Inc. All rights reserved.
210
- Licensed under the BSD License.
211
- http://yuilibrary.com/license/
212
- */
213
- /**
214
- * Percents could work for IE, but for backCompat purposes, we are using keywords.
215
- * x-small is for IE6/7 quirks mode.
216
- */
217
- body {
218
- font:13px/1.231 arial,helvetica,clean,sans-serif;
219
- *font-size:small; /* for IE */
220
- *font:x-small; /* for IE in quirks mode */
221
- }
222
-
223
- /**
224
- * Nudge down to get to 13px equivalent for these form elements
225
- */
226
- select,
227
108
  input,
228
- button,
229
- textarea {
230
- font:99% arial,helvetica,clean,sans-serif;
231
- }
232
-
233
- /**
234
- * To help tables remember to inherit
235
- */
236
- table {
109
+ textarea,
110
+ select {
111
+ font-family:inherit;
237
112
  font-size:inherit;
238
- font:100%;
113
+ font-weight:inherit;
239
114
  }
240
-
241
- /**
242
- * Bump up IE to get to 13px equivalent for these fixed-width elements
243
- */
244
- pre,
245
- code,
246
- kbd,
247
- samp,
248
- tt {
249
- font-family:monospace;
250
- *font-size:108%;
251
- line-height:100%;
115
+ /*to enable resizing for IE*/
116
+ input,
117
+ textarea,
118
+ select {
119
+ *font-size:100%;
120
+ }
121
+ /*because legend doesn't inherit in IE */
122
+ legend {
123
+ color:#000;
252
124
  }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yui_reset_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jhimy Fernandes Villar