sass 3.5.0.pre.rc.1 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/README.md +1 -1
  4. data/Rakefile +40 -11
  5. data/VERSION +1 -1
  6. data/VERSION_DATE +1 -1
  7. data/extra/sass-spec-ref.sh +32 -0
  8. data/lib/sass.rb +3 -3
  9. data/lib/sass/css.rb +1 -1
  10. data/lib/sass/deprecation.rb +55 -0
  11. data/lib/sass/engine.rb +16 -12
  12. data/lib/sass/environment.rb +1 -1
  13. data/lib/sass/error.rb +3 -3
  14. data/lib/sass/exec/base.rb +1 -1
  15. data/lib/sass/plugin.rb +1 -1
  16. data/lib/sass/plugin/compiler.rb +1 -1
  17. data/lib/sass/plugin/configuration.rb +2 -2
  18. data/lib/sass/plugin/rack.rb +3 -3
  19. data/lib/sass/plugin/staleness_checker.rb +3 -3
  20. data/lib/sass/script.rb +3 -3
  21. data/lib/sass/script/functions.rb +23 -22
  22. data/lib/sass/script/lexer.rb +17 -8
  23. data/lib/sass/script/parser.rb +8 -7
  24. data/lib/sass/script/tree/node.rb +2 -2
  25. data/lib/sass/script/tree/operation.rb +43 -16
  26. data/lib/sass/script/value/base.rb +3 -3
  27. data/lib/sass/script/value/color.rb +15 -10
  28. data/lib/sass/script/value/helpers.rb +13 -2
  29. data/lib/sass/script/value/list.rb +2 -2
  30. data/lib/sass/script/value/number.rb +4 -4
  31. data/lib/sass/script/value/string.rb +5 -12
  32. data/lib/sass/scss/parser.rb +7 -4
  33. data/lib/sass/scss/rx.rb +1 -1
  34. data/lib/sass/scss/static_parser.rb +12 -24
  35. data/lib/sass/selector/abstract_sequence.rb +12 -11
  36. data/lib/sass/selector/comma_sequence.rb +18 -3
  37. data/lib/sass/selector/pseudo.rb +15 -2
  38. data/lib/sass/selector/sequence.rb +9 -7
  39. data/lib/sass/selector/simple.rb +5 -4
  40. data/lib/sass/selector/simple_sequence.rb +7 -3
  41. data/lib/sass/shared.rb +5 -3
  42. data/lib/sass/source/map.rb +2 -2
  43. data/lib/sass/source/position.rb +4 -4
  44. data/lib/sass/tree/comment_node.rb +1 -1
  45. data/lib/sass/tree/node.rb +3 -3
  46. data/lib/sass/tree/prop_node.rb +1 -1
  47. data/lib/sass/tree/rule_node.rb +15 -6
  48. data/lib/sass/tree/visitors/cssize.rb +3 -5
  49. data/lib/sass/tree/visitors/deep_copy.rb +1 -1
  50. data/lib/sass/tree/visitors/extend.rb +2 -8
  51. data/lib/sass/tree/visitors/perform.rb +3 -2
  52. data/lib/sass/tree/visitors/to_css.rb +3 -3
  53. data/lib/sass/util.rb +32 -5
  54. data/lib/sass/version.rb +2 -4
  55. data/test/sass/cache_test.rb +0 -1
  56. data/test/sass/callbacks_test.rb +0 -1
  57. data/test/sass/compiler_test.rb +0 -1
  58. data/test/sass/conversion_test.rb +3 -4
  59. data/test/sass/css2sass_test.rb +1 -2
  60. data/test/sass/css_variable_test.rb +0 -1
  61. data/test/sass/encoding_test.rb +0 -1
  62. data/test/sass/engine_test.rb +63 -60
  63. data/test/sass/exec_test.rb +0 -1
  64. data/test/sass/extend_test.rb +40 -81
  65. data/test/sass/functions_test.rb +8 -6
  66. data/test/sass/importer_test.rb +0 -1
  67. data/test/sass/logger_test.rb +0 -1
  68. data/test/sass/more_templates/more1.sass +10 -10
  69. data/test/sass/more_templates/more_import.sass +2 -2
  70. data/test/sass/plugin_test.rb +3 -4
  71. data/test/sass/results/script.css +1 -1
  72. data/test/sass/results/units.css +2 -2
  73. data/test/sass/script_conversion_test.rb +1 -2
  74. data/test/sass/script_test.rb +55 -47
  75. data/test/sass/scss/css_test.rb +2 -3
  76. data/test/sass/scss/rx_test.rb +0 -1
  77. data/test/sass/scss/scss_test.rb +26 -12
  78. data/test/sass/source_map_test.rb +13 -14
  79. data/test/sass/superselector_test.rb +0 -1
  80. data/test/sass/templates/_partial.sass +1 -1
  81. data/test/sass/templates/basic.sass +10 -10
  82. data/test/sass/templates/bork1.sass +1 -1
  83. data/test/sass/templates/bork5.sass +1 -1
  84. data/test/sass/templates/compact.sass +10 -10
  85. data/test/sass/templates/complex.sass +187 -187
  86. data/test/sass/templates/compressed.sass +10 -10
  87. data/test/sass/templates/expanded.sass +10 -10
  88. data/test/sass/templates/import.sass +2 -2
  89. data/test/sass/templates/importee.sass +3 -3
  90. data/test/sass/templates/mixins.sass +22 -22
  91. data/test/sass/templates/multiline.sass +4 -4
  92. data/test/sass/templates/nested.sass +13 -13
  93. data/test/sass/templates/parent_ref.sass +12 -12
  94. data/test/sass/templates/script.sass +70 -70
  95. data/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +1 -1
  96. data/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +2 -2
  97. data/test/sass/templates/subdir/subdir.sass +3 -3
  98. data/test/sass/templates/units.sass +10 -10
  99. data/test/sass/util/multibyte_string_scanner_test.rb +10 -3
  100. data/test/sass/util/normalized_map_test.rb +0 -1
  101. data/test/sass/util/subset_map_test.rb +0 -1
  102. data/test/sass/util_test.rb +4 -3
  103. data/test/sass/value_helpers_test.rb +0 -1
  104. metadata +15 -13
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env ruby
2
1
  # -*- coding: utf-8 -*-
