Skip to content

Instantly share code, notes, and snippets.

@kk6
Created July 2, 2011 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kk6/1061418 to your computer and use it in GitHub Desktop.
Save kk6/1061418 to your computer and use it in GitHub Desktop.
Googleのナビゲーションバーを固定するユーザースタイル
@namespace url(http://www.w3.org/1999/xhtml);
/*
* Google User Style
* This style is to fixed of Google's top bar.
*/
@-moz-document domain("google.com"), domain("google.co.jp") {
#gb {
position: fixed;
width: 100%;
top: -1px;
left: -1px;
}
#gbx3, #gbx4 {
opacity: 0.5 !important;
box-shadow: 1px 1px 3px;
}
}
@-moz-document domain("plus.google.com") {
.a-U-T {
padding-top: 30px;
}
/* Account Settings page */
.Sa-E-U-T {
padding-top: 30px;
}
.a-c-M-wd-rc, .a-H-Xc-U {
margin-top: 30px !important;
}
}
@-moz-document domain("www.google.com"), domain("www.google.co.jp") {
#subform_ctrl, .ksfccl {
margin-top: 30px !important;
}
}
@-moz-document domain("images.google.com"), domain("images.google.co.jp") {
#cnt {
margin-top: 30px !important;
}
}
@-moz-document url-prefix(http://www.google.com/reader),
url-prefix(https://www.google.com/reader),
url-prefix(http://www.google.co.jp/reader),
url-prefix(https://www.google.co.jp/reader) {
#top-bar {
margin-top: 40px !important;
}
}
@-moz-document domain("mail.google.com") {
body.cP div:nth-child(1) .nH:nth-child(1)
.nH:nth-child(1) .no:nth-child(1) {
margin-top: 30px;
}
.hMFEHf {
margin-top: 30px !important;
}
.mq {
display: none;
}
}
@-moz-document domain("maps.google.com"), domain("maps.google.co.jp") {
#header {
padding-top: 30px !important;
}
div.kd-buttonbar.header-buttons {
margin-top: 30px !important;
}
}
@-moz-document url-prefix(https://www.google.com/calendar/) {
#mb0, #mb1 {
margin-top: 0 !important;
padding-top: 40px !important;
}
#calcontent {
padding-top: 30px !important;
}
}
@-moz-document domain("docs.google.com") {
#doclistappview-header {
padding-top: 30px !important;
}
}
@-moz-document domain("sites.google.com") {
#sites-chrome-header {
padding-top: 30px !important;
}
}
@-moz-document domain("groups.google.com"){
body {
margin: 0 !important;
}
center:nth-child(1) {
padding-top: 40px !important;
}
}
@-moz-document domain("picasaweb.google.com") {
.gphoto-topnav {
margin: 30px 0 0 0 !important;
}
}
@-moz-document url-prefix(http://www.google.co.jp/ig),
url-prefix(http://www.google.com/ig) {
#nhdrwrap {
padding-top: 30px !important;
}
}
@-moz-document domain("blogsearch.google.com"), domain("blogsearch.google.co.jp") {
body {
margin: 0 !important;
}
center:nth-child(2) {
padding-top: 40px !important;
}
}
@-moz-document domain("books.google.com"), domain("books.google.co.jp") {
#gb-top-search-box {
padding-top: 30px !important;
}
}
@-moz-document domain("encrypted.google.com") {
#rcnt {
margin-top: 30px !important;
}
}
@kk6
Copy link
Author

kk6 commented Jul 2, 2011

googleリーダーがhttpsだった時の記述が漏れてたのを修正

@kk6
Copy link
Author

kk6 commented Jul 3, 2011

plus.google.com でプロフィール編集時に出てくる、背景の赤いdiv要素がスクロール時にナビゲーションバーに隠れてしまうのを修正…しきれなかったのでとりあえず応急処置。あとで直す。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment