X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2FTheming.html;h=6b5dac35cc04317dbace98f895adad688ce4ca88;hb=f210d94f716acd86fd22c9651f591a778490e8a9;hp=27c5d8634bd720935749c258615586655856ad17;hpb=92a381f51737de1e4a03c482fe7c43da311ad556;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/Theming.html b/doc/Theming.html index 27c5d863..6b5dac35 100644 --- a/doc/Theming.html +++ b/doc/Theming.html @@ -52,13 +52,13 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
  • How To
  • Theming

    -

    User CSS

    +

    Foreword

    +

    There are two ways of customizing how Shaarli looks:

    +
      +
    1. by using a custom CSS to override Shaarli's CSS
    2. +
    3. by using a full theme that provides its own RainTPL templates, CSS and Javascript resources
    4. +
    +

    Custom CSS

    +

    Shaarli's appearance can be modified by adding CSS rules to:

    -

    See also:

    - -

    RainTPL template

    +

    This file allows overriding rules defined in the template CSS files (only add changed rules), or define a whole new theme.

    +

    Note: Do not edit tpl/default/css/shaarli.css! Your changes would be overridden when updating Shaarli.

    +

    See also Download CSS styles from an OPML list

    +

    Themes

    WARNING - This feature is currently being worked on and will be improved in the next releases. Experimental.

    +

    Installation:

    -

    Community themes & templates

    +

    Community CSS & themes

    +

    Custom CSS

    + +

    Themes

    +

    Shaarli forks

    + -

    Example installation: AlbinoMouse template

    +

    Example installation: AlbinoMouse theme

    With the following configuration:

    -
    $ cd ~/public_html
    +
    $ cd ~/public_html
     
     # clone repositories
    -$ git clone https://github.com/shaarli/Shaarli.git shaarli
    -$ pushd shaarli/tpl
    -$ git clone https://github.com/alexisju/albinomouse-template.git
    -$ popd
    +$ git clone https://github.com/shaarli/Shaarli.git shaarli
    +$ pushd shaarli/tpl
    +$ git clone https://github.com/alexisju/albinomouse-template.git
    +$ popd
     
     # set access rights for Apache
    -$ chgrp -R http shaarli
    -$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp
    +$ chgrp -R http shaarli +$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp

    Get config written:

    Edit Shaarli's configuration|Shaarli configuration:

    # the file should be owned by Apache, thus not writeable => sudo
    -$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php
    +$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php