3
2
  require File.dirname(__FILE__) + '/../test_helper'
4
3
  require File.dirname(__FILE__) + '/test_helper'
@@ -37,7 +36,7 @@ JSON
37
36
  end
38
37
 
39
38
  def test_simple_mapping_sass
40
- assert_parses_with_sourcemap <<SASS, <<CSS, <<JSON, :syntax => :sass
39
+ silence_warnings {assert_parses_with_sourcemap <<SASS, <<CSS, <<JSON, :syntax => :sass}
41
40
  a
42
41
  foo: bar
43
42
  /* SOME COMMENT */
@@ -114,7 +113,7 @@ JSON
114
113
 
115
114
  def test_mapping_with_directory_sass
116
115
  options = {:filename => "sass/style.sass", :output => "css/style.css", :syntax => :sass}
117
- assert_parses_with_sourcemap <<SASS, <<CSS, <<JSON, options
116
+ silence_warnings {assert_parses_with_sourcemap <<SASS, <<CSS, <<JSON, options}
118
117
  a
119
118
  foo: bar
120
119
  /* SOME COMMENT */
@@ -360,8 +359,7 @@ $translucent-red: rgba(255, 0, 0, 0.5);
360
359
  }
361
360
  }
362
361
  {{22}}&:active {{/22}}{
363
- {{23}}color{{/23}}: {{24}}#010203 + #040506{{/24}};
364
- {{25}}border{{/25}}: {{26}}$width solid black{{/26}};
362
+ {{23}}border{{/23}}: {{24}}$width solid black{{/24}};
365
363
  }
