#!/usr/bin/python2.4 -O from color import Color print "Content-type: text/css" print "Pragma: no-cache" print "Cache-Control: no-store, no-cache, must-revalidate" print # we're basically dealing with just a few colors c_000000 = Color().randcolor(39) # ensure dark color c_333333 = c_000000 + 0x33 c_5a5a5a = c_000000 + 0x5a c_141414 = c_000000 + 0x14 c_bfbfbf = c_000000 + 0xbf #c_ffffff = Color.randcolor(125, 255) c_ffffff = c_000000.inverse().colorify(c_000000) #c_00ff00 = Color("#7a5ada").colorify(Color().randcolor(145, 155)) c_00ff00 = Color("#7a5ada").colorify(Color().randcolor()) #c_a0a0d0 = Color().randcolor(113, 114) #c_a0a0d0 = Color("a0a0d0").colorify(c_00ff00.inverse()) c_a0a0d0 = Color("#7a5ada").colorify(c_00ff00.inverse()) #c_7a5ada = c_00ff00.colorify(Color('#7a5ada')) c_7a5ada = Color("#7a5ada").colorify(c_00ff00) print( """ body { background-color: %(c_000000)s; color: %(c_bfbfbf)s; } #commentbody { background: none; } a:link { color: %(c_00ff00)s; } a:visited { color: %(c_00ff00)s; } a:hover { color: %(c_a0a0d0)s; } a:active { color: %(c_00ff00)s; } /* .fields a { color: %(c_a0a0d0)s; } */ #logo { background: %(c_141414)s url(http://starship.python.net/crew/marduk/images/shaded_gnome_seamless.png); background-repeat: repeat-x; color: %(c_ffffff)s; border-color: %(c_333333)s; } #currenttime { color: %(c_ffffff)s; font-weight: bold; } .fields { color: %(c_ffffff)s; border-color: %(c_00ff00)s; } .navhead { /* background: url(http://starship.python.net/crew/marduk/thbg2.cgi); */ background: %(c_141414)s; color: %(c_bfbfbf)s; border-colore: %(c_333333)s; } .navbar { color: %(c_ffffff)s; } .navbar:hover { background: %(c_141414)s; border-color: %(c_333333)s; } .navbar:hover a { color: %(c_ffffff)s; } .navbar a { color: %(c_333333)s; } .banner { border: 2px solid %(c_333333)s; background: %(c_bfbfbf)s; } .name { color: %(c_7a5ada)s; } .contact { color: %(c_7a5ada)s; } .commenta { background: url(http://starship.python.net/crew/marduk/thbg3.cgi); } INPUT { background: %(c_bfbfbf)s; color: %(c_000000)s; border-color: %(c_ffffff)s; } INPUT:hover { background: %(c_ffffff)s; color: %(c_000000)s; } TEXTAREA { background: %(c_bfbfbf)s; color: %(c_000000)s; border-color: %(c_ffffff)s; } TEXTAREA:hover { background: %(c_ffffff)s; } .button { background: %(c_333333)s; color: %(c_bfbfbf)s; } .mymusic { color: black; } #cvcs { border-color: %(c_00ff00)s; border: solid 5px; padding: 3px; } a img { opacity: 0.8;} a img:hover {opacity: 1;} #randimage { opacity: 1.0; } .terminal { border-color: %(c_ffffff)s; border: solid 2px; padding: 3px; background: url(http://starship.python.net/crew/marduk/images/shaded_gnome_cropped-trans.png); font-family: monospace, fixed; font-size: 9pt; font-weight: bold; width: 590px; } .code { background-color: %(c_333333)s; font-weight: bold; padding-left: 0.5ex; padding-right: 0.5ex; } tt { font-weight: bold; } /* .mymusic a { color: #00ff00; } */ """ % locals() )