[BACK]Return to mandoc.css CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mandoc.css between version 1.3 and 1.39

version 1.3, 2017/01/19 13:35:02 version 1.39, 2018/11/26 15:02:38
Line 1 
Line 1 
 /* $Id$ */  /* $Id$ */
 /*  /*
  * Standard style sheet for mandoc(1) -Thtml and man.cgi(8).   * Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
    *
    * Written by Ingo Schwarze <schwarze@openbsd.org>.
    * I place this file into the public domain.
    * Permission to use, copy, modify, and distribute it for any purpose
    * with or without fee is hereby granted, without any conditions.
  */   */
   
 /* Global defaults. */  /* Global defaults. */
   
 html {          max-width: 100ex; }  html {          max-width: 65em; }
 body {          font-family: Helvetica,Arial,sans-serif; }  body {          font-family: Helvetica,Arial,sans-serif; }
   table {         margin-top: 0em;
                   margin-bottom: 0em; }
   td {            vertical-align: middle; }
   ul, ol, dl {    margin-top: 0em;
                   margin-bottom: 0em; }
   li, dt {        margin-top: 1em; }
   
   .permalink {    border-bottom: thin dotted;
                   color: inherit;
                   font: inherit;
                   text-decoration: inherit; }
   * {             clear: both }
   
 /* Search form and search results. */  /* Search form and search results. */
   
 fieldset {      border: thin solid silver;  fieldset {      border: thin solid silver;
Line 16  fieldset { border: thin solid silver;
Line 33  fieldset { border: thin solid silver;
 input[name=expr] {  input[name=expr] {
                 width: 25%; }                  width: 25%; }
   
 div.results {   margin-top: 1em;  table.results { margin-top: 1em;
                 margin-left: 2em;                  margin-left: 2em;
                 font-size: smaller; }                  font-size: smaller; }
   
   /* Header and footer lines. */
   
 h1              { margin-bottom: 1ex; font-size: 110% }  table.head {    width: 100%;
 div.section > h1 { margin-left: -4ex; } /* Section header (Sh, SH). */                  border-bottom: 1px dotted #808080;
 h2              { margin-bottom: 1ex; font-size: 105%; margin-left: -2ex; } /* Sub-section header (Ss, SS). */                  margin-bottom: 1em;
 table           { width: 100%; margin-top: 0ex; margin-bottom: 0ex; } /* All tables. */                  font-size: smaller; }
 td              { vertical-align: top; } /* All table cells. */  td.head-vol {   text-align: center; }
 p               { } /* Paragraph: Pp, Lp. */  td.head-rtitle {
 blockquote      { margin-left: 5ex; margin-top: 0ex; margin-bottom: 0ex; } /* D1. */                  text-align: right; }
 div.section     { margin-bottom: 2ex; margin-left: 5ex; } /* Sections (Sh, SH). */  
 div.subsection  { } /* Sub-sections (Ss, SS). */  
 table.synopsis  { } /* SYNOPSIS section table. */  
 div.spacer      { margin: 1em 0; }  
   
 /* Preamble structure. */  table.foot {    width: 100%;
                   border-top: 1px dotted #808080;
                   margin-top: 1em;
                   font-size: smaller; }
   td.foot-os {    text-align: right; }
   
 table.foot      { font-size: smaller; margin-top: 1em; border-top: 1px dotted #dddddd; } /* Document footer. */  /* Sections and paragraphs. */
 td.foot-date    { width: 50%; } /* Document footer: date. */  
 td.foot-os      { width: 50%; } /* Document footer: OS/source. */  
 table.head      { font-size: smaller; margin-bottom: 1em; border-bottom: 1px dotted #dddddd; } /* Document header. */  
 td.head-ltitle  { width: 10%; } /* Document header: left-title. */  
 td.head-vol     { width: 80%; } /* Document header: volume. */  
 td.head-rtitle  { width: 10%; } /* Document header: right-title. */  
   
 /* General font modes. */  .manual-text {
                   margin-left: 3.8em; }
   .Nd {           display: inline; }
   .Sh {           margin-top: 1.2em;
                   margin-bottom: 0.6em;
                   margin-left: -3.2em;
                   font-size: 110%; }
   .Ss {           margin-top: 1.2em;
                   margin-bottom: 0.6em;
                   margin-left: -1.2em;
                   font-size: 105%; }
   .Pp {           margin: 0.6em 0em; }
   .Sx { }
   .Xr { }
   
 i               { } /* Italic: BI, IB, I, (implicit). */  /* Displays and lists. */
 .emph           { font-style: italic; font-weight: normal; } /* Emphasis: Em, Bl -emphasis. */  
 b               { } /* Bold: SB, BI, IB, BR, RB, B, (implicit). */  
 .symb           { font-style: normal; font-weight: bold; } /* Symbolic: Sy, Ms, Bf -symbolic. */  
 small           { } /* Small: SB, SM. */  
 .lit            { font-style: normal; font-weight: normal; font-family: monospace; } /* Literal: Dl, Li, Ql, Bf -literal, Bl -literal, Bl -unfilled. */  
   
 /* Block modes. */  .Bd { }
   .Bd-indent {    margin-left: 3.8em; }
   
 .display        { } /* Top of all Bd, D1, Dl. */  .Bl-bullet {    list-style-type: disc;
 .list           { } /* Top of all Bl. */                  padding-left: 1em; }
   .Bl-bullet > li { }
   .Bl-dash {      list-style-type: none;
                   padding-left: 0em; }
   .Bl-dash > li:before {
                   content: "\2014  "; }
   .Bl-item {      list-style-type: none;
                   padding-left: 0em; }
   .Bl-item > li { }
   .Bl-compact > li {
                   margin-top: 0em; }
   
 /* Context-specific modes. */  .Bl-enum {      padding-left: 2em; }
   .Bl-enum > li { }
   .Bl-compact > li {
                   margin-top: 0em; }
   
 i.addr          { font-weight: normal; } /* Address (Ad). */  .Bl-diag { }
 i.arg           { font-weight: normal; } /* Command argument (Ar). */  .Bl-diag > dt {
 span.author     { } /* Author name (An). */                  font-style: normal;
 b.cmd           { font-style: normal; } /* Command (Cm). */                  font-weight: bold; }
 b.config        { font-style: normal; } /* Config statement (Cd). */  .Bl-diag > dd {
 span.define     { } /* Defines (Dv). */                  margin-left: 0em; }
 span.desc       { } /* Nd.  After em-dash. */  .Bl-hang { }
 b.diag          { font-style: normal; } /* Diagnostic (Bl -diag). */  .Bl-hang > dt { }
 span.env        { } /* Environment variables (Ev). */  .Bl-hang > dd {
 span.errno      { } /* Error string (Er). */                  margin-left: 5.5em; }
 i.farg          { font-weight: normal; } /* Function argument (Fa, Fn). */  .Bl-inset { }
 i.file          { font-weight: normal; } /* File (Pa). */  .Bl-inset > dt { }
 b.flag          { font-style: normal; } /* Flag (Fl, Cm). */  .Bl-inset > dd {
 b.fname         { font-style: normal; } /* Function name (Fa, Fn, Rv). */                  margin-left: 0em; }
 i.ftype         { font-weight: normal; } /* Function types (Ft, Fn). */  .Bl-ohang { }
 b.includes      { font-style: normal; } /* Header includes (In). */  .Bl-ohang > dt { }
 span.lib        { } /* Library (Lb). */  .Bl-ohang > dd {
 i.link-sec      { font-weight: normal; } /* Section links (Sx). */                  margin-left: 0em; }
 b.macro         { font-style: normal; } /* Macro-ish thing (Fd). */  .Bl-tag {       margin-left: 5.5em; }
 b.name          { font-style: normal; } /* Name of utility (Nm). */  .Bl-tag > dt {
 span.opt        { } /* Options (Op, Oo/Oc). */                  float: left;
 span.ref        { } /* Citations (Rs). */                  margin-top: 0em;
 span.ref-auth   { } /* Reference author (%A). */                  margin-left: -5.5em;
 i.ref-book      { font-weight: normal; } /* Reference book (%B). */                  padding-right: 0.5em;
 span.ref-city   { } /* Reference city (%C). */                  vertical-align: top; }
 span.ref-date   { } /* Reference date (%D). */  .Bl-tag > dd {
 i.ref-issue     { font-weight: normal; } /* Reference issuer/publisher (%I). */                  clear: right;
 i.ref-jrnl      { font-weight: normal; } /* Reference journal (%J). */                  width: 100%;
 span.ref-num    { } /* Reference number (%N). */                  margin-top: 0em;
 span.ref-opt    { } /* Reference optionals (%O). */                  margin-left: 0em;
 span.ref-page   { } /* Reference page (%P). */                  vertical-align: top;
 span.ref-corp   { } /* Reference corporate/foreign author (%Q). */                  overflow: auto; }
 span.ref-rep    { } /* Reference report (%R). */  .Bl-compact > dt {
 span.ref-title  { text-decoration: underline; } /* Reference title (%T). */                  margin-top: 0em; }
 span.ref-vol    { } /* Reference volume (%V). */  
 span.type       { font-style: italic; font-weight: normal; } /* Variable types (Vt). */  
 span.unix       { } /* Unices (Ux, Ox, Nx, Fx, Bx, Bsx, Dx). */  
 b.utility       { font-style: normal; } /* Name of utility (Ex). */  
 b.var           { font-style: normal; } /* Variables (Rv). */  
   
 a.link-ext      { } /* Off-site link (Lk). */  .Bl-column { }
 a.link-includes { } /* Include-file link (In). */  .Bl-column > tbody > tr { }
 a.link-mail     { } /* Mailto links (Mt). */  .Bl-column > tbody > tr > td {
 a.link-man      { } /* Manual links (Xr). */                  margin-top: 1em; }
 a.link-ref      { } /* Reference section links (%Q). */  .Bl-compact > tbody > tr > td {
 a.link-sec      { } /* Section links (Sx). */                  margin-top: 0em; }
   
 /* Formatting for lists.  See mdoc(7). */  .Rs {           font-style: normal;
                   font-weight: normal; }
   .RsA { }
   .RsB {          font-style: italic;
                   font-weight: normal; }
   .RsC { }
   .RsD { }
   .RsI {          font-style: italic;
                   font-weight: normal; }
   .RsJ {          font-style: italic;
                   font-weight: normal; }
   .RsN { }
   .RsO { }
   .RsP { }
   .RsQ { }
   .RsR { }
   .RsT {          text-decoration: underline; }
   .RsU { }
   .RsV { }
   
 dl.list-diag    { }  .eqn { }
 dt.list-diag    { }  .tbl { }
 dd.list-diag    { }  
   
 dl.list-hang    { }  .HP {           margin-left: 3.8em;
 dt.list-hang    { }                  text-indent: -3.8em; }
 dd.list-hang    { }  
   
 dl.list-inset   { }  /* Semantic markup for command line utilities. */
 dt.list-inset   { }  
 dd.list-inset   { }  
   
 dl.list-ohang   { }  table.Nm { }
 dt.list-ohang   { }  code.Nm {       font-style: normal;
 dd.list-ohang   { margin-left: 0ex; }                  font-weight: bold;
                   font-family: inherit; }
   .Fl {           font-style: normal;
                   font-weight: bold;
                   font-family: inherit; }
   .Cm {           font-style: normal;
                   font-weight: bold;
                   font-family: inherit; }
   .Ar {           font-style: italic;
                   font-weight: normal; }
   .Op {           display: inline; }
   .Ic {           font-style: normal;
                   font-weight: bold;
                   font-family: inherit; }
   .Ev {           font-style: normal;
                   font-weight: normal;
                   font-family: monospace; }
   .Pa {           font-style: italic;
                   font-weight: normal; }
   
 dl.list-tag     { }  /* Semantic markup for function libraries. */
 dt.list-tag     { }  
 dd.list-tag     { }  
   
 table.list-col  { }  .Lb { }
 tr.list-col     { }  code.In {       font-style: normal;
 td.list-col     { }                  font-weight: bold;
                   font-family: inherit; }
   a.In { }
   .Fd {           font-style: normal;
                   font-weight: bold;
                   font-family: inherit; }
   .Ft {           font-style: italic;
                   font-weight: normal; }
   .Fn {           font-style: normal;
                   font-weight: bold;
                   font-family: inherit; }
   .Fa {           font-style: italic;
                   font-weight: normal; }
   .Vt {           font-style: italic;
                   font-weight: normal; }
   .Va {           font-style: italic;
                   font-weight: normal; }
   .Dv {           font-style: normal;
                   font-weight: normal;
                   font-family: monospace; }
   .Er {           font-style: normal;
                   font-weight: normal;
                   font-family: monospace; }
   
 ul.list-bul     { list-style-type: disc; padding-left: 1em; }  /* Various semantic markup. */
 li.list-bul     { }  
   
 ul.list-dash    { list-style-type: none; padding-left: 0em; }  .An { }
 li.list-dash:before { content: "\2014  "; }  .Lk { }
   .Mt { }
   .Cd {           font-style: normal;
                   font-weight: bold;
                   font-family: inherit; }
   .Ad {           font-style: italic;
                   font-weight: normal; }
   .Ms {           font-style: normal;
                   font-weight: bold; }
   .St { }
   .Ux { }
   
 ul.list-hyph    { list-style-type: none; padding-left: 0em; }  /* Physical markup. */
 li.list-hyph:before { content: "\2013  "; }  
   
 ul.list-item    { list-style-type: none; padding-left: 0em; }  .Bf {           display: inline; }
 li.list-item    { }  .No {           font-style: normal;
                   font-weight: normal; }
   .Em {           font-style: italic;
                   font-weight: normal; }
   .Sy {           font-style: normal;
                   font-weight: bold; }
   .Li {           font-style: normal;
                   font-weight: normal;
                   font-family: monospace; }
   
 ol.list-enum    { padding-left: 2em; }  /* Overrides to avoid excessive margins on small devices. */
 li.list-enum    { }  
   
 /* Equation modes.  See eqn(7). */  @media (max-width: 37.5em) {
   .manual-text {
 span.eqn        { }                  margin-left: 0.5em; }
   .Sh, .Ss {      margin-left: 0em; }
 /* Table modes.  See tbl(7). */  .Bd-indent {    margin-left: 2em; }
   .Bl-hang > dd {
 table.tbl       { }                  margin-left: 2em; }
   .Bl-tag {       margin-left: 2em; }
   .Bl-tag > dt {
                   margin-left: -2em; }
   .HP {           margin-left: 2em;
                   text-indent: -2em; }
   }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.39

CVSweb