Skip to content

Commit

Permalink
[FIXED] Inclusion order of print stylesheet. The order now for e.g. t…
Browse files Browse the repository at this point in the history
…he Markdown bundle:

1. Support/themes/default/print.css
2. Bundles/markdown.tmbundle/Support/css/default/print.css
3. Themes/Webpreview/print.css

So that user specific rules from Themes can override Bundle specific rules (though one could make a case that it should be the other way around) and those can override the default rules.

git-svn-id: http://svn.textmate.org/trunk/Support@11941 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
Soryu committed May 16, 2010
1 parent 54b0c77 commit 0c7c55c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/web_preview.rb
Expand Up @@ -13,10 +13,14 @@
<% } %>
<% bundle_styles.each { |style| %>
<link rel="stylesheet" href="file://<%= bundle_support %>/css/<%= style %>/style.css" type="text/css" charset="utf-8" media="screen">
<link rel="stylesheet" href="file://<%= bundle_support %>/css/<%= style %>/print.css" type="text/css" charset="utf-8" media="print">
<% } %>
<link rel="stylesheet" href="file://<%= support_path %>/themes/default/print.css" type="text/css" charset="utf-8" media="print">
<link rel="stylesheet" href="file://<%= user_path %>print.css" type="text/css" charset="utf-8" media="print">
<% bundle_styles.each { |style| %>
<link rel="stylesheet" href="file://<%= bundle_support %>/css/<%= style %>/print.css" type="text/css" charset="utf-8" media="print">
<% } %>
<% user_styles.each { |style| %>
<link rel="stylesheet" href="file://<%= user_path %><%= style %>/style.css" type="text/css" charset="utf-8" media="screen">
<link rel="stylesheet" href="file://<%= user_path %><%= style %>/print.css" type="text/css" charset="utf-8" media="print">
Expand Down

0 comments on commit 0c7c55c

Please sign in to comment.