[Contributed by Andre]

A new print stylesheet, which prints nicely formatted on 3x5 index cards, with one context on each card. Fixes #89.

Thanks, Andre!


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@153 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-10-12 17:52:03 +00:00
parent 5cdc9691d8
commit 1e5425ffdc
3 changed files with 88 additions and 13 deletions

View file

@ -3,6 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%= stylesheet_link_tag "standard" %>
<%= stylesheet_link_tag "print", :media => "print" %>
<%= javascript_include_tag "toggle_notes" %>
<%= javascript_include_tag "prototype" %>
<%= javascript_include_tag "effects" %>

View file

@ -15,19 +15,19 @@
</tr>
<tr>
<td class="label"><label for="item_context_id">Context</label></td>
<td><select name="item[context_id]" id="item_context_id" tabindex="3">
<% for @place in @contexts %>
<% if @item %>
<% if @place.id == @item.context_id %>
<option value="<%= @place.id %>" selected="selected"><%= @place.name %></option>
<% else %>
<option value="<%= @place.id %>"><%= @place.name %></option>
<% end %>
<% else %>
<option value="<%= @place.id %>"><%= @place.name %></option>
<% end %>
<% end %>
</select></td>
<td><select name="item[context_id]" id="item_context_id" tabindex="3">
<% for @place in @contexts %>
<% if @item %>
<% if @place.id == @item.context_id %>
<option value="<%= @place.id %>" selected="selected"><%= @place.name %></option>
<% else %>
<option value="<%= @place.id %>"><%= @place.name %></option>
<% end %>
<% else %>
<option value="<%= @place.id %>"><%= @place.name %></option>
<% end %>
<% end %>
</select></td>
</tr>
<tr>
<td class="label"><label for="item_project_id">Project</label></td>

View file

@ -0,0 +1,74 @@
/* LAYOUT ELEMENTS ========================================================== */
*
{
margin: 0;
padding: 0;
}
body {
background: #fff;
color: #000;
width: 2.5in;
height: 4.7in;
font-size: 8.2pt;
font-family: "Lucida Grande", "Bitstream Vera Sans", Helvetica, Verdana, Arial, sans-serif;
}
img {
max-width: 2.2in;
max-height: 4.3in;
}
/* Josh added */
#navcontainer, #input_box, #footer, .big-box, .refresh, .badge, h1 {
display:none;
}
.contexts {
margin: 0 0 2em 0;
border-top: 1px solid #000;
page-break-before: always;
}
.contexts:first-child {
page-break-before: avoid;
}
h2 {
font-size: 1.4em;
font-weight: bold;
margin-bottom: .3em;
padding: .2em 0;
border-bottom: 1px dotted #000;
}
a, p, blockquote, ul, li, ol, dt, dd, dl, table {
margin: 0 0 .3em 0;
}
.notes {
margin: .12em 1.2em;
padding: .3em;
}
.description {
margin-top: 0;
margin-left 0;
margin-bottom .3em;
padding: .2em;
}
ul {
list-style-type: circle;
}
li {
margin: .1em 0 .1em 2em;
line-height: 1.4em;
}
.checkbox {
float: left;
size: 25px;
}