From 1e365d377ae53a99bada98be63115e0a77a7bc5c Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 26 Jun 2023 18:07:47 +0200 Subject: [PATCH] Add and apply Debian stylesheet to HTML output Also add the images it references, which we may want to use. --- Makefile | 4 +- debian/changelog | 1 + debian/copyright | 136 +++++ kernel-handbook.dbk | 15 +- static/Pics/admon-important.png | Bin 0 -> 1516 bytes static/Pics/admon-note.png | Bin 0 -> 1255 bytes static/Pics/admon-tip.png | Bin 0 -> 1910 bytes static/Pics/admon-warning.png | Bin 0 -> 1871 bytes static/Pics/gradient.png | Bin 0 -> 247 bytes static/debian.css | 997 ++++++++++++++++++++++++++++++++ stylesheet.xsl | 1 + 11 files changed, 1151 insertions(+), 3 deletions(-) create mode 100644 static/Pics/admon-important.png create mode 100644 static/Pics/admon-note.png create mode 100644 static/Pics/admon-tip.png create mode 100644 static/Pics/admon-warning.png create mode 100644 static/Pics/gradient.png create mode 100644 static/debian.css diff --git a/Makefile b/Makefile index 3e20652..0d922c0 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ LANG_EN := en LANGS := $(LANG_EN) $(LANG_PO) DOCBOOK_SOURCES := kernel-handbook.dbk $(wildcard chapter-*.dbk) -SOURCES := $(DOCBOOK_SOURCES) stylesheet.xsl version.ent +SOURCES := $(DOCBOOK_SOURCES) $(wildcard static/*.css static/Pics/*) stylesheet.xsl version.ent # Ensure xmlto uses UTF-8 and not numbered entities unexport LC_ALL @@ -27,6 +27,7 @@ all: $(patsubst %,stamps/build-%,$(LANGS)) stamps/build-en: $(SOURCES) xmlto -o kernel-handbook.html -m stylesheet.xsl html kernel-handbook.dbk + cp -R static/* kernel-handbook.html/ mkdir -p $(@D) touch $@ @@ -37,6 +38,7 @@ stamps/build-%: $(SOURCES) po4a/kernel-handbook.%.po po4a-translate -f docbook -m "$$src" -p po4a/kernel-handbook.$*.po -k 0 -l kernel-handbook.$*.dbk/"$$src" || exit; \ done xmlto -o kernel-handbook.$*.html -m stylesheet.xsl html kernel-handbook.$*.dbk/kernel-handbook.dbk + cp -R static/* kernel-handbook.$*.html/ mkdir -p $(@D) touch $@ diff --git a/debian/changelog b/debian/changelog index 0b58d5e..92c1a7a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ kernel-handbook (1.0.22) UNRELEASED; urgency=medium * Just link to the GNU GPL without mentioning a filename or mailing address + * Add and apply Debian stylesheet to HTML output -- Ben Hutchings Mon, 26 Jun 2023 18:07:00 +0200 diff --git a/debian/copyright b/debian/copyright index 959739e..40e4b38 100644 --- a/debian/copyright +++ b/debian/copyright @@ -18,3 +18,139 @@ License: GPL-2+ . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +Files: static/debian.css +Copyright: 2011, Kalle Söderman +License: GPL-2 + This stylesheet is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License, version + 2, as published by the Free Software Foundation. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General Public License + version 2 can be found in "/usr/share/common-licenses/GPL-2". + +Files: static/Pics/* +Copyright: 2011, Software in the Public Interest, Inc., and others +License: OPL-1+ + I. REQUIREMENTS ON BOTH UNMODIFIED AND MODIFIED VERSIONS + . + The Open Publication works may be reproduced and distributed in whole or in + part, in any medium physical or electronic, provided that the terms of this + license are adhered to, and that this license or an incorporation of it by + reference (with any options elected by the author(s) and/or publisher) is + displayed in the reproduction. + . + Proper form for an incorporation by reference is as follows: + . + Copyright (c) by . This material may be + distributed only subject to the terms and conditions set forth in the Open + Publication License, vX.Y or later (the latest version is presently + available at http://www.opencontent.org/openpub/). + . + The reference must be immediately followed with any options elected by the + author(s) and/or publisher of the document (see section VI). + . + Commercial redistribution of Open Publication-licensed material is permitted. + . + Any publication in standard (paper) book form shall require the citation of the + original publisher and author. The publisher and author's names shall appear on + all outer surfaces of the book. On all outer surfaces of the book the original + publisher's name shall be as large as the title of the work and cited as + possessive with respect to the title. + . + . + II. COPYRIGHT + . + The copyright to each Open Publication is owned by its author(s) or designee. + . + . + III. SCOPE OF LICENSE + . + The following license terms apply to all Open Publication works, unless + otherwise explicitly stated in the document. + . + Mere aggregation of Open Publication works or a portion of an Open Publication + work with other works or programs on the same media shall not cause this + license to apply to those other works. The aggregate work shall contain a + notice specifying the inclusion of the Open Publication material and + appropriate copyright notice. + . + SEVERABILITY. If any part of this license is found to be unenforceable in any + jurisdiction, the remaining portions of the license remain in force. + . + NO WARRANTY. Open Publication works are licensed and provided "as is" without + warranty of any kind, express or implied, including, but not limited to, the + implied warranties of merchantability and fitness for a particular purpose or a + warranty of non-infringement. + . + . + IV. REQUIREMENTS ON MODIFIED WORKS + . + All modified versions of documents covered by this license, including + translations, anthologies, compilations and partial documents, must meet the + following requirements: + . + 1. The modified version must be labeled as such. + 2. The person making the modifications must be identified and the + modifications dated. + 3. Acknowledgement of the original author and publisher if applicable must + be retained according to normal academic citation practices. + 4. The location of the original unmodified document must be identified. + 5. The original author's (or authors') name(s) may not be used to assert or + imply endorsement of the resulting document without the original author's + (or authors') permission. + . + . + V. GOOD-PRACTICE RECOMMENDATIONS + . + In addition to the requirements of this license, it is requested from and + strongly recommended of redistributors that: + . + 1. If you are distributing Open Publication works on hardcopy or CD-ROM, you + provide email notification to the authors of your intent to redistribute + at least thirty days before your manuscript or media freeze, to give the + authors time to provide updated documents. This notification should + describe modifications, if any, made to the document. + 2. All substantive modifications (including deletions) be either clearly + marked up in the document or else described in an attachment to the + document. + 3. Finally, while it is not mandatory under this license, it is considered + good form to offer a free copy of any hardcopy and CD-ROM expression of + an Open Publication-licensed work to its author(s). + . + . + VI. LICENSE OPTIONS + . + The author(s) and/or publisher of an Open Publication-licensed document may + elect certain options by appending language to the reference to or copy of the + license. These options are considered part of the license instance and must be + included with the license (or its incorporation by reference) in derived works. + . + A. To prohibit distribution of substantively modified versions without the + explicit permission of the author(s). "Substantive modification" is defined as + a change to the semantic content of the document, and excludes mere changes in + format or typographical corrections. + . + To accomplish this, add the phrase `Distribution of substantively modified + versions of this document is prohibited without the explicit permission of the + copyright holder.' to the license reference or copy. + . + B. To prohibit any publication of this work or derivative works in whole or in + part in standard (paper) book form for commercial purposes is prohibited unless + prior permission is obtained from the copyright holder. + . + To accomplish this, add the phrase 'Distribution of the work or derivative of + the work in any standard (paper) book form is prohibited unless prior + permission is obtained from the copyright holder.' to the license reference or + copy. +Comment: No license options are exercised. See https://bugs.debian.org/384019 + for discussions confirming DFSG-ness of this license when no options are + exercised. diff --git a/kernel-handbook.dbk b/kernel-handbook.dbk index 9fd8704..7b9725f 100644 --- a/kernel-handbook.dbk +++ b/kernel-handbook.dbk @@ -30,10 +30,21 @@ Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. +The Debian stylesheet is © 2011 Kalle Söderman and is licensed under the +GNU +General Public License as published by the Free Software Foundation, +version 2. + + +The admonition icons are © 2011, Software in the Public Interest, Inc., +and others and are licensed under the Open Publication License, +Draft v1.0 or later. + + This is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability -or fitness for a particular purpose. See the GNU General Public License for -more details. +or fitness for a particular purpose. See the license texts for more details. diff --git a/static/Pics/admon-important.png b/static/Pics/admon-important.png new file mode 100644 index 0000000000000000000000000000000000000000..151d38c7a426077062df1259164b9dc8ce7155a2 GIT binary patch literal 1516 zcmVPx#32;bRa{vGf6951U69E94oEQKA00(qQO+^RT2@@6v1TBIi{r~^~24YJ`L;(K) z{{a7>y{D4^00nGGL_t(o!>yNlOqFFE$DeaRE_ne#kdRxU1OdiP%{0RSf^ZH8FRYd5 zgw=Gz*49={yb(!?7B}JCB=Cv|WjY~2`lGeASt7{VVkK^E=^rUsYP?s@`|I}{Ue0(s z9L`JnZlAq7=RD8v`+a`T@3|a8X7Ds*kigpYWSdp5>9OdwzZrGf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WeA z3%IQHSH)G(reC3WY;MdQGvIr5egI$l;SR2lrGJvdW0>d&#qFoiW;5chBgr7(?vm== z47dvf9nX>`;{>LcAb$xF@HW^r_szV3%0&)qHY?EJC+EVDHm{MyW8}JDqHD)DXtM^f zSKDB}NPB{JRm4{jSH-&;;;QIm6rI~j5|3awLtMR#vkT|K!VF{_&GjA@_4A1q2a?xGLgm^I+d@w*=G?SHaiM;9Z5ZQ71^hqgLsp*e$(x z3DC+s4^GWaeni$7rqK5er7drx2oZM`$u6{mF3QkX@qPwe1MkXsTWwI8`IH4zSzf>fe%S1PE4z8=$YODhD>F+ z;}a`|W6`<~f_&*U#FugLS;XE%eB8>&-oRxe_-q`p6WFXqmdujImb9s`){wbQgc3U6 zOW0kan9rfLLMw&VptT|h6q*Tw{NBJOLyrJMMtuBc&(0ylPh)3)#HVA}<~dw4jCVJ2 zwt`O^q)kg|4Otf9{3WI8jE!bj^qTSc(Z}lmRzC{r2D$GplJ>W5-3!m4= zj=TzC&|1OMSgWyFL~48RY(fQHg!v-5D4?Jh0tbtr^Pu*-TH-8KQby;tX|2r@kYZMc z&Ew_S@h5e3bf1+1&R<36a)bruGYf)6AhnR?J((Lv<@ez{djX8vP4d^E+PG%tG5qwG z;5$(Ylv+BA|6}4NP(g__wp-`7VRP1%M4H6)Zvk2MD?93VnP$UBa{^QngOV5%u3nLv zK}k#!w{IUHNMcZAn6PhU1dz=M2wDP~pp+%-Ile-5lO<^`2p~(~*RNiGAVsTcuY(St z3y6T=&Qk4uZi4pRJqt_&v1-GDMUVQYdhtHN7mIL!Q%e=7%P3%}_CtFx_BZ4$N4%To Rr40Z8002ovPDHLkV1i}VPqP33 literal 0 HcmV?d00001 diff --git a/static/Pics/admon-tip.png b/static/Pics/admon-tip.png new file mode 100644 index 0000000000000000000000000000000000000000..2ac57475c3b36e46ff4c4ea0506892e2fe884fd7 GIT binary patch literal 1910 zcmV-+2Z{KJP)W~QdMmlr4dytt0lBR3q?&; zsf}7ieW{ceqQ0~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_H zc+f9d648MEqka3H6{TYF$yZ+d&7W_TpWP1N)t8?C*mbS%o_zO+NH&HNnVfaiHVO$w zN(#;#oeP7QYhS!Lk#s%h(}sZPo){lDi-q#w?ZlS^0089E>ACc^SXl6oRGyWdnJs7M z(n(@WGF`dv9Xr~do}Hc4HBsTj+OAxgCIxwRDY=&f@bb(1b5i;r&s>|KWevgAhEs`s z^x?6uUHa#H+b(``bm!Rk$tPB?jOqkRaAG~DPJIy589rD_Zf&U@k?op$|ML2Q6W`mj zV^yjpsV__mICk-FrhqlwD-exEzvwzub@1)O*BsXwdU5c%**o47Zr}0v!C0c_v4^*8 zK~K+GG)5!fTmvH@n_Iv;Zy(0^_{8P;jK1#Bp%?5s>Hq+=Hs>GOve|~O7~Xi}PslEm z;7Sh-4FL$vK|VL-<*a9NcX#vCnx=$dOrcyhK}f5*DU#?W3N0#5)c%sGQnK9pimif5HF z4xc%b`Q`k4vHV$+3KxK^jqc}hKnD=0MR0n$WKK?IhdVoaWpi_P-|pQ%*EVf>1k=-H zJDsi^IC5m<)oRriweP65#MgsrP)i1&8>;`03jjjtbb7j@qvM{jv9Z?C(NRC2&yO8H ze*BM~=Xn79n$UFzRPCK#bEB>$pqi*&8$}I72M}m)Z*TT}pJy_eVoksWVAn#{!U162 wYzgYQ39nnK)ttN0UffXS^-8b1am$VPZ%s-(_>=>Px# literal 0 HcmV?d00001 diff --git a/static/Pics/admon-warning.png b/static/Pics/admon-warning.png new file mode 100644 index 0000000000000000000000000000000000000000..dbf3d19e7015e6481f03c4df6ad34b200c2d786c GIT binary patch literal 1871 zcmV-V2e9~wP)Px#32;bRa{vGf6951U69E94oEQKA00(qQO+^RT2@@6v3d%YT`2YX_24YJ`L;(K) z{{a7>y{D4^00z%VL_t(o!>yNjOjB7D#xLTA%ZLhyh~lVm9ZlT#W!$&8n;6%q;}(tM zHg0iT;x6vSL>WOcnN9!H#08iEg#lDhTqvsoBQ2Dcwv_gjqIl*zk5{BEC^*yPOWL=b z?|08V_uN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DyP@Zcx$H?sm4v-3Sod^>v zmYqE*sS1LN(i|U87OaS9+^=qamjMvh4ZwoJ%0p98VVyFFLpGd-tWi;wBjeFy{o8R! zQT6CSadsDhI#*fvPMQy2^x+aQ>E(NyUP3_#03}U-OOX^Xda1%^rlZA ziVg^P2jfgkvtON0#z&BeFq~Yp=T@!04*Bm9 z;>xv_Ep3I^T2oMzbv8%g=JxAHciOdkhd%_VK|%}=m8ow9d3?^CANWdC68FS8`g%x< z7G-?u(PNv{;jE{_aZHOdf)=}@7P};GF5KS>&|(YFK{Z&qw|#xfe-t9cM~HEV^9=+J z(Yh`G{P9#C?g;hTCd9S+{yE(zL}E)JMl0rA_1;i}`u;=nRHmaH)D`Lj^@oN+qo6U+ zSVe3$92yAqRi5XfYxX6^pPC+qY78}nyc7d3<#%J{zDHdH{tNN`^^}qMq;>!R002ov JPDHLkV1l+ZW~2ZB literal 0 HcmV?d00001 diff --git a/static/Pics/gradient.png b/static/Pics/gradient.png new file mode 100644 index 0000000000000000000000000000000000000000..dc4a8b84ac4c29b5a753620c71551073dee35d30 GIT binary patch literal 247 zcmeAS@N?(olHy`uVBq!ia0vp^j6m$n!2~2PJ^!&2Bv2gW?!>U}oXkrghqJ&VvKXlN zKL|5^>Dtr@6l5>)^mS#w&LJlvr?39(NdZtuti&~<#5q4VH#M(>!8ol, ul>ul, li>ol, li>ul { + margin: 0; +} +ol { + list-style-type: decimal; +} +ul { + list-style-type: disc; +} +th { + font-weight: bold; + margin: 1.5em 0; +} +hr { + border: none; + background-color: #bbb; + height: 1px; + margin: 1.4375em 0 1.5em; +} +pre { + margin: 1.5em 0; + overflow: auto; + font-family: monospace; + white-space: pre; + color: #000; +} +tt, kbd, code { + font-family: monospace; + /* see https://lists.debian.org/debian-www/2011/08/msg00181.html */ + /* white-space: pre; */ + color: #000; +} +var { + font-family: monospace; + font-style: italic; + color: #000; +} +dt { + margin: 1.5em 0 0; + font-weight: bold; +} +dd { + margin: 0 0 0 1.5em; +} +blockquote { + font-size: 0.75em; + margin: 2em; + line-height: 2; +} +cite { + font-style: italic; + color: #444; +} +acronym, abbr { + text-transform: uppercase; + font-size: 0.9em; +} +.toc { + font-size: 0.75em; + list-style:none; + border-bottom: dotted grey; + border-width: 1px; + line-height:1.833; + padding: 0; + max-width: 62%; + margin: 2em 0; +} +.toc li { + border-top: dotted grey; + border-width: 1px; + padding: 0.0833em 0; + } +.toc a { + display: block; + text-decoration: none; +} +.toc a:hover { + display: block; + background-color: #f0f0f4; + text-decoration: underline; +} +.toc dt { + margin: 0; + border-top: dotted grey; + border-width: 1px; + padding: 0.0833em 0; +} + +/* Sitemap */ +.card { + clear: both; + margin: 1.5em 0; + background-position: 0 -50px; + background-repeat: repeat-x; + padding: 0; +} +.card ul { +} +.card ul li { + list-style: none; +} +.card h2 { +} +.lefthalf { + float: left; +} +.righthalf { + margin-left: 50%; +} +.lefthalf ul { + margin-top: 0; +} + +/* Footer */ +#footer { + font-size: 0.75em; + border: 1px solid #dfdfe0; + padding: 1em; + background-color: #f5f6f7; + margin: 0 10px 0 52px; + line-height: 1.5em; + border-left: 0; + border-right: 0; + clear: both; +} +#content #footer { + margin-left: 0; +} +#footer p { + margin: 1em 0; +} +#footer hr { + border-top: 1px solid #d2d3d7; + border-bottom: 1px solid #fff; + height: 0; +} +#footer .editbar li { + display: inline; + margin-right: 2em; +} +#footer .info { +} +#fineprint { + margin-bottom: 1em; +} +#footermap { + list-style:none; + margin: 0; + padding: 0; + width: 100%; + overflow: hidden; + border: 0; +} +ul#footermap-cola a, +ul#footermap-colb a, +ul#footermap-colc a, +ul#footermap-cold a, +ul#footermap-cole a { + padding-left: 0; +} +ul#footermap-cola, +ul#footermap-colb, +ul#footermap-colc, +ul#footermap-cold, +ul#footermap-cole { + float: left; + width: 19%; + min-width: 11em; + height: 15em; /* Update when adding items */ + margin: 0 1% 0 0; + padding: 2em 0 0; + list-style: none; +} +ul#footermap-cole { + width: 18.9%; + margin-right: 0; +} +#footermap-wrap { + padding: 2em; + border-top: 1px solid #fff; +} +#footermap a { + margin: 0; +} +#footermap ul{ + list-style: none; + padding: 0; +} +#footermap li { + text-indent: 0; + background-color: transparent; + font-weight: bold; +} +#footermap li ul { + margin: 0; + padding: 0; +} +#footermap li li { + margin: 0; + text-indent: 0; + padding: 0; + font-weight: normal; + border: 0; + background-image: none; + background-color: transparent; +} +#serverselect { +} +#serverselect input, +#serverselect option, +#serverselect select { +} +#serverselect ul { + display: inline; + margin-left: 2em; +} +#serverselect li { + list-style: none; + display: inline; + padding: 0 1em; + margin: 0; +} +#serverselect form p { + margin: 0; + padding: 0; + line-height: 1; +} +.lcol50 { + float: left; + width: 49%; + font-size: 0.75em; + margin: 0; + padding: 0 0.5em 0 0; +} +.lcol50 h2 { + margin-top: 0; +} +.rcol50 { + margin:0 0 0 51%; + padding: 0; + font-size: 0.75em; +} +#pageLang { + position: relative; /* establish a containing box. needed for langContainer */ +} +form#pageLang { + display: inline; +} + +/* Extras */ +input:focus { + background-color:#ffffcb; +} +.hidecss { + display: none; +} +.clear { + clear: both; +} +#clear { + clear: both; + border: 0; + height: 1px; + display: block; +} +.quicklist { + list-style: none; + font-size: 0.75em; + margin: 2em 0; + padding: 0; + text-indent: 0; + line-height: 2em; +} +.quicklist li { + display: inline; +} +.item p{ + margin: 0; +} +.item h2, +.item p, +.item ul{ + margin-right: 10px; +} +.item h2, +.item h3, +.item h4, +.item h5 { + margin-top: 0; +} +.line { + padding: 0; + width: auto; + overflow: hidden; +} +div.downloads { + border-top: 0.17em solid #339900; + margin: 1.33em 0 0; +} +.downloads ul.downlist { + margin: 0; +} +div.downloads .col50 { + border-top: 0.15em solid #339900; +} +ul.downlist { + padding-left: 30px; + text-indent: 0; + background: url('Pics/emblem-downloads.png') no-repeat 0 0.15em; + min-height: 23px; +/*border-top: 0.17em solid #339900; */ +} +ul.quicklist.downlist { + border-top: 0.17em solid #339900; + padding-top: 0.25em; + margin-top: 1.6em; +} +ul.downlist li { + display: inline; +} +ul.downlist li:after { + content: ', '; +} +ul.downlist li:last-child:after { + content: ''; +} + +/* don't consider dash in arch name as an hyphen #718307 */ +ul.downlist li a { + white-space: nowrap; +} + +div.tip, +div.important, +div.warning, +div.note, +div.trans-note { + padding: 0 2em 0 4em; + margin: 1.85em 0 1.85em 0; + background-repeat: no-repeat; + background-position: 0.5em 0.5em; + font-size: 0.75em; + line-height: 2em; + background-color: #ffffcb; + border: 0.15em solid #cccca3; +} +div.tip p, +div.important p, +div.warning p, +div.note p, +div.trans-note p { + margin: 1em 0; +} +div.tip { + background-image: url('Pics/admon-tip.png'); +} +div.important{ + background-image: url('Pics/admon-important.png'); +} +div.warning { + background-image: url('Pics/admon-warning.png'); +} +div.note, div.trans-note { + background-image: url('Pics/admon-note.png'); +} + +/* Layout Elements */ +.col50, +.cardleft, +.cardright { + width: 47.5%; + float: left; + padding-bottom: 1.5em; +} +.lastcol, +.cardright { + margin: auto; + width: 47.5%; + float: left; + padding-right: 0; + margin-left: 5%; +} +.lastcol h2, +.lastcol p, +.lastcol ul { + margin-right: 0; +} +.cardleft h2 { + margin-right: 1em; +} +.cardright div { + margin-left: 1.5em; +} +.cardright h2 { + margin-left: 1em; +} +.votemenu a { + display: block; +} +table.vote td, table.vote th { + padding-right: 1.5em; +} +#maincol.with-toolbox { + margin-right: 14em; +} +div.tabular table, table.tabular, table.vendors { +/*border-bottom: 1px solid #a9abb3; + border-top: 1px solid #a9abb3; */ + border-bottom: 0.15em solid #666; + border-top: 0.15em solid #666; + font-size: 0.75em; + margin-bottom: 4em; + margin-top: -0.169em; + text-align: left; + width: 80%; +} +table td { + padding-right: 1.5em; + padding-bottom: 0.5em; + padding-top: 0.5em; + line-height: 1.2em; + border-top: dotted grey; + border-width: 1px; +} +div.tabular table tr, table.tabular tr, table.vendors tr { + width: 100%; +} +table th { + padding-right: 1.5em; + padding-bottom: 0.5em; + padding-top: 0.5em; + line-height: 1.5em; +} +div.tabular table td, table.tabular td, table.vendors td { + border-top: dotted grey; + border-width: 1px; +} +div.tabular table > td:first-child, +table.tabular > td:first-child, +table.vendors > td:first-child { + background-image: none; +} +#pageLang p, #pageLang form { + display: inline; +} +.inline a { + float: left; + margin-right: 1em; +} +#langSelector { +/*color: #0035c7; + text-decoration: underline; */ +} +#langSelector:hover { +/*cursor: pointer; + text-decoration: none; */ +} +#langContainer { + padding-top: 0.5em; +/*background-color: #f5f6f7; + background-color: #fff; + background-image:url('Pics/gradient-flipped.png'); + background-position: bottom; + background-repeat: repeat-x; + display: none; + position: absolute; + left: -1em; + padding: 0.5em 1em 1em; + margin-right: -1em; + border-bottom: 1px solid #dfdfe0; + min-width: 100%; */ /* make it reach the right edge if only a few languages are available */ +} +#langContainer a { + margin-right: 1em; +} +#pageLang:hover #langContainer { + display: block; +} +.partnerlogo { + max-width: 200px; +} + +/* for l10n-arabic */ +.bidi { + direction: rtl; + text-align: right; +} +ul.nodecoration { + list-style: none; + padding: 0; +} + +/* For form */ +.action-block-form { + margin-left: 4em; +} + +/* For small screens */ +@media only screen and (max-width: 38em) { + div#header { + margin: 0 2px; + padding: 0; + } + div#logo { + position: relative; + top: 0; + height: auto; + margin: 0; + padding: 0; + min-height: 0; + } + div#logo a { + height: auto; + height: 61px; + } + div#logo a img { + margin: 0; + padding: 0; + display: block; + } + #upperheader p.section { + left: 70px; + top: 0; + } + div#searchbox { + position: relative; + margin: -31px 0 0 60px; + float: right; + bottom: 0; + padding: 0; + } + div#searchbox input[name="P"] { + width: 200px; + } + div#navbar { + display: block; + position: relative; + clear: both; + } + #navbar ul { + min-height: 1.5em; + display: block; + } + #navbar li { + display: inline; + float: none; + margin: 0; + padding: 0; + } + div#navbar a:link, div#navbar a:visited { + display: inline; + margin: 0 1.5em 0 0; + padding: 0.25em 0; + border: 0; + background-color: transparent; + } + div#content { + margin: 0 2px; + } + ul.toc { + max-width: none; + } + div#maincol { + margin-right: 0; + } + div.tip, div.important, div.warning, div.note, div.trans-note { + overflow: hidden; + } + div.trans-note { + position: relative; + top: 0; + right: 0; + left: 0; + margin: 0; + background-image: none; + padding: 0; + padding-left: 1em; + } + div#second-nav { + margin-left: 1em; + width: auto; + } + div#footer { + margin-left: 10px; + padding-left: 0; + padding-right: 0; + } +} + +/* aside used for pics aside text */ +aside { + float: right; + width: 30%; + margin: 0 1.5%; + padding-left: 10px; + padding-right: 10px; + font-style: italic; + background-color: #d2d3d7; +} +aside.light { + float: right; + width: 20%; + margin: 0 1.5%; + padding: 15px; + text-align: center; + background-color: #fff; +} diff --git a/stylesheet.xsl b/stylesheet.xsl index 9155e0b..998a648 100644 --- a/stylesheet.xsl +++ b/stylesheet.xsl @@ -13,4 +13,5 @@ 1 +debian.css