Skip to content

Instantly share code, notes, and snippets.

@hnagato
Created September 29, 2010 05:03
Show Gist options
  • Save hnagato/602317 to your computer and use it in GitHub Desktop.
Save hnagato/602317 to your computer and use it in GitHub Desktop.
UserCSS - Safari
@namespace url(http://www.w3.org/1999/xhtml);
@charset "utf-8"
/*
* textarea をリサイズ可能にしとく
*/
textarea {
resize: both !important;
}
/*
* target="_blank"なリンクはカーソルを変更
*/
a[target="_blank"] {
/*a[target] {*/
cursor: alias !important;
}
@font-face {
font-family: Arial; /*, Helvetica, Verdana; */
src: local("Helvetica Neue");
}
@font-face {
font-family: Osaka;
src: local("HiraKakuProN-W3");
}
@font-face {
font-family: Meiryo;
src: local("HiraKakuProN-W3");
}
@font-face {
font-family: "MS PGothic";
src: local("HiraKakuProN-W3");
}
@font-face {
font-family: "MS PMincho";
src: local("HiraMinProN-W3");
}
@font-face {
font-family: "MS Gothic";
src: local("HiraKakuProN-W3");
}
@font-face {
font-family: "MS Gothic";
src: local("Inconsolata");
}
@font-face {
font-family: "Osaka-mono";
src: local("HiraKakuProN-W3");
}
@font-face {
font-family: "Osaka-mono";
src: local("Inconsolata");
}
/*
* refs. http://github.com/reaperhulk/Optimize-Legibility/blob/master/optimizeLegibility.css
*/
body {
text-rendering: optimizeLegibility !important;
font-family: 'Helvetica Neue', sans-serif;
/*line-height: 1.618em !important;*/
cursor: default;
}
/*
* Invisible Status Bar
*/
a[href]:hover:before {
content:attr(href) !important;
display:inline-block !important;
position:fixed !important;
left:0px !important;
background:#ccc !important;
height: 1.5em !important;
line-height:1.5em !important;
border-top:1px solid #444 !important;
border-right:1px solid #444 !important;
border-bottom:none !important;
border-left:none !important;
max-width: 90% !important;
z-index:100000 !important;
font-size:12px !important;
color:#000 !important;
font-weight:normal;
padding:2px 8px !important;
margin:0px !important;
text-decoration:none !important;
border:none !important;
overflow:hidden !important;
text-align: left !important;
text-shadow: rgba(254,255,255,0.5) 0px 1px 0 !important;
font-family: 'Lucida Grande', Verdana, sans-serif !important;
-moz-border-radius-topright:4px;
border-top-right-radius:4px;
bottom:0px !important;
opacity:0.9 !important;
}
a[href][target]:hover:before {
content:attr(href) ' @target="' attr(target) '"' !important;
}
/**
* hatena keyword
*/
a[href^="http://d.hatena.ne.jp/keyword"] {
color: inherit !important;
text-decoration: none !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment