John's Vademecum

Try to learn something about everything, and everything about something -Thomas Huxley “Darwin's bulldog” (1824-1895)

User Tools

Site Tools


public:computers:dokuwiki_tweaks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:computers:dokuwiki_tweaks [08/03/25 11:39 GMT] – [Dokuwiki Template monospace font] johnpublic:computers:dokuwiki_tweaks [09/03/25 09:29 GMT] (current) – [Dokuwiki Template CSS] john
Line 3: Line 3:
 ====== DokuWiki Tweaks ====== ====== DokuWiki Tweaks ======
  
 +===== Dokuwiki Template CSS =====
 +
 +Standard settings for font sizes etc. for different elements is here:
 +
 +''/var/www/html/dokuwiki/lib/tpl/dokuwiki/css/design.less''
 +
 +  * add any modified tweaks to the CSS to a ''userstyle.css'' i.e. ''/var/www/html/dokuwiki/conf/userstyle.css''
 + 
 +    * ''font-size'' etc
 +
 +<code css>
 +pre {
 +        border-radius: 10px;
 +        background-color: #fcffff
 +}
 +
 +
 +code {
 +    color: #c72522;
 +    font-size: 1.1em;
 +    padding: 0.1em 0.3em;
 +    border-radius: 0px;
 +    }
 +
 +
 +.dokuwiki .aside {
 +    font-size: 90%;
 +    }
 +
 +
 +body {
 +    font-size: 90%;
 +
 +}
 +.dokuwiki div.breadcrumbs {
 +    font-size: 90%;
 +    }
 +
 +</code>
 +
 +See also [[#Dokuwiki Template monospace font]]
 +==== Dokuwiki Template Tagline ====
 +
 +<code>
 +<p style="font-size:12px;background-color:#a5e4fa;">Try to learn <b><i>something</i></b> about everything, and <b><i>everything</i></b> about something <br> <i> -Thomas Huxley “Darwin's bulldog” (1824-1895)</i></p>
 +</code>
 ===== Dokuwiki Timezone ===== ===== Dokuwiki Timezone =====
  
Line 212: Line 258:
 ===== Dokuwiki Template monospace font ===== ===== Dokuwiki Template monospace font =====
  
-  * 1<sup>st</sup> for nice rounded boxes around code blocks change the border-radius in the ''pre,code,samp,kbd'' section + 
- +
-<code css> +
-pre, +
-code, +
-samp, +
-kbd { +
-    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace; +
-    /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */ +
-    font-size: 1em; +
-    direction: ltr; +
-    text-align: left; +
-    background-color: @ini_background_site; +
-    color: @ini_text; +
-    box-shadow: inset 0 0 .3em @ini_border; +
-    border-radius: 5px; +
-    } +
-</code> +
  
   * the colour of the mono font is the same as general text and doesn't stand out as well as in other templates.   * the colour of the mono font is the same as general text and doesn't stand out as well as in other templates.
-  * edit ''/var/www/html/dokuwiki/lib/tpl/dokuwiki/css/basic.less'' with a hex code for a better colour. +  * edit ''/var/www/html/dokuwiki/lib/tpl/dokuwiki/css/basic.less'' with a hex code for a better colour 
-  reset the border radius for mono-blocks (confusingly the CSS calls these ''code''  +    but see below for a better place to do the configuraiton 
 +  
 <code css> <code css>
 code { code {
Line 245: Line 273:
 </code> </code>
  
-   
  
   * To prevent upgrades overwriting these changes - add them to ''/var/www/html/dokuwiki/conf/userstyle.css''   * To prevent upgrades overwriting these changes - add them to ''/var/www/html/dokuwiki/conf/userstyle.css''
 +  * ''pre'' relates to the blocks of %%<code> ////// </code> %% 
 +  * ''code'' relates to ''monospaced text''
  
  
Line 254: Line 282:
 pre { pre {
         border-radius: 10px;         border-radius: 10px;
 +         background-color: #fcffff
 +
 } }
  
public/computers/dokuwiki_tweaks.1741433993.txt.gz · Last modified: 08/03/25 11:39 GMT by john