pzgz
12/4/2012 - 5:58 PM

CSS for CustomReader in Safari for better display on pre and code blocks

CSS for CustomReader in Safari for better display on pre and code blocks

.page {
    width: 680px;
    background-color: #f3f2ee;
    color: #000000;
    text-rendering: optimizelegibility;
    font-family: Georgia !important;
}
.page > * {
    zoom: 1;
}
p {
    margin-top: 1em;
    margin-bottom: 1em;
    text-indent: 0px;
    text-align: start;
}
h1, h2, h3, h4, h5, h6 {
    font-family: Helvetica !important;
}
figcaption {
    font-family: Helvetica, sans-serif;
    font-size: 75%;
}
figcaption p {
    margin: 0px;
}
a {
    color: red !important;
    text-decoration: none !important;
}
a:hover {
    text-decoration: underline !important;
}
#container {
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-pack: center;
    width: 100%;
    margin-left: auto;
    left: auto;
}
#centered {
    position: relative;
    width: auto;
}
#drop-shadow {
    width: auto;
    left: -10px;
    right: -3px;
    top: 1px;
    bottom: 1px;
}
#article {
    position: relative;
    left: 11px;
    width: auto;
}
.article-fade {
    left: 0px;
    width: 100%;
    clip: auto !important;
}
// Added for styling the pre tag
pre,code{font:11px Menlo,Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;}
pre {
    margin:1em 0;
    font-size:11px;
    background-color:#eee;
    border:1px solid #ddd;
    padding:5px;
    line-height:1.5em;
    color:#444;
    overflow:auto;
    -webkit-box-shadow:rgba(0,0,0,0.07) 0 1px 2px inset;
    -webkit-border-radius:3px;
    -moz-border-radius:3px;border-radius:3px;
}
pre code {
    padding:0;
    font-size:12px;
    background-color:#eee;
    border:none;
}
code {
    font-size:12px;
    background-color:#f8f8ff;
    color:#444;
    padding:0 .2em;
    border:1px solid #dedede;
}