366
364
  {{2}}/* SOME COMMENT */{{/2}}
367
365
  {{3}}font{{/3}}: {{4}}2px/3px {{/4}}{
@@ -384,8 +382,7 @@ SCSS
384
382
  {{19}}a .special:after{{/19}} {
385
383
  {{20}}content{{/20}}: {{21}}"I ate 15 pies 2px thick!"{{/21}}; }
386
384
  {{22}}a:active{{/22}} {
387
- {{23}}color{{/23}}: {{24}}#050709{{/24}};
388
- {{25}}border{{/25}}: {{26}}2px solid black{{/26}}; }
385
+ {{23}}border{{/23}}: {{24}}2px solid black{{/24}}; }
389
386
 
390
387
  /*# sourceMappingURL=test.css.map */
391
388
  CSS
@@ -405,8 +402,7 @@ $translucent-red: rgba(255, 0, 0, 0.5)
405
402
  {{19}}&:after{{/19}}
406
403
  {{20}}content{{/20}}: {{21}}"I ate #{5 + 10} pies #{$width} thick!"{{/21}}
407
404
  {{22}}&:active{{/22}}
408
- {{23}}color{{/23}}: {{24}}#010203 + #040506{{/24}}
409
- {{25}}border{{/25}}: {{26}}$width solid black{{/26}}
405
+ {{23}}border{{/23}}: {{24}}$width solid black{{/24}}
410
406
 
411
407
  {{2}}/* SOME COMMENT */{{/2}}
412
408
  {{3}}font{{/3}}: {{4}}2px/3px{{/4}}
@@ -427,8 +423,7 @@ SASS
427
423
  {{19}}a .special:after{{/19}} {
428
424
  {{20}}content{{/20}}: {{21}}"I ate 15 pies 2px thick!"{{/21}}; }
429
425
  {{22}}a:active{{/22}} {
430
- {{23}}color{{/23}}: {{24}}#050709{{/24}};
431
- {{25}}border{{/25}}: {{26}}2px solid black{{/26}}; }
426
+ {{23}}border{{/23}}: {{24}}2px solid black{{/24}}; }
432
427
 
433
428
  /*# sourceMappingURL=test.css.map */
434
429
  CSS
@@ -665,7 +660,7 @@ CSS
665
660
  end
666
661
 
667
662
  def test_mixin_sourcemap_sass
668
- assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass
663
+ silence_warnings {assert_parses_with_mapping <<'SASS', <<'CSS', :syntax => :sass}
669
664
  =large-text
670
665
  :font
671
666
  {{2}}size{{/2}}: {{3}}20px{{/3}}
@@ -759,7 +754,7 @@ CSS
759
754
  # Regression tests
760
755
 
761
756
  def test_properties_sass
762
- assert_parses_with_mapping <<SASS, <<CSS, :syntax => :sass
757
+ silence_warnings {assert_parses_with_mapping <<SASS, <<CSS, :syntax => :sass}
763
758
  {{1}}.foo{{/1}}
764
759
  :{{2}}name{{/2}} {{3}}value{{/3}}
765
760
  {{4}}name{{/4}}: {{5}}value{{/5}}
@@ -986,7 +981,11 @@ CSS
986
981
  def assert_ranges_equal(expected, actual, lines, prefix)
987
982
  assert_positions_equal(expected.start_pos, actual.start_pos, lines, prefix + " start position")
988
983
  assert_positions_equal(expected.end_pos, actual.end_pos, lines, prefix + " end position")
989
- assert_equal(expected.file, actual.file)
984
+ if expected.file.nil?
985
+ assert_nil(actual.file)
986
+ else
987
+ assert_equal(expected.file, actual.file)
988
+ end
990
989
  end
991
990
 
992
991
  def assert_sourcemaps_equal(source, css, expected, actual)
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env ruby
2
1
  require File.dirname(__FILE__) + '/../test_helper'
3
2
 
4
3
  class SuperselectorTest < MiniTest::Test
