Re: configuring default a:link colour??
In article <526c494682t...@netsurf-browser.org>, Michael Drake wrote: > In article <526c446522ris...@gotadsl.co.uk>, Richard Ashbery > wrote: > > Isn't this problem related to Pseudo classes which are not yet > > supported. This was answered in January by Michael Drake. > The :link pseudo class is supported. It's the dynamic pseudo > classes (:active, :hover, and :visited) that aren't supported. Thanks for the correction. -- Richard Ashbery Wakefield 2012 - Saturday 28th April http://www.wakefieldshow.org.uk
Re: configuring default a:link colour??
In article <9c6dc76b52.roger...@rogerarm.freeuk.com>, Roger Darlington wrote: > I have looked in the configure window and failed to spot a means of > setting the default a:link colour. > Can it be done? Prior to r13509 there was no supported way of doing this. With r13509 or later, you can create a User CSS file, and set any CSS rules you like in there. The location of the CSS file depends on the front end. For RISC OS: in Choices.WWW.NetSurf create file "User", typed CSS. For GTK & Framebuffer: in ~/.netsurf create file "user.css". If you wanted to make the default link colour green, for example, then the line a:link { color: green; } in your User CSS file will do that. Note that that change will not affect any page where the page's own CSS sets the link colour. If you want to override even sites that define their link colour themselves (via Author CSS), then the line a:link { color: green !important; } would likely be enough. See the CSS specification for more information on how User Agent, User, and Author level CSS interacts. Also note that it is not really advisable to set the link colour (or text colour) without also setting background colours. Otherwise you could set the link text to green and visit a site with a green background. The suggestions for modifying !NetSurf.Resources.CSS (the User Agent CSS file) elsewhere in this thread would work up to a point, however you'd lose your changes when you upgrade NetSurf. It really is for User Agent CSS, and not for modification by users. Hope that helps, -- Michael Drake (tlsa) http://www.netsurf-browser.org/
Re: configuring default a:link colour??
In article <526c446522ris...@gotadsl.co.uk>, Richard Ashbery wrote: > Isn't this problem related to Pseudo classes which are not yet > supported. This was answered in January by Michael Drake. The :link pseudo class is supported. It's the dynamic pseudo classes (:active, :hover, and :visited) that aren't supported. -- Michael Drake (tlsa) http://www.netsurf-browser.org/
Re: configuring default a:link colour??
In article <526c28e6acch...@chris-johnson.org.uk>, cj wrote: > In article <9c6dc76b52.roger...@rogerarm.freeuk.com>, >Roger Darlington wrote: > > I have looked in the configure window and failed to spot a means of > > setting the default a:link colour. > > Can it be done? > In my !NetSurf, in the file internal/css are the definitions: [snip] No, the resource:internal.css file is only used for pages internally generated by NetSurf. Such as file:/// directory listings and the about:about page etc. -- Michael Drake (tlsa) http://www.netsurf-browser.org/
Re: configuring default a:link colour??
In article <526c29a779ch...@chris-johnson.org.uk>, cj wrote: > There is also a setting in the file CSS: > a:link { color: #00f; text-decoration: underline; } > However, changing the definitions in both css files makes damm all > difference to the display after rebooting netsurf. > It must be being set somewhere else, or being ignored. Isn't this problem related to Pseudo classes which are not yet supported. This was answered in January by Michael Drake. -- Richard Ashbery Wakefield 2012 - Saturday 28th April http://www.wakefieldshow.org.uk
Re: configuring default a:link colour??
There is also a setting in the file CSS: a:link { color: #00f; text-decoration: underline; } However, changing the definitions in both css files makes damm all difference to the display after rebooting netsurf. It must be being set somewhere else, or being ignored. -- Chris Johnson
Re: configuring default a:link colour??
In article <9c6dc76b52.roger...@rogerarm.freeuk.com>, Roger Darlington wrote: > I have looked in the configure window and failed to spot a means of > setting the default a:link colour. > Can it be done? In my !NetSurf, in the file internal/css are the definitions: a:link { text-decoration: underline; color: #00f; } a:visited { text-decoration: underline; color: #60a; } a:hover { text-decoration: none; } a:active { text-decoration: underline; color: #f00; } Is that not what you want? -- Chris Johnson
Re: configuring default a:link colour??
On 5 Mar 2012, Gavin Wraith wrote: > In message <9c6dc76b52.roger...@rogerarm.freeuk.com> you wrote: >> >> I have looked in the configure window and failed to spot a means of >> setting the default a:link colour. >> >> Can it be done? > Edit the CSS files in !NetSurf.Resources ? Not sure which has > precedence in the "cascade". It doesn't seem to be immediately apparent which setting that is. The only #00f setting there is not the setting for the a:link normal text, but instead the underline. -- Cheers Roger Teetering on the drink...
Re: configuring default a:link colour??
In article <9c6dc76b52.roger...@rogerarm.freeuk.com>, Roger Darlington wrote: > I have looked in the configure window and failed to spot a means of > setting the default a:link colour. > Can it be done? I add these lines into the file header and edit as necessary (of course you can also add them to a style sheet). a:link{ color: #FF } a:visited { color: #FF } a:hover { color: #FF } a:active { color: #FF } -- Steve Clark {sjcl...@ormail.co.uk using a 129Mb SA 6.20 RiscPC}
Re: configuring default a:link colour??
In message <9c6dc76b52.roger...@rogerarm.freeuk.com> you wrote: > > I have looked in the configure window and failed to spot a means of > setting the default a:link colour. > > Can it be done? Edit the CSS files in !NetSurf.Resources ? Not sure which has precedence in the "cascade". -- Gavin Wraith (ga...@wra1th.plus.com) Home page: http://www.wra1th.plus.com/