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 06:48 GMT] – [Remove Dokuwiki template footer buttons] 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+ 
  
 +  * 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
 +    * but see below for a better place to do the configuraiton
 +  
 <code css> <code css>
-pre, +code { 
-code+    color#c72522
-samp, +    font-size: 1.1em; 
-kbd +    padding: 0.1em 0.3em; 
-    font-familyConsolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace; +    border-radius: 0;
-    /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */ +
-    font-size: 1em; +
-    directionltr; +
-    text-align: left; +
-    background-color: @ini_background_site; +
-    color: @ini_text; +
-    box-shadow: inset 0 0 .3em @ini_border+
-    border-radius: 5px;+
     }     }
 </code> </code>
  
  
-  * the colour of the mono font is the same as general text and doesn't stand out as well as in other templates. +  * To prevent upgrades overwriting these changes - add them to ''/var/www/html/dokuwiki/conf/userstyle.css'' 
-  * edit ''/var/www/html/dokuwiki/lib/tpl/dokuwiki/css/basic.less'' with a hex code for a better colour. +  * ''pre'' relates to the blocks of %%<code> ////// </code> %% 
-  * reset the border radius for mono-blocks (confusingly the CSS calls these ''code'' +  * ''code'' relates to ''monospaced text'' 
  
 <code css> <code css>
 +pre {
 +        border-radius: 10px;
 +         background-color: #fcffff
 +
 +}
 +
 code { code {
     color: #c72522;     color: #c72522;
     font-size: 1.1em;     font-size: 1.1em;
     padding: 0.1em 0.3em;     padding: 0.1em 0.3em;
-    border-radius: 0;+    border-radius: 0px;
     }     }
-</code> 
  
-  +</code>
 ===== Remove Dokuwiki template footer buttons ===== ===== Remove Dokuwiki template footer buttons =====
  
public/computers/dokuwiki_tweaks.1741416495.txt.gz · Last modified: 08/03/25 06:48 GMT by john