File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 2424 <% x_positions . each do |x | %>
2525 < div class ="cut-mark v " style ="left: <%= x %> mm; top: 0mm; "> </ div >
2626 < div class ="cut-mark v " style ="left: <%= x %> mm; bottom: 0mm; "> </ div >
27- < div class ="cut-mark v short " style ="left: <%= x %> mm; top: <%= page_centre_y %> mm; "> </ div >
27+ <% end %>
28+
29+ <%# Short vertical marks at centre intersecting with gaps %>
30+ <% gap_y_positions . each do |y | %>
31+ < div class ="cut-mark v short " style ="left: <%= page_centre_x %> mm; top: <%= y - 1 %> mm; "> </ div >
2832 <% end %>
2933
3034 <%# Horizontal marks at row positions %>
3135 <% y_positions . each do |y | %>
3236 < div class ="cut-mark h " style ="top: <%= y %> mm; left: 0mm; "> </ div >
3337 < div class ="cut-mark h " style ="top: <%= y %> mm; right: 0mm; "> </ div >
34- < div class ="cut-mark h " style ="top: <%= y %> mm; left: <%= page_centre_x - 9 %> mm; "> </ div >
38+ < div class ="cut-mark h short " style ="top: <%= y %> mm; left: <%= page_centre_x - 1 %> mm; "> </ div >
3539 <% end %>
3640</ div >
Original file line number Diff line number Diff line change 7676
7777 .cut-mark {
7878 position : absolute;
79- background : black ;
79+ background : # d1d5db ;
8080 print-color-adjust : exact;
8181 -webkit-print-color-adjust : exact;
8282 }
9595 height : 2mm ;
9696 }
9797
98+ .cut-mark .h .short {
99+ width : 2mm ;
100+ }
101+
98102 .card-front {
99103 width : 100% ;
100104 height : 100% ;
226230 <% @tokens . each_slice ( 10 ) . with_index do |page_tokens , page_index | %>
227231 <!-- Front side -->
228232 < div class ="page ">
229- <%= render partial : 'cut_marks' %>
230233 < div class ="cards-container ">
231234 < div class ="cards-grid ">
232235 <% page_tokens . each do |token | %>
251254
252255 <!-- Back side -->
253256 < div class ="page back ">
257+ <%= render partial : 'cut_marks' %>
254258 < div class ="cards-container ">
255259 < div class ="cards-grid ">
256260 <% page_tokens . each do |token | %>
You can’t perform that action at this time.
0 commit comments