css-annotate 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ 2010-11-18 version 1.3.0
2
+
3
+ By default only show commented styles (the ones that matter).
4
+
5
+ Fixed rendering bug under Ruby 1.9.2.
6
+
7
+
1
8
  2010-11-13 version 1.2.1
2
9
 
3
10
  Fixed default syntax for CSS files.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.3.0
data/lib/css/annotate.rb CHANGED
@@ -68,7 +68,7 @@ module CSS
68
68
  comment = prev.value.gsub(/(^\/\*\s*|\s*\*\/$)/, "")
69
69
  end
70
70
  if comment || options[:all]
71
- selector = (node.resolved_rules || node.parsed_rules).to_a.to_s
71
+ selector = (node.resolved_rules || node.parsed_rules).to_a.join
72
72
  style = "#{selector} {\n"
73
73
  style << node.children.select { |child| Sass::Tree::PropNode === child }.
74
74
  map { |prop| " #{prop.resolved_name}: #{prop.resolved_value};" }.join("\n")
@@ -1,12 +1,29 @@
1
1
  body {
2
+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
3
+ font-size: 16px;
4
+ line-height: 24px;
5
+ color: #252519;
2
6
  margin: 0;
3
7
  padding: 0;
4
- font-family: "Helvetica";
5
8
  }
6
9
  /* Sass errors rendered in body:before */
7
10
  body:before {
8
11
  color: red;
9
12
  }
13
+ a {
14
+ color: #261a3b;
15
+ &:visited { color: #261a3b; }
16
+ }
17
+ p {
18
+ margin: 0 0 15px 0;
19
+ }
20
+ h1, h2, h3, h4, h5, h6 {
21
+ margin: 40px 0 15px 0;
22
+ }
23
+ h3, h4, h5, h6 {
24
+ margin-top: 20px;
25
+ }
26
+
10
27
 
11
28
  .toggle {
12
29
  position: absolute;
@@ -17,6 +17,7 @@
17
17
  rule.style.display = show ? "inherit" : "none";
18
18
  }
19
19
  }
20
+ toggle(false);
20
21
  </script>
21
22
  <% end %>
22
23
  </head>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: css-annotate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 2
9
- - 1
10
- version: 1.2.1
8
+ - 3
9
+ - 0
10
+ version: 1.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Assaf Arkin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-13 00:00:00 -08:00
18
+ date: 2010-11-18 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -92,7 +92,7 @@ licenses: []
92
92
  post_install_message: To get started, run the command css-annotate
93
93
  rdoc_options:
94
94
  - --title
95
- - css-annotate 1.2.1
95
+ - css-annotate 1.3.0
96
96
  - --main
97
97
  - README.rdoc
98
98
  - --webcvs