@@ -1,2 +1,2 @@
1
1
  #foo
2
- :background-color #baf
2
+ background-color: #baf
@@ -1,23 +1,23 @@
1
1
 
2
2
 
3
3
  body
4
- :font Arial
5
- :background blue
4
+ font: Arial
5
+ background: blue
6
6
 
7
7
  #page
8
- :width 700px
9
- :height 100
8
+ width: 700px
9
+ height: 100
10
10
  #header
11
- :height 300px
11
+ height: 300px
12
12
  h1
13
- :font-size 50px
14
- :color blue
13
+ font-size: 50px
14
+ color: blue
15
15
 
16
16
  #content.user.show
17
17
  #container.top
18
18
  #column.left
19
- :width 100px
19
+ width: 100px
20
20
  #column.right
21
- :width 600px
21
+ width: 600px
22
22
  #container.bottom
23
- :background brown
23
+ background: brown
@@ -1,2 +1,2 @@
1
1
  bork
2
- :bork $bork
2
+ bork: $bork
@@ -1,3 +1,3 @@
1
1
  bork
2
2
  /* foo */
3
- :bork $bork
3
+ bork: $bork
@@ -1,17 +1,17 @@
1
1
  #main
2
- :width 15em
3
- :color #0000ff
2
+ width: 15em
3
+ color: #0000ff
4
4
  p
