Created
April 19, 2013 18:36
-
-
Save geraldcombs/5422286 to your computer and use it in GitHub Desktop.
Emulate green bar line printer output using CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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