slitaz-base-files rev 217

Add common stylesheet for SliTaz docs. Change look and feel of whole SliTaz documentation in single place.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 04 17:56:09 2013 +0000 (2013-05-04)
parents c1e660934e54
children c39c843d64e5
files rootfs/usr/share/doc/slitaz-doc.css rootfs/usr/share/doc/slitaz-doc.js
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rootfs/usr/share/doc/slitaz-doc.css	Sat May 04 17:56:09 2013 +0000
     1.3 @@ -0,0 +1,68 @@
     1.4 +/* CSS style for SliTaz Doc */
     1.5 +
     1.6 +html { min-height: 102%; }
     1.7 +body {
     1.8 +	font: 100% "DejaVu Sans", Ubuntu, "Droid Sans", "Liberation Sans", FreeSans, sans-serif;
     1.9 +	margin: 0;
    1.10 +	-moz-hyphens: auto; -webkit-hyphens: auto; hyphens: auto;
    1.11 +}
    1.12 +
    1.13 +h1 { margin: 0; padding: 0.4em; color: #fff; font-size: 125%; }
    1.14 +h2 { color: #d66018; }
    1.15 +h3 { color: #666; font-size: 140%; }
    1.16 +
    1.17 +a, a:link, a:visited {
    1.18 +	color: #436976;
    1.19 +	text-decoration: none;
    1.20 +	border-bottom: 1px dotted #7cd;
    1.21 +}
    1.22 +a:hover, a:focus {
    1.23 +	color: #d66018;
    1.24 +	border-bottom: 1px solid;
    1.25 +}
    1.26 +a[href^="http:"] {
    1.27 +	background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAKAgMAAADqYMegAAAADFBMVEUkJCT///8kJCRDaXZbtgmAAAAAA3RSTlMAAIAXzkf+AAAAI0lEQVQIHWNYGsCwS4Bh/wKG/Q0M6ycwzJ7AEAZGUQEMkQEAn7cJ51TmPjwAAAAASUVORK5CYII=") no-repeat right top;
    1.28 +	padding-right: 8px;
    1.29 +}
    1.30 +
    1.31 +img { border: none; vertical-align: middle; }
    1.32 +
    1.33 +pre {
    1.34 +	padding: 0.8em;
    1.35 +	border: 1px solid #ddd; border-radius: 0.4em;
    1.36 +}
    1.37 +pre, code { background-color: #f8f8f8; }
    1.38 +code, tt { color: #666; }
    1.39 +pre tt { color: #d62; /* shell prompt */ }
    1.40 +
    1.41 +header, #header {
    1.42 +	background-color: #351a0a;
    1.43 +	border-bottom: 0.5em solid #d66018;
    1.44 +}
    1.45 +
    1.46 +#content {
    1.47 +	margin: 2.5em auto;
    1.48 +	width:90%; max-width:72ex;
    1.49 +	text-align: justify;
    1.50 +}
    1.51 +
    1.52 +footer, #footer {
    1.53 +	text-align: center;
    1.54 +	padding: 1.2em;
    1.55 +	border-top: 1px solid #ddd;
    1.56 +}
    1.57 +
    1.58 +/* Languages */
    1.59 +
    1.60 +#lang {
    1.61 +	float: right;
    1.62 +	padding: 0.5em;
    1.63 +	font-size: small;
    1.64 +}
    1.65 +
    1.66 +#lang a {
    1.67 +	text-decoration: none; border: none;
    1.68 +	padding: 0 0.2ex;
    1.69 +}
    1.70 +
    1.71 +td, th { vertical-align: top; }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/rootfs/usr/share/doc/slitaz-doc.js	Sat May 04 17:56:09 2013 +0000
     2.3 @@ -0,0 +1,8 @@
     2.4 +window.onload = function() {
     2.5 +	var preElements = document.getElementsByTagName('pre');
     2.6 +	for(var i = 0; i < preElements.length; ++ i)
     2.7 +	{
     2.8 +		var element = preElements[i];
     2.9 +		element.innerHTML = element.innerHTML.replace(/^#/gm,'<tt>#</tt>').replace(/^\$/gm,'<tt>$</tt>');
    2.10 +	}
    2.11 +}