5
- :border
6
- :style dotted
5
+ border:
6
+ style: dotted
7
7
  /* Nested comment
8
8
  More nested stuff
9
- :width 2px
9
+ width: 2px
10
10
  .cool
11
- :width 100px
11
+ width: 100px
12
12
 
13
13
  #left
14
- :font
15
- :size 2em
16
- :weight bold
17
- :float left
14
+ font:
15
+ size: 2em
16
+ weight: bold
17
+ float: left
@@ -1,305 +1,305 @@
1
1
  body
2
- :margin 0
3
- :font 0.85em "Lucida Grande", "Trebuchet MS", Verdana, sans-serif
4
- :color #fff
5
- :background url(/images/global_bg.gif)
2
+ margin: 0
3
+ font: 0.85em "Lucida Grande", "Trebuchet MS", Verdana, sans-serif
4
+ color: #fff
5
+ background: url(/images/global_bg.gif)
6
6
 
7
7
  #page
8
- :width 900px
9
- :margin 0 auto
10
- :background #440008
11
- :border-top
12
- :width 5px
13
- :style solid
14
- :color #ff8500
8
+ width: 900px
9
+ margin: 0 auto
10
+ background: #440008
11
+ border-top:
12
+ width: 5px
13
+ style: solid
14
+ color: #ff8500
15
15
 
16
16
  #header
17
- :height 75px
18
- :padding 0
17
+ height: 75px
18
+ padding: 0
19
19
  h1
20
- :float left
21
- :width 274px
22
- :height 75px
23
- :margin 0
24
- :background
25
- :image url(/images/global_logo.gif)
20
+ float: left
21
+ width: 274px
22
+ height: 75px
23
+ margin: 0
24
+ background:
25
+ image: url(/images/global_logo.gif)
26
26
  /* Crazy nested comment
27
- :repeat no-repeat
28
- :text-indent -9999px
27
+ repeat: no-repeat
28
+ text-indent: -9999px
29
29
  .status
30
- :float right
31
- :padding
32
- :top .5em
33
- :left .5em
34
- :right .5em
35
- :bottom 0
30
+ float: right
31
+ padding:
32
+ top: .5em
33
+ left: .5em
34
+ right: .5em
35
+ bottom: 0
36
36
  p
37
- :float left
38
- :margin
39
- :top 0
40
- :right 0.5em
41
- :bottom 0
42
- :left 0
37
+ float: left
38
+ margin:
39
+ top: 0
40
+ right: 0.5em
41
+ bottom: 0
42
+ left: 0
43
43
  ul
44
- :float left
45
- :margin 0
46
- :padding 0
44
+ float: left
45
+ margin: 0
46
+ padding: 0
47
47
  li
48
- :list-style-type none
49
- :display inline
50
- :margin 0 5px
48
+ list-style-type: none
49
+ display: inline
50
+ margin: 0 5px
51
51
  a:link, a:visited
52
- :color #ff8500
53
- :text-decoration none
52
+ color: #ff8500
53
+ text-decoration: none
54
54
  a:hover
55
- :text-decoration underline
55
+ text-decoration: underline
56
56
  .search
57
- :float right
58
- :clear right
59
- :margin 12px 0 0 0
57
+ float: right
58
+ clear: right
59
+ margin: 12px 0 0 0
60
60
  form
61
- :margin 0
61
+ margin: 0
62
62
  input
63
- :margin 0 3px 0 0
64
- :padding 2px
65
- :border none
63
+ margin: 0 3px 0 0
64
+ padding: 2px
65
+ border: none
66
66
 
67
67
  #menu
68
- :clear both
69
- :text-align right
70
- :height 20px
71
- :border-bottom 5px solid #006b95
72
- :background #00a4e4
68
+ clear: both
69
+ text-align: right
70
+ height: 20px
71
+ border-bottom: 5px solid #006b95
72
+ background: #00a4e4
73
73
  .contests
74
74
  ul
75
- :margin 0 5px 0 0
76
- :padding 0
75
+ margin: 0 5px 0 0
76
+ padding: 0
77
77
  li
78
- :list-style-type none
79
- :margin 0 5px
80
- :padding 5px 5px 0 5px
81
- :display inline
82
- :font-size 1.1em
78
+ list-style-type: none
79
+ margin: 0 5px
80
+ padding: 5px 5px 0 5px
81
+ display: inline
82
+ font-size: 1.1em
83
83
  // This comment is properly indented
84
- :color #fff
85
- :background #00a4e4
84
+ color: #fff
85
+ background: #00a4e4
86
86
  a:link, a:visited
87
- :color #fff
88
- :text-decoration none
89
- :font-weight bold
87
+ color: #fff
88
+ text-decoration: none
89
+ font-weight: bold
90
90
  a:hover
91
- :text-decoration underline
91
+ text-decoration: underline
92
92
 
93
93
  //General content information
94
94
  #content
95
- :clear both
95
+ clear: both
96
96
  .container
97
- :clear both
97
+ clear: both
98
98
  .column
99
- :float left
99
+ float: left
100
100
  .right
101
- :float right
101
+ float: right
102
102
  a:link, a:visited
103
- :color #93d700
104
- :text-decoration none
103
+ color: #93d700
104
+ text-decoration: none
105
105
  a:hover
106
- :text-decoration underline
106
+ text-decoration: underline
107
107
 
108
108
  // A hard tab:
109
109
 
110
110
 
111
111
  #content
112
112
  p, div
113
- :width 40em
113
+ width: 40em
114
114
  li, dt, dd
115
- :color #ddffdd
116
- :background-color #4792bb
115
+ color: #ddffdd
116
+ background-color: #4792bb
117
117
  .container.video
118
118
  .column.left
119
- :width 200px
119
+ width: 200px
120
120
  .box
121
- :margin-top 10px
121
+ margin-top: 10px
122
122
  p
123
- :margin 0 1em auto 1em
123
+ margin: 0 1em auto 1em
124
124
  .box.participants
125
125
  img
126
- :float left
127
- :margin 0 1em auto 1em
128
- :border 1px solid #6e000d
129
- :style solid
126
+ float: left
127
+ margin: 0 1em auto 1em
128
+ border: 1px solid #6e000d
129
+ style: solid
130
130
  h2
131
- :margin 0 0 10px 0
132
- :padding 0.5em
131
+ margin: 0 0 10px 0
132
+ padding: 0.5em
133
133
  /* The background image is a gif!
134
- :background #6e000d url(/images/hdr_participant.gif) 2px 2px no-repeat
134
+ background: #6e000d url(/images/hdr_participant.gif) 2px 2px no-repeat
135
135
  /* Okay check this out
136
136
  Multiline comments
137
137
  Wow dude
138
138
  I mean seriously, WOW
139
- :text-indent -9999px
139
+ text-indent: -9999px
140
140
  // And also...
141
141
  Multiline comments that don't output!
142
142
  Snazzy, no?
143
- :border
144
- :top
145
- :width 5px
146
- :style solid
147
- :color #a20013
148
- :right
149
- :width 1px
150
- :style dotted
143
+ border:
144
+ top:
145
+ width: 5px
146
+ style: solid
147
+ color: #a20013
148
+ right:
149
+ width: 1px
150
+ style: dotted
151
151
  .column.middle
152
- :width 500px
152
+ width: 500px
153
153
  .column.right
154
- :width 200px
154
+ width: 200px
155
155
  .box
156
- :margin-top 0
156
+ margin-top: 0
157
157
  p
158
- :margin 0 1em auto 1em
158
+ margin: 0 1em auto 1em
159
159
  .column
160
160
  p
161
- :margin-top 0
161
+ margin-top: 0
162
162
 
163
163
  #content.contests
164
164
  .container.information
165
165
  .column.right
166
166
  .box
167
- :margin 1em 0
167
+ margin: 1em 0
168
168
  .box.videos
169
169
  .thumbnail img
170
- :width 200px
171
- :height 150px
172
- :margin-bottom 5px
170
+ width: 200px
171
+ height: 150px
172
+ margin-bottom: 5px
173
173
  a:link, a:visited
174
- :color #93d700
175
- :text-decoration none
174
+ color: #93d700
175
+ text-decoration: none
176
176
  a:hover
177
- :text-decoration underline
177
+ text-decoration: underline
178
178
  .box.votes
179
179
  a
180
- :display block
181
- :width 200px
182
- :height 60px
183
- :margin 15px 0
184
- :background url(/images/btn_votenow.gif) no-repeat
185
- :text-indent -9999px
186
- :outline none
187
- :border none
180
+ display: block
181
+ width: 200px
182
+ height: 60px
183
+ margin: 15px 0
184
+ background: url(/images/btn_votenow.gif) no-repeat
185
+ text-indent: -9999px
186
+ outline: none
187
+ border: none
188
188
  h2
189
- :margin 52px 0 10px 0
190
- :padding 0.5em
191
- :background #6e000d url(/images/hdr_videostats.gif) 2px 2px no-repeat
192
- :text-indent -9999px
193
- :border-top 5px solid #a20013
189
+ margin: 52px 0 10px 0
190
+ padding: 0.5em
191
+ background: #6e000d url(/images/hdr_videostats.gif) 2px 2px no-repeat
192
+ text-indent: -9999px
193
+ border-top: 5px solid #a20013
194
194
 
195
195
  #content.contests
196
196
  .container.video
197
197
  .box.videos
198
198
  h2
199
- :margin 0
200
- :padding 0.5em
201
- :background #6e000d url(/images/hdr_newestclips.gif) 2px 2px no-repeat
202
- :text-indent -9999px
203
- :border-top 5px solid #a20013
199
+ margin: 0
200
+ padding: 0.5em
201
+ background: #6e000d url(/images/hdr_newestclips.gif) 2px 2px no-repeat
202
+ text-indent: -9999px
203
+ border-top: 5px solid #a20013
204
204
  table
205
- :width 100
205
+ width: 100
206
206
  td
207
- :padding 1em
208
- :width 25
209
- :vertical-align top
207
+ padding: 1em
208
+ width: 25
209
+ vertical-align: top
210
210
  p
211
- :margin 0 0 5px 0
211
+ margin: 0 0 5px 0
212
212
  a:link, a:visited
213
- :color #93d700
214
- :text-decoration none
213
+ color: #93d700
214
+ text-decoration: none
215
215
  a:hover
216
- :text-decoration underline
216
+ text-decoration: underline
217
217
  .thumbnail
218
- :float left
218
+ float: left
219
219
  img
220
- :width 80px
221
- :height 60px
222
- :margin 0 10px 0 0
223
- :border 1px solid #6e000d
220
+ width: 80px
221
+ height: 60px
222
+ margin: 0 10px 0 0
223
+ border: 1px solid #6e000d
224
224
 
225
225
  #content
226
226
  .container.comments
227
227
  .column
228
- :margin-top 15px
228
+ margin-top: 15px
229
229
  .column.left
230
- :width 600px
230
+ width: 600px
231
231
  .box
232
232
  ol
233
- :margin 0
234
- :padding 0
233
+ margin: 0
234
+ padding: 0
235
235
  li
236
- :list-style-type none
237
- :padding 10px
238
- :margin 0 0 1em 0
239
- :background #6e000d
240
- :border-top 5px solid #a20013
236
+ list-style-type: none
237
+ padding: 10px
238
+ margin: 0 0 1em 0
239
+ background: #6e000d
240
+ border-top: 5px solid #a20013
241
241
  div
242
- :margin-bottom 1em
242
+ margin-bottom: 1em
243
243
  ul
244
- :text-align right
244
+ text-align: right
245
245
  li
246
- :display inline
247
- :border none
248
- :padding 0
246
+ display: inline
247
+ border: none
248
+ padding: 0
249
249
  .column.right
250
- :width 290px
251
- :padding-left 10px
250
+ width: 290px
251
+ padding-left: 10px
252
252
  h2
253
- :margin 0
254
- :padding 0.5em
255
- :background #6e000d url(/images/hdr_addcomment.gif) 2px 2px no-repeat
256
- :text-indent -9999px
257
- :border-top 5px solid #a20013
253
+ margin: 0
254
+ padding: 0.5em
255
+ background: #6e000d url(/images/hdr_addcomment.gif) 2px 2px no-repeat
256
+ text-indent: -9999px
257
+ border-top: 5px solid #a20013
258
258
  .box
259
259
  textarea
260
- :width 290px
261
- :height 100px
262
- :border none
260
+ width: 290px
261
+ height: 100px
262
+ border: none
263
263
 
264
264
  #footer
265
- :margin-top 10px
266
- :padding 1.2em 1.5em
267
- :background #ff8500
265
+ margin-top: 10px
266
+ padding: 1.2em 1.5em
267
+ background: #ff8500
268
268
  ul
269
- :margin 0
270
- :padding 0
271
- :list-style-type none
269
+ margin: 0
270
+ padding: 0
271
+ list-style-type: none
272
272
  li
273
- :display inline
274
- :margin 0 0.5em
275
- :color #440008
273
+ display: inline
274
+ margin: 0 0.5em
275
+ color: #440008
276
276
  ul.links
277
- :float left
277
+ float: left
278
278
  a:link, a:visited
279
- :color #440008
280
- :text-decoration none
279
+ color: #440008
280
+ text-decoration: none
281
281
  a:hover
282
- :text-decoration underline
282
+ text-decoration: underline
283
283
  ul.copyright
284
- :float right
284
+ float: right
285
285
 
286
286
 
287
287
  .clear
288
- :clear both
288
+ clear: both
289
289
 
290
290
  .centered
291
- :text-align center
291
+ text-align: center
292
292
 
293
293
  img
294
- :border none
294
+ border: none
295
295
 
296
296
  button.short
297
- :width 60px
298
- :height 22px
299
- :padding 0 0 2px 0
300
- :color #fff
301
- :border none
302
- :background url(/images/btn_short.gif) no-repeat
297
+ width: 60px
298
+ height: 22px
299
+ padding: 0 0 2px 0
300
+ color: #fff
301
+ border: none
302
+ background: url(/images/btn_short.gif) no-repeat
303
303
 
304
304
  table
305
- :border-collapse collapse
305
+ border-collapse: collapse