Updates text preview styling.

This commit is contained in:
Lars Jung 2012-08-05 02:37:52 +02:00
parent 90b0b97e22
commit f366779f7b
5 changed files with 13 additions and 6 deletions

View file

@ -11,7 +11,7 @@
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<link rel="shortcut icon" type="image/png" href="/_h5ai/images/h5ai-16x16.png"> <link rel="shortcut icon" type="image/png" href="/_h5ai/images/h5ai-16x16.png">
<link rel="apple-touch-icon" type="image/png" href="/_h5ai/images/h5ai-48x48.png"> <link rel="apple-touch-icon" type="image/png" href="/_h5ai/images/h5ai-48x48.png">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400"> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400;Ubuntu+Mono:400">
<link rel="stylesheet" href="/_h5ai/css/styles.css"> <link rel="stylesheet" href="/_h5ai/css/styles.css">
<script src="/_h5ai/js/modernizr.min.js"></script> <script src="/_h5ai/js/modernizr.min.js"></script>
</head> </head>

View file

@ -27,6 +27,11 @@
#pv-txt-text { #pv-txt-text {
.syntaxhighlighter { .syntaxhighlighter {
overflow: visible !important; overflow: visible !important;
.gutter .line {
border-right: none !important;
// border-right: 3px solid #6CE26C !important;
}
} }
} }

View file

@ -44,10 +44,12 @@
vertical-align: baseline !important; vertical-align: baseline !important;
width: auto !important; width: auto !important;
box-sizing: content-box !important; box-sizing: content-box !important;
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; // font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
font-family: "Ubuntu Mono", "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
font-weight: normal !important; font-weight: normal !important;
font-style: normal !important; font-style: normal !important;
font-size: 1em !important; // font-size: 1em !important;
font-size: 16px !important;
min-height: inherit !important; min-height: inherit !important;
min-height: auto !important; min-height: auto !important;
} }

View file

@ -42,9 +42,9 @@ modulejs.define('ext/preview-txt', ['_', '$', 'sh', 'core/settings', 'core/resou
barheight = 31; barheight = 31;
$container.css({ $container.css({
width: rect.width - 2 * margin, // width: rect.width - 2 * margin,
height: rect.height - 2 * margin - barheight - 32, height: rect.height - 2 * margin - barheight - 32,
left: margin, // left: margin,
top: margin top: margin
}); });
}, },

View file

@ -12,7 +12,7 @@
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<link rel="shortcut icon" type="image/png" href="/_h5ai/images/h5ai-16x16.png"> <link rel="shortcut icon" type="image/png" href="/_h5ai/images/h5ai-16x16.png">
<link rel="apple-touch-icon" type="image/png" href="/_h5ai/images/h5ai-48x48.png"> <link rel="apple-touch-icon" type="image/png" href="/_h5ai/images/h5ai-48x48.png">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400"> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400;Ubuntu+Mono:400">
<link rel="stylesheet" href="/_h5ai/css/styles.css"> <link rel="stylesheet" href="/_h5ai/css/styles.css">
<script src="/_h5ai/js/modernizr.min.js"></script> <script src="/_h5ai/js/modernizr.min.js"></script>
</head> </head>