[User CSS] Good old Google

Forums » General Opera topics » Customizing Opera

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

9. May 2010, 12:28:20

Nao

Posts: 68

[User CSS] Good old Google

Not sure this is the right board for posting this (if it isn't, please move it to the appropriate one), but I thought I'd share my google.css file I'm using Google with. Hopefully, some of you old geezers like me will enjoy it (and maybe improve on it and share the results.)

Just right click on a Google page, Display tab, My Stylesheet, and choose the google.css file.

google.css

- I've changed the font to something that looks better (Segoe UI). You may remove the Segoe UI line to keep the Arial font.

- Instead of hiding the navigation bar on the left, I've simply moved it to the right. The navbar is not the problem, it's the fact that it's positioned at the place where we're used to scan the first Google results. It's a reflex, so it needs to go.

- If you want to remove the navbar completely, feel free.
At the end of the CSS file, just replace the navbar definition with:

#leftnav {
	display: none !important;
}


- The !important keywords are not always necessary (the above definition doesn't need it), but this is to make sure Google won't take priority if it ends up adding that keyword as well.

- Finally, I've removed the commercial links. Remove the #rfs_block rule redefinition if you want them back. I can understand some people would want them. I personally never look at them, never even notice them, so I might as well not show them.

9. May 2010, 13:17:18

Nao

Posts: 68

I've replaced the original file with an alternative version which aims to be closer to the original.

- Segoe UI font replaced with Arial (it IS, after all, an attempt to get the old Google back, so my personal font tastes shouldn't have any impact on the final file),
- Search box is modified with smaller font, and less padding inside the box.

If you want it, here's the version with Segoe UI:

google2.css

PS: I'm not sure whether it's logical to have any upload replace the earlier one if it's got the same filename. It's a good thing, but it should, at the very least, be pointed out to the user.

9. May 2010, 19:00:12

Y0Y0

Posts: 689

On wider screens, the leftnav hangs over part of the search results at the right. I set display to none and that was solved. What about the ad text at the top of the page?

Up & Down, Round & Round, Out to the end of my string!

9. May 2010, 20:32:07

Nao

Posts: 68

- I'm in 1280x1024 so it's not particularly wide, but yes the google.css file shows the navbar to the right, that's intentional as explained above. Removing it is an option, but I think it'd be detrimental in the end, since the navbar isn't much on the bother as long as it stays on the right.

- I didn't notice a top of the page ad bar so I didn't think of it. Just add ", #tads" to the #rhs_block redefinition. Worked for me. I've updated the google.css file in the first post.

10. May 2010, 17:23:30

artmil

d(^_^)b

Posts: 368

I played recently with transition effects and this is how it looks like smile

Since this thread is about google old look i've hidden the menu. But after moving the mouse over the left free space the menu will be popup smile .
body#gsr #leftnav div {
    display:none
}
body#gsr #leftnav{
    opacity:0 !important;
    min-height:300px; width:0px !important; padding-left:10px !important; overflow:hidden;
    -o-transition-property: opacity;
    -o-transition-duration: 0.5s;
}
body#gsr #center_col{
    margin-left:10px !important;
}
body#gsr #leftnav:hover{
    width:151px !important; 
    box-shadow:2px 2px 5px #333333;
    border-radius:5px; 
    opacity:1 !important;
}
body#gsr #leftnav:hover div{
    display:block !important;
}


body#gsr li.g{
    background-color: rgba(255, 255, 255, 0.0);
    -o-transition-property: background-color;
    -o-transition-duration: 0.3s;
    padding:5px !important;
    border-radius:5px;
}
body#gsr #rhs{
    opacity:0.4;
    -o-transition-property: opacity;
    -o-transition-duration: 0.5s;
}
body#gsr #rhs:hover{opacity:1;}

body#gsr li.g:hover{
    background-color: rgba(229,236,249, 0.7);
}
body#gsr li li.g:hover{
    background-color: rgba(255, 255, 255, 0.6);
}
body#gsr #cnt{
    min-width: 600px !important;
    max-width: 1600px !important;
}
body#gsr .tsf-p { 
    max-width: 1500px !important;
    margin-right: 200px !important;
}
body#gsr .lsd{width:200px !important;}
body#gsr #subform_ctrl{max-width: 1490px !important;}

But in the end i like the new google look with the visible sidebar on the left p
Krita.org
Opera: 12.1x

10. May 2010, 20:30:03

ZAHEK

z@h3k

Posts: 7656

Thanks.
Feel the difference by Opera / Türkçe yazalım.
Opera Türkiye | Opera SSS

11. May 2010, 09:46:05

Y0Y0

Posts: 689

artmil's looks good too.

Wish I could figure out how to do this. There's a few other sites giving me headaches with their silly add-ons.
Up & Down, Round & Round, Out to the end of my string!

14. May 2010, 13:46:58

dapxin

Posts: 159

thank you buddy.

6. May 2011, 17:26:36

icare

conducteur fou

Posts: 720

Hi !

I've just noticed this useful user.css doesn't work anymore.
The left bar is still correctly hidden, but when you want to display it, the background is too transparent :




I guess something was recently changed in google code.
Maybe some class and id.

6. May 2011, 18:43:24

artmil

d(^_^)b

Posts: 368

If your talking about my style then just add
z-index: 99;

to the
body#gsr #leftnav

selector.

It should look like this
body#gsr #leftnav{
    opacity:0 !important;
    min-height:300px; width:0px !important; padding-left:10px !important; overflow:hidden;
    -o-transition-property: opacity;
    -o-transition-duration: 0.5s;
    z-index: 99;
}
Krita.org
Opera: 12.1x

6. May 2011, 18:52:46

icare

conducteur fou

Posts: 720

Thanks a thousand, it works. smile

8. May 2011, 09:13:02

artmil

d(^_^)b

Posts: 368

No problem smile
Krita.org
Opera: 12.1x

8. May 2011, 09:30:03

AcidCrash

Posts: 26

artmil
Can You make CSS, that puts sidebar to the right side?

8. May 2011, 17:10:24

artmil

d(^_^)b

Posts: 368

@Nao's CSS moves the sidebar to the right
Krita.org
Opera: 12.1x

8. May 2011, 20:59:41

AcidCrash

Posts: 26

Hmm a right place hide-able sidebar maybe? rolleyes

UPD nevermind, got that myself

15. May 2012, 13:59:56

migawka

Posts: 293

someone re-wrote the CSS again because it doesn't work properly anymore?
TEN migawka, nie ta migawka wink
Opera 12.16, Win8 64bit

Forums » General Opera topics » Customizing Opera