Improve CSS (code/pre tags)

This commit is contained in:
Frederic Guillot 2013-08-07 20:18:48 -04:00
parent a1f1ba8971
commit f1dafc5f57
4 changed files with 33 additions and 18 deletions

View File

@ -111,22 +111,26 @@ th {
text-align: left;
}
pre {
border: 1px solid #ccc;
border-radius: 10px;
pre, code {
background: #f0f0f0;
padding: 0.8em;
border: 1px solid #ccc;
font-family: monospace;
color: brown;
line-height: 1.0em;
border-radius: 5px;
}
pre {
padding: 10px;
overflow: auto;
color: brown;
}
code {
color: brown;
pre > code {
border: none;
}
caption code,
p code {
font-size: 1.1em;
p > code {
padding: 3px;
}
/* forms */
@ -447,10 +451,9 @@ nav .active a {
font-size: 1.1em;
}
.item pre {
font-family: "Lucida Console", Monaco, monospace;
font-size: 0.85em;
line-height: 0.9em;
.item li pre,
.item p code {
}
.item h2,

View File

@ -5,7 +5,7 @@
<?php else: ?>
<div class="page-header">
<h2><?= t('<span id="page-counter">%s</span>unread items', isset($nb_items) ? $nb_items. ' ' : '') ?></h2>
<h2><?= t('<span id="page-counter">%s</span>unread items', isset($nb_items) ? $nb_items.' ' : '') ?></h2>
<ul>
<li>
<a href="?action=mark-as-read" data-action="mark-all-read">

View File

@ -4,7 +4,6 @@ body {
background-color: #f5fec9;
color: #4c4c4c;
font-family: 'Verdana', Arial, sans-serif;
font-size: 15px;
max-width: 800px;
padding-bottom: 20px;
}
@ -106,7 +105,6 @@ section.page {
padding-right: 5px;
}
.page-header h2, .page-section h2 {
border-bottom: 1px dotted #CACACA;
font-family: Georgia, serif;

View File

@ -17,6 +17,12 @@ a:hover {
color: #fff;
}
pre, code {
color: #fff;
background: #555;
border-color: #888;
}
.page-header h2 {
border-bottom: 1px dotted #555;
}
@ -40,8 +46,16 @@ a:hover {
border: 3px solid #999;
}
.item h1 a {
color: #eee;
}
.item h1 a:visited {
color: #888;
}
.infos {
color: #666;
color: #777;
}
.item .infos a {