Enhance faq.css for use with Readable

See: https://bugs.launchpad.net/midori/+bug/743998
This commit is contained in:
Christian Dywan 2012-07-06 01:19:23 +02:00
parent db30c9a3d7
commit 75657d1fb4
2 changed files with 50 additions and 15 deletions

View file

@ -8,29 +8,59 @@ Stylesheet for Midori's documentation based on a version of Enrico Troeger.
@media screen { @media screen {
body { html, body {
background-color: #f6fff3; width: 100% !important;
color: #404040; height: 100% !important;
margin-left: 0.4em; overflow: auto !important;
width: 60em; margin: 0 !important;
font-size: 90%; padding: 0 !important;
} }
a { * {
color: #013100; background: #f6fff3 !important;
color: #404040 !important;
font-size: 14pt !important;
font-family: serif !important;
text-align: justify !important;
line-height: 1.4em !important;
word-spacing: 0.4mm !important;
letter-spacing: 0.2mm !important;
-webkit-column-count: auto !important;
-webkit-column-width: auto !important;
-webkit-box-shadow: none !important;
} }
a:visited { div, p {
color: #7E558E; padding: 5pt !important;
}
body, li {
padding-left: 5pt !important;
}
img, *[accesskey], form *, form, iframe {
display: none !important
}
img[width] {
display: inline !important
}
:link, :link * {
color: #013100 !important;
}
:visited, :visited * {
color: #7E558E !important;
} }
a:hover { a:hover {
text-decoration: none; text-decoration: none !important;
} }
h1, h2, h3 { h1, h2, h3 {
font-family: sans-serif; font-family: serif !important;
color: #002a00; color: #002a00 !important;
} }
h1 { h1 {

View file

@ -3623,14 +3623,19 @@ _action_readable_activate (GtkAction* action,
if (!view) if (!view)
return; return;
filename = midori_app_find_res_filename ("readable.css"); filename = midori_app_find_res_filename ("faq.css");
stylesheet = NULL; stylesheet = NULL;
if (!g_file_get_contents (filename, &stylesheet, NULL, NULL)) if (!g_file_get_contents (filename, &stylesheet, NULL, NULL))
{
katze_assign (filename, sokoke_find_data_filename ("doc/midori/faq.css", FALSE));
g_file_get_contents (filename, &stylesheet, NULL, NULL);
}
if (!(stylesheet && *stylesheet))
{ {
g_free (filename); g_free (filename);
g_free (stylesheet); g_free (stylesheet);
midori_view_add_info_bar (MIDORI_VIEW (view), GTK_MESSAGE_ERROR, midori_view_add_info_bar (MIDORI_VIEW (view), GTK_MESSAGE_ERROR,
"Stylesheet readable.css not found", NULL, view, "Stylesheet faq.css not found", NULL, view,
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL); GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL);
return; return;
} }