Skip to content

Instantly share code, notes, and snippets.

@geraldcombs
Created April 19, 2013 18:36
Show Gist options
  • Save geraldcombs/5422286 to your computer and use it in GitHub Desktop.
Save geraldcombs/5422286 to your computer and use it in GitHub Desktop.
Emulate green bar line printer output using CSS
// http://www.pdp8online.com/images/greenbar.shtml
@ws-greenbar-bg: #e4ffc7;
@ws-greenbar-border: #4e9a06;
table.table-greenbar {
tr:nth-of-type(6n+1), tr:nth-of-type(6n+2), tr:nth-of-type(6n+3) {
background: @ws-greenbar-bg;
}
tr {
td, th {
border-width: 0;
}
}
tr:nth-of-type(6n+1) {
td, th {
border-top: 1px solid @ws-greenbar-border;
}
}
tr:nth-of-type(6n+3) {
td, th {
border-bottom: 1px solid @ws-greenbar-border;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment