2
I understand that Kod is being actively developed and is prone to drastic changes in any area. I would like to modify some small things (like font face and size or certain colors) while still being able to benefit from any changes or updates to the default Kod stylesheet.
I thought that I would be able to @import the default stylesheet into my own to achieve this. This is what ~/.kod/custom.css would look like,
@import url("file:///Applications/Kod.app/Contents/Resources/style/default.css");
/* Change the default font face and color. */
body {
font-family: Menlo, monospace;
color: #efefef;
}
This stylesheet was set with the following defaults command, per the comments at the top of Kod's default CSS file:
defaults write se.hunch.kod style/url ~/.kod/custom.css
Unfortunately, this didn't work. When I first tried to reload the style, Kod crashed. It opened fine again, but
- the
@importstatement wasn't working, and - Kod crashed every time I saved the
custom.cssfile.
Am I doing something wrong? Did I write my @import statement wrong? Is that not how @import is supposed to work? Did I miss some sort of documentation or Kod Google Groups post that mentions that Kod explicitly disallows this?
Do you have a reference or link to some source that definitively says that Kod doesn't support
@importstatements? – Thomas Upton – 2011-02-01T22:12:27.427@Thomas Besides it also not working for me, no. – Daniel Beck – 2011-02-02T07:20:58.557
For some reason, it's now crashing all the time, so I cannot continue to investigate. Sorry. – Daniel Beck – 2011-02-02T07:48:03.297