> When using Google I find that the visited link color is a sort of
> purple.
This is because Google tells the browser so in it's stylesheet:
a:visited,.fl:visited{color:#551a8b}
> I don't properly understand this area of style sheets and what
> settings in opera override what other settings so I have gathered
> together here all the data I think which might be relevant.
>
> For some reason I can't properly change the visited link color in
> Google. If I use the My Link Style button in Page Style and select a
> color, it seems to get ignored. Something is working, though,
> because if I select strikethrough for visited links then Google then
> I get to see a line struck through the visited link name.
The 'My link style' is the base style you choose, always to be overriden by author styling when you allow author styling. So if the page sets a color for links and visited links (using a stylesheet or html attributes), Opera's settings will be ignored. If the page stylesheet sets a value for 'text-decoration' (underline, no underline, strike-through, blink), Opera's setting for undeline and strike-though will be ignored.
> I view Google using Author Mode and this is set as follows:
>
> Page Style Sheet - set to author's
> Page Fonts & Colors - set to author's
> My Style sheet - NO
> My fonts and colors - NO
> My link style - YES
>
> Other pages work as I want them to (and they use my chosen visited
> link color) but not Google.
But on many pages your chosen visited link color will not show.
> I have also got this for User Mode.
>
> Page Style Sheet - blank
> Page Fonts & Colors - blank
> My Style sheet - YES
> My fonts and colors - YES
> My link style - YES
>
> If I switch to User Mode then, yes, I get what I want for the link
> color in Google but the rest of my preferred formatting for most web
> paes is rather poor for Google!
>
> My style sheet contains only this:
>
> a:visited
> {
> color:#CC3333 !important;
> # background-color:#FFFFFF !important;
> }
>
>
>
> As I said before ... try as I might, and I have triud, I don't
> properly understand this area of style sheets and what settings in
> opera override what other settings. Can anyone suggest what is going
> on regarding Google's visited link color in my case?
Enable 'my style sheet' in author mode as well, and you'll see the color of visited links will always be #cc3333. Which might be a problem when the page you visit accidentally has a background color of #cc3333. So you better remove that # (which is not a valid comment marker in CSS btw) to always get a white background color.
Personally I'd use this in a user stylesheet:
a:visited
{
text-decoration: line-through !important;
}
Because it never interferes with the color scheme of sites.
--
The Web is a procrastination apparatus: | Rijk van Geijtenbeek
It can absorb as much time as | Documentation & QA
is required to ensure that you | Opera Software ASA
won't get any real work done. - J.Nielsen |http://my.opera.com/Rijk/journal
!
>>> When using Google I find that the visited link color is a sort
>>> of purple.
>>
>> This is because Google tells the browser so in it's stylesheet:
>>
>> a:visited,.fl:visited{color:#551a8b}
>
>
> [snip]...[snip]
>
>
> Can I ask a little bit more about Opera and style sheets.
>
> After reading your last reply, I have started to come to the
> conclusion that *maybe* (I am still learning!) it is better to always
> use User Mode. Let me explain a bit more and then I would like to
> know what you or anyone else thinks of this idea.
>
> In my line of thinking, I would have a *null* User Mode stylesheet
> which as nothing in it and then I would add whatever styles I wanted
> to see on the web page by going and checking seelcted entries in
> Opera's popup user styles menu.
>
> In my case I would make sure that one of these available entries
> would be designed to be a visted link style of red.
>
> The entries for User Mode in Opera's Preferences might be:
>
> Page Style Sheet - YES
> Page Fonts & Colors - YES
> My Style sheet - YES
> My fonts and colors - NO
> My link style - NO
>
> This way would allow me always to override whatever the page's
> settings are.
>
> QUESTION ONE: What do you think of this approach? Is it a viable
> way to work?
Yes, that can work fine. I'm not sure why the UI designers decided to
disable user style sheets by default in Author mode. Many of the included
selectable user style sheet make most sense when applied on top of author
styles.
The main 'user style sheet' file you select in prefs would then contain
overrides you'd *always* want to see, and you'd use the additional user
styles to influence pages when you need it.
> ---
>
> In fact, as I explain my line of thinking above, I find am not
> particularly clear about what is the true purpose of Opera's "My
> Style Sheet" which is referenced at the bottom of the Page Style
> window in Preferences.
>
> QUESTION TWO: Is the purpose of "My Style Sheet" (and also My Link
> Style) to provide a *preferred* set of styles and then for the Opera
> user to be ready to accept any overrides which the webpage's author
> wishes to use?
You can certainly use it that way, don't include the '!important' marker
in your user style sheet for such styles.
It can also be used to provide a completely different view of pages in
User mode, using a style sheet instead of the various font options. Once
you understand how it works, you can use it in several ways. This
highlights of course the problem that it is hard to grasp for those who
are not webdesigners, and so are familiar with the interaction of html
attributes, css styles and browser settings.
> ---
>
> This leads me onto what is a related question.
>
> QUESTION THREE (PLUS): In Opera, is there a hierarchy of usage for
> fonts which similar to the hierarchy of usage for cascading style
> sheets?
>
> In other words is the purpose of "My Fonts and Colors" to provide a
> *preferred* set of fonts and then for the Opera user to be ready to
> accept any overrides which the webpage's author wishes to use?
Yes, that is definately the case. The fonts and colors settings in Opera
don't have a notion of 'important', and if you allow 'My fonts and colors'
and 'Page fonts and colors' in the same presentation mode, the page fonts
and colors will override your local font settings.
> Presumably, if I want to force a font to be used then I would include
> it in a selectable style sheet and then enable it from the
> Author/User Mode popup menu. Is this correct?
Yes, if you don't want to apply it all the time.
> Phew! I have asked a lot. Thank you to anyone who answers.
If you don't need a plain vanilla no-author-styles-at-all presentation
mode, you can also consider this setup:
Author mode User mode
Page style sheet X X
Page fonts and colors X X
My style sheet 0 X
My fonts and colors 0 0
My link style X X
This way, Ctrl+G toggles between 'Author styling only' and 'Author styling
plus user style sheet'.
I still think it was a mistake to have a single configuration option
to decide whether user stylesheets should be used in combination with
the site's stylesheets or instead of them. There should be something
in each user stylesheet to say whether it supplements the author's
stylesheet or replaces it.
--
Matthew Winn
[If replying by email remove the "r" from "urk"]
..
> On the particular point you mention here, I find that the user style
> sheets (and the preconfigured optional sytle sheets) are not actually
> disabled in Author Mode.
That's right, they are enabled when you enable 'My style sheet' in the
current presentation mode.
> BTW I have referenced my user css files is OperaDef6.ini in
> C:\Program Files\Opera. I now read in a document that this
> OperaDef6.ini file might get overwritten when Opera is upgraded.
Not 'might', but 'will'. :)
> So I am trying to move the css file references to Opera6.ini in
> C:\(user)\Opera\Opera7\profile but they do not seem to work in
> Opera6.ini. I do not see the entries in the popup menu.
>
> I am not sure where I am going wrong, so can I ask these questions
> about Opera INI files:
>
> (1) Should I be able to simply cut and paste my references from
> [Local CSS Files] in OperaDef6.ini to [Local CSS Files] in
> Opera6.ini? I would keep the same numbering. Of course, Opera would
> not be open when I did this.
Yes. If the same numbers occur in OperaDef6.ini and Opera6.ini, the latter
definations will override the former. One thing to remember: the set of
numbers should the continous. If OperaDef.ini defines styles 1-11,
Opera6.ini should start with style 12 (or below to override some of the
predefined styles).
> (2) That Opera6.ini and the Opera6.ini in Program Files each have a
> simlar but not identical set of "Active" entries in the section
> [Local CSS Files]. For example, 'Active 2=0' and 'Active 8=0'. Does
> this difference matter? Should both files have these "Active"
> rntries?
The OperaDef6.ini should not have 'active' parameters. This file is only
written to when installing Opera, so actually it *can't* have 'active'
parameters unless you put them there.
> (3) Do these "Active" entries have to precede or follow the
> references to css files? In terms of syntax, can I use line spacings
> between the each pair (i.e. Name 13=menu_name and File 13=file_name)
> referring to a css file or will this mess things up.
The order does not matter.
> (4) Finally, is it alright to move the whole of the [Local CSS
> Files] section in the INI files to a different position? For
> example, can I put the [Local CSS Files] section as the second
> section in the INI file?
Isn't that the same question as (1)?
>So I am trying to move the css file references to Opera6.ini in
>C:\(user)\Opera\Opera7\profile but they do not seem to work in
>Opera6.ini. I do not see the entries in the popup menu.
Use the About Opera screen from the Help menu. Note what file _is_
being used for Preferences and make the changes in that one.
--
Joe
>In Keyboard Preferences I see these commands:
>
> Select User CSS File, n
> Deselect User CSS File, n
> Select Alternate CSS File, n
> View Style
>
>What is the difference between "Select User CSS File" and "Select
>Alternate CSS File"?
A User style sheet is one that the user has created (or one that comes
with Opera).
An alternate style sheet is an alternative style provided by the site
author.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st...@pugh.net> <http://steve.pugh.net/>
..
> In #4 I am referring to moving the [Local CSS Files] section within
> one INI file. I would like it to be higher up for my own convenience
> when editing. However I have been hitting so many glitches with my
> experiments (!!!) that I can't tell if I SHOULD be able to freely
> move that whole section and all its entries without a problem.
You can move sections around, the order in the ini file doesn't matter.
> ------
>
> BTW I would like to be able to press a keyboard shortcut and see a
> list of CSS styles to choose from.
>
> In Keyboard Preferences I see these commands:
>
> Select User CSS File, n
> Deselect User CSS File, n
> Select Alternate CSS File, n
> View Style
>
> What is the difference between "Select User CSS File" and "Select
> Alternate CSS File"?
>
> What does "View Style" do? I assign it to a hotkey but it won#t do
> anything.
That is for selecting the display mode of the Bookmarks panel: Full view,
Split view, Single folder.
> ---
..
> [Customize Toolbar Custom.content]
> Checkbox1, 69483=Select user CSS file, 0 | Deselect user CSS file, 0
> Checkbox2, 69484=Select user CSS file, 1 | Deselect user CSS file, 1
> Checkbox3, 69485=Select user CSS file, 2 | Deselect user CSS file, 2
> Checkbox4, 69486=Select user CSS file, 3 | Deselect user CSS file, 3
> Checkbox5, 69487=Select user CSS file, 4 | Deselect user CSS file, 4
> Checkbox6, 69488=Select user CSS file, 5 | Deselect user CSS file, 5
> Checkbox7, 69489=Select user CSS file, 6 | Deselect user CSS file, 6
> Checkbox8, 69490=Select user CSS file, 7 | Deselect user CSS file, 7
> Checkbox9, 69491=Select user CSS file, 8 | Deselect user CSS file, 8
> Checkbox10, 69492=Select user CSS file, 9 | Deselect user CSS file, 9
> Checkbox11, 69493=Select user CSS file, 10 | Deselect user CSS file,
> 10
> ============================ END ==========================
>
> However, I definitely do not want to change my carefully and
> 'painfully' customized panel layout! So how can I get these settings
> into the custom buttons of Customize Toolbars?
Unfortunately (maybe unavoidable), the only way to combine customized
setups is copy and paste in the ini files. Close Opera, then add the
secion above to your active toolbar.ini. If you already have a section
[Customize Toolbar Custom.content] you can add the lines under it,
otherwise also paste the section header.
> Can I create a brand new panel in addition to the existing 9 panels
> already in Opera and put buttons on that panel for these commands
> like you list?
Nope. They need to be on a bona fide Opera toolbar somewhere. If you have
toolbar you don't use, you could add the checkboxes there.
> Or is there any easier way around all this which allows me to QUICKLY
> select style sheets?
The actions you see for those checkboxes could also be used for keyboard
shortcuts and buttons, but I doubt that is practical. Any method of
'quickly' selecting one out of a dozen options probably isn't quick
anymore...
>On 19 Jan 2005, Steve Pugh wrote:
>
>> Jane D <Jane...@privacy.net> wrote:
>>
>>>In Keyboard Preferences I see these commands:
>>>
>>> Select User CSS File, n
>>> Deselect User CSS File, n
>>> Select Alternate CSS File, n
>>> View Style
>>>
>>>What is the difference between "Select User CSS File" and
>>>"Select Alternate CSS File"?
>>
>> A User style sheet is one that the user has created (or one that
>> comes with Opera).
>> An alternate style sheet is an alternative style provided by the
>> site author.
>
>
>Does that mean that the author of a web page may have more than one
>style sheet available for the user to select from?
Yes.
..
> As you can see I just carried on incrementing that number 69494 which
> you had in your last line.
That number refers to an entry in the language file. For additonal style sheets of your own, simple enter the name directly:
Checkbox12, "My style1"=Select user CSS file, 11 | Deselect user CSS file,
11
Checkbox13, "My style2"=Select user CSS file, 12 | Deselect user CSS file,
12
etc
--
The Web is a procrastination apparatus: | Rijk van Geijtenbeek
It can absorb as much time as | Documentation & QA
is required to ensure that you | Opera Software ASA
won't get any real work done. - J.Nielsen |http://my.opera.com/Rijk/journal
!
> On 19 Jan 2005, Rijk van Geijtenbeek wrote:
>
>>> Can I create a brand new panel in addition to the existing 9
>>> panels already in Opera and put buttons on that panel for these
>>> commands like you list?
>>
>> Nope. They need to be on a bona fide Opera toolbar somewhere. If
>> you have toolbar you don't use, you could add the checkboxes
>> there.
>
> Rijk, I have found that I can add the CSS style buttons (which I have
> been creating with your help here) on to an existing panel - in my
> case the search panel. Am I messing something up which will only
> become apparent to me later?
As with any toolbar customizing, there might come a time when a future version of Opera really changes an existing toolbar. Which might cause extra work for you at that moment. But apart from that, there is no risk. The search panel was exactly what these style checkboxes where made for.
> How can I create a panel which is like the search panel. If I use
> "Add Panel" then I get a sort of open window in which things/data
> appear. I want a blank gray screen a bit like a tool bar.
I'm sorry, that is not possible. Your custom panels are webpages, the location of which is stored in the bookmarks. Only the search panel is itself a toolbar where you can add buttons, search fields etc at will.
--
The Web is a procrastination apparatus: | Rijk van Geijtenbeek
It can absorb as much time as | Documentation & QA
is required to ensure that you | Opera Software ASA
won't get any real work done. - J.Nielsen |http://my.opera.com/Rijk/journal
!
..
> My toolbars are already rather too full to take the extra entries I
> want to put on them.
>
> Is there a way to create either:
>
> (1) an additional regular toolbar (like the Main Bar or Personal
> Bar)?
If you set one of your toolbars to 'Wrap to multiple lines', it will always have enough room... The toolbars that accept extra buttons etc:
- browser: main toolbar
- browser: status bar
- page: address bar
- page: navigation bar
In Opera 8 beta, there is also the additonal 'view bar' in pages.
> or
>
> (2) an additional panel (which is really a toolbar like the Search
> Panel)?
As I've said a few times, that is not possible :)
in opera.general, Rijk van Geijtenbeek wrote:
> On Wed, 19 Jan 2005 09:49:04 GMT, Jane D wrote:
>
> > BTW I would like to be able to press a keyboard shortcut and see a
> > list of CSS styles to choose from.
Easy.
Either move style menu to main menubar, and use alt+s, or make keyboard
shortcut:
I have:
s alt Show popup menu, "Style Menu"
> > Can I create a brand new panel in addition to the existing 9 panels
> > already in Opera and put buttons on that panel for these commands
> > like you list?
>
> Nope. They need to be on a bona fide Opera toolbar somewhere. If you have
> toolbar you don't use, you could add the checkboxes there.
Like in toolbar opera creates for every new panel? So new panel is not
bad idea, exept that there is too many panels already.
> > Or is there any easier way around all this which allows me to QUICKLY
> > select style sheets?
Use the menu, and add some & letters in style names to control which
letter activates stylesheet. I have tried other methods, but they are
usually either confusing, or take lots of screenspace.
> The actions you see for those checkboxes could also be used for keyboard
> shortcuts and buttons, but I doubt that is practical. Any method of
> 'quickly' selecting one out of a dozen options probably isn't quick
> anymore...
I have this kind of system:
ctrl+s, ctrl+s = user/author mode (faster than ctrl+g, and I rather use
ctrl + g for google search anyway)
alt+s = show stylesheet menu
alt+s,s = enable/disable main userstylesheet
alt+s,t = enable/disable tables
alt+s,r = scratch style
alt+s,p = page specific styles
...
alt+s,c = show menu for editing userstylesheets
alt+s,c,s = edit main userstylesheet
...
ctrl+s,ctrl+f = stylesheet with bigger fonts
ctrl+s,ctrl+r = stylesheet with smaller fonts
(these 2 don't work as well as I would like because bugs.)
ctrl+s, ctrl+r = refresh stylesheets
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Nijmegen, NL.
You looking my website? Those are titles for alternative styles. First
one has title, as thatway other browsers don't/shouldn't use the
stylesheet, but NN4 does. Print stylesheet has title for no particular
reason, and it might be better not to have title...
> I would like to try your first method too. How do you move the style
> menu to the main menubar?
Editing relevant menu.ini. In mine, there is no main menu, which is
reason I don't use that method myself...
> > I have this kind of system:
> >
> > ctrl+s, ctrl+s = user/author mode (faster than ctrl+g, and I
> > rather use
> > ctrl + g for google search anyway)
> > alt+s = show stylesheet menu
> > alt+s,s = enable/disable main userstylesheet
> > alt+s,t = enable/disable tables
> > alt+s,r = scratch style
> > alt+s,p = page specific styles
> > ...
> > alt+s,c = show menu for editing userstylesheets
> > alt+s,c,s = edit main userstylesheet
> > ...
> > ctrl+s,ctrl+f = stylesheet with bigger fonts
> > ctrl+s,ctrl+r = stylesheet with smaller fonts
> > (these 2 don't work as well as I would like because bugs.)
> >
> > ctrl+s, ctrl+r = refresh stylesheets
There was a mistake here, last should have been shft+ctrl+r...
> Where do you assign those ampersands (&) to the appropriate letter?
On same place where you define stylesheets, usually opera6.ini. Just put
& before letter you want to work as shortcut. Beware automatic memmonic
key thingy in Opera, as you may end up with to shortcuts for same char.
Only first one will work. (to enable/disable more than one stylesheet you
need either to make new menu item or keyboard shortcut. )
> In particular I would like to experiment with the way you get these
> results:
>
> ctrl+s = toggle user/author mode
Delete s ctrl shortcut using keyboard widget on preferences
Find g ctrl using search and replace it using s ctrl
> alt+s,s = enable/disable main userstylesheet.
Alt+s shows the menu
s is memnomic assigned to my main userstylesheet using &. (which has
nothing to do with userstylesheet that you could define in preferences.)
My configuration files are at
http://www.student.oulu.fi/~laurirai/opera/ini/
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.