Timeline for Golf Wars Episode I: The Phantom Lightsabers
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 13, 2016 at 21:33 | comment | added | Adam Katz |
@RudolfL.Jelínek That's crazy! I'm not comfortable with that shortcut, and I'm not sure of how many browsers support it, but if it is universally supported, you've successfully cut two characters off of the code. There are other tweaks that would similarly shave off a bit here and there with only minimal visual degradation, including the potential of using <hr> s in place of <table> s.
|
|
Nov 13, 2016 at 12:51 | comment | added | user60199 |
It will still work if you delete the first and last chars: style>[id]:not(:target){display:none}table{width:900px;height:12px;border-spacing:0}td:last-child{border-radius:0 12px 12px 0}#Sith td:first-child{border-radius:12px 0 0 12px}#Sith td{box-shadow:0 0 18px red}#Jedi{transform:rotate(-90deg);margin:350px 0}#Jedi td{box-shadow:0 0 18px #0f0}*+table{margin:200px 0 0 0}#Jedi *+table td{box-shadow:0 0 18px #00f}td:nth-last-child(2){background:#888;width:180px;box-shadow:none!important}</style><div id=Jedi><table><td><td></table><table><td><td></table></div><table id=Sith><td><td><td></table
|
|
Aug 20, 2015 at 16:24 | vote | accept | Fatalize | ||
Aug 15, 2015 at 12:28 | comment | added | Adam Katz |
Thanks, I've been looking for border-spacing for a long time (this saved 25 chars). The :target advice allowed removing the <form> and all JS. In my last edit, I also tightened it up even further. It could get smaller still if we use <hr> with float:left and clear:left , but this should do.
|
|
Aug 15, 2015 at 12:26 | history | edited | Adam Katz | CC BY-SA 3.0 |
now with `:target`
|
Aug 15, 2015 at 11:54 | history | edited | Adam Katz | CC BY-SA 3.0 |
25 chars shaved off via CSS border-spacing
|
Aug 15, 2015 at 11:27 | comment | added | manatwork |
You could use the :target pseudo-class, like I did once. pastebin.com/WtxbSsr3 then access it like file:///tmp/test.html#Jedi and file:///tmp/test.html#Sith (BTW, the HTML cellspacing=0 → CSS border-spacing:0 change looks correct in my Firefox, but not checked in other browsers.)
|
|
Aug 15, 2015 at 10:50 | history | answered | Adam Katz | CC BY-SA 3